| java.lang.Object org.eclipse.jdt.internal.ui.jarpackager.JarPackagerUtil
JarPackagerUtil | final public class JarPackagerUtil (Code) | | Utility methods for JAR Import/Export.
|
DESCRIPTION_EXTENSION | final static String DESCRIPTION_EXTENSION(Code) | | |
asResources | public static List asResources(Object[] fSelectedElements)(Code) | | Computes and returns the elements as resources.
The underlying resource is used for Java elements.
a List with the selected resources |
askForOverwritePermission | public static boolean askForOverwritePermission(Shell parent, String filePath)(Code) | | |
askToCreateDirectory | public static boolean askToCreateDirectory(Shell parent, File directory)(Code) | | |
calculateCrcAndSize | public static void calculateCrcAndSize(JarEntry entry, InputStream stream, byte[] buffer) throws IOException(Code) | | Calculates the crc and size of the resource and updates the entry.
Parameters: entry - the jar entry to update Parameters: stream - the input stream Parameters: buffer - a shared buffer to store temporary data throws: IOException - if an input/output error occurs |
contains | static boolean contains(List resources, IFile file)(Code) | | |
createCoreException | public static CoreException createCoreException(String message, Exception ex)(Code) | | Creates a CoreException with the given parameters.
Parameters: message - a string with the message Parameters: ex - the exception to be wrapped or null if none a CoreException |
getDeprecationEntry | public static String getDeprecationEntry(String name)(Code) | | Returns the name of the deprecations zip entry for the specified file.
Parameters: name - the name of the file the name of the deprecations zip entry since: 3.2 |
getMainClassName | static String getMainClassName(JarPackageData jarPackage)(Code) | | Gets the name of the manifest's main class
a string with the name |
getMetaEntry | public static String getMetaEntry()(Code) | | Returns the name of the meta entry.
the name of the meta entry since: 3.2 |
getRefactoringsEntry | public static String getRefactoringsEntry()(Code) | | Returns the name of the refactorings zip entry.
the name of the refactorings zip entry since: 3.2 |
isMainClassValid | public static boolean isMainClassValid(JarPackageData data, IRunnableContext context)(Code) | | Tells whether the specified manifest main class is valid.
true if a main class is specified and valid |
|
|