Package org.objectstyle.wolips.wodclipse.editor

Examples of org.objectstyle.wolips.wodclipse.editor.WodEditor$WodOutlineUpdater


    try {
      ComponentEditorPart componentEditorPart = getComponentEditorPart();
      if (componentEditorPart != null) {
        IEditorPart activeEditorPart = componentEditorPart.getActiveEditor();
        TemplateEditor templateEditor = getTemplateEditor();
        WodEditor wodEditor = getWodEditor();
        if (templateEditor != null && wodEditor != null) {
          if (activeEditorPart == templateEditor) {
            templateEditor.getSourceEditor().new DeleteTagAction().run();
          }
        }
View Full Code Here


  public void run(IAction action) {
    try {
      ComponentEditorPart componentEditorPart = getComponentEditorPart();
      if (componentEditorPart != null) {
        TemplateEditor templateEditor = getTemplateEditor();
        WodEditor wodEditor = getWodEditor();
        if (templateEditor != null && wodEditor != null) {
          IType componentType = templateEditor.getParserCache().getComponentType();
          AddActionInfo info = new AddActionInfo(componentType);
          AddActionDialog.open(info, getComponentEditorPart().getSite().getShell());
        }
View Full Code Here

    try {
      ComponentEditorPart componentEditorPart = getComponentEditorPart();
      if (componentEditorPart != null) {
        IEditorPart activeEditorPart = componentEditorPart.getActiveEditor();
        TemplateEditor templateEditor = getTemplateEditor();
        WodEditor wodEditor = getWodEditor();
        if (templateEditor != null && wodEditor != null) {
          if (activeEditorPart == templateEditor) {
            ITextSelection templateSelection = (ITextSelection) templateEditor.getSourceEditor().getSelectionProvider().getSelection();
            int offset = templateSelection.getOffset();
            WodParserCache cache = templateEditor.getSourceEditor().getParserCache();
            QuickRenameRefactoring.renameHtmlSelection(offset, templateEditor.getSourceEditor().getViewer(), wodEditor.getViewer(), cache);
          } else if (activeEditorPart == wodEditor) {
            ITextSelection wodSelection = (ITextSelection) wodEditor.getSelectionProvider().getSelection();
            int offset = wodSelection.getOffset();
            WodParserCache cache = wodEditor.getParserCache();
            QuickRenameRefactoring.renameWodSelection(offset, templateEditor.getSourceEditor().getViewer(), wodEditor.getViewer(), cache);
          } else {
            System.out.println("QuickRenameElementAction.run: " + activeEditorPart);
          }
        }
      }
View Full Code Here

  public void run(IAction action) {
    try {
      ComponentEditorPart componentEditorPart = getComponentEditorPart();
      if (componentEditorPart != null) {
        TemplateEditor templateEditor = getTemplateEditor();
        WodEditor wodEditor = getWodEditor();
        if (templateEditor != null && wodEditor != null) {
          IType componentType = templateEditor.getParserCache().getComponentType();
          AddKeyInfo info = new AddKeyInfo(componentType);
          AddKeyDialog.open(info, getComponentEditorPart().getSite().getShell());
        }
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.wodclipse.editor.WodEditor$WodOutlineUpdater

Copyright © 2018 www.massapicom. 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.