Remote Systems
v6.4.1

com.ibm.etools.systems.files.importexport.jar
Class RemoteJarExporterUtil

java.lang.Object
  extended bycom.ibm.etools.systems.files.importexport.jar.RemoteJarExporterUtil
All Implemented Interfaces:
IRemoteImportExportConstants

public class RemoteJarExporterUtil
extends Object
implements IRemoteImportExportConstants


Field Summary
 
Fields inherited from interface com.ibm.etools.systems.files.importexport.IRemoteImportExportConstants
REMOTE_EXPORT_DESCRIPTION_FILE_EXTENSIONS, REMOTE_FILE_EXPORT_DESCRIPTION_FILE_EXTENSION, REMOTE_FILE_IMPORT_DESCRIPTION_FILE_EXTENSION, REMOTE_IMPORT_DESCRIPTION_FILE_EXTENSIONS, REMOTE_JAR_EXPORT_DESCRIPTION_FILE_EXTENSION
 
Constructor Summary
RemoteJarExporterUtil()
           
 
Method Summary
static boolean askForOverwritePermission(Shell parent, String filePath)
           
static boolean askForRemoteOverwritePermission(Shell parent, String filePath, String hostName)
           
static boolean askToCreateDirectory(Shell parent, File directory)
           
static List asResources(Object[] fSelectedElements)
          Computes and returns the elements as resources.
static CoreException createCoreException(String message, Exception ex)
          Creates a CoreException with the given parameters.
static boolean isMainClassValid(RemoteJarExportData data, IRunnableContext context)
          Tells whether the specified manifest main class is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteJarExporterUtil

public RemoteJarExporterUtil()
Method Detail

askToCreateDirectory

public static boolean askToCreateDirectory(Shell parent,
                                           File directory)

asResources

public static List asResources(Object[] fSelectedElements)
Computes and returns the elements as resources. The underlying resource is used for Java elements.

Returns:
a List with the selected resources

askForOverwritePermission

public static boolean askForOverwritePermission(Shell parent,
                                                String filePath)

askForRemoteOverwritePermission

public static boolean askForRemoteOverwritePermission(Shell parent,
                                                      String filePath,
                                                      String hostName)

createCoreException

public static CoreException createCoreException(String message,
                                                Exception ex)
Creates a CoreException with the given parameters.

Parameters:
message - a string with the message
ex - the exception to be wrapped or null if none
Returns:
a CoreException

isMainClassValid

public static boolean isMainClassValid(RemoteJarExportData data,
                                       IRunnableContext context)
Tells whether the specified manifest main class is valid.

Returns:
true if a main class is specified and valid

Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.