Package org.objectstyle.wolips.locate

Examples of org.objectstyle.wolips.locate.Locate


          if (javaProject != null) {
            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


        IRule rule = rulePosition.getRule();
        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

  public void handleWoappResources(IResource resource, IProgressMonitor monitor, Map buildCache) {
    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

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

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.