Search in sources :

Example 1 with NlsResourceBundle

use of org.eclipse.mylyn.internal.wikitext.ui.util.NlsResourceBundle in project mylyn.docs by eclipse.

the class ExpandAllFoldingRulerAction method createAction.

@Override
protected IAction createAction(ITextEditor editor, IVerticalRulerInfo rulerInfo) {
    TextOperationAction action = new TextOperationAction(new NlsResourceBundle(Messages.class), "ExpandAllFoldingRulerAction_", editor, ProjectionViewer.EXPAND_ALL, // $NON-NLS-1$
    true);
    action.setActionDefinitionId(IFoldingCommandIds.FOLDING_EXPAND_ALL);
    return action;
}
Also used : NlsResourceBundle(org.eclipse.mylyn.internal.wikitext.ui.util.NlsResourceBundle) TextOperationAction(org.eclipse.ui.texteditor.TextOperationAction)

Example 2 with NlsResourceBundle

use of org.eclipse.mylyn.internal.wikitext.ui.util.NlsResourceBundle in project mylyn.docs by eclipse.

the class MarkupEditor method createActions.

@Override
protected void createActions() {
    super.createActions();
    IAction action;
    // action = new ShowCheatSheetAction(this);
    // setAction(action.getId(),action);
    // $NON-NLS-1$
    action = new ContentAssistAction(new NlsResourceBundle(Messages.class), "ContentAssistProposal_", this);
    action.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
    // $NON-NLS-1$
    setAction("ContentAssistProposal", action);
    // $NON-NLS-1$
    markAsStateDependentAction("ContentAssistProposal", true);
}
Also used : NlsResourceBundle(org.eclipse.mylyn.internal.wikitext.ui.util.NlsResourceBundle) IAction(org.eclipse.jface.action.IAction) ContentAssistAction(org.eclipse.ui.texteditor.ContentAssistAction)

Example 3 with NlsResourceBundle

use of org.eclipse.mylyn.internal.wikitext.ui.util.NlsResourceBundle in project mylyn.docs by eclipse.

the class CollapseAllFoldingRulerAction method createAction.

@Override
protected IAction createAction(ITextEditor editor, IVerticalRulerInfo rulerInfo) {
    TextOperationAction action = new TextOperationAction(new NlsResourceBundle(Messages.class), "CollapseAllFoldingRulerAction_", editor, ProjectionViewer.COLLAPSE_ALL, // $NON-NLS-1$
    true);
    action.setActionDefinitionId(IFoldingCommandIds.FOLDING_COLLAPSE_ALL);
    return action;
}
Also used : NlsResourceBundle(org.eclipse.mylyn.internal.wikitext.ui.util.NlsResourceBundle) TextOperationAction(org.eclipse.ui.texteditor.TextOperationAction)

Aggregations

NlsResourceBundle (org.eclipse.mylyn.internal.wikitext.ui.util.NlsResourceBundle)3 TextOperationAction (org.eclipse.ui.texteditor.TextOperationAction)2 IAction (org.eclipse.jface.action.IAction)1 ContentAssistAction (org.eclipse.ui.texteditor.ContentAssistAction)1