Package org.objectstyle.wolips.locate

Examples of org.objectstyle.wolips.locate.Locate.locate()


            IFile wodFile = null;
            try {
              ComponentLocateScope componentLocateScope = ComponentLocateScope.createLocateScope(javaProject.getProject(), fileName);
              LocalizedComponentsLocateResult localizedComponentsLocateResult = new LocalizedComponentsLocateResult();
              Locate locate = new Locate(componentLocateScope, localizedComponentsLocateResult);
              locate.locate();
              wodFile = localizedComponentsLocateResult.getFirstWodFile();
            } catch (CoreException e) {
              LaunchingPlugin.getDefault().log(e);
            } catch (LocateException e) {
              LaunchingPlugin.getDefault().log(e);
View Full Code Here


        if (rule instanceof ElementTypeRule) {
          String elementTypeName = rulePosition.getText();
          ComponentLocateScope componentLocateScope = new ComponentLocateScope(project, elementTypeName, true);
          LocalizedComponentsLocateResult localizedComponentsLocateResult = new LocalizedComponentsLocateResult();
          Locate locate = new Locate(componentLocateScope, localizedComponentsLocateResult);
          locate.locate();

          IFile wodFile = localizedComponentsLocateResult.getFirstWodFile();
          if (wodFile != null) {
            WorkbenchUtilities.open(wodFile, "org.objectstyle.wolips.componenteditor.ComponentEditor");
          }
View Full Code Here

    try {
      if (resource instanceof IContainer && resource.getName().endsWith(".eomodeld")) {
        EOModelReference modifiedModelReference = new EOModelReference(resource.getLocation());
        DefaultLocateResult result = new DefaultLocateResult();
        Locate locate = new Locate(new EOGenLocateScope(resource.getProject()), result);
        locate.locate();

        IResource[] eogenFiles = result.getResources();
        for (IResource eogenResource : eogenFiles) {
          IFile eogenFile = (IFile) eogenResource;
          EOGeneratorModel eogenModel = EOGeneratorModel.createModelFromFile(eogenFile);
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.