Hey Guys,
is it possible to add new preferences to my new nodes? Or do you have any other ideas how can i set settings before executing my node?
Hey Guys,
is it possible to add new preferences to my new nodes? Or do you have any other ideas how can i set settings before executing my node?
You need to use the eclipse extension points to add preference pages:
See:
import org.eclipse.jface.preference.BooleanFieldEditor;
import org.eclipse.jface.preference.DirectoryFieldEditor;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.IntegerFieldEditor;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
public class <Name>PreferencePage extends FieldEditorPreferencePage implements
IWorkbenchPreferencePage
{
public FrugalPreferencePage()
{
super(GRID);
}
public void createFieldEditors()
{
// Add your fields
}
@Override
public void init(IWorkbench workbench)
{
setPreferenceStore(Activator.getDefault().getPreferenceStore());
setDescription("Description");
}
}
Cheers
Sam
Works fine! Thank you very much Sam, you´re the best! ;)
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.