public abstract class TypeDescriptor extends Descriptor
Constructor and Description |
---|
TypeDescriptor() |
Modifier and Type | Method and Description |
---|---|
abstract String |
getContextName()
Provide additional context for the type name.
|
String |
getFileDisplayPath()
Returns a display name of the path to the file containing the type.
|
abstract FileObject |
getFileObject()
Return a FileObject for this type.
|
abstract Icon |
getIcon()
Return an icon that should be shown for this type descriptor.
|
abstract int |
getOffset()
Return the document offset corresponding to the type.
|
abstract String |
getOuterName()
Return the "outer" name of the type, if any.
|
abstract Icon |
getProjectIcon()
Return an icon that is applicable for the project defining the type.
|
abstract String |
getProjectName()
Return the display name of the project containing this type (if any).
|
abstract String |
getSimpleName()
Return the simple name of the type (not including qualifiers).
|
abstract String |
getTypeName()
Return the name of this type, along with the outer name.
|
abstract void |
open()
Open the type declaration in the editor.
|
public abstract String getSimpleName()
public abstract String getOuterName()
Return the "outer" name of the type, if any. For Java for example, this would be the outer class if this type is an inner class.
Do not confuse with TypeDescriptor.getContextName()
!
public abstract String getTypeName()
public abstract String getContextName()
public abstract Icon getIcon()
public abstract String getProjectName()
public abstract Icon getProjectIcon()
TypeDescriptor.getProjectName()
returned a non-null value.public abstract FileObject getFileObject()
public abstract int getOffset()
public abstract void open()
@NonNull public String getFileDisplayPath()
FileUtil.getFileDisplayName(getFileObject())
Could be overridden if a more efficient way could be provided.
Threading: This method is invoked in the EDT.