public interface IProjectGuiLinker
Modifier and Type | Method and Description |
---|---|
void |
addToBlacklist(IProjectTreeNode node)
This methode adds the file which is represented by the given node to the
blacklist of the project to which the given node belongs to.
|
void |
close(IProjectTreeNode node)
This mehtode sends a close message to all editors which are registert at
the abstractfile which is represented by this node.
|
void |
closeProject(IProjectTreeNode node)
This methode closes the project to which the given node belongs.
|
boolean |
copy(IProjectTreeNode node,
IProjectTreeNode target)
This methode copies the diskfile which is represented by the given node
to the given target or the parent of the given target if the target isn't
a folder.
|
boolean |
createFolder(IProjectTreeNode parent,
String name)
This methode creates a new folder with the given name as child of the
given parent.
|
boolean |
delete(IProjectTreeNode node)
This methode deletes the diskfile of the given node and remove the
element form the project.
|
IAbstractFile |
getAbstractFile(IProjectTreeNode node)
This methode returns the abstract file which is represented by the given
node.
|
File |
getFile(IProjectTreeNode node)
This methode returns the diskfile as java.io.File which is represented by
the given node.
|
Icon |
getIconForNode(IProjectTreeNode node)
This methode returns the icon for the given node.
|
String |
getProjectPath(IProjectTreeNode node)
This mehtode returns the absolut path of the projectfolder to which the
given node belongs to.
|
IProject |
getProjectToNode(IProjectTreeNode node)
This methode retruns the project to which the given node belongs to.
|
IAbstractFile |
getSelectedElement()
This methode returns the selected element at the tree or null if no
element is selected
|
IAbstractFolder |
getSelectedFolder()
This methode returns the Folder of the selected element at the tree or
null if no element is selected
|
IProject |
getSelectedProject()
This methode returns the Project of the selected element at the tree or
null if no element is selected
|
boolean |
importFile(File file,
IProjectTreeNode parent)
This methode imports the given file, that means the file will be copied
into through the parent given folder and the new file will be registerd
as element of the project of the given parent.
|
boolean |
isOpen(IProjectTreeNode node) |
boolean |
isProject(IAbstractFile file) |
boolean |
isValid(IProjectTreeNode node)
This methode returns the state of the element which is represented by the
given node.
|
void |
makeVisible(IAbstractFile file) |
boolean |
move(IProjectTreeNode node,
IProjectTreeNode target)
This methode moves the given node to the new parent.
|
void |
run(IProjectTreeNode node)
The methode run runs the given node.
|
void |
save(IProjectTreeNode node)
This methode calls the editor who has the lock of the file which is
represented by the given node that changes should be saved.
|
void |
saveProject(IProjectTreeNode node)
This methode saves all changes on all open files which belongs to the
project the given node belongs to.
|
void |
saveWorkspace()
This methode calls the Workspaceloader to save the current workspace.
|
boolean isOpen(IProjectTreeNode node)
void makeVisible(IAbstractFile file)
boolean isValid(IProjectTreeNode node)
node
- Icon getIconForNode(IProjectTreeNode node)
node
- boolean copy(IProjectTreeNode node, IProjectTreeNode target)
node
- node which file shoud be copiedtarget
- target for the copy-operationboolean createFolder(IProjectTreeNode parent, String name)
parent
- parent of the new foldername
- name of the new folderboolean delete(IProjectTreeNode node)
node
- node which should be deletedFile getFile(IProjectTreeNode node)
node
- IAbstractFile getAbstractFile(IProjectTreeNode node)
node
- boolean importFile(File file, IProjectTreeNode parent)
file
- diskfile which should be importedparent
- parentfolder into which the file will be copiedboolean move(IProjectTreeNode node, IProjectTreeNode target)
node
- node which should be movedtarget
- new parent for the elementvoid run(IProjectTreeNode node)
node
- node which should be opened/updatedString getProjectPath(IProjectTreeNode node)
node
- node from which the project is searchedvoid addToBlacklist(IProjectTreeNode node)
node
- void close(IProjectTreeNode node)
node
- void closeProject(IProjectTreeNode node)
node
- void save(IProjectTreeNode node)
node
- void saveProject(IProjectTreeNode node)
node
- void saveWorkspace()
IProject getProjectToNode(IProjectTreeNode node)
node
- node form the projectIProject getSelectedProject()
IAbstractFolder getSelectedFolder()
IAbstractFile getSelectedElement()
boolean isProject(IAbstractFile file)