|
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.iseries.rse.util.QSYSUtil
public class QSYSUtil
QSYSUtil: Common Utility methods for this plugin
Field Summary | |
---|---|
static String |
Copyright
|
Constructor Summary | |
---|---|
QSYSUtil()
|
Method Summary | |
---|---|
static int |
getCCSID(IBMiConnection connection)
(Adapted from ISeriesEditorUtilities.getCCSID; which can't be accessed from this plugin.) Method getCCSID. |
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
Constructor Detail |
---|
public QSYSUtil()
Method Detail |
---|
public static int getCCSID(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
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |