public static class NewTypeWizardPage.ImportsManager extends Object
Modifier and Type | Method and Description |
---|---|
String |
addImport(ITypeBinding typeBinding)
Adds a new import declaration that is sorted in the existing imports.
|
String |
addImport(ITypeBinding typeBinding,
int insertPosition)
Adds a new import declaration that is sorted in the existing imports.
|
String |
addImport(String qualifiedTypeName)
Adds a new import declaration that is sorted in the existing imports.
|
String |
addImport(String qualifiedTypeName,
int insertPosition)
Adds a new import declaration that is sorted in the existing imports.
|
String |
addStaticImport(String declaringTypeName,
String simpleName,
boolean isField)
Adds a new import declaration for a static type that is sorted in the existing imports.
|
public String addImport(String qualifiedTypeName)
qualifiedTypeName
- The fully qualified name of the type to import
(dot separated).public String addImport(String qualifiedTypeName, int insertPosition)
qualifiedTypeName
- The fully qualified name of the type to import
(dot separated).insertPosition
- the offset where the import will be usedpublic String addImport(ITypeBinding typeBinding)
typeBinding
- the binding of the type to importpublic String addImport(ITypeBinding typeBinding, int insertPosition)
typeBinding
- the binding of the type to importinsertPosition
- the offset where the import will be usedpublic String addStaticImport(String declaringTypeName, String simpleName, boolean isField)
declaringTypeName
- The qualified name of the static's member declaring typesimpleName
- the simple name of the member; either a field or a method name.isField
- true
specifies that the member is a field, false
if it is a
method.
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.