Control c = getControl();
c.setMenu(mgr.createContextMenu(c));
IPersistentPreferenceStore pstore = (IPersistentPreferenceStore) store;
showTagSequencePrefAction = new BooleanPrefAction(pstore,
UIPreferences.HISTORY_SHOW_TAG_SEQUENCE,
UIText.ResourceHistory_ShowTagSequence) {
@Override
protected void apply(boolean value) {
// nothing, just toggle
}
};
mgr.add(showTagSequencePrefAction);
wrapCommentsPrefAction = new BooleanPrefAction(pstore,
UIPreferences.RESOURCEHISTORY_SHOW_COMMENT_WRAP,
UIText.ResourceHistory_toggleCommentWrap) {
@Override
protected void apply(boolean value) {
// nothing, just toggle
}
};
mgr.add(wrapCommentsPrefAction);
fillParagraphsPrefAction = new BooleanPrefAction(pstore,
UIPreferences.RESOURCEHISTORY_SHOW_COMMENT_FILL,
UIText.ResourceHistory_toggleCommentFill) {
@Override
protected void apply(boolean value) {
// nothing, just toggle