+ "files. The semantic highlighting, in addition to Java "
+ "semantic highlighting, colors different Ptolemy semantic "
+ "elements in the source files.");
Composite currentComposite = _newComposite(composite);
_highlightingEnabled = new BooleanFieldEditor(
PreferenceConstants.EDITOR_HIGHLIGHTING_ENABLED,
"&Enable semantic highlighting (work since Eclipse 3.1)",
currentComposite) {
protected void doLoadDefault() {
super.doLoadDefault();
_setEnabled(_colorGroup, getBooleanValue());
}
protected void valueChanged(boolean oldValue, boolean newValue) {
super.valueChanged(oldValue, newValue);
_setEnabled(_colorGroup, newValue);
}
};
_setParent(_highlightingEnabled, currentComposite);
addField(_highlightingEnabled);
_colorGroup = _newGroup(composite, "Colors");
currentComposite = _newComposite(_colorGroup);
ColorFieldEditor color = new ColorFieldEditor(
PreferenceConstants.EDITOR_STATE_COLOR,
"&State variable color", currentComposite);
addField(color);
//currentComposite = _newComposite(currentLine);
BooleanFieldEditor bold = new BooleanFieldEditor(
PreferenceConstants.EDITOR_STATE_BOLD, "Bold", currentComposite);
addField(bold);
BooleanFieldEditor italic = new BooleanFieldEditor(
PreferenceConstants.EDITOR_STATE_ITALIC, "Italic",
currentComposite);
addField(italic);
color = new ColorFieldEditor(
PreferenceConstants.EDITOR_ACTOR_METHOD_COLOR,
"&Actor method color", currentComposite);
addField(color);
bold = new BooleanFieldEditor(
PreferenceConstants.EDITOR_ACTOR_METHOD_BOLD, "Bold",
currentComposite);
addField(bold);
italic = new BooleanFieldEditor(
PreferenceConstants.EDITOR_ACTOR_METHOD_ITALIC, "Italic",
currentComposite);
addField(italic);
IPreferenceStore store = EclipsePlugin.getDefault()