Examples of findModule()


Examples of org.erlide.engine.model.IErlModel.findModule()

        final String moduleName = margs.get(0);

        final IErlModel svc = ErlangEngine.getInstance().getModel();

        IErlModule newModule;
        newModule = svc.findModule(moduleName);
        if (newModule != null) {
            MessageDialog.openInformation(null, "Rename module quickfix",
                    "A module with name '" + moduleName + "' already exists.");
            newModule.dispose();
            return;
View Full Code Here

Examples of org.erlide.engine.model.IErlModel.findModule()

            throws CoreException {
        if (editorInput instanceof IFileEditorInput) {
            final IFileEditorInput input = (IFileEditorInput) editorInput;
            final IFile file = input.getFile();
            final IErlModel model = ErlangEngine.getInstance().getModel();
            IErlModule module = model.findModule(file);
            if (module != null) {
                return module;
            }
            final String path = file.getLocation().toPortableString();
            module = model.getModuleFromFile(model, file.getName(), path,
View Full Code Here

Examples of org.erlide.engine.model.IErlModel.findModule()

            newModule.dispose();
            return;
        }

        final IFile file = (IFile) marker.getResource();
        final IErlModule oldModule = svc.findModule(file);
        if (oldModule == null) {
            return;
        }

        String in = Util.getInputStreamAsString(file.getContents(), file.getCharset());
View Full Code Here

Examples of org.erlide.engine.model.IErlModel.findModule()

        }
        final IErlModel model = ErlangEngine.getInstance().getModel();
        for (final Object o : dialogResult) {
            if (o instanceof IFile) {
                final IFile file = (IFile) o;
                result.add(model.findModule(file));
            }
        }
        return result;
    }
View Full Code Here

Examples of org.erlide.engine.model.IErlModel.findModule()

  }
 
  protected IErlModule getErlModule(final String name) {
    try {
      IErlModel _model = this.getModel();
      return _model.findModule(name);
    } catch (final Throwable _t) {
      if (_t instanceof ErlModelException) {
        final ErlModelException e = (ErlModelException)_t;
        return null;
      } else {
View Full Code Here

Examples of org.erlide.engine.model.IErlModel.findModule()

  }
 
  private IErlModule createModule(final IFolder folder, final String moduleName, final String moduleContents) throws CoreException {
    final IFile file = this.createFile(folder, moduleName, moduleContents);
    final IErlModel model = this.getModel();
    IErlModule module = model.findModule(file);
    boolean _tripleNotEquals = (module != null);
    if (_tripleNotEquals) {
      module.close();
    }
    boolean _tripleEquals = (module == null);
View Full Code Here

Examples of org.erlide.engine.model.IErlModel.findModule()

                        ErlLogger.warn(e);
                    }
                }
            } else {
                try {
                    module = model.findModule(projectColonModule);
                } catch (final ErlModelException e) {
                }
            }
            addModule(module);
        }
View Full Code Here

Examples of org.erlide.engine.model.root.IErlElementLocator.findModule()

        IEditorPart part = null;
        final IErlElementLocator model = ErlangEngine.getInstance().getModel();
        IErlModule module;
        try {
            module = model.findModule(moduleName);
        } catch (final ErlModelException e) {
            ErlLogger.error(e);
            return;
        }
        IEditorInput input = null;
View Full Code Here

Examples of org.erlide.engine.services.search.ModelFindService.findModule()

        final String moduleName = modelFindService.resolveMacroValue(moduleName0, module);
        // we have an external call
        final List<ICompletionProposal> result = new ArrayList<ICompletionProposal>();
        final boolean checkAllProjects = NavigationPreferencePage.getCheckAllProjects();
        final IErlElementLocator model = ErlangEngine.getInstance().getModel();
        final IErlModule theModule = modelFindService.findModule(model, project,
                moduleName, null,
                checkAllProjects ? IErlElementLocator.Scope.ALL_PROJECTS
                        : IErlElementLocator.Scope.REFERENCED_PROJECTS);
        if (theModule != null) {
            if (ErlangEngine.getInstance().getModelUtilService().isOtpModule(theModule)) {
View Full Code Here

Examples of org.qi4j.api.structure.Application.findModule()

            };
        Application app = boot.newApplication( new ApplicationAssemblerAdapter( assemblers )
        {
        } );
        app.activate();
        ObjectA object = app.findModule( "Layer 1", "Module A" ).newObject( ObjectA.class );
        object.test();
    }

    class AssemblerA
        implements Assembler
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.