Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.eclipse.debug.internal.ui.preferences
Class ConsolePreferencePage  view ConsolePreferencePage download ConsolePreferencePage.java

java.lang.Object
  extended byorg.eclipse.jface.dialogs.DialogPage
      extended byorg.eclipse.jface.preference.PreferencePage
          extended byorg.eclipse.jface.preference.FieldEditorPreferencePage
              extended byorg.eclipse.debug.internal.ui.preferences.ConsolePreferencePage
All Implemented Interfaces:
java.util.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 ConsolePreferencePage
extends org.eclipse.jface.preference.FieldEditorPreferencePage
implements org.eclipse.ui.IWorkbenchPreferencePage

A page to set the preferences for the console


Nested Class Summary
protected  class ConsolePreferencePage.ConsoleIntegerFieldEditor
          This class exists to provide visibility to the refreshValidState method and to perform more intelligent clearing of the error message.
 
Field Summary
private  ConsolePreferencePage.ConsoleIntegerFieldEditor fBufferSizeEditor
           
private  ConsolePreferencePage.ConsoleIntegerFieldEditor fTabSizeEditor
           
private  BooleanFieldEditor2 fUseBufferSize
           
private  ConsolePreferencePage.ConsoleIntegerFieldEditor fWidthEditor
           
private  BooleanFieldEditor2 fWrapEditor
           
 
Fields inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
FLAT, GRID, MARGIN_HEIGHT, MARGIN_WIDTH, VERTICAL_SPACING
 
Fields inherited from class org.eclipse.jface.preference.PreferencePage
 
Fields inherited from class org.eclipse.jface.dialogs.DialogPage
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
ConsolePreferencePage()
          Create the console page.
 
Method Summary
protected  boolean canClearErrorMessage()
           
 void createControl(org.eclipse.swt.widgets.Composite parent)
          Creates the top level control for this dialog page under the given parent composite.
 void createFieldEditors()
          Create all field editors for this page
 void init(org.eclipse.ui.IWorkbench workbench)
          Initializes this preference page for the given workbench.
protected  void initialize()
          Initializes all field editors.
protected  void performDefaults()
          The field editor preference page implementation of a PreferencePage method loads all the field editors with their default values.
 boolean performOk()
          Notifies that the OK button of this page's container has been pressed.
 void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
          The field editor preference page implementation of this IPreferencePage (and IPropertyChangeListener) method intercepts IS_VALID events but passes other events on to its superclass.
protected  void updateBufferSizeEditor()
          Update enablement of buffer size editor based on enablement of 'limit console output' editor.
protected  void updateWidthEditor()
          Update enablement of width editor based on enablement of 'fixed width' editor.
 
Methods inherited from class org.eclipse.jface.preference.FieldEditorPreferencePage
addField, adjustGridLayout, applyFont, checkState, createContents, dispose, getFieldEditorParent, setVisible
 
Methods inherited from class org.eclipse.jface.preference.PreferencePage
applyDialogFont, computeSize, contributeButtons, 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
dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
 

Field Detail

fWrapEditor

private BooleanFieldEditor2 fWrapEditor

fWidthEditor

private ConsolePreferencePage.ConsoleIntegerFieldEditor fWidthEditor

fUseBufferSize

private BooleanFieldEditor2 fUseBufferSize

fBufferSizeEditor

private ConsolePreferencePage.ConsoleIntegerFieldEditor fBufferSizeEditor

fTabSizeEditor

private ConsolePreferencePage.ConsoleIntegerFieldEditor fTabSizeEditor
Constructor Detail

ConsolePreferencePage

public ConsolePreferencePage()
Create the console page.

Method Detail

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Description copied from interface: org.eclipse.jface.dialogs.IDialogPage
Creates the top level control for this dialog page under the given parent composite.

Implementors are responsible for ensuring that the created control can be accessed via getControl

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

createFieldEditors

public void createFieldEditors()
Create all field editors for this page


init

public void init(org.eclipse.ui.IWorkbench workbench)
Description copied from interface: org.eclipse.ui.IWorkbenchPreferencePage
Initializes this preference page for the given workbench.

This method is called automatically as the preference page is being created and initialized. Clients must not call this method.

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

performOk

public boolean performOk()
Description copied from interface: org.eclipse.jface.preference.IPreferencePage
Notifies that the OK button of this page's container has been pressed.

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

initialize

protected void initialize()
Description copied from class: org.eclipse.jface.preference.FieldEditorPreferencePage
Initializes all field editors.


updateWidthEditor

protected void updateWidthEditor()
Update enablement of width editor based on enablement of 'fixed width' editor.


updateBufferSizeEditor

protected void updateBufferSizeEditor()
Update enablement of buffer size editor based on enablement of 'limit console output' editor.


performDefaults

protected void performDefaults()
Description copied from class: org.eclipse.jface.preference.FieldEditorPreferencePage
The field editor preference page implementation of a PreferencePage method loads all the field editors with their default values.


canClearErrorMessage

protected boolean canClearErrorMessage()

propertyChange

public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
Description copied from class: org.eclipse.jface.preference.FieldEditorPreferencePage
The field editor preference page implementation of this IPreferencePage (and IPropertyChangeListener) method intercepts IS_VALID events but passes other events on to its superclass.

Specified by:
propertyChange in interface org.eclipse.jface.util.IPropertyChangeListener