|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.systems.editor.SystemTextEditorProfileDefault
public class SystemTextEditorProfileDefault
Default profile used if no profile is defined for a file.
Field Summary | |
---|---|
static String |
Copyright
|
static String |
DEFAULT_COMPILE_MESSAGE_CLASS_NAME
|
static int |
SEQUENCE_FALSE
|
static int |
SEQUENCE_TRUE
|
static int |
SEQUENCE_UNKNOWN
|
Fields inherited from interface com.ibm.etools.systems.editor.internal.ISystemTextEditorConstants |
---|
AUTOSAVE_FREQ_ERROR, AUTOSAVE_FREQ_LABEL, AUTOSAVE_FREQ_TOOLTIP, AUTOSAVE_LABEL, AUTOSAVE_PROGRESS, AUTOSAVE_PROGRESS_JOBNAME, AUTOSAVE_TOOLTIP, copyright, PLUGIN_ID, PREFIX, RESID_PREFIX, RESID_PREFIX_PREFERENCES, RESID_PREFIX_PROGRESS, SYSTEM_TEXT_BROWSER_ID, SYSTEM_TEXT_EDITOR_ID |
Constructor Summary | |
---|---|
SystemTextEditorProfileDefault()
|
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)
The default implementation returns null . |
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)
Refreshes the Lpex text area before saving. |
void |
editorContextMenuAboutToShow(LpexTextEditor editor,
IMenuManager menu)
Called when JLpex's editorContextMenuAboutToShow is called |
static int |
fileHasSequenceNumbers(IFile file)
Determines whether an IFile has sequence numbers |
IAction |
getBreakpointRulerAction(LpexTextEditor editor)
Returns the appropriate breakpoint ruler action associated with this profile. |
long |
getCompileMessageClassBitMask()
Get the bit mask for compile message class |
String |
getCompileMessageClassName()
Returns the compile message class name. |
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 |
protected int |
hasSequenceNumbers(IFile file)
Determines whether an IFile has sequence numbers |
static int |
hasSequenceNumbers(InputStream inputStream,
String encoding)
Inspects the content of a stream in order to determine whether the stream contains sequence numbers. |
protected void |
initializeAsSEU(LpexView lpexView)
Sets editor sequence numbers |
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()
The default implementation returns false . |
boolean |
performSaveAs(LpexTextEditor editor,
IProgressMonitor progressMonitor)
The editor's default save as is done by returning true. |
boolean |
performSaveAs(LpexTextEditor editor,
IProgressMonitor progressMonitor,
String strFilename)
The editor's default save as is done by returning true. |
void |
resetMarkers(LpexTextEditor editor)
Reset markers associated with the resource being edited. |
void |
setCompileMessageClassBitMask(long bitMask)
Set the bit mask for compile message class |
void |
setCompileMessageClassName(String compileMessageClassName)
Sets the compile message class name. |
void |
updateProfile(LpexTextEditor editor)
Called when JLpex's updateProfile is called. |
void |
updateProfile(LpexTextEditor editr,
LpexView lpexView)
Called when JLpex's updateProfile is called. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String Copyright
public static final int SEQUENCE_UNKNOWN
public static final int SEQUENCE_FALSE
public static final int SEQUENCE_TRUE
public static final String DEFAULT_COMPILE_MESSAGE_CLASS_NAME
Constructor Detail |
---|
public SystemTextEditorProfileDefault()
Method Detail |
---|
public void doSave(LpexTextEditor editor, IProgressMonitor progressMonitor)
doSave
in interface ISystemTextEditorProfile
public void editorContextMenuAboutToShow(LpexTextEditor editor, IMenuManager menu)
ISystemTextEditorProfile
editorContextMenuAboutToShow
in interface ISystemTextEditorProfile
The default implementation of this method does nothing.
protected int hasSequenceNumbers(IFile file)
public static int fileHasSequenceNumbers(IFile file)
public static int hasSequenceNumbers(InputStream inputStream, String encoding)
protected void initializeAsSEU(LpexView lpexView)
public long getCompileMessageClassBitMask()
getCompileMessageClassBitMask
in interface ISystemTextEditorProfile
public String getCompileMessageClassName()
public void setCompileMessageClassName(String compileMessageClassName)
compileMessageClassName
- the compile message class name.public String getTitle(LpexTextEditor editor)
getTitle
in interface ISystemTextEditorProfile
public void initializeLpexView(LpexTextEditor editor, LpexView lpexView)
ISystemTextEditorProfile
initializeLpexView
in interface ISystemTextEditorProfile
public boolean isLocal()
ISystemTextEditorProfile
isLocal
in interface ISystemTextEditorProfile
com.ibm.etools.systems.core.edit.ISystemTextEditorProfile#isLocal()
public boolean performSaveAs(LpexTextEditor editor, IProgressMonitor progressMonitor, String strFilename)
performSaveAs
in interface ISystemTextEditorProfile
public boolean performSaveAs(LpexTextEditor editor, IProgressMonitor progressMonitor)
performSaveAs
in interface ISystemTextEditorProfile
public void setCompileMessageClassBitMask(long bitMask)
public void updateProfile(LpexTextEditor editor)
ISystemTextEditorProfile
updateProfile
in interface ISystemTextEditorProfile
public void updateProfile(LpexTextEditor editr, LpexView lpexView)
ISystemTextEditorProfile
updateProfile
in interface ISystemTextEditorProfile
public void resetMarkers(LpexTextEditor editor)
resetMarkers
in interface ISystemTextEditorProfile
public IAction getBreakpointRulerAction(LpexTextEditor editor)
getBreakpointRulerAction
in interface ISystemTextEditorProfile
public void createDebugRulerActions(LpexTextEditor editor, IVerticalRuler ruler)
createDebugRulerActions
in interface ISystemTextEditorProfile
public void createDebugMenuActions(LpexTextEditor editor)
createDebugMenuActions
in interface ISystemTextEditorProfile
public void addDebugEditorMenuActions(IMenuManager menu, boolean isDebuggable, int currentElement)
addDebugEditorMenuActions
in interface ISystemTextEditorProfile
public void addDebugEditorRulerActions(IMenuManager menu, boolean isDebuggable, int currentElement)
addDebugEditorRulerActions
in interface ISystemTextEditorProfile
public boolean isTargetDebuggable(IDebugTarget dbgtarget)
isTargetDebuggable
in interface ISystemTextEditorProfile
public IAnnotationModel getDebuggerMarkerAnnotationModel(IResource resource, IEditorInput input)
getDebuggerMarkerAnnotationModel
in interface ISystemTextEditorProfile
public boolean isEditorInputIncludedInContextMenu()
ISystemTextEditorProfile
isEditorInputIncludedInContextMenu
in interface ISystemTextEditorProfile
true
if editor input actions are to be included in context menu, otherwise false
public boolean isUniqueContextMenuManagerRequired()
false
. Subclasses may override.
isUniqueContextMenuManagerRequired
in interface ISystemTextEditorProfile
true
if a unique context menu manager will be provided by this editor profile, false
otherwise.ISystemTextEditorProfile.isUniqueContextMenuManagerRequired()
public MenuManager createContextMenuManager(String text, String id)
null
. Subclasses may override.
createContextMenuManager
in interface ISystemTextEditorProfile
text
- the text of the menu manager.id
- the id of the menu manager.
ISystemTextEditorProfile.createContextMenuManager(java.lang.String, java.lang.String)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |