Class IvmlIndentationPreferencePage

  • All Implemented Interfaces:
    org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.preference.IPreferencePage, org.eclipse.swt.widgets.Listener, org.eclipse.ui.IWorkbenchPreferencePage

    public class IvmlIndentationPreferencePage
    extends org.eclipse.jface.preference.PreferencePage
    implements org.eclipse.ui.IWorkbenchPreferencePage, org.eclipse.swt.widgets.Listener
    Implements preferencePage for customization of ivml-properties such as indentation.
    Author:
    Niko Nowatzki, Holger Eichelberger
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private org.eclipse.swt.widgets.Button indentCheckbox  
      private org.eclipse.swt.widgets.Spinner indentSpinner  
      • Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider

        ERROR, INFORMATION, NONE, WARNING
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void createConfigurationDialogs​(org.eclipse.swt.widgets.Composite pageComponent)
      Create the dialogs.
      protected org.eclipse.swt.widgets.Control createContents​(org.eclipse.swt.widgets.Composite parent)
      void handleEvent​(org.eclipse.swt.widgets.Event event)  
      void init​(org.eclipse.ui.IWorkbench workbench)
      protected void performApply()  
      protected void performDefaults()  
      private void refreshPage()
      Load the current values from PreferenceStore to page.
      • 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, performCancel, performHelp, performOk, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButton
      • Methods inherited from class org.eclipse.jface.dialogs.DialogPage

        convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessage, setVisible
      • 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
    • Field Detail

      • indentSpinner

        private org.eclipse.swt.widgets.Spinner indentSpinner
      • indentCheckbox

        private org.eclipse.swt.widgets.Button indentCheckbox
    • Constructor Detail

      • IvmlIndentationPreferencePage

        public IvmlIndentationPreferencePage()
    • Method Detail

      • init

        public void init​(org.eclipse.ui.IWorkbench workbench)
        Specified by:
        init in interface org.eclipse.ui.IWorkbenchPreferencePage
      • createContents

        protected org.eclipse.swt.widgets.Control createContents​(org.eclipse.swt.widgets.Composite parent)
        Specified by:
        createContents in class org.eclipse.jface.preference.PreferencePage
      • createConfigurationDialogs

        private void createConfigurationDialogs​(org.eclipse.swt.widgets.Composite pageComponent)
        Create the dialogs. 3 labels for users info. 3 TextFields for user input. 1 Button for applying the input. The values will be stored in the preference store. 1 Button for restoring the default values.
        Parameters:
        pageComponent - The PageComponent.
      • performApply

        protected void performApply()
        Overrides:
        performApply in class org.eclipse.jface.preference.PreferencePage
      • performDefaults

        protected void performDefaults()
        Overrides:
        performDefaults in class org.eclipse.jface.preference.PreferencePage
      • refreshPage

        private void refreshPage()
        Load the current values from PreferenceStore to page.
      • handleEvent

        public void handleEvent​(org.eclipse.swt.widgets.Event event)
        Specified by:
        handleEvent in interface org.eclipse.swt.widgets.Listener