Examples of AddActionInfo


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

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

  }

  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
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.