Eclipse JDT
Release 3.0

org.eclipse.jdt.ui.wizards
Class NewTypeWizardPage.ImportsManager

java.lang.Object
  extended byorg.eclipse.jdt.ui.wizards.NewTypeWizardPage.ImportsManager
All Implemented Interfaces:
org.eclipse.jdt.internal.corext.codemanipulation.IImportsStructure
Enclosing class:
NewTypeWizardPage

public static class NewTypeWizardPage.ImportsManager
extends Object
implements org.eclipse.jdt.internal.corext.codemanipulation.IImportsStructure

Class used in stub creation routines to add needed imports to a compilation unit.


Method Summary
 String addImport(String qualifiedTypeName)
          Adds a new import declaration that is sorted in the existing imports.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addImport

public String addImport(String qualifiedTypeName)
Adds a new import declaration that is sorted in the existing imports. If an import already exists or the import would conflict with an import of an other type with the same simple name, the import is not added.

Specified by:
addImport in interface org.eclipse.jdt.internal.corext.codemanipulation.IImportsStructure
Parameters:
qualifiedTypeName - The fully qualified name of the type to import (dot separated).
Returns:
Returns the simple type name that can be used in the code or the fully qualified type name if an import conflict prevented the import.

Eclipse JDT
Release 3.0

Copyright (c) IBM Corp. and others 2000, 2004. All Rights Reserved.