Package dtool.engine.operations

Examples of dtool.engine.operations.FindDefinitionResult


    System.out.println(StringUtil.collToString(commandArguments.entrySet(), "\n"));
   
    Path modulePath = getPath(commandArguments, "filepath");
    int offset = getInt(commandArguments, "offset");
   
    FindDefinitionResult cmdResult = getDToolServer().doFindDefinition(modulePath, offset);
   
    if(cmdResult.errorMessage != null) {
      jsonWriter.writeProperty("error", cmdResult.errorMessage);
    }
   
View Full Code Here


    public FindDefinitionResult read(JsonReaderExt jsonParser) throws GenieCommandException, IOException {
      HashMap<String, Object> response = JsonReaderExt.readJsonObject(jsonParser);
     
      String errorMessage = getStringOrNull(response, "error");
      if(errorMessage != null) {
        return new FindDefinitionResult(errorMessage);
      }
     
      List<?> jsonResults = blindCast(response.get("results"));
      ArrayList<FindDefinitionResultEntry> results = new ArrayList<>();
     
      for (Object jsonResultEntry : nullToEmpty(jsonResults)) {
        results.add(findDefResult(jsonResultEntry));
      }
     
      return new FindDefinitionResult(results);
    }
View Full Code Here

  }
 
  protected void doTest(int offset, String errorMessageContains, IProject project, String editorFile)
      throws CoreException {
    EditorUtils.setEditorSelection(srcEditor, offset, 0);
    FindDefinitionResult opResult = new DeeOpenDefinitionHandler().createOperation(srcEditor,
      OpenNewEditorMode.TRY_REUSING_EXISTING_EDITORS).executeWithResult();
    assertTrue(errorMessageContains == null || opResult.errorMessage.contains(errorMessageContains));
   
    assertCurrentEditorIsEditing(project.getFullPath(), editorFile);
  }
View Full Code Here

TOP

Related Classes of dtool.engine.operations.FindDefinitionResult

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.