formatAndStyleRangeHelper = new StyledTextForShowingCodeFactory();
labelExample = formatAndStyleRangeHelper.createStyledTextForCodePresentation(appearanceComposite);
updateLabelExample(PyFormatStd.getFormat(), PydevPrefs.getChainedPrefStore());
LinkFieldEditor colorsAndFontsLinkFieldEditor = new LinkFieldEditor("UNUSED",
"Other settings:\n\n<a>Text Editors</a>: print margin, line numbers ...", appearanceComposite,
new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
String id = "org.eclipse.ui.preferencePages.GeneralTextEditor";
IWorkbenchPreferenceContainer workbenchPreferenceContainer = ((IWorkbenchPreferenceContainer) getContainer());
workbenchPreferenceContainer.openPage(id, null);
}
public void widgetDefaultSelected(SelectionEvent e) {
}
});
colorsAndFontsLinkFieldEditor.getLinkControl(appearanceComposite);
colorsAndFontsLinkFieldEditor = new LinkFieldEditor("UNUSED",
"<a>Colors and Fonts</a>: text font, content assist color ...", appearanceComposite,
new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
String id = "org.eclipse.ui.preferencePages.ColorsAndFonts";
IWorkbenchPreferenceContainer workbenchPreferenceContainer = ((IWorkbenchPreferenceContainer) getContainer());
workbenchPreferenceContainer.openPage(id, null);
}
public void widgetDefaultSelected(SelectionEvent e) {
}
});
colorsAndFontsLinkFieldEditor.getLinkControl(appearanceComposite);
colorsAndFontsLinkFieldEditor = new LinkFieldEditor("UNUSED", "<a>Annotations</a>: occurrences, markers ...",
appearanceComposite, new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
String id = "org.eclipse.ui.editors.preferencePages.Annotations";
IWorkbenchPreferenceContainer workbenchPreferenceContainer = ((IWorkbenchPreferenceContainer) getContainer());
workbenchPreferenceContainer.openPage(id, null);
}
public void widgetDefaultSelected(SelectionEvent e) {
}
});
colorsAndFontsLinkFieldEditor.getLinkControl(appearanceComposite);
return appearanceComposite;
}