|
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.SystemEditorUtilities com.ibm.etools.iseries.edit.ISeriesEditorUtilities
public class ISeriesEditorUtilities
Utilities class for iSeries Remote Systems LPEX Editor
Nested Class Summary | |
---|---|
protected static class |
ISeriesEditorUtilities.RunnableSignon
|
Field Summary | |
---|---|
protected static ResourceBundle |
_bundle
the resource bundle |
static String |
copyright
|
protected static Vector<Vector<Object>> |
editorList
|
Fields inherited from class com.ibm.etools.systems.editor.SystemEditorUtilities |
---|
Copyright |
Fields inherited from interface com.ibm.etools.iseries.editor.IISeriesEditorConstantsRPG |
---|
_straSQLWords, _straSQLWordsWithComment, CMD_SETFORMATLINETEXT, CMD_SETTABS, COLUMN_C_FREE, COLUMN_C_OPCODE, COLUMN_COMMENT, COLUMN_FACTOR1, COLUMN_FACTOR2, COLUMN_KEYWORDS, COLUMN_PROC_NAME_BEGIN, COLUMN_PROC_NAME_END, COLUMN_PROC_SPEC, COLUMN_SPEC, FIELD_FACTOR1, FIELD_FACTOR2, FIELD_FROM, FIELD_OPCODE, FIELD_TOLENGTH, OPM_COLUMN_FACTOR1 |
Constructor Summary | |
---|---|
ISeriesEditorUtilities()
|
Method Summary | |
---|---|
static void |
addBiDirectionalMarkers(LpexView view,
int iElement,
int startRTLpos,
int endRTLpos,
int startNumberpos)
Add bidirectional markers if needed to the source |
static void |
addEditorInfo(LpexTextEditor editor,
int iCCSID,
IBMiConnection connection)
Stores the editor info for retrieval when Saving As. |
static QSYSEditableRemoteSourceFileMember |
browse(Shell shell,
IBMiConnection connection,
String libName,
String fileName,
String mbrName)
Opens a given member member in the integrated LPEX editor, in browse mode. |
static void |
cleanupMenuBar(IMenuManager menuManager)
Method cleanupMenuBar. |
static IQSYSFile |
COBOLgetFieldFile(LpexView view,
IISeriesEditorParser parser)
Method COBOLgetFieldFile. |
static IQSYSMember |
COBOLgetIncludeMember(LpexView view,
IISeriesEditorParser parser,
boolean ILE)
Method COBOLgetIncludeMember. |
static boolean |
COBOLisValidFieldAction(LpexView view)
Method COBOLisValidFieldAction. |
static boolean |
COBOLisValidIncludeAction(LpexView view)
Method COBOLisValidIncludeAction. |
static IMenuManager |
createLanguageHelpMenu(ITextEditor editor,
IMenuManager menuManager,
String strPrefix,
IMenuManager langHelpMenu)
Method createLangaugeHelpMenu. |
static IMenuManager |
createSourceMenu(ITextEditor editor,
IMenuManager menuManager,
IMenuManager sourceMenu)
Method createSourceMenu. |
static String |
determineRPGCFreeSpecOpcode(String strLineText)
Determine the opcode of a C free spec line (returned uppercased) |
static String |
determineRPGCSpecOpcode(String strLineText,
boolean bILE)
Determine the opcode of a C spec line (returned uppercased) |
static String |
determineRPGCSpecOpcode(String strLineText,
boolean bILE,
boolean bPreserveCase)
Determine the opcode of a C spec line (preserve case) |
static String |
determineRPGOpcode(String strLineText,
boolean bILE)
Determine the opcode of a RPG line (returned uppercased) |
static void |
enableMultipleViews(LpexView view)
Enable multiple views in LPEX Editor |
static void |
ensureVisible(LpexView lpexView,
int element)
|
static String |
generateTabString(int[] iatabs)
generateTabString From an Integer array, generate a string representing the int array |
static LpexView[] |
getAllLpexViews(LpexTextEditor editor)
Retrieves a list of all the view open in an editor. |
static int |
getCCSID(IFile iFile,
IBMiConnection connection)
Method getCCSID. |
static String |
getCommonFilterMenuItems()
Method getCommonFilterMenuItems. |
static StructuredSelection |
getCompileSelectionObject(ITextEditor editor)
Method getCompileSelectionObject. |
static int |
getCurrentLine(LpexView view)
Deprecated. |
static int |
getDataLength(String[] straDataWords,
String strLine)
Returns the length of a data word, or zero if not a data word. |
static int |
getDocumentElementBottom(LpexView view)
Get the bottom most element |
static int |
getDocumentElementNext(LpexView view,
int iElement)
Get the next element that is not a show line |
static int |
getDocumentElementPrevious(LpexView view,
int iElement)
Get the previous line that is not a show line |
static String |
getDocumentElementText(LpexView view,
int iElement)
Returns the view element's text appended with a null. |
static String |
getDocumentElementTextDBCS(LpexView view,
int iElement,
boolean bPadDoubleByteCharacters)
Returns a zero terminated line of text. |
static int |
getDocumentElementTop(LpexView view)
Returns the top most Element |
static int |
getDocumentLineBottom(LpexView view)
Deprecated. Get the bottom most line that is not a show line |
static int |
getDocumentLineNext(LpexView view,
int iLine)
Deprecated. |
static int |
getDocumentLinePrevious(LpexView view,
int iLine)
Deprecated. |
static String |
getDocumentLineText(LpexView view,
int iLine)
Deprecated. |
static String |
getDocumentLineTextDBCS(LpexView view,
int iLine,
boolean bPadDoubleByteCharacters)
Deprecated. |
static int |
getDocumentLineTop(LpexView view)
Deprecated. |
static int |
getDocumentNumberOfLines(LpexView view)
Method getDocumentNumberOfLines. |
static Vector |
getEditorInfo(LpexTextEditor editor)
Retrieves the editor information (CCSID & Connection). |
static String |
getElementStringUpperWithSpace(LpexView view,
int iElement,
boolean bPadDoubleByteCharacters)
Returns a line of text, upper case it, and padded with blank. |
static String |
getElementTextDBCS(LpexView view,
int iElement,
boolean bPadDoubleByteCharacters)
Returns a line of text. |
static int |
getFirstNonBlankLineDown(int fromElement,
int toElement,
LpexView view,
boolean skipSlashSlashComment)
This element will find the last element in a CFree block. |
static int |
getFirstNonBlankLineUp(int fromElement,
int toElement,
LpexView view,
boolean skipSlashSlashComment,
boolean insideNewLineCreationAction,
long classForwardLink,
long classBackwardLink)
This element will find the last element in a CFree block. |
static String |
getFullFilePath(ITextEditor editor)
Method getFullFilePath. |
static IBMiConnection |
getHostConnectionForLocalFile(boolean bPromptAllowed)
Method getHostConnectionForLocalFile. |
static IFile |
getIFile(ITextEditor editor)
Method getIFile. |
static IBMiConnection |
getISeriesConnection(ITextEditor editor)
Method getISeriesConnection. |
static IBMiConnection |
getISeriesConnection(ITextEditor editor,
boolean checkProjects)
Method getISeriesConnection. |
static IQSYSMember |
getISeriesMember(ITextEditor editor)
Method getIQSYSMember. |
static String |
getLineText(LpexView view,
int iLine)
Deprecated. use _view.elementText(iElement) |
static String |
getLineTextDBCS(LpexView view,
int iLine,
boolean bPadDoubleByteCharacters)
Deprecated. use getElementTextDBCS |
static LpexTextEditor |
getLpexEditor()
Returns the active lpex editor, or null if there isn't one. |
static LpexTextEditor |
getLpexEditorForPrimaryView(LpexView view)
Retrieves the editor object that has the specified primary view |
static int |
getMacroLength(String[] straMacroWords,
String strLine)
Returns the macro length or zero if not a macro |
static int |
getMacroType(String[] straMacroWords,
String strLine)
Returns the macro type |
static IPath |
getParseFilePath(IFile sourceFile)
|
static IPath |
getParseFilePath(IFile sourceFile,
int mode)
|
static URL |
getParseFileURL(IFile sourceFile)
|
static IISeriesEditorParser |
getParserForPrimaryLpexView(LpexTextEditor editor)
Determine the parser for the primary lpex view for the lpex editor |
static LpexView |
getPrimaryLpexView(LpexTextEditor editor)
Used to retrieve the primary view in an editor |
static int |
getRecordLength(LpexView view)
Method getRecordLength. |
static int |
getRPGILEAutoIndentValue()
get RPG ILE auto indent preference value |
static IRunnableContext |
getRunnableContext()
Returns a progress monitor context. |
static String |
getSignature()
Get the signature |
static int |
getSQLLength(String[] straSQLWords,
String strLine)
Returns the length of the SQL word, or zero if not an SQL word |
static boolean |
hasSemicolon(String strLine)
Check for any semi-colon before a comment Port of evfritok.c, semiFound D62355 - also need to check if a "//" is inside a quote. |
static boolean |
indentRPGILECFreeOpcode(String strOpcode)
determines if the opcode should have the following line indented |
static int |
indexOfStringNotInsideAQuote(String inputString,
String stringToFind,
char quote)
|
static void |
initializeBasePreferences(LpexView view,
IISeriesEditorParser parser)
Method initializeBasePreferences. |
static boolean |
isCFComment(String strElement)
Returns true if it is a CF Comment line. |
static boolean |
isCFEnd(String strLine)
Returns true if CF-Spec start |
static boolean |
isCFSQLStart(LpexView view,
int iElement)
Returns true if start of SQL Statement in C free-form and source type is SQLRPGLE. |
static boolean |
isCFSQLStart(String strLine)
Returns true if start of SQL Statement in C free-form and source type is SQLRPGLE. |
static boolean |
isCFStart(String strLine)
Returns true if CF-Spec end |
static boolean |
isData(String[] straDataWords,
String strLine)
Returns true if line is a DATA statement |
static boolean |
isExtendedFactorTwoOpcode(String[] straXF2_opcodes,
String[] straXF2_possible_opcodes,
String strLine)
Returns whether 'C' line an extended Factor2 C spec. |
static boolean |
isIFSFile(IFile iFile)
Returns true if is an IFS file, false otherwise Defect 61409 |
static boolean |
isMacro(String[] straMacroWords,
String strLine)
|
static boolean |
isNumeric(String strNumeric)
Returns whether a string is base 10 numeric. |
static boolean |
isPrimaryLpexView(LpexView lpexView)
Returns if Lpex view is the primary view |
static boolean |
isSlashComment(String strLine,
int iIndex)
|
static boolean |
isSQL(String[] straSQLWords,
LpexView view,
int iElement)
Returns true if line is an SQL statement (convenient for the caller, so it does not need to get the string of a line first) cmvc64662 |
static boolean |
isSQL(String[] straSQLWords,
String strLine)
Returns true if line is an SQL statement |
static boolean |
isSQLEnd(String strLine)
Returns true if end of SQL Statement |
static boolean |
isSQLStart(String strLine)
Returns true if start of SQL Statement |
static void |
issueLpexMessage(LpexTextEditor editor,
String message,
Throwable exception)
Display error message on editor message line as well as in the log file |
static boolean |
isWhiteSpace(char c)
Returns whether a character is white space |
static boolean |
nonBlankInColumn6Or7(String strElement)
Returns true if either of column 6 or 7 is not. |
static QSYSEditableRemoteSourceFileMember |
open(Shell shell,
IBMiConnection connection,
String libName,
String fileName,
String mbrName)
Opens a given member member in the integrated LPEX editor. |
static IEditorPart |
open(Shell shell,
String projectName,
String remoteMemberName)
Open the specified member in the default editor for that member type. |
static IEditorPart |
open(Shell shell,
String projectName,
String remoteMemberName,
boolean openIfClosed)
|
static void |
openEditable(QSYSEditableRemoteSourceFileMember editable,
String objectName)
|
static boolean |
outdentRPGILECFreeOpcode(String strOpcode)
determines if the opcode should have the current line outdented |
static void |
positionCursor(LpexTextEditor _editor,
LpexView _view,
int iLineCursor,
int startPosition,
int selectedLength)
Called when the selection has changed in the content outline view. |
static String |
prependLineWithSignature(String strLine)
Prepend line with signature (if enabled) |
static void |
printLineClassesValue(int startElement,
int endElement,
LpexView view)
|
static void |
printLineStyles(int startElement,
int endElement,
LpexView view)
|
static void |
refreshAllViews(LpexTextEditor editor)
This method refreshs all the views open in an editor. |
static void |
refreshBasePreferences(LpexView view)
Method refreshBasePreferences. |
static void |
removeEditorInfo(LpexTextEditor editor)
Cleans up information for the editor. |
static void |
selectionLinesChanged(LpexTextEditor _editor,
int iLineOrigin,
int iLineExtent,
int iLineCursor,
int startPosition,
int selectedLength)
Called when the selection has changed in the content outline view. |
static void |
selectionLinesChanged(LpexTextEditor _editor,
LpexView _view,
int iLineOrigin,
int iLineExtent,
int iLineCursor,
int startPosition,
int selectedLength)
Called when the selection has changed in the content outline view. |
static void |
setDocumentElementText(LpexView view,
int iElement,
String strElement)
Associates the text with the editor element line Removes the null at the end of the string |
static void |
setDocumentLineText(LpexView view,
int iLine,
String strLine)
Deprecated. |
static void |
setElementColors(LpexView view,
int iElement,
String strStyles,
boolean bFixedLengthFields)
Sets an Lpex element's color style. |
static int |
setEncoding(LpexTextEditor editor,
LpexView view,
boolean allowPrompting)
Method setEncoding. |
static void |
setEncoding(LpexView view,
int iCCSID)
Method setEncoding. |
static void |
setHighlightRange(LpexTextEditor _editor,
LpexView _view,
int iLineOrigin,
int iLineExtent)
Highlight the range of lines that correspond to the select language construct. |
static void |
setLineColors(LpexView view,
int iLine,
String strStyles,
boolean bFixedLengthFields)
Deprecated. |
static void |
setMessageElementColors(LpexView view,
int iElement,
String strStyles)
Sets the style colours for a message element where everything is in Unicode, so no DBCS considerations are applied. |
static void |
showBlockNesting(LpexView view,
boolean showNesting)
|
static int |
skipFixFormComment(LpexView view,
int iElement)
|
Methods inherited from class com.ibm.etools.systems.editor.SystemEditorUtilities |
---|
getBaseEditorAction, getSourceMenu, removeAllShowLines, removeAllShowLines, removeMessages, removeMessages, removeMessages, setDateArea, updateEditors |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static Vector<Vector<Object>> editorList
public static final String copyright
protected static ResourceBundle _bundle
Constructor Detail |
---|
public ISeriesEditorUtilities()
Method Detail |
---|
public static void cleanupMenuBar(IMenuManager menuManager)
menuManager
- the menu to remove items frompublic static String getFullFilePath(ITextEditor editor)
editor
- the editor that the file is open in
public static StructuredSelection getCompileSelectionObject(ITextEditor editor)
editor
- the editor that the source is open in
public static int getCCSID(IFile iFile, IBMiConnection connection)
the iFile properties are retrieved and the CCSID stored within is checked
1) if the CCSID is not 0, and not 65535, then that is the CCSID used 2) If the CCSID is 0 or 65535, then
a) if the user is connected, then the active job CCSID is used. b) if the user is disconnected, the cache is first checked for CCSID, if found then that CCSID is used
c) if the user is disconnected and if the cache doesn't contain a CCSID (the user never signed on), then the session property is used
d) if the user is disconnected and if the session property doesn't exist then the user is prompted to signon (unless working offline). If signon successful, then the job CCSID is used. The Session property is set to this CCSID.
e) If the signon failed (user pressed cancel) then the CCSID defaults to 37, and the session CCSID is set to 37.
SE25654: Extended this method to support a null value for (iFile) parameter: For calling from ISeriesLibTableView, to let it get the CCSID for the job, even though it is not an editor application.
parser
- the parser that the source is open in
public static IMenuManager createLanguageHelpMenu(ITextEditor editor, IMenuManager menuManager, String strPrefix, IMenuManager langHelpMenu)
editor
- menuManager
- the menu managerstrPrefix
- the prefix for the item from the resource bundlelangHelpManager
- the language help menu (if it exits, or null)
public static IMenuManager createSourceMenu(ITextEditor editor, IMenuManager menuManager, IMenuManager sourceMenu)
editor
- the lpex text editor to add the source menumenuManager
- the menu manager
public static String determineRPGCSpecOpcode(String strLineText, boolean bILE)
strLineText
- - a c spec linebILE
- - true if ILE RPG
public static String determineRPGCSpecOpcode(String strLineText, boolean bILE, boolean bPreserveCase)
strLineText
- - a c spec linebILE
- - true if ILE RPGbPreserveCase
- - indicates if case should be preserved
public static String determineRPGCFreeSpecOpcode(String strLineText)
strLineText
- - a c free spec line
public static String determineRPGOpcode(String strLineText, boolean bILE)
strLineText
- - a line
public static String generateTabString(int[] iatabs)
public static int getCurrentLine(LpexView view)
public static int getDataLength(String[] straDataWords, String strLine)
public static int getDocumentLineBottom(LpexView view)
public static int getDocumentElementBottom(LpexView view)
public static int getDocumentLineNext(LpexView view, int iLine)
public static int getDocumentElementNext(LpexView view, int iElement)
public static int getDocumentLinePrevious(LpexView view, int iLine)
public static int getDocumentElementPrevious(LpexView view, int iElement)
public static String getDocumentLineText(LpexView view, int iLine)
public static String getDocumentElementText(LpexView view, int iElement)
public static String getDocumentLineTextDBCS(LpexView view, int iLine, boolean bPadDoubleByteCharacters)
public static String getDocumentElementTextDBCS(LpexView view, int iElement, boolean bPadDoubleByteCharacters)
public static int getDocumentLineTop(LpexView view)
public static int getDocumentElementTop(LpexView view)
public static int getDocumentNumberOfLines(LpexView view)
view
- the view in which the document is open
public static String getLineText(LpexView view, int iLine)
public static String getLineTextDBCS(LpexView view, int iLine, boolean bPadDoubleByteCharacters)
public static String getElementTextDBCS(LpexView view, int iElement, boolean bPadDoubleByteCharacters)
public static String getElementStringUpperWithSpace(LpexView view, int iElement, boolean bPadDoubleByteCharacters)
public static int getMacroLength(String[] straMacroWords, String strLine)
public static int getMacroType(String[] straMacroWords, String strLine)
public static IFile getIFile(ITextEditor editor)
editor
- the editor in which the source is open
public static IBMiConnection getISeriesConnection(ITextEditor editor)
editor
- the text editor to find the connection for
public static IBMiConnection getISeriesConnection(ITextEditor editor, boolean checkProjects)
editor
- the text editor to find the connection forcheckProjects
- Whether or not to delegate to i Projects if the file is from the project. Generally the first time
we allow the project to be checked, but after that we don't (if projects didn't provide a connection the first time, then
there is no reason to re-query).
public static IQSYSMember getISeriesMember(ITextEditor editor)
editor
- the editor that the member is open in
public static String getCommonFilterMenuItems()
public static IISeriesEditorParser getParserForPrimaryLpexView(LpexTextEditor editor)
editor
-
public static int getRecordLength(LpexView view)
view
- the view which contains the source
public static IRunnableContext getRunnableContext()
public static int getRPGILEAutoIndentValue()
public static String getSignature()
public static int getSQLLength(String[] straSQLWords, String strLine)
public static boolean hasSemicolon(String strLine)
public static boolean indentRPGILECFreeOpcode(String strOpcode)
public static void initializeBasePreferences(LpexView view, IISeriesEditorParser parser)
view
- the view used to apply the preferences toparser
- the parser for the viewpublic static void enableMultipleViews(LpexView view)
view
- public static boolean isCFEnd(String strLine)
public static boolean isCFComment(String strElement)
public static boolean isCFStart(String strLine)
public static boolean isSQLStart(String strLine)
public static boolean isSQLEnd(String strLine)
public static boolean isCFSQLStart(LpexView view, int iElement)
public static boolean isCFSQLStart(String strLine)
public static boolean nonBlankInColumn6Or7(String strElement)
public static boolean isData(String[] straDataWords, String strLine)
public static boolean isExtendedFactorTwoOpcode(String[] straXF2_opcodes, String[] straXF2_possible_opcodes, String strLine)
public static boolean isMacro(String[] straMacroWords, String strLine)
public static boolean isNumeric(String strNumeric)
public static boolean isPrimaryLpexView(LpexView lpexView)
public static LpexTextEditor getLpexEditor()
public static LpexTextEditor getLpexEditorForPrimaryView(LpexView view)
view
- the primary view to search for the editor object
public static LpexView[] getAllLpexViews(LpexTextEditor editor)
editor
- the editor to retrieve the view.
public static LpexView getPrimaryLpexView(LpexTextEditor editor)
editor
- the editor to search for a primary view
public static void refreshAllViews(LpexTextEditor editor)
It is needed because adding text programmatically (ie wizards)to one view doesn't trigger a parse in all the views.
editor
- The editor to refresh all its view.public static boolean isSlashComment(String strLine, int iIndex)
strLine
- iIndex
-
public static boolean isSQL(String[] straSQLWords, String strLine)
public static boolean isSQL(String[] straSQLWords, LpexView view, int iElement)
public static boolean isWhiteSpace(char c)
public static boolean outdentRPGILECFreeOpcode(String strOpcode)
public static String prependLineWithSignature(String strLine)
public static void refreshBasePreferences(LpexView view)
view
- the view to apply the preferences topublic static void setDocumentLineText(LpexView view, int iLine, String strLine)
public static void setDocumentElementText(LpexView view, int iElement, String strElement)
public static void setElementColors(LpexView view, int iElement, String strStyles, boolean bFixedLengthFields)
public static int setEncoding(LpexTextEditor editor, LpexView view, boolean allowPrompting)
view
- the view to set the encodingeditor
- the editor for the viewallowPrompting
- allow this to prompt for a connection if not in the ifilepublic static void setEncoding(LpexView view, int iCCSID)
view
- the view to set the encodingiCCSID
- the ccsid to convertpublic static void setLineColors(LpexView view, int iLine, String strStyles, boolean bFixedLengthFields)
public static void setMessageElementColors(LpexView view, int iElement, String strStyles)
public static IBMiConnection getHostConnectionForLocalFile(boolean bPromptAllowed)
bPromptAllowed
- whether or not the user should be prompted
public static IQSYSFile COBOLgetFieldFile(LpexView view, IISeriesEditorParser parser)
view
- the view that the show fields action is running inparser
- the parser for the view
public static boolean COBOLisValidFieldAction(LpexView view)
view
- the view that the source is open in
public static boolean COBOLisValidIncludeAction(LpexView view)
view
- the view that the source is open in
public static IQSYSMember COBOLgetIncludeMember(LpexView view, IISeriesEditorParser parser, boolean ILE)
view
- parser
- ILE
-
public static IPath getParseFilePath(IFile sourceFile)
public static IPath getParseFilePath(IFile sourceFile, int mode)
public static URL getParseFileURL(IFile sourceFile)
public static void ensureVisible(LpexView lpexView, int element)
public static void setHighlightRange(LpexTextEditor _editor, LpexView _view, int iLineOrigin, int iLineExtent)
editor
- LpexTextEditor within which to select the textview
- LpexView
containing text to selectiLineOrigin
- first line of higlighted range (ONE-based)iLineExtent
- number of lines in highlighted rangepublic static void selectionLinesChanged(LpexTextEditor _editor, LpexView _view, int iLineOrigin, int iLineExtent, int iLineCursor, int startPosition, int selectedLength)
editor
- - LpexTextEditor within which to select the textview
- - LpexView
containing text to selectiLineOrigin
- - begin of higlighted rangeiLineExtent
- - number of lines in highlighted rangeiLineCursor
- - cursored linestartPosition
- - column of begin of selectionpublic static void positionCursor(LpexTextEditor _editor, LpexView _view, int iLineCursor, int startPosition, int selectedLength)
editor
- - LpexTextEditor within which to select the textview
- - LpexView
containing text to selectiLineOrigin
- - begin of higlighted rangeiLineExtent
- - number of lines in highlighted rangeiLineCursor
- - cursored linestartPosition
- - column of begin of selectionpublic static void selectionLinesChanged(LpexTextEditor _editor, int iLineOrigin, int iLineExtent, int iLineCursor, int startPosition, int selectedLength)
editor
- - LpexTextEditor within which to select the textview
- - LpexView
containing text to selectiLineCursor
- - cursored linestartPosition
- - column of begin of selectionselectedLength
- - length of selectionpublic static void addEditorInfo(LpexTextEditor editor, int iCCSID, IBMiConnection connection)
editor
- The editor to store information foriCCSID
- The CCSID to storeconnection
- The connection to storepublic static Vector getEditorInfo(LpexTextEditor editor)
editor
- The editor to retrieve the information for.
public static void removeEditorInfo(LpexTextEditor editor)
editor
- The editor to cleanup info for.public static void addBiDirectionalMarkers(LpexView view, int iElement, int startRTLpos, int endRTLpos, int startNumberpos)
view
- iElement
- startRTLpos
- - column to start looking for a RTL characterendRTLpos
- - column to stop looking for a RTL characterstartNumberpos
- - column to check if a number exists (must be larger than startRTLpos)public static boolean isIFSFile(IFile iFile)
public static void issueLpexMessage(LpexTextEditor editor, String message, Throwable exception)
message
- - String containing log messageexception
- - that caused the error conditionpublic static void showBlockNesting(LpexView view, boolean showNesting)
public static int indexOfStringNotInsideAQuote(String inputString, String stringToFind, char quote)
public static void printLineClassesValue(int startElement, int endElement, LpexView view)
public static void printLineStyles(int startElement, int endElement, LpexView view)
public static int getFirstNonBlankLineUp(int fromElement, int toElement, LpexView view, boolean skipSlashSlashComment, boolean insideNewLineCreationAction, long classForwardLink, long classBackwardLink)
public static int getFirstNonBlankLineDown(int fromElement, int toElement, LpexView view, boolean skipSlashSlashComment)
public static int skipFixFormComment(LpexView view, int iElement)
public static IEditorPart open(Shell shell, String projectName, String remoteMemberName) throws SystemMessageException
shell
- A valid shell used to display the progress monitor when downloading the member (if required)
and opening the editor.project
- A valid iSeries project namemember
- The name of the member in library/file(member) syntax
SystemMessageException
public static IEditorPart open(Shell shell, String projectName, String remoteMemberName, boolean openIfClosed) throws SystemMessageException
SystemMessageException
public static QSYSEditableRemoteSourceFileMember open(Shell shell, IBMiConnection connection, String libName, String fileName, String mbrName) throws SystemMessageException, InterruptedException
shell
- The shell needed to host the logon prompt dialog, if needed.
Can be null, in which case the currently active workbench shell is used.connection
- An ISeriesConnection object. If you only have a SystemConnection object,
then use the static getConnection(SystemConnection) method in ISeriesConnectionlibName
- Library containing the file containing the memberfileName
- File containing the membermbrName
- Name of the member to open
InterruptedException
SystemMessageException
public static QSYSEditableRemoteSourceFileMember browse(Shell shell, IBMiConnection connection, String libName, String fileName, String mbrName) throws SystemMessageException, InterruptedException
shell
- The shell needed to host the logon prompt dialog, if needed.
Can be null, in which case the currently active workbench shell is used.connection
- An ISeriesConnection object. If you only have a SystemConnection object,
then use the static getConnection(SystemConnection) method in ISeriesConnectionlibName
- Library containing the file containing the memberfileName
- File containing the membermbrName
- Name of the member to open
InterruptedException
SystemMessageException
public static void openEditable(QSYSEditableRemoteSourceFileMember editable, String objectName)
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |