Class specifically designed to manage editor such as displaying source code editor. More...
Public Member Functions | |
EditorManager (IWorkbenchWindow window) | |
EditorManager (IWorkbenchSite site) | |
void | displayFileEditor (Scope scope) throws FileNotFoundException |
Open and Display editor. | |
void | openFileEditor (String sFilename, Experiment experiment) throws FileNotFoundException |
Open a new editor (if necessary) into Eclipse The filename should be a complete absolute path to the local file. | |
Static Public Member Functions | |
static boolean | splitBegin (IWorkbenchPage page, Experiment experiment) |
static void | splitEnd (boolean needNewPartition, IEditorPart iep) |
Private Member Functions | |
void | openFileEditor (String sLongFilename, String sFilename, int iLineNumber, Experiment experiment) throws FileNotFoundException |
Open Eclipse IDE editor for a given filename. | |
void | setEditorMarker (org.eclipse.ui.IWorkbenchPage wbPage, int iLineNumber) |
Set the marker into the active editor. | |
Static Private Member Functions | |
static IEditorPart | openEditorOnFileStore (IWorkbenchPage page, IFileStore fileStore, Experiment experiment) throws PartInitException |
This is "home-made" method of IDE.openEditorOnFileStore since the IDE function will use external editor on *nix machine for Fortran files ! | |
static IEditorInput | getEditorInput (IFileStore fileStore) |
Create the Editor Input appropriate for the given IFileStore . | |
Private Attributes | |
IWorkbenchWindow | windowCurrent |
Class specifically designed to manage editor such as displaying source code editor.
Definition at line 29 of file EditorManager.java.
edu.rice.cs.hpc.viewer.editor.EditorManager.EditorManager | ( | IWorkbenchWindow | window | ) |
window |
Definition at line 37 of file EditorManager.java.
References edu.rice.cs.hpc.viewer.editor.EditorManager.windowCurrent.
edu.rice.cs.hpc.viewer.editor.EditorManager.EditorManager | ( | IWorkbenchSite | site | ) |
Definition at line 43 of file EditorManager.java.
void edu.rice.cs.hpc.viewer.editor.EditorManager.displayFileEditor | ( | Scope | scope | ) | throws FileNotFoundException |
Open and Display editor.
scope | of the node |
Definition at line 51 of file EditorManager.java.
References edu.rice.cs.hpc.data.experiment.source.FileSystemSourceFile.getCompleteFilename(), edu.rice.cs.hpc.data.experiment.source.FileSystemSourceFile.getName(), and edu.rice.cs.hpc.viewer.editor.EditorManager.openFileEditor().
Referenced by edu.rice.cs.hpc.viewer.scope.AbstractBaseScopeView.displayFileEditor().
static IEditorInput edu.rice.cs.hpc.viewer.editor.EditorManager.getEditorInput | ( | IFileStore | fileStore | ) | [static, private] |
Create the Editor Input appropriate for the given IFileStore
.
The result is a normal file editor input if the file exists in the workspace and, if not, we create a wrapper capable of managing an 'external' file using its IFileStore
.
fileStore | The file store to provide the editor input for |
Definition at line 180 of file EditorManager.java.
Referenced by edu.rice.cs.hpc.viewer.editor.EditorManager.openEditorOnFileStore().
static IEditorPart edu.rice.cs.hpc.viewer.editor.EditorManager.openEditorOnFileStore | ( | IWorkbenchPage | page, | |
IFileStore | fileStore, | |||
Experiment | experiment | |||
) | throws PartInitException [static, private] |
This is "home-made" method of IDE.openEditorOnFileStore since the IDE function will use external editor on *nix machine for Fortran files !
page | ||
fileStore |
PartInitException |
Definition at line 143 of file EditorManager.java.
References edu.rice.cs.hpc.viewer.editor.EditorManager.getEditorInput(), edu.rice.cs.hpc.viewer.util.WindowTitle.setEditorTitle(), and edu.rice.cs.hpc.viewer.editor.SourceCodeEditor.setExperiment().
Referenced by edu.rice.cs.hpc.viewer.editor.EditorManager.openFileEditor().
void edu.rice.cs.hpc.viewer.editor.EditorManager.openFileEditor | ( | String | sLongFilename, | |
String | sFilename, | |||
int | iLineNumber, | |||
Experiment | experiment | |||
) | throws FileNotFoundException [private] |
Open Eclipse IDE editor for a given filename.
Beware: for Eclipse 3.2, we need to create a "hidden" project of the file this project should be cleaned in the future !
sFilename | the complete path of the file to display in IDE |
Definition at line 89 of file EditorManager.java.
References edu.rice.cs.hpc.viewer.editor.EditorManager.openEditorOnFileStore(), edu.rice.cs.hpc.viewer.editor.EditorManager.setEditorMarker(), and edu.rice.cs.hpc.viewer.editor.EditorManager.windowCurrent.
void edu.rice.cs.hpc.viewer.editor.EditorManager.openFileEditor | ( | String | sFilename, | |
Experiment | experiment | |||
) | throws FileNotFoundException |
Open a new editor (if necessary) into Eclipse The filename should be a complete absolute path to the local file.
sFilename |
Definition at line 72 of file EditorManager.java.
Referenced by edu.rice.cs.hpc.viewer.editor.EditorManager.displayFileEditor(), and edu.rice.cs.hpc.viewer.actions.showXML.showXMLEditor().
void edu.rice.cs.hpc.viewer.editor.EditorManager.setEditorMarker | ( | org.eclipse.ui.IWorkbenchPage | wbPage, | |
int | iLineNumber | |||
) | [private] |
Set the marker into the active editor.
wbPage | ||
iLineNumber |
Definition at line 118 of file EditorManager.java.
Referenced by edu.rice.cs.hpc.viewer.editor.EditorManager.openFileEditor().
static boolean edu.rice.cs.hpc.viewer.editor.BaseEditorManager.splitBegin | ( | IWorkbenchPage | page, | |
Experiment | experiment | |||
) | [static, inherited] |
Definition at line 29 of file BaseEditorManager.java.
References edu.rice.cs.hpc.data.experiment.BaseExperiment.getXMLExperimentFile().
static void edu.rice.cs.hpc.viewer.editor.BaseEditorManager.splitEnd | ( | boolean | needNewPartition, | |
IEditorPart | iep | |||
) | [static, inherited] |
Definition at line 77 of file BaseEditorManager.java.
References edu.rice.cs.hpc.viewer.editor.BaseEditorManager.splitEditorArea().
IWorkbenchWindow edu.rice.cs.hpc.viewer.editor.EditorManager.windowCurrent [private] |
Definition at line 30 of file EditorManager.java.
Referenced by edu.rice.cs.hpc.viewer.editor.EditorManager.EditorManager(), and edu.rice.cs.hpc.viewer.editor.EditorManager.openFileEditor().