Package preferences
Class PreferenceHandler
-
- All Implemented Interfaces:
EventListener
,IDialogPage
,IMessageProvider
,IPreferencePage
,IPropertyChangeListener
,IWorkbenchPreferencePage
public class PreferenceHandler extends FieldEditorPreferencePage implements IWorkbenchPreferencePage
Creates preference page for plugin in preferences This class is referenced in plugin.xml
-
-
Field Summary
-
Fields inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
FLAT, GRID, MARGIN_HEIGHT, MARGIN_WIDTH, VERTICAL_SPACING
-
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
-
Constructor Summary
Constructors Constructor Description PreferenceHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
createFieldEditors()
Create Fields in PreferencePagestatic String
getPathassembly()
static String
getPathContextModel()
static String
getPathrepositorymodel()
static String
getPathusagemodel()
static String
getProjectPath()
static Settings
getSettingsFromPreferences()
void
init(IWorkbench arg0)
static void
setDefault()
Set default values This function is separate because default values also needed if preferences where not initialised yet by eclipse environment-
Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
addField, adjustGridLayout, applyFont, checkState, createContents, dispose, getFieldEditorParent, initialize, performDefaults, performOk, propertyChange, setVisible
-
Methods inherited from class org.eclipse.jface.preference.PreferencePage
applyData, applyDialogFont, computeSize, contributeButtons, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, noDefaultButton, okToLeave, performApply, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
-
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
-
Methods inherited from interface org.eclipse.jface.preference.IPreferencePage
computeSize, isValid, okToLeave, performCancel, performOk, setContainer, setSize
-
-
-
-
Method Detail
-
setDefault
public static void setDefault()
Set default values This function is separate because default values also needed if preferences where not initialised yet by eclipse environment
-
init
public void init(IWorkbench arg0)
- Specified by:
init
in interfaceIWorkbenchPreferencePage
-
createFieldEditors
protected void createFieldEditors()
Create Fields in PreferencePage- Specified by:
createFieldEditors
in classFieldEditorPreferencePage
-
getProjectPath
public static String getProjectPath()
-
getPathrepositorymodel
public static String getPathrepositorymodel()
-
getPathassembly
public static String getPathassembly()
-
getPathusagemodel
public static String getPathusagemodel()
-
getPathContextModel
public static String getPathContextModel()
-
getSettingsFromPreferences
public static Settings getSettingsFromPreferences()
-
-