Update of /cvsroot/easystruts/org.sf.easyexplore/src/org/sf/easyexplore/preferences
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29857/src/org/sf/easyexplore/preferences
Modified Files:
EasyExplorePreferencePage.java
Log Message:
A small upgrade to run also a comamnd and get the right default command on windows... I use it all the time.
Index: EasyExplorePreferencePage.java
===================================================================
RCS file: /cvsroot/easystruts/org.sf.easyexplore/src/org/sf/easyexplore/preferences/EasyExplorePreferencePage.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** EasyExplorePreferencePage.java 26 Jan 2006 20:37:56 -0000 1.1
--- EasyExplorePreferencePage.java 27 Jan 2006 02:31:10 -0000 1.2
***************
*** 1,5 ****
package org.sf.easyexplore.preferences;
-
import org.eclipse.jface.preference.FieldEditorPreferencePage;
import org.eclipse.jface.preference.StringFieldEditor;
--- 1,4 ----
***************
*** 8,40 ****
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) {
}
--- 7,39 ----
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 static final String P_COMMAND = "org.sf.easyexplore.commandPreference";
+
public EasyExplorePreferencePage() {
super(GRID);
setPreferenceStore(EasyExplorePlugin.getDefault().getPreferenceStore());
! setDescription("Configure your explorer application and command to run.");
! }
/**
! * 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, "&Explorer:",
! getFieldEditorParent()));
! addField(new StringFieldEditor(P_COMMAND, "&Command:",
! getFieldEditorParent()));
}
!
public void init(IWorkbench workbench) {
}
|