Package junit.extensions.eclipse.quick.javadoc

Examples of junit.extensions.eclipse.quick.javadoc.TestContextTagCreater


  }

  public Object doExecute(ExecutionEvent event) throws ExecutionException {
    try {
      ICompilationUnit compilationUnit = getCompilationUnitOfJavaEditor();
      TestContextTagCreater creater = new TestContextTagCreater();
      IJavaElement element = getElementOfCurrentCursor();
      String clazz = "";
      if(element instanceof IType){
        IType type = (IType)element;         
        clazz = type.getFullyQualifiedName();
      }else if(element instanceof IMember){
        IMember member = (IMember) element;
        IType type = member.getDeclaringType();
        clazz = type.getFullyQualifiedName();
      }else if(element != null){
        clazz = element.getPrimaryElement().getElementName();
      }
      creater.addTag(compilationUnit.findPrimaryType(), clazz);
    } catch (Exception e) {
      JavaDocUIActivator.getDefault().handleSystemError(e, this);
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of junit.extensions.eclipse.quick.javadoc.TestContextTagCreater

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.