public abstract class SymbolDescriptor extends Descriptor
Constructor and Description |
---|
SymbolDescriptor() |
Modifier and Type | Method and Description |
---|---|
String |
getFileDisplayPath()
Returns a display name of the path to the file containing the symbol.
|
abstract FileObject |
getFileObject()
Return a FileObject for this symbol.
|
abstract Icon |
getIcon()
Return an icon that should be shown for this symbol descriptor.
|
abstract int |
getOffset()
Return the document offset corresponding to the symbol.
|
abstract String |
getOwnerName()
Returns display name of the owner in which the symbol is declared.
|
abstract Icon |
getProjectIcon()
Return an icon that is applicable for the project owning the file containing the
symbol declaration.
|
abstract String |
getProjectName()
Return the display name of the project owning the file containing the
symbol declaration.
|
String |
getSimpleName()
Returns the simple symbol name.
|
abstract String |
getSymbolName()
Returns symbol display name
|
abstract void |
open()
Open the type declaration in the editor.
|
public abstract Icon getIcon()
public abstract String getSymbolName()
public abstract String getOwnerName()
public abstract String getProjectName()
public abstract Icon getProjectIcon()
SymbolDescriptor.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.@CheckForNull public String getSimpleName()