Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD


 

com.ibm.lpex.alef.preferences
Class ParserStylesPreferencePage

java.lang.Object
  extended byorg.eclipse.jface.dialogs.DialogPage
      extended byorg.eclipse.jface.preference.PreferencePage
          extended bycom.ibm.lpex.alef.preferences.ParserStylesPreferencePage

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


public final class ParserStylesPreferencePage
extends org.eclipse.jface.preference.PreferencePage
implements org.eclipse.ui.IWorkbenchPreferencePage

Preference page for customization of document parsers.


Field Summary
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
ParserStylesPreferencePage()
           
 
Method Summary
protected  void contributeButtons(org.eclipse.swt.widgets.Composite buttonBar)
          Contributes a "Reset" button.
protected  org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite ancestor)
          Creates and returns the SWT control for the customized body of this preference page under the given Composite.
 void dispose()
          Disposes the SWT resources allocated by this dialog page.
 void init(org.eclipse.ui.IWorkbench workbench)
          Initializes this preference page for the given workbench.
protected  void performDefaults()
          "Restore Defaults" button pressed.
 boolean performOk()
          "OK" / "Apply" button pressed.
protected  void performReset()
          "Reset" button pressed.
 void setVisible(boolean visible)
          Sets the visibility of this dialog page.
 
Methods inherited from class org.eclipse.jface.preference.PreferencePage
applyDialogFont, computeSize, createControl, createDescriptionLabel, createNoteComposite, doComputeSize, doGetPreferenceStore, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, 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.preference.IPreferencePage
computeSize, isValid, okToLeave, performCancel, setContainer, setSize
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle
 

Constructor Detail

 

 

ParserStylesPreferencePage

public ParserStylesPreferencePage()

Method Detail

 

 

createContents

protected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite ancestor)

Creates and returns the SWT control for the customized body of this preference page under the given Composite.

See Also:
PreferencePage.createContents(Composite)


 

 

init

public void init(org.eclipse.ui.IWorkbench workbench)

Initializes this preference page for the given workbench. This method, defined by IWorkbenchPreferencePage, is called automatically when the preference page defined in plugin.xml is being created and initialized.

The ParserStylesPreferencePage implementation of this method does nothing.

Specified by:
init in interface org.eclipse.ui.IWorkbenchPreferencePage


 

 

contributeButtons

protected void contributeButtons(org.eclipse.swt.widgets.Composite buttonBar)

Contributes a "Reset" button. Method performReset() is called when this button is selected.

Parameters:
buttonBar - the preference-page button bar
See Also:
PreferencePage.contributeButtons(org.eclipse.swt.widgets.Composite), performReset()


 

 

performDefaults

protected void performDefaults()

"Restore Defaults" button pressed. Set all the values and the dialog fields to the editor install settings.


 

 

performReset

protected void performReset()

"Reset" button pressed. Restore the initial preference-page settings.


 

 

performOk

public boolean performOk()

"OK" / "Apply" button pressed. Commit any new updated values, and ensure that any changes are reflected correctly on all the LPEX screens.

Specified by:
performOk in interface org.eclipse.jface.preference.IPreferencePage


 

 

setVisible

public void setVisible(boolean visible)

Sets the visibility of this dialog page. Extended in order to update the document parser each time this page is made visible.

Specified by:
setVisible in interface org.eclipse.jface.dialogs.IDialogPage


 

 

dispose

public void dispose()

Disposes the SWT resources allocated by this dialog page. Extended in order to clear the document parser used when this page is disposed.

Specified by:
dispose in interface org.eclipse.jface.dialogs.IDialogPage


 

Overview

 
Package  Use  Tree  Serialized  Deprecated  Index  Help 
SWT LPEX
v3.0.0
 PREV CLASS   NEXT CLASS FRAMES    NO FRAMES  
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD