public abstract class FileDescriptor extends Descriptor
Constructor and Description |
---|
FileDescriptor() |
Modifier and Type | Method and Description |
---|---|
String |
getFileDisplayPath()
Returns a display name of the
FileDescriptor . |
abstract String |
getFileName()
Returns a file display name
|
abstract FileObject |
getFileObject()
Return a FileObject for this
FileDescriptor . |
abstract Icon |
getIcon()
Return an icon that should be shown for this
FileDescriptor . |
protected int |
getLineNumber()
Returns a line number on which the file should be opened.
|
abstract String |
getOwnerPath()
The path to the file owner (the directory
where the file is located).
|
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.
|
abstract void |
open()
Opens the file in the editor.
|
public abstract String getFileName()
public abstract String getOwnerPath()
SourceGroup
.public abstract Icon getIcon()
FileDescriptor
.public abstract String getProjectName()
public abstract Icon getProjectIcon()
FileDescriptor.getProjectName()
returned a non-null value.public abstract void open()
public abstract FileObject getFileObject()
FileDescriptor
.
This will only be called when the dialog is opening the type or when
the user selects the file, so it does not have to be as fast as the other
descriptor attributes.public String getFileDisplayPath()
FileDescriptor
.
Default implementation uses
FileUtil.getFileDisplayName(getFileObject())
.
Could be overridden if a more efficient way could be provided.
Threading: This method is invoked in the EDT.protected final int getLineNumber()