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(String qualifiedTypeName)
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(ITypeBinding typeBinding)
typeBinding
- the binding of the type to importpublic 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) IBM Corp. and others 2000, 2006. All Rights Reserved.