Examples of ToggleCommentAction


Examples of org.apache.click.eclipse.ui.actions.ToggleCommentAction

*/
public class TemplateEditor extends StructuredTextEditor {

  protected void createActions() {
    super.createActions();
    setAction(ToggleCommentAction.class.getName(), new ToggleCommentAction(this));
  }
View Full Code Here

Examples of org.eclipse.dltk.internal.ui.editor.ToggleCommentAction

    action.setActionDefinitionId(IScriptEditorActionDefinitionIds.UNCOMMENT);
    setAction("Uncomment", action); //$NON-NLS-1$
    markAsStateDependentAction("Uncomment", true); //$NON-NLS-1$

    // Toggle comment
    action = new ToggleCommentAction(DLTKEditorMessages.getBundleForConstructedKeys(),
            "ToggleComment.", this); //$NON-NLS-1$
    action.setActionDefinitionId(IScriptEditorActionDefinitionIds.TOGGLE_COMMENT);
    setAction("ToggleComment", action); //$NON-NLS-1$
    markAsStateDependentAction("ToggleComment", true); //$NON-NLS-1$
    configureToggleCommentAction();
View Full Code Here

Examples of org.eclipse.dltk.internal.ui.editor.ToggleCommentAction

    action.setActionDefinitionId(IScriptEditorActionDefinitionIds.UNCOMMENT);
    setAction("Uncomment", action); //$NON-NLS-1$
    markAsStateDependentAction("Uncomment", true); //$NON-NLS-1$

    // Toggle comment
    action = new ToggleCommentAction(DLTKEditorMessages.getBundleForConstructedKeys(),
            "ToggleComment.", this); //$NON-NLS-1$
    action.setActionDefinitionId(IScriptEditorActionDefinitionIds.TOGGLE_COMMENT);
    setAction("ToggleComment", action); //$NON-NLS-1$
    markAsStateDependentAction("ToggleComment", true); //$NON-NLS-1$
    configureToggleCommentAction();
View Full Code Here

Examples of org.jitterbit.ui.text.ToggleCommentAction

        area.installShortCut("showLineNumbers", shortCut, a);
        return a;
    }
   
    private Action installToggleCommentAction(ExpressionArea area) {
        Action a = new ToggleCommentAction(area.getTextPane());
        KeyStroke shortCut = KeyUtils.getCtrlDown(KeyEvent.VK_SLASH);
        a.putValue(Action.ACCELERATOR_KEY, shortCut);
        area.installShortCut("toggleComment", shortCut, a);
        return a;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.