Package org.objectstyle.wolips.wodclipse.core.refactoring

Examples of org.objectstyle.wolips.wodclipse.core.refactoring.AddActionInfo


      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());
        }
      }
    } catch (Exception e) {
      ErrorUtils.openErrorDialog(getComponentEditorPart().getSite().getShell(), e);
View Full Code Here


  }

  public static String addKeyOrAction(BindingValueKeyPath bindingValueKeyPath, IApiBinding binding, IType componentType) throws CoreException {
    String name = null;
    if (binding.isAction()) {
      AddActionInfo info = new AddActionInfo(componentType);
      info.setName(bindingValueKeyPath.getOriginalKeyPath());
      AddActionDialog.open(info, PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
      name = info.getName();
    }
    else {
      AddKeyInfo info = new AddKeyInfo(componentType);
      info.setName(bindingValueKeyPath.getOriginalKeyPath());
      AddKeyDialog.open(info, PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell());
      name = info.getName();
    }
    return name;
  }
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.wodclipse.core.refactoring.AddActionInfo

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.