Update of /cvsroot/easystruts/easyexplore-plugin/src/org/sf/easyexplore/preferences
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29640/src/org/sf/easyexplore/preferences
Added Files:
EasyExplorePreferencePage.java
Log Message:
major refactoring on this little puppy to get it OSGI compliant and have visbility enabled as needed....
--- NEW FILE: EasyExplorePreferencePage.java ---
package org.sf.easyexplore.preferences;
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.StringFieldEditor;
import org.eclipse.ui.IWorkbench;
import org.eclipse.ui.IWorkbenchPreferencePage;
import org.sf.easyexplore.EasyExplorePlugin;
/**
* Preference for program used by Easy Explore
*/
public class EasyExplorePreferencePage
extends FieldEditorPreferencePage
implements IWorkbenchPreferencePage {
public static final String P_TARGET = "org.sf.easyexplore.targetPreference";
public EasyExplorePreferencePage() {
super(GRID);
setPreferenceStore(EasyExplorePlugin.getDefault().getPreferenceStore());
setDescription("Set up your file explorer application.");
}
/**
* Creates the field editors. Field editors are abstractions of
* the common GUI blocks needed to manipulate various types
* of preferences. Each field editor knows how to save and
* restore itself.
*/
public void createFieldEditors() {
addField(
new StringFieldEditor(P_TARGET, "&Target:", getFieldEditorParent()));
}
public void init(IWorkbench workbench) {
}
}
|