Package org.eclipse.jdt.internal.core

Examples of org.eclipse.jdt.internal.core.CreateImportOperation


    op.runOperation(progressMonitor);
  }

  private void createImports(String keyType, String keyParameterType) throws JavaModelException {
    if (BindingReflectionUtils.isImportRequired(keyType)) {
      new CreateImportOperation(keyType, getCompilationUnit(), Flags.AccDefault).runOperation(progressMonitor);
    }

    if (BindingReflectionUtils.isImportRequired(keyParameterType)) {
      new CreateImportOperation(keyParameterType, getCompilationUnit(), Flags.AccDefault).runOperation(progressMonitor);
    }
  }
View Full Code Here


    IType componentType = _info.getComponentType();

    String keyType = _info.getJavaTypeName();

    if (BindingReflectionUtils.isImportRequired(keyType)) {
      new CreateImportOperation(keyType, componentType.getCompilationUnit(), Flags.AccDefault).runOperation(progressMonitor);
    }

    String actionMethodName = _info.getName();
    boolean useGenerics = JavaModelUtil.is50OrHigher(componentType.getJavaProject());
    String simpleTypeName = Signature.getSimpleName(keyType);
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.core.CreateImportOperation

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.