Logo Search packages:      
Sourcecode: eclipse-pydev version File versions  Download package

org::python::pydev::plugin::PydevPrefs Class Reference

Inherits org::eclipse::jface::preference::PreferencePage, and org::eclipse::ui::IWorkbenchPreferencePage.

List of all members.


Detailed Description

The preference page for setting the editor options.

This class is internal and not intended to be used by clients.

Since:
2.1

Definition at line 56 of file PydevPrefs.java.


Public Member Functions

void applyToStatusLine (DialogPage page, IStatus status)
void createControl (Composite parent)
void dispose ()
void init (IWorkbench workbench)
boolean performOk ()

Static Public Member Functions

static String[] getInterpreters ()
static Preferences getPreferences ()

Static Public Attributes

static final String AUTO_ADD_SELF = "AUTO_ADD_SELF"
static final String AUTO_BRACES = "AUTO_BRACES"
static final String AUTO_COLON = "AUTO_COLON"
static final String AUTO_DEDENT_ELSE = "AUTO_DEDENT_ELSE"
static final String AUTO_PAR = "AUTO_PAR"
static final String AUTO_WRITE_IMPORT_STR = "AUTO_WRITE_IMPORT_STR"
static final String BACKQUOTES_COLOR = "BACKQUOTES_COLOR"
static final String BACKQUOTES_STYLE = "BACKQUOTES_STYLE"
static final String CLASS_NAME_COLOR = "CLASS_NAME_COLOR"
static final String CLASS_NAME_STYLE = "CLASS_NAME_STYLE"
static final String CODE_COLOR = "CODE_COLOR"
static final String CODE_STYLE = "CODE_STYLE"
static final String COMMENT_COLOR = "COMMENT_COLOR"
static final String COMMENT_STYLE = "COMMENT_STYLE"
static final String CONNECT_TIMEOUT = "CONNECT_TIMEOUT"
static final String DECORATOR_COLOR = "DECORATOR_COLOR"
static final String DECORATOR_STYLE = "DECORATOR_STYLE"
static final boolean DEFAULT_AUTO_ADD_SELF = true
static final boolean DEFAULT_AUTO_BRACES = true
static final boolean DEFAULT_AUTO_COLON = true
static final boolean DEFAULT_AUTO_DEDENT_ELSE = true
static final boolean DEFAULT_AUTO_PAR = true
static final boolean DEFAULT_AUTO_WRITE_IMPORT_STR = true
static final RGB DEFAULT_BACKQUOTES_COLOR = new RGB(0, 0, 0)
static final int DEFAULT_BACKQUOTES_STYLE = SWT.BOLD
static final RGB DEFAULT_CLASS_NAME_COLOR = new RGB(0, 0, 0)
static final int DEFAULT_CLASS_NAME_STYLE = SWT.BOLD
static final RGB DEFAULT_CODE_COLOR = new RGB(0, 0, 0)
static final int DEFAULT_CODE_STYLE = SWT.NORMAL
static final RGB DEFAULT_COMMENT_COLOR = new RGB(192, 192, 192)
static final int DEFAULT_COMMENT_STYLE = SWT.NORMAL
static final int DEFAULT_CONNECT_TIMEOUT = 20000
static final RGB DEFAULT_DECORATOR_COLOR = new RGB(125, 125, 125)
static final int DEFAULT_DECORATOR_STYLE = SWT.ITALIC
static final boolean DEFAULT_EDITOR_USE_CUSTOM_CARETS = false
static final boolean DEFAULT_EDITOR_WIDE_CARET = false
static final RGB DEFAULT_FUNC_NAME_COLOR = new RGB(0, 0, 0)
static final int DEFAULT_FUNC_NAME_STYLE = SWT.BOLD
static final boolean DEFAULT_GUESS_TAB_SUBSTITUTION = true
static final RGB DEFAULT_KEYWORD_COLOR = new RGB(0, 0, 255)
static final int DEFAULT_KEYWORD_STYLE = SWT.NORMAL
static final RGB DEFAULT_MATCHING_BRACKETS_COLOR = new RGB(64,128,128)
static final int DEFAULT_MATCHING_BRACKETS_STYLE = SWT.NORMAL
static final String DEFAULT_MULTI_BLOCK_COMMENT_CHAR = "="
static final RGB DEFAULT_NUMBER_COLOR = new RGB(128, 0, 0)
static final int DEFAULT_NUMBER_STYLE = SWT.NORMAL
static final RGB DEFAULT_SELF_COLOR = new RGB(0, 0, 0)
static final int DEFAULT_SELF_STYLE = SWT.ITALIC
static final String DEFAULT_SINGLE_BLOCK_COMMENT_CHAR = "-"
static final boolean DEFAULT_SMART_INDENT_PAR = true
static final RGB DEFAULT_STRING_COLOR = new RGB(0, 170, 0)
static final int DEFAULT_STRING_STYLE = SWT.ITALIC
static final boolean DEFAULT_SUBSTITUTE_TABS = true
static final int DEFAULT_TAB_WIDTH = 4
static final boolean DEFAULT_USE_CODE_FOLDING = true
static final boolean DEFAULT_USE_MATCHING_BRACKETS = true
static final String FUNC_NAME_COLOR = "FUNC_NAME_COLOR"
static final String FUNC_NAME_STYLE = "FUNC_NAME_STYLE"
static final String GUESS_TAB_SUBSTITUTION = "GUESS_TAB_SUBSTITUTION"
static final String KEYWORD_COLOR = "KEYWORD_COLOR"
static final String KEYWORD_STYLE = "KEYWORD_STYLE"
static final String MATCHING_BRACKETS_COLOR = "EDITOR_MATCHING_BRACKETS_COLOR"
static final String MATCHING_BRACKETS_STYLE = "EDITOR_MATCHING_BRACKETS_STYLE"
static final String MULTI_BLOCK_COMMENT_CHAR = "MULTI_BLOCK_COMMENT_CHAR"
static final String NUMBER_COLOR = "NUMBER_COLOR"
static final String NUMBER_STYLE = "NUMBER_STYLE"
static final String SELF_COLOR = "SELF_COLOR"
static final String SELF_STYLE = "SELF_STYLE"
static final String SINGLE_BLOCK_COMMENT_CHAR = "SINGLE_BLOCK_COMMENT_CHAR"
static final String SMART_INDENT_PAR = "SMART_INDENT_PAR"
static final String STRING_COLOR = "STRING_COLOR"
static final String STRING_STYLE = "STRING_STYLE"
static final String SUBSTITUTE_TABS = "SUBSTITUTE_TABS"
static final String TAB_WIDTH = "TAB_WIDTH"
static final int TOOLTIP_WIDTH = 80
static final String USE_CODE_FOLDING = "USE_CODE_FOLDING"
static final String USE_MATCHING_BRACKETS = "USE_MATCHING_BRACKETS"

