|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISystemTextEditorProfile
Editor profiles are used to personalize the base SystemTextEditor so that only one JLpex based text editor is required. Plugins may specify an editor extension while specifying the SystemTextEditor class as the text editor. The plugin can then extend the "profile" extension point, and specify a profile class and type string. When an IFile is opened for editing, the type string property of the IFile is loaded. A corresponding profile class for the same type string is loaded, and the calls are made to these methods whenever the corresponding JLpex calls are made.
Field Summary | |
---|---|
static String |
Copyright
|
Method Summary | |
---|---|
void |
addDebugEditorMenuActions(IMenuManager menu,
boolean isDebuggable,
int currentElement)
Add debug editor menu actions associated with this profile. |
void |
addDebugEditorRulerActions(IMenuManager menu,
boolean isDebuggable,
int currentElement)
Add debug editor ruler actions associated with this profile. |
MenuManager |
createContextMenuManager(String text,
String id)
Creates a context menu manager. |
void |
createDebugMenuActions(LpexTextEditor editor)
Create debug menu actions associated with this profile |
void |
createDebugRulerActions(LpexTextEditor editor,
IVerticalRuler ruler)
Create debug ruler actions associated with this profile. |
void |
doSave(LpexTextEditor editor,
IProgressMonitor progressMonitor)
Called when the editor's doSave is called. |
void |
editorContextMenuAboutToShow(LpexTextEditor editor,
IMenuManager menu)
Called when JLpex's editorContextMenuAboutToShow is called |
IAction |
getBreakpointRulerAction(LpexTextEditor editor)
Returns the appropriate breakpoint ruler action associated with this profile. |
long |
getCompileMessageClassBitMask()
Gty the bit mask for compile messages |
IAnnotationModel |
getDebuggerMarkerAnnotationModel(IResource resource,
IEditorInput input)
Get the debugger marker annotation model for this resource in this profile. |
String |
getTitle(LpexTextEditor editor)
Get the title to display in the editor |
void |
initializeLpexView(LpexTextEditor editor,
LpexView lpexView)
Called when JLpex's initializeLpexView is called. |
boolean |
isEditorInputIncludedInContextMenu()
Returns whether or not Editor Input actions should be included in the context menu. |
boolean |
isLocal()
Queries if the profile is for local resources or remote resources. |
boolean |
isTargetDebuggable(IDebugTarget dbgtarget)
Determine if the specified target is debuggable. |
boolean |
isUniqueContextMenuManagerRequired()
Returns whether or not a unique menu manager is required by this profile. |
boolean |
performSaveAs(LpexTextEditor editor,
IProgressMonitor progressMonitor)
Called when JLpex's performSaveAs is called. |
boolean |
performSaveAs(LpexTextEditor editor,
IProgressMonitor progressMonitor,
String strFilename)
Called when JLpex's performSaveAs is called. |
void |
resetMarkers(LpexTextEditor editor)
Reset markers associated with the resource being edited. |
void |
updateProfile(LpexTextEditor editor)
Called when JLpex's updateProfile is called. |
void |
updateProfile(LpexTextEditor editor,
LpexView lpexView)
Called when JLpex's updateProfile is called. |
Field Detail |
---|
static final String Copyright
Method Detail |
---|
void doSave(LpexTextEditor editor, IProgressMonitor progressMonitor)
void editorContextMenuAboutToShow(LpexTextEditor editor, IMenuManager menu)
void initializeLpexView(LpexTextEditor editor, LpexView lpexView)
boolean performSaveAs(LpexTextEditor editor, IProgressMonitor progressMonitor)
boolean performSaveAs(LpexTextEditor editor, IProgressMonitor progressMonitor, String strFilename)
void updateProfile(LpexTextEditor editor)
void updateProfile(LpexTextEditor editor, LpexView lpexView)
long getCompileMessageClassBitMask()
String getTitle(LpexTextEditor editor)
boolean isLocal()
void resetMarkers(LpexTextEditor editor)
IAction getBreakpointRulerAction(LpexTextEditor editor)
void createDebugRulerActions(LpexTextEditor editor, IVerticalRuler ruler)
void createDebugMenuActions(LpexTextEditor editor)
void addDebugEditorMenuActions(IMenuManager menu, boolean isDebuggable, int currentElement)
void addDebugEditorRulerActions(IMenuManager menu, boolean isDebuggable, int currentElement)
boolean isTargetDebuggable(IDebugTarget dbgtarget)
IAnnotationModel getDebuggerMarkerAnnotationModel(IResource resource, IEditorInput input)
boolean isEditorInputIncludedInContextMenu()
true
if editor input actions are to be included in context menu, otherwise false
boolean isUniqueContextMenuManagerRequired()
true
if a unique context menu manager will be provided by this editor profile, false
otherwise.MenuManager createContextMenuManager(String text, String id)
isUniqueContextMenuManagerRequired()
returns true
.
text
- the text of the menu manager.id
- the id of the menu manager.
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |