Modifier and Type | Method and Description |
---|---|
IAbstractFile |
IWorkbench.getSelectedFile()
Returns the current selected file.
|
Modifier and Type | Method and Description |
---|---|
void |
IWorkbench.closeAllEditors(IAbstractFile file,
boolean force)
Closes all editors that have opened the given abstract file.
|
IEditor[] |
IWorkbench.findEditors(IAbstractFile file)
Returns an array of all editors that have currently opened the given
abstract file.
|
IEditor |
IWorkbench.findLockingEditor(IAbstractFile file)
Returns the editor that has currently locked the file or null if the file
isn't locked.
|
void |
IWorkbench.openFile(IAbstractFile file)
Opens the given file using the default file interpreter and the default
editor for displaying.
|
void |
IWorkbench.openFile(IAbstractFile file,
IFileInterpreterProvider fileInterpreterProvider)
Opens the given file using the file interpreter that is managed by the
given file interpreter provider.
|
void |
IWorkbench.openFile(IAbstractFile file,
IFileInterpreterProvider fileInterpreterProvider,
IEditorProvider editorProvider)
Opens the given file using the file interpreter managed by the given file
interpreter provider.
|
void |
IWorkbench.selectFile(IAbstractFile file)
Select the given file.
|
Modifier and Type | Method and Description |
---|---|
void |
AbstractFileSelectionAction.actionPerformed(ActionEvent event,
IAbstractFile selectedFile) |
Modifier and Type | Method and Description |
---|---|
IAbstractFile |
IEditor.getAbstractFile()
Returns the abstract file that was loaded into the editor.
|
IAbstractFile |
Editor.getAbstractFile() |
Modifier and Type | Method and Description |
---|---|
IAbstractFile |
FileRenameException.getAbstractFile() |
IAbstractFile |
CannotOpenFileException.getAbstractFile() |
Constructor and Description |
---|
CannotOpenFileException(IAbstractFile file) |
CannotOpenFileException(IAbstractFile file,
String message) |
CannotOpenFileException(IAbstractFile file,
String message,
Throwable throwable) |
CannotOpenFileException(IAbstractFile file,
Throwable throwable) |
FileRenameException(IAbstractFile file,
String newName) |
FileRenameException(IAbstractFile file,
String newName,
Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
IAbstractFile[] |
IAbstractFileSelection.getAllElements() |
IAbstractFile[] |
IAbstractFileSelection.getFileElements() |
Modifier and Type | Method and Description |
---|---|
IAbstractFile |
IFileInterpreter.getAbstractFile()
Returns the file that is associated with this file interpreter.
|
IAbstractFile |
FileInterpreter.getAbstractFile() |
Modifier and Type | Method and Description |
---|---|
IFileInterpreter |
IFileInterpreterProvider.createFromFile(IAbstractFile file)
Creates a abstract file based on the given folder and file.
|
IFileInterpreter |
IFileInterpreterProvider.createNewFile(IAbstractFile file)
Should create a new file that matches the file type.
|
IFileInterpreterProvider |
IFileInterpreterManager.getDefaultFileInterpreterProvider(IAbstractFile file)
Returns the default file interpreter for the given abstract file.
|
IFileInterpreterProvider[] |
IFileInterpreterManager.getMatchingFileInterpreterProviders(IAbstractFile file)
Returns all file interpreter providers that would accept the given file.
|
boolean |
IFileInterpreterProvider.matchFormat(IAbstractFile file)
Tests whether the content of the file matches the file type of the
provider.
|
Constructor and Description |
---|
FileInterpreter(IFileInterpreterProvider provider,
IAbstractFile file)
Constructs the file interpreter based on the given abstract file.
|
Modifier and Type | Method and Description |
---|---|
IAbstractFile |
IFileIOEvent.getAbstractFile() |
Constructor and Description |
---|
IFileIOEvent(IAbstractFile file,
IEditor editor) |
Modifier and Type | Interface and Description |
---|---|
interface |
IAbstractFolder
This interface provides basic functionality for folders.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractFile
This is the implementation of the IAbstractFile interface and is used in the
viptool for file handling.
|
class |
AbstractFolder
This is the implementation of the IAbstractFolder interface and is used in
the viptool for folder handling.
|
Modifier and Type | Method and Description |
---|---|
IAbstractFile |
IAbstractFolder.add(IAbstractFile file)
Adds the given file to the folder.
|
IAbstractFile |
AbstractFolder.add(IAbstractFile file) |
IAbstractFile |
IProject.addFile(IAbstractFile file)
Adds the given file to the project.
|
IAbstractFile |
FileSystem.createAbstractFile(File file) |
IAbstractFile |
FileSystem.createAbstractFile(IProject project,
File file) |
IAbstractFile |
FileSystem.createAbstractFile(IProject project,
IAbstractFolder folder,
File file) |
IAbstractFile |
FileSystem.createAbstractFile(IProject project,
IAbstractFolder folder,
String pathname) |
IAbstractFile |
FileSystem.createAbstractFile(IProject project,
String pathname) |
IAbstractFile |
FileSystem.createAbstractFile(String pathname) |
IAbstractFile |
IProjectGuiLinker.getAbstractFile(IProjectTreeNode node)
This methode returns the abstract file which is represented by the given
node.
|
IAbstractFile[] |
IAbstractFolder.getChilds()
Returns an array containing all childs of the folder.
|
IAbstractFile[] |
AbstractFolder.getChilds() |
IAbstractFile[] |
IAbstractFolder.getChilds(Class filter)
Returns an array containing all childrens that are instance of the given
filter class.
|
IAbstractFile[] |
AbstractFolder.getChilds(Class filter) |
IAbstractFile[] |
IProject.getFiles()
Returns an array containing all files of the project.
|
IAbstractFile[] |
IProject.getFiles(Class filter)
Returns an array containing all files of the project.
|
IAbstractFile |
IProjectGuiLinker.getSelectedElement()
This methode returns the selected element at the tree or null if no
element is selected
|
IAbstractFile[] |
IAbstractFolder.update(boolean recursive)
Reqeusts an update in the folder.
|
IAbstractFile[] |
AbstractFolder.update(boolean recursive) |
IAbstractFile[] |
IProject.updateFiles(boolean recursive)
Reqeusts an update in the project.
|
Modifier and Type | Method and Description |
---|---|
IAbstractFile |
IAbstractFolder.add(IAbstractFile file)
Adds the given file to the folder.
|
IAbstractFile |
AbstractFolder.add(IAbstractFile file) |
IAbstractFile |
IProject.addFile(IAbstractFile file)
Adds the given file to the project.
|
void |
IProject.addFileToBlacklist(IAbstractFile file)
Adds the specified file to the blacklist.
|
protected void |
AbstractFolder.fireFileAddEvent(IAbstractFile file)
Notifies all listeners that the given file was added to the folder.
|
protected void |
AbstractFolder.fireFileRemoveEvent(IAbstractFile file)
Notifies all listeners that the given file was removed from the folder.
|
boolean |
IProject.isFileInBlacklist(IAbstractFile file)
Determines whether the file is in the blacklist or not.
|
boolean |
IProjectGuiLinker.isProject(IAbstractFile file) |
void |
IProjectGuiLinker.makeVisible(IAbstractFile file) |
void |
IAbstractFolder.remove(IAbstractFile file)
Removes the given file from the folder.
|
void |
AbstractFolder.remove(IAbstractFile file) |
void |
IProject.removeFile(IAbstractFile file)
Removes the given file from the project.
|
void |
IProject.removeFileFromBlacklist(IAbstractFile file)
Removes the given file from the blacklist.
|
Modifier and Type | Method and Description |
---|---|
IAbstractFile |
ChildNotAcceptedException.getChild() |
Constructor and Description |
---|
ChildNotAcceptedException(IAbstractFile file) |
ChildNotAcceptedException(IAbstractFile file,
String message) |
ChildNotAcceptedException(IAbstractFile file,
String message,
Throwable throwable) |
ChildNotAcceptedException(IAbstractFile file,
Throwable throwable) |
Modifier and Type | Method and Description |
---|---|
IAbstractFile |
ProjectFileEvent.getAbstractFile()
Returns the file that was added or removed from the project.
|
Modifier and Type | Method and Description |
---|---|
void |
IAbstractFolderListener.fileAdded(IAbstractFile file)
Called when a file was added to the abstract folder.
|
void |
IAbstractFolderListener.fileRemoved(IAbstractFile file)
Called when a file was removed from the abstract folder.
|
Constructor and Description |
---|
ProjectFileEvent(IProject project,
IAbstractFolder folder,
IAbstractFile file)
Constructs a new project file event object and initializes it.
|
Modifier and Type | Method and Description |
---|---|
IFileInterpreter |
ClassFileInterpreter.createFromFile(IAbstractFile file) |
IFileInterpreter |
ClassFileInterpreter.createNewFile(IAbstractFile file) |
boolean |
ClassFileInterpreter.matchFormat(IAbstractFile file)
This method returns true if:
- the file is a valid class file and testForSuperClass is set to false (default)
- the file is a valid class file and testForSuperClass is set to true and the Class
extends the given Superclass.
|
static boolean |
GeneralUtils.testForFileLocker(IWorkbench workbench,
IAbstractFile[] files,
String message) |
static boolean |
GeneralUtils.testForFileLocker(IWorkbench workbench,
IAbstractFile file,
String message) |