edu.rice.cs.hpc.viewer.editor.EditorManager Class Reference

Class specifically designed to manage editor such as displaying source code editor. More...

Inheritance diagram for edu.rice.cs.hpc.viewer.editor.EditorManager:
Inheritance graph
[legend]
Collaboration diagram for edu.rice.cs.hpc.viewer.editor.EditorManager:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

Class specifically designed to manage editor such as displaying source code editor.

Author:
la5

Definition at line 29 of file EditorManager.java.


Constructor & Destructor Documentation

edu.rice.cs.hpc.viewer.editor.EditorManager.EditorManager ( IWorkbenchWindow  window  ) 
Parameters:
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.


Member Function Documentation

void edu.rice.cs.hpc.viewer.editor.EditorManager.displayFileEditor ( Scope  scope  )  throws FileNotFoundException
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.

Parameters:
fileStore The file store to provide the editor input for
Returns:
The editor input associated with the given file store

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 !

Parameters:
page 
fileStore 
Returns:
Exceptions:
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 !

Parameters:
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.

Parameters:
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.

Parameters:
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]
static void edu.rice.cs.hpc.viewer.editor.BaseEditorManager.splitEnd ( boolean  needNewPartition,
IEditorPart  iep 
) [static, inherited]

Member Data Documentation


The documentation for this class was generated from the following file:

Generated on 5 May 2015 for HPCVIEWER by  doxygen 1.6.1