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 ViewParserPreferencePage

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

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


public class ViewParserPreferencePage
extends LpexFieldEditorPreferencePage

Parser preference page for an LPEX view. It handles the parser setting for the view.


Field Summary
protected  com.ibm.lpex.alef.preferences.LpexListEditor _parserList
          The list editor for document parsers selectable for the view.
 
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
ViewParserPreferencePage(LpexView lpexView)
          Constructor.
 
Method Summary
protected  void contributeButtons(org.eclipse.swt.widgets.Composite buttonBar)
          Contributes the "Reset" and "Apply" buttons.
protected  org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
          Creates and returns the SWT control for the customized body of this preference page.
protected  void createFieldEditors()
          Creates this preference page's field editor.
 void dispose()
          Disposes the SWT resources allocated by this dialog page.
 boolean performOk()
          "OK" / "Apply" button pressed.
protected  void performReset()
          "Reset" button pressed.
protected  void updateApplyButton()
          Updates the enabled state of the "Apply" button to reflect whether this page is valid.
 
Methods inherited from class com.ibm.lpex.alef.preferences.LpexFieldEditorPreferencePage
fieldEditorsCreated, init
 
Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
addField, adjustGridLayout, applyFont, checkState, getFieldEditorParent, initialize, performDefaults, propertyChange, setVisible
 
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
 
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, setVisible
 

 

Field Detail

 

 

_parserList

protected com.ibm.lpex.alef.preferences.LpexListEditor _parserList

The list editor for document parsers selectable for the view.

Constructor Detail

 

 

ViewParserPreferencePage

public ViewParserPreferencePage(LpexView lpexView)

Constructor.

Method Detail

 

 

createContents

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

Creates and returns the SWT control for the customized body of this preference page. Overriden in order to set the context help.


 

 

createFieldEditors

protected void createFieldEditors()

Creates this preference page's field editor.

Method fieldEditorsCreated() is called after the field of this preference page is created and set to its initial value. A subclass may then disable it:

   _parserList.setEnabled(false);


 

 

contributeButtons

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

Contributes the "Reset" and "Apply" buttons. We had to get rid of the "Defaults" button for this page, so the original "Apply" also had to be Ecliptically flushed...

Overrides:
contributeButtons in class LpexFieldEditorPreferencePage

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


 

 

dispose

public void dispose()

Disposes the SWT resources allocated by this dialog page.


 

 

updateApplyButton

protected void updateApplyButton()

Updates the enabled state of the "Apply" button to reflect whether this page is valid. Reimplemented as this page defines its own "Apply" button.


 

 

performOk

public boolean performOk()

"OK" / "Apply" button pressed. Commit any new updated parser value by running the updateProfile command, ensure the change is reflected correctly on the view screen.


 

 

performReset

protected void performReset()

Description copied from class: LpexFieldEditorPreferencePage
"Reset" button pressed. The LpexFieldEditorPreferencePage implementation of this method does nothing. Override to restore the initial settings of the preference page.

Overrides:
performReset in class LpexFieldEditorPreferencePage

See Also:
LpexFieldEditorPreferencePage.contributeButtons(org.eclipse.swt.widgets.Composite)


 

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