|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectWorkspaceModifyOperation
com.ibm.etools.systems.files.importexport.jar.RemoteJarFileExportOperation
Constructor Summary | |
---|---|
RemoteJarFileExportOperation(RemoteJarExportData[] jarExports,
Shell parent)
Creates an instance of this class. |
|
RemoteJarFileExportOperation(RemoteJarExportData jarExport,
Shell parent)
Creates an instance of this class. |
Method Summary | |
---|---|
protected void |
addError(String message,
Throwable error)
Adds a new error to the list with the passed information. |
protected void |
addInfo(String message,
Throwable error)
Adds a new info to the list with the passed information. |
protected void |
addToStatus(CoreException ex)
|
protected void |
addWarning(String message,
Throwable error)
Adds a new warning to the list with the passed information. |
protected boolean |
canBeExported(boolean hasErrors,
boolean hasWarnings)
|
protected int |
countSelectedElements()
Answers the number of file resources specified by the JAR package. |
protected IFile |
createFileHandle(IPath filePath)
Creates a file resource handle for the file with the given workspace path. |
protected IFolder |
createFolderHandle(IPath folderPath)
Creates a folder resource handle for the folder with the given workspace path. |
protected void |
execute(IProgressMonitor progressMonitor)
Exports the resources as specified by the JAR package. |
protected void |
exportElement(Object element,
IProgressMonitor progressMonitor)
Exports the passed resource to the JAR file |
protected void |
exportSelectedElements(IProgressMonitor progressMonitor)
Exports the resources as specified by the JAR package. |
protected Iterator |
filesOnClasspath(IFile file,
IPath pathInJar,
IJavaProject javaProject,
IPackageFragmentRoot pkgRoot,
IProgressMonitor progressMonitor)
Returns an iterator on a list with files that correspond to the passed file and that are on the classpath of its project. |
protected Iterator |
filesOnClasspath(IFile file,
IPath pathInJar,
IJavaProject javaProject,
IProgressMonitor progressMonitor)
Deprecated. As of 2.1 use the method with additional IPackageFragmentRoot paramter |
IStatus |
getStatus()
Returns the status of this operation. |
protected boolean |
isDescendant(List resources,
IResource child)
Answer a boolean indicating whether the passed child is a descendant of one or more members of the passed resources collection |
protected boolean |
preconditionsOK()
|
protected void |
reportPossibleCompileProblems(IFile file,
boolean hasErrors,
boolean hasWarnings,
boolean canBeExported)
|
protected void |
saveDescription()
|
protected void |
saveFiles()
|
protected void |
saveManifest()
|
void |
singleRun(IProgressMonitor progressMonitor)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RemoteJarFileExportOperation(RemoteJarExportData jarExport, Shell parent)
parent
- the parent for the dialog,
or null
if no dialog should be presentedpublic RemoteJarFileExportOperation(RemoteJarExportData[] jarExports, Shell parent)
parent
- the parent for the dialog,
or null
if no dialog should be presentedMethod Detail |
protected void addToStatus(CoreException ex)
protected void addInfo(String message, Throwable error)
message
- the messageprotected void addWarning(String message, Throwable error)
message
- the messageprotected void addError(String message, Throwable error)
message
- the messageprotected int countSelectedElements()
protected void exportElement(Object element, IProgressMonitor progressMonitor) throws InterruptedException
element
- the resource or JavaElement to export
InterruptedException
protected void exportSelectedElements(IProgressMonitor progressMonitor) throws InterruptedException
InterruptedException
protected Iterator filesOnClasspath(IFile file, IPath pathInJar, IJavaProject javaProject, IProgressMonitor progressMonitor) throws CoreException
file
- the file for which to find the corresponding classpath resourcespathInJar
- the path that the file has in the JAR (i.e. project and source folder segments removed)javaProject
- the javaProject that contains the file
CoreException
protected Iterator filesOnClasspath(IFile file, IPath pathInJar, IJavaProject javaProject, IPackageFragmentRoot pkgRoot, IProgressMonitor progressMonitor) throws CoreException
file
- the file for which to find the corresponding classpath resourcespathInJar
- the path that the file has in the JAR (i.e. project and source folder segments removed)javaProject
- the javaProject that contains the filepkgRoot
- the package fragment root that contains the file
CoreException
protected IFile createFileHandle(IPath filePath)
createFile
.
filePath
- the path of the file resource to create a handle for
protected IFolder createFolderHandle(IPath folderPath)
folderPath
- the path of the folder to create a handle for
public IStatus getStatus()
getStatus
in interface IRemoteJarExportRunnable
protected boolean isDescendant(List resources, IResource child)
resources
- a List contain potential parentschild
- the resource to test
boolean
indicating if the child is a descendantprotected boolean canBeExported(boolean hasErrors, boolean hasWarnings) throws CoreException
CoreException
protected void reportPossibleCompileProblems(IFile file, boolean hasErrors, boolean hasWarnings, boolean canBeExported)
protected void execute(IProgressMonitor progressMonitor) throws InvocationTargetException, InterruptedException
progressMonitor
- the progress monitor that displays the progress
InvocationTargetException
InterruptedException
getStatus()
public void singleRun(IProgressMonitor progressMonitor) throws InvocationTargetException, InterruptedException
InvocationTargetException
InterruptedException
protected boolean preconditionsOK()
protected void saveFiles()
protected void saveDescription() throws CoreException, IOException
CoreException
IOException
protected void saveManifest() throws CoreException, IOException
CoreException
IOException
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |