public class SyntaxColoringPreferencePage extends AbstractPreferencePage implements IHighlightingConfigurationAcceptor, Comparator<Triple<String,String,TextStyle>>
| Constructor and Description |
|---|
SyntaxColoringPreferencePage() |
| Modifier and Type | Method and Description |
|---|---|
void |
acceptDefaultHighlighting(String id,
String name,
TextStyle style)
Call this method to announce a specific default style.
|
protected void |
addField(org.eclipse.jface.preference.FieldEditor editor)
TODO: better use unqualified names in preference store.
|
void |
collectHighlightings(IHighlightingConfiguration configuration) |
int |
compare(Triple<String,String,TextStyle> left,
Triple<String,String,TextStyle> right) |
protected void |
createFieldEditors() |
protected String |
qualifiedName() |
protected void |
refreshAttributes() |
createContents, createControl, doGetPreferenceStore, getElement, getLanguageName, getQualifier, getWorkbench, init, isPropertyPage, performOk, setElement, updateFieldEditors, useProjectSettingsPreferenceNameadjustGridLayout, applyFont, checkState, dispose, getFieldEditorParent, initialize, performDefaults, propertyChange, setVisibleapplyData, applyDialogFont, computeSize, contributeButtons, createDescriptionLabel, createNoteComposite, doComputeSize, getApplyButton, getContainer, getDefaultsButton, getPreferenceStore, isValid, noDefaultAndApplyButton, okToLeave, performApply, performCancel, performHelp, setContainer, setErrorMessage, setMessage, setPreferenceStore, setSize, setTitle, setValid, toString, updateApplyButtonconvertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getImage, getMessage, getMessageType, getShell, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, setButtonLayoutData, setControl, setDescription, setImageDescriptor, setMessageclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequalsprotected String qualifiedName()
qualifiedName in class AbstractPreferencePage@Inject public void collectHighlightings(IHighlightingConfiguration configuration)
public void acceptDefaultHighlighting(String id, String name, TextStyle style)
IHighlightingConfigurationAcceptorIllegalStateException when an id is used twice.acceptDefaultHighlighting in interface IHighlightingConfigurationAcceptorid - the unique id that should be associated with the given style.name - the human readable name of the style.style - the default style with the given id and name.IHighlightingConfiguration.configure(IHighlightingConfigurationAcceptor)protected void createFieldEditors()
createFieldEditors in class org.eclipse.jface.preference.FieldEditorPreferencePageprotected void refreshAttributes()
public int compare(Triple<String,String,TextStyle> left, Triple<String,String,TextStyle> right)
protected void addField(org.eclipse.jface.preference.FieldEditor editor)
addField in class AbstractPreferencePageCopyright © 2016. All Rights Reserved.