|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.dialogs.DialogPage
org.eclipse.jface.preference.PreferencePage
org.eclipse.jface.preference.FieldEditorPreferencePage
org.eclipse.ohf.stem.ui.ge.views.GEPreferencePage
public class GEPreferencePage
Handle Preferences for the STEM - GoogleEarth interface.
This class contains the following: - code to present the setting of the preferences by the user. The gui for some preferences are handled by GEAdvancedPreferencePage - getter/setter code for all of the preferences. mostly getter. - code to pick up the aspect preference from the visualization page. This class was initialy generated by the PreferencePage wizard and then modified as described in "Building Comercial-Quality Plugins" This class represents a preference page that is contributed to the Preferences dialog. By subclassing FieldEditorPreferencePage, we can use the field support built into JFace that allows us to create a page that is small and knows how to save, restore and apply itself.This page is used to modify preferences only. They are stored in the preference store that belongs to the main plug-in class. That way, preferences can be accessed directly via the preference store. This uses the jface Preferences API rather than the new SWT Preferences API because it is simpler to implement.
Field Summary | |
---|---|
static int |
M_ASYNC_SERVLET
always write the control.kml file and start a servlet to read the latest version. |
static int |
M_AUTO_LAUNCH
Build a KML file and launch it directly to GoogleEarth |
static int |
M_LOG_ONLY
Only Log KML for later display |
static int |
M_LOG_SERVLET
Log the KML files and start the networkLink process |
static int |
M_MANUAL_DISPLAY
Do not do anything automatically. |
static org.eclipse.jface.preference.IPreferenceStore |
preferences
|
Fields inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage |
---|
FLAT, GRID |
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider |
---|
ERROR, INFORMATION, NONE, WARNING |
Constructor Summary | |
---|---|
GEPreferencePage()
construct the Preference page for GoogleEarth interface. |
Method Summary | |
---|---|
void |
createFieldEditors()
Creates the field editors. |
static java.lang.String |
display()
To display all of the Preferences. |
static Aspect |
getAspect()
get the specified Aspect that will be logged or displayed |
static java.lang.String |
getFolder()
|
static int |
getMethod()
This will return a code 1 to 5 indicating the method used to display KML. |
static java.lang.String |
getServerHost()
|
static int |
getWhichCycle()
|
void |
init(org.eclipse.ui.IWorkbench workbench)
|
static boolean |
isAutoLaunch()
|
static boolean |
isAutoLogging()
|
static boolean |
isBBOX()
|
static boolean |
isDebug()
|
static boolean |
isInternalServer()
|
static boolean |
isShowBorder()
|
static boolean |
isTest()
|
boolean |
performOk()
|
static void |
setAspect(java.lang.String aspectStr)
set the Aspect that will be displayed |
static void |
setFolder(java.lang.String logFolder)
|
static void |
setMethod(int newMethod)
Set the Method that STEM coummicates with GE |
Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage |
---|
dispose, propertyChange, setVisible |
Methods inherited from class org.eclipse.jface.preference.PreferencePage |
---|
applyData, computeSize, createControl, getContainer, getPreferenceStore, isValid, okToLeave, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString |
Methods inherited from class org.eclipse.jface.dialogs.DialogPage |
---|
getControl, getDescription, getErrorMessage, getImage, getMessage, getMessageType, getShell, getTitle, setDescription, setImageDescriptor, setMessage |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.preference.IPreferencePage |
---|
computeSize, isValid, okToLeave, performCancel, setContainer, setSize |
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage |
---|
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible |
Field Detail |
---|
public static final int M_LOG_ONLY
public static final int M_LOG_SERVLET
public static final int M_ASYNC_SERVLET
public static final int M_AUTO_LAUNCH
public static final int M_MANUAL_DISPLAY
public static final org.eclipse.jface.preference.IPreferenceStore preferences
Constructor Detail |
---|
public GEPreferencePage()
Method Detail |
---|
public void init(org.eclipse.ui.IWorkbench workbench)
init
in interface org.eclipse.ui.IWorkbenchPreferencePage
public void createFieldEditors()
createFieldEditors
in class org.eclipse.jface.preference.FieldEditorPreferencePage
public boolean performOk()
performOk
in interface org.eclipse.jface.preference.IPreferencePage
performOk
in class org.eclipse.jface.preference.FieldEditorPreferencePage
public static java.lang.String getFolder()
public static void setFolder(java.lang.String logFolder)
logFolder
- the logFolder to setpublic static java.lang.String getServerHost()
public static int getMethod()
public static void setMethod(int newMethod)
newMethod
- New method to setpublic static boolean isInternalServer()
public static boolean isAutoLaunch()
public static boolean isAutoLogging()
public static int getWhichCycle()
public static Aspect getAspect()
public static void setAspect(java.lang.String aspectStr)
aspectStr
- Name of the desired Aspect.public static boolean isBBOX()
public static boolean isDebug()
public static boolean isTest()
Uses: - Enhanced Debug output (time and thread) - Filter out nodes - KmlDisplay - if not BBox filter then not US or Mexico - KmlDisplayCustom - not US To see where else this is used ask to see call hierarchy
public static boolean isShowBorder()
With KML you can either show the polygon borders or not. This flag will control whether they are shown or not. The default is to not show them
public static java.lang.String display()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |