Project: JDT
Bug 38297 [EditorMgmt] Open Jar Packager when double-clicking on .jardesc file
Reported: 2003-05-31 11:24:22 | Status: resolved fixed

I have a file called SillyBean.jardesc in my workspace, that was created by using the Export Jar --> Save Description facility. The content looks like this: <?xml version="1.0" encoding="UTF-8"?> <jardesc> <jar path="/home/markus/SillyBean.jar"/> <options overwrite="true" compress="false" exportErrors="false" exportWarnings="true" saveDescription="true" descriptionLocation="/SillyBean/SillyBean.jardesc" useSourceFolders="false" buildIfNeeded="true"/> <manifest manifestVersion="1.0" usesManifest="true" reuseManifest="false" saveManifest="false" generateManifest="false" manifestLocation="/SillyBean/META-INF/MANIFEST.MF"> <sealing sealJar="false"> <packagesToSeal/> <packagesToUnSeal/> </sealing> </manifest> <selectedElements exportClassFiles="true" exportJavaFiles="false"> <javaElement handleIdentifier="=SillyBean/src"/> </selectedElements> </jardesc> Whenever I try "Open" or "Open In... Jar Description Editor" the file opens in the normal text editor. I cannot edit the description, still it is possible to build the jar by "Create Jar". Seems that wizard cannot read it's own generated xml files in some circumstances. I saw this on Eclipse 2.1 on Windows 2000 and SuSE LINUX 8.2 GTK.

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/JarPackagerMessages.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/OpenJarExportWizardEditorLauncher.java org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/jarpackager/OpenJarPackageWizardActionDelegate.java