Protected Member Functions

Control createContents (Composite parent)
void performDefaults ()

Package Functions

void updateStatus (IStatus status)

Private Member Functions

Button addCheckBox (Composite parent, String label, String key, int indentation)
Button addStyleCheckBox (Composite parent, String text)
Control addTextField (Composite composite, String label, String key, int textLimit, int indentation, boolean isNumber)
Control createAppearancePage (Composite parent)
void createDependency (final Button master, String masterKey, final Control slave)
OverlayPreferenceStore createOverlayStore ()
void handleAppearanceColorListSelection ()
void initialize ()
void initializeDefaultColors ()
void initializeFields ()
void numberFieldChanged (Text textControl)
void updateAppearanceColorWidgets (String systemDefaultKey)
IStatus validatePositiveNumber (String number)

Static Private Member Functions

static void indent (Control control)

Private Attributes

Button fAppearanceColorDefault
ColorEditor fAppearanceColorEditor
List fAppearanceColorList
final String[][] fAppearanceColorListModel
final String[][] fAppearanceFontListModel
Map< Button, String > fCheckBoxes = new HashMap<Button, String>()
SelectionListener fCheckBoxListener
boolean fFieldsInitialized = false
Button fFontBoldCheckBox
Button fFontItalicCheckBox
java.util.List< SelectionListener > fMasterSlaveListeners = new ArrayList<SelectionListener>()
ModifyListener fNumberFieldListener
java.util.List< Text > fNumberFields = new ArrayList<Text>()
OverlayPreferenceStore fOverlayStore
SelectionListener fStyleCheckBoxListener
ModifyListener fTextFieldListener
Map< Text, String > fTextFields = new HashMap<Text, String>()

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index