Bug 14531 Unable to use JarPackager headless
Beginning with the 04/23 Integration build, I am unable to utilize the JarPackager in a headless environment. Specifically, I have defined my own Ant tasks which perform operations including jar packaging. The problem is in JarFileExportOperation.getDirtyEditors(Shell parent). Is it possible to accept null for parent and have the method just return an empty array?
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarFileExportOperation.java
}
	protected void saveFiles() {
		
		if (fJarPackage.isManifestGenerated() && fJarPackage.isManifestSaved()) {
			try {
				saveManifest();
			} catch (CoreException ex) {
				addError(JarPackagerMessages.getString("JarFileExportOperation.errorSavingManifest"), ex); 
			} catch (IOException ex) {
				addError(JarPackagerMessages.getString("JarFileExportOperation.errorSavingManifest"), ex); 
			}
		}
		
		
		if (fJarPackage.isDescriptionSaved()) {
			try {
				saveDescription();
			} catch (CoreException ex) {
				addError(JarPackagerMessages.getString("JarFileExportOperation.errorSavingDescription"), ex); 
			} catch (IOException ex) {
				addError(JarPackagerMessages.getString("JarFileExportOperation.errorSavingDescription"), ex); 
			}
		}
	}
	private IEditorPart[] getDirtyEditors(Shell parent) {
		Display display= parent.getDisplay();
		final Object[] result= new Object[1];
		display.syncExec(
			new Runnable() {
				public void run() {