Package org.erlide.engine.services.search

Examples of org.erlide.engine.services.search.ExternalCallOpenResult


        if (input != null) {
            final AbstractErlangEditor editor = input.getEditor();
            String moduleName = "";
            final Object inputElement = input.getInputElement();
            if (inputElement instanceof ExternalCallOpenResult) {
                final ExternalCallOpenResult or = (ExternalCallOpenResult) inputElement;
                moduleName = or.getMod();
            }
            final ErlangFunctionCall functionCall = HoverUtil.eventToErlangFunctionCall(
                    moduleName, event);
            if (functionCall != null) {
                final IErlProject project = ErlangEngine.getInstance()
View Full Code Here


                            ErlangEngine.getInstance().getModelUtilService()
                                    .getImportsAsList(moduleE),
                            project.getProperties().getExternalModules(),
                            model.getPathVars(project.getWorkspaceProject()));
            assertTrue(res instanceof ExternalCallOpenResult);
            final ExternalCallOpenResult eres = (ExternalCallOpenResult) res;
            final IErlFunction function = ErlangEngine
                    .getInstance()
                    .getModelFindService()
                    .findFunction(model, project, moduleE, eres.getMod(), eres.getPath(),
                            new ErlangFunction(eres.getFun(), eres.getArity()),
                            IErlElementLocator.Scope.PROJECT_ONLY);
            assertNotNull(function);

            final IErlElement module = model.findModuleFromProject(project,
                    function.getModuleName(), eres.getPath(),
                    IErlElementLocator.Scope.PROJECT_ONLY);
            // then
            // the function should be returned and the module, in External Files
            assertNotNull(module);
            assertEquals(function.getParent(), module);
View Full Code Here

            OtpErlangObject _elementAt_4 = openTuple.elementAt(4);
            _xifexpression = ((OtpErlangString) _elementAt_4).stringValue();
          } else {
            _xifexpression = null;
          }
          return new ExternalCallOpenResult(_atomValue, _atomValue_1, _intValue, _xifexpression);
        }
      }
      if (!_matched) {
        if (Objects.equal(kind, "local")) {
          _matched=true;
View Full Code Here

TOP

Related Classes of org.erlide.engine.services.search.ExternalCallOpenResult

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.