Package org.objectstyle.wolips.locate

Examples of org.objectstyle.wolips.locate.LocatePlugin


      return false;
    }
    IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(getContainerFullPath().segment(0));

    // This may need to change depending on how we want to deal with localized components in future.
    LocatePlugin locatePlugin = LocatePlugin.getDefault();
    try {
      LocalizedComponentsLocateResult result = locatePlugin.getLocalizedComponentsLocateResult(project, getFileName());
      if (result.getResources().length > 0) {
        setErrorMessage("A component by that name already exists");
        return false;
      }
    } catch (Exception e) {
View Full Code Here


    return null;
  }
 
  protected IPath componentPathForPackage(IPackageFragment _selection) {
    try {
      LocatePlugin locate = LocatePlugin.getDefault();
      for (IJavaElement element : _selection.getChildren()) {
        String componentName = locate.fileNameWithoutExtension(element.getElementName());
        LocalizedComponentsLocateResult result = locate.getLocalizedComponentsLocateResult(
            _selection.getJavaProject().getProject(), componentName);
        IFolder[] components = result.getComponents();
        if (components.length > 0) {
          IContainer selectionPath = components[0].getParent();
          return selectionPath.getFullPath();
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.locate.LocatePlugin

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.