score:1
i run into the same problem and this is how i resolved it:
@inject
public void trackinterface(@preference(nodepath = "/configuration/"
+ activator.plugin_id, value = "interfacepref") string interfacename) {
if (interfacename == null || interfacename.isempty()) {
// use default preference
ieclipsepreferences preferences = defaultscope.instance
.getnode(activator.plugin_id);
interfacename = preferences.get("interfacepref", "multicast");
}
else
lblinterfacename = interfacename;
Source: stackoverflow.com
Related Query
- eclipse e4 - How to let a preference value from the ConfigurationScope be injected after value change?
- How to change the value of ${user} variable used in Eclipse templates
- How to set the java.library.path from Eclipse
- How to teach eclipse to generate compact equals() and hashCode() from the jdk 7 Objects class?
- How to prevent Eclipse from showing the opened file in package explorer
- How do I get verbose output from Maven in the Eclipse console?
- How do I stop JPA Facet on Eclipse from updating all the time?
- How do I prevent Eclipse from adding the 'final' keyword to a member variable declaration?
- How to get the selected node in the package explorer from an Eclipse plugin
- How to remove a file from an Eclipse project without deleting the file from the disk?
- Building Eclipse IDE from scratch - how to specify the target OS?
- How to run maven from eclipse with the -e switch
- How to upgrade Eclipse from 3.5 (Galileo) to 3.6 (Helios) the proper way?
- How do I get the current method from the active Eclipse editor?
- How to let Eclipse accept the canvas tag?
- How to remove Eclipse project related files without deleteing the source from Eclipse
- How to make eclipse launch a program in the eclipse workbench from the command line?
- How do I set the Eclipse build path and class path from an Ant build file?
- Eclipse & Tomcat: How to specify which folder is served from the project?
- How to Avoid Launching the Android Application Twice ,Running from Eclipse to real device
- How to use Eclipse embedded Maven installation from the command line?
- How can I set the java.library.path used by eclipse from a POM?
- How to use the same source from PhoneGap Build and PhoneGap Android project in Eclipse
- How to prevent Eclipse from cleaning the bin folder for every build?
- How to remove the JavaScript facet from an Eclipse project?
- how to load the dependencies from the pom into classpath of eclipse project?
- How can I find out the value of an Eclipse path variable or string variable ( `${some_var}` )?
- How to stop Eclipse from putting the variable type after the variable name
- How to remove empty line from the end of new class - Eclipse
- How to run ant from an Eclipse plugin, send output to an Eclipse console, and capture the build result (success/failure)?
More Query from same tag
- Attaching a process to a debug session: javaw.exe is not shown
- Compilation unit is not on the build path of a Java project
- Send an imageview in a scrollView
- maven user library not packaged in my runnable jar
- Linking menus together
- Can't find SDK Manager in SDK file
- can't open project in Android Eclips workspace?
- What parent to set when calling FieldEditor#setEnabled?
- Error when setting up eclipse
- Move default config folder of eclipse
- Aptana Studio 3 Git Synchronize Workspace function
- Play Framework 2.4 IDE Eclipse directions don't work
- where to put .properties files in an Eclipse project?
- Change all projects location in Eclipse
- How to show JApplet in a JSP page
- Eclipse cannot debug a newly created class in a package
- ERROR: operator does not exist: integer = character varying, using Postgres 8.2
- Tomcat and Eclipse server configuration
- Android Eclipse - Cannot see annotation processing option
- Andengine getLastChild() error
- Opening an existing process
- How to detect changes to Eclipse classpath container contents?
- Spring-Boot cannot run in Eclipse and not recognize autowired DataSource
- Android date picker listener doesn't work more than one time..
- the project target (android 2.2) was not properly loaded
- How do I Reduce the size of eclipse view tabs in Ubuntu?
- NoSuchMethodError org.bouncycastle.asn1.ASN1InputStream.readObject()Lorg/bouncycastle/asn1/ASN1Primitive
- Error with R.java class, layout no found but present in R.java
- Updating the edited data in mysql using JSF
- Is there a way to enter greek letters in Wolfram Workbench 2.0?