|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.iseries.core.util.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(com.ibm.etools.systems.subsystems.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(IProject project,
String sourceFile)
Method getFileRecordLength. |
protected static ISeriesProjectUtil |
getInstance()
Method for retrieving Singleton instance. |
static ISeriesConnection |
getISeriesConnection(IProject project)
Returns the ISeriesConnection associated with the project. |
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(String localFilePath)
Check if the specified local path represents a member that belongs to an iSeries project in the workspace. |
boolean |
isPassiveCommunicationsListener()
|
static IEditorPart |
open(Shell shell,
String projectName,
String remoteMemberName)
Open the specified member in the default editor for that member type. |
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 boolean isISeriesProjectMember(String localFilePath)
public static String getProjectNameFromRemotePath(String localPath)
localPath
- the path of the file
public static String convertLocalPathToRemotePath(String localPath)
public static IEditorPart open(Shell shell, String projectName, String remoteMemberName) throws com.ibm.etools.systems.core.messages.SystemMessageException
shell
- A valid shell used to display the progress monitor when downloading the member (if required)
and opening the editor.
com.ibm.etools.systems.core.messages.SystemMessageException
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 ISeriesConnection getISeriesConnection(IProject project)
public static int getFileRecordLength(IProject project, String sourceFile)
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 com.ibm.etools.systems.core.messages.SystemMessageException
com.ibm.etools.systems.core.messages.SystemMessageException
public static void projectVerifyRestoreConnection(IProject project) throws com.ibm.etools.systems.core.messages.SystemMessageException
com.ibm.etools.systems.core.messages.SystemMessageException
public static String getAssociatedLibrary(IProject project) throws CoreException
CoreException
public void communicationsStateChange(com.ibm.etools.systems.subsystems.CommunicationsEvent commEvent)
communicationsStateChange
in interface com.ibm.etools.systems.subsystems.ICommunicationsListener
ICommunicationsListener.communicationsStateChange(CommunicationsEvent)
public boolean isPassiveCommunicationsListener()
isPassiveCommunicationsListener
in interface com.ibm.etools.systems.subsystems.ICommunicationsListener
ICommunicationsListener.isPassiveCommunicationsListener()
|
iSeries Remote Systems v6.0.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |