|
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.subsystems.qsys.util.ISeriesProjectUtil
public class ISeriesProjectUtil
This class manages the interface from the iSeries Remote Systems Explorer to the iSeries projects. The iSeries project plugin already requires the iSeries plugin so we cannot directly reference the iSeries project plugin. However we still need to access iSeries projects in order to search for copy books via the verifiers and error list. So this class is created to isolate all iSeries project dependencies.
Nested Class Summary | |
---|---|
protected static class |
ISeriesProjectUtil.ConnectionState
Simple inner class for saving the libl and curlib while running the program verifier for an iSeries project member. |
Field Summary | |
---|---|
static String |
copyright
|
Method Summary | |
---|---|
void |
communicationsStateChange(CommunicationsEvent commEvent)
|
static String |
convertLocalPathToRemotePath(String localPath)
Convert the specified localPath into a remote path of the form library/file(member). |
static IFile |
findMemberInISeriesProject(IProject project,
String library,
String file,
String member)
Search for the member in the iSeries project and return the corresponding IFile for the member if it is found, otherwise return null. |
static IFile |
findMemberInISeriesProject(IProject project,
String libraryName,
String fileName,
String memberName,
boolean searchReferences)
Search for the member in the iSeries project and return the corresponding IFile for the member if it is found. |
static IFolder |
findSourceFileInISeriesProject(IProject project,
String library,
String file)
Search for the source file in the iSeries project and return the corresponding IFolder for the source file if it is found, otherwise return null. |
static IFolder |
findSourceFileInISeriesProject(IProject project,
String libraryName,
String fileName,
boolean searchReferences)
Search for the source file in the iSeries project and return the corresponding IFolder for the source file if it is found. |
static String |
getAssociatedLibrary(IProject project)
Get the associated library for an iSeries project |
static int |
getFileRecordLength(IFile file)
Method getFileRecordLength. |
protected static ISeriesProjectUtil |
getInstance()
Method for retrieving Singleton instance. |
static IBMiConnection |
getISeriesConnection(IProject project)
Returns the ISeriesConnection associated with the project. |
static IProject |
getISeriesProjectByName(String name)
Returns the iSeries project with the specified name. |
static String |
getProjectNameFromRemotePath(String localPath)
retrieve the project name from the remote path. |
static boolean |
isISeriesProject(IProject project)
Test if the project is an iSeries project. |
static boolean |
isISeriesProjectMember(IFile file)
Check if the specified local path represents a member that belongs to an iSeries project in the workspace. |
static boolean |
isISeriesProjectMember(String localFilePath)
Check if the specified local path represents a member that belongs to an iSeries project in the workspace. |
boolean |
isPassiveCommunicationsListener()
|
static void |
projectVerifyRestoreConnection(IProject project)
Restores the RSE connection associated with the iSeries project after running the program verifier. |
static void |
projectVerifySetupConnection(IProject project)
Prime the RSE connection associated with the iSeries project before running the program verifier. |
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
Method Detail |
---|
protected static ISeriesProjectUtil getInstance()
public static boolean isISeriesProject(IProject project) throws CoreException
CoreException
public static IProject getISeriesProjectByName(String name) throws CoreException
name
- The name of the iSeries project
CoreException
public static boolean isISeriesProjectMember(String localFilePath)
localPath
- A fully qualified pathname for the local file. (i.e.
d:\wdsc\wssd\workspace\my iseries project\file\member.rpgle).
public static boolean isISeriesProjectMember(IFile file)
localPath
- A fully qualified pathname for the local file. (i.e.
d:\wdsc\wssd\workspace\my iseries project\file\member.rpgle).
public static String getProjectNameFromRemotePath(String localPath)
localPath
- the path of the file
public static String convertLocalPathToRemotePath(String localPath)
public static IFolder findSourceFileInISeriesProject(IProject project, String library, String file) throws CoreException
CoreException
public static IFolder findSourceFileInISeriesProject(IProject project, String libraryName, String fileName, boolean searchReferences) throws CoreException
CoreException
public static IFile findMemberInISeriesProject(IProject project, String library, String file, String member) throws CoreException
CoreException
public static IFile findMemberInISeriesProject(IProject project, String libraryName, String fileName, String memberName, boolean searchReferences) throws CoreException
CoreException
public static IBMiConnection getISeriesConnection(IProject project)
public static int getFileRecordLength(IFile file)
project
- The iSeries project to use for finding the source physical file.sourceFile
- The name of the source phsyical file to lookup.
public static void projectVerifySetupConnection(IProject project) throws SystemMessageException
SystemMessageException
public static void projectVerifyRestoreConnection(IProject project) throws SystemMessageException
SystemMessageException
public static String getAssociatedLibrary(IProject project) throws CoreException
CoreException
public void communicationsStateChange(CommunicationsEvent commEvent)
com.ibm.etools.systems.subsystems.ICommunicationsListener#communicationsStateChange(CommunicationsEvent)
public boolean isPassiveCommunicationsListener()
com.ibm.etools.systems.subsystems.ICommunicationsListener#isPassiveCommunicationsListener()
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |