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

Quick Search    Search Deep

com.port80.eclipse.editors.preferences
Class JavaccEditorPreferencePage  view JavaccEditorPreferencePage download JavaccEditorPreferencePage.java

java.lang.Object
  extended byorg.eclipse.jface.dialogs.DialogPage
      extended byorg.eclipse.jface.preference.PreferencePage
          extended byorg.eclipse.jface.preference.FieldEditorPreferencePage
              extended bycom.port80.eclipse.editors.preferences.JavaccEditorPreferencePage
All Implemented Interfaces:
java.util.EventListener, com.port80.eclipse.editors.IConstants, 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 JavaccEditorPreferencePage
extends org.eclipse.jface.preference.FieldEditorPreferencePage
implements org.eclipse.ui.IWorkbenchPreferencePage, com.port80.eclipse.editors.IConstants

This class represents a preference page that is contributed to the Preferences dialog. By subclassing FieldEditorPreferencePage, we can use the field support built into JFace that allows us to create a page that is small and knows how to save, restore and apply itself.

This page is used to modify preferences only. They are stored in the preference store that belongs to the main plug-in class. That way, preferences can be accessed directly via the preference store.


Field Summary
private static java.lang.String NAME
           
 
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 com.port80.eclipse.editors.IConstants
DEF_ANTLR_BG, DEF_ANTLR_CODE_COLUMN, DEF_ANTLR_FONT, DEF_ANTLR_INDENT_USE_TAB, DEF_ANTLR_LINEWIDTH, DEF_ANTLR_SYNC_SELECTION, DEF_ANTLR_TABWIDTH, DEF_ANTLR_VALIDATE_AFTER_ACTION, DEF_ANTLR_WARN_UNUSED_NONTERMINAL, DEF_ANTLR_WARN_UNUSED_TOKEN, DEF_CHECK_CR, DEF_CS_BG, DEF_CS_FONT, DEF_CS_INDENT_USE_TAB, DEF_CS_LINEWIDTH, DEF_CS_TABWIDTH, DEF_CSHARP_BG, DEF_CSHARP_BREAK_CONTROL_OPEN_BRACE, DEF_CSHARP_BREAK_DECLARATION_OPEN_BRACE, DEF_CSHARP_FONT, DEF_CSHARP_INDENT_CASE, DEF_CSHARP_INDENT_PREPROCESSOR, DEF_CSHARP_INDENT_USE_TAB, DEF_CSHARP_LINEWIDTH, DEF_CSHARP_SYNC_SELECTION, DEF_CSHARP_TABWIDTH, DEF_CSHARP_VALIDATE_AFTER_ACTION, DEF_CSHARP_WARN_UNUSED_NONTERMINAL, DEF_CSHARP_WARN_UNUSED_TOKEN, DEF_CSS_BG, DEF_CSS_FONT, DEF_CSS_INDENT_USE_TAB, DEF_CSS_LINEWIDTH, DEF_CSS_TABWIDTH, DEF_HTML_BG, DEF_HTML_FONT, DEF_HTML_INDENT_USE_TAB, DEF_HTML_LINEWIDTH, DEF_HTML_OUTLINE_ATTRIBUTES, DEF_HTML_OUTLINE_CLASSES, DEF_HTML_OUTLINE_TAGS, DEF_HTML_SYNC_SELECTION, DEF_HTML_TABWIDTH, DEF_HTML_VALIDATE_AFTER_ACTION, DEF_JAVACC_BG, DEF_JAVACC_CODE_COLUMN, DEF_JAVACC_FONT, DEF_JAVACC_INDENT_USE_TAB, DEF_JAVACC_LINEWIDTH, DEF_JAVACC_SYNC_SELECTION, DEF_JAVACC_TABWIDTH, DEF_JAVACC_VALIDATE_AFTER_ACTION, DEF_JAVACC_WARN_UNUSED_NONTERMINAL, DEF_JAVACC_WARN_UNUSED_TOKEN, DEF_LLK_BG, DEF_LLK_CODE_COLUMN, DEF_LLK_FONT, DEF_LLK_INDENT_USE_TAB, DEF_LLK_LINEWIDTH, DEF_LLK_SYNC_SELECTION, DEF_LLK_TABWIDTH, DEF_LLK_VALIDATE_AFTER_ACTION, DEF_LLK_WARN_UNUSED_NONTERMINAL, DEF_LLK_WARN_UNUSED_TOKEN, DEF_MAKEFILE_BG, DEF_MAKEFILE_FONT, DEF_MAKEFILE_INDENT_USE_TAB, DEF_MAKEFILE_LINEWIDTH, DEF_MAKEFILE_SKIP_UPPERCASE_VAR, DEF_MAKEFILE_SYNC_SELECTION, DEF_MAKEFILE_TABWIDTH, DEF_MAKEFILE_VALIDATE_AFTER_ACTION, DEF_PERL_BG, DEF_PERL_FONT, DEF_PERL_INDENT_USE_TAB, DEF_PERL_LINEWIDTH, DEF_PERL_SYNC_SELECTION, DEF_PERL_TABWIDTH, DEF_VERIFY_FORMATTED_TEXT, DEF_XML_BG, DEF_XML_FONT, DEF_XML_INDENT_USE_TAB, DEF_XML_LINEWIDTH, DEF_XML_OUTLINE_ATTRIBUTES, DEF_XML_SYNC_SELECTION, DEF_XML_TABWIDTH, FormatActionProblemMarker, KEY_COMPACT_FORMAT, KEY_FORMAT_ARGUMENT, KEY_FORMAT_COMMAND, KEY_FORMAT_ERROR, POSITION_CATAGORY, PREF_ANTLR_BG, PREF_ANTLR_CODE_COLUMN, PREF_ANTLR_FONT, PREF_ANTLR_INDENT_USE_TAB, PREF_ANTLR_LINEWIDTH, PREF_ANTLR_SYNC_SELECTION, PREF_ANTLR_TABWIDTH, PREF_ANTLR_VALIDATE_AFTER_ACTION, PREF_ANTLR_WARN_UNUSED_NONTERMINAL, PREF_ANTLR_WARN_UNUSED_TOKEN, PREF_BG_USE_SYSTEM_DEFAULT, PREF_CHECK_CR, PREF_CS_BG, PREF_CS_FONT, PREF_CS_INDENT_USE_TAB, PREF_CS_LINEWIDTH, PREF_CS_TABWIDTH, PREF_CSHARP_BG, PREF_CSHARP_BREAK_CONTROL_OPEN_BRACE, PREF_CSHARP_BREAK_DECLARATION_OPEN_BRACE, PREF_CSHARP_FONT, PREF_CSHARP_INDENT_CASE, PREF_CSHARP_INDENT_PREPROCESSOR, PREF_CSHARP_INDENT_USE_TAB, PREF_CSHARP_LINEWIDTH, PREF_CSHARP_SYNC_SELECTION, PREF_CSHARP_TABWIDTH, PREF_CSHARP_VALIDATE_AFTER_ACTION, PREF_CSHARP_WARN_UNUSED_NONTERMINAL, PREF_CSHARP_WARN_UNUSED_TOKEN, PREF_CSS_BG, PREF_CSS_FONT, PREF_CSS_INDENT_USE_TAB, PREF_CSS_LINEWIDTH, PREF_CSS_TABWIDTH, PREF_HTML_BG, PREF_HTML_FONT, PREF_HTML_INDENT_USE_TAB, PREF_HTML_LINEWIDTH, PREF_HTML_OUTLINE_ATTRIBUTES, PREF_HTML_OUTLINE_CLASSES, PREF_HTML_OUTLINE_TAGS, PREF_HTML_SYNC_SELECTION, PREF_HTML_TABWIDTH, PREF_HTML_VALIDATE_AFTER_ACTION, PREF_JAVACC_BG, PREF_JAVACC_CODE_COLUMN, PREF_JAVACC_FONT, PREF_JAVACC_INDENT_USE_TAB, PREF_JAVACC_LINEWIDTH, PREF_JAVACC_SYNC_SELECTION, PREF_JAVACC_TABWIDTH, PREF_JAVACC_VALIDATE_AFTER_ACTION, PREF_JAVACC_WARN_UNUSED_NONTERMINAL, PREF_JAVACC_WARN_UNUSED_TOKEN, PREF_LLK_BG, PREF_LLK_CODE_COLUMN, PREF_LLK_FONT, PREF_LLK_INDENT_USE_TAB, PREF_LLK_LINEWIDTH, PREF_LLK_SYNC_SELECTION, PREF_LLK_TABWIDTH, PREF_LLK_VALIDATE_AFTER_ACTION, PREF_LLK_WARN_UNUSED_NONTERMINAL, PREF_LLK_WARN_UNUSED_TOKEN, PREF_MAKEFILE_BG, PREF_MAKEFILE_FONT, PREF_MAKEFILE_LINEWIDTH, PREF_MAKEFILE_SKIP_UPPERCASE_VAR, PREF_MAKEFILE_SYNC_SELECTION, PREF_MAKEFILE_TABWIDTH, PREF_MAKEFILE_VALIDATE_AFTER_ACTION, PREF_PERL_BG, PREF_PERL_FONT, PREF_PERL_INDENT_USE_TAB, PREF_PERL_LINEWIDTH, PREF_PERL_SYNC_SELECTION, PREF_PERL_TABWIDTH, PREF_RELOAD_THEME, PREF_VERIFY_FORMATTED_TEXT, PREF_XML_BG, PREF_XML_FONT, PREF_XML_INDENT_USE_TAB, PREF_XML_LINEWIDTH, PREF_XML_OUTLINE_ATTRIBUTES, PREF_XML_SYNC_SELECTION, PREF_XML_TABWIDTH
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
JavaccEditorPreferencePage()
           
 
Method Summary
 void createFieldEditors()
          Creates the field editors.
 void init(org.eclipse.ui.IWorkbench workbench)
          Initializes this preference page for the given workbench.
private  void initializeDefaults()
          Sets the default values of the preferences.
 
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
applyDialogFont, computeSize, contributeButtons, 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, performOk, setContainer, setSize
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
createControl, dispose, getControl, getDescription, getErrorMessage, getImage, getMessage, getTitle, performHelp, setDescription, setImageDescriptor, setTitle, setVisible
 

Field Detail

NAME

private static final java.lang.String NAME
See Also:
Constant Field Values
Constructor Detail

JavaccEditorPreferencePage

public JavaccEditorPreferencePage()
Method Detail

initializeDefaults

private void initializeDefaults()
Sets the default values of the preferences.


createFieldEditors

public void createFieldEditors()
Creates the field editors. Field editors are abstractions of the common GUI blocks needed to manipulate various types of preferences. Each field editor knows how to save and restore itself.


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