| Summary: | a piece of code is working when launched from plugin.xml but not working when it is exported as product | ||
|---|---|---|---|
| Product: | [Eclipse Project] PDE | Reporter: | Ramana <chramans_mymail> |
| Component: | UI | Assignee: | PDE-UI-Inbox <pde-ui-inbox> |
| Status: | RESOLVED INVALID | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | curtis.windatt.public |
| Version: | 4.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | other | ||
| Whiteboard: | |||
I don't think you are describing a bug in PDE. For help in developing, please try the Eclipse forums at www.eclipse.org/forums/ If your code runs when launched from Eclipse but not when exported, you likely have an issue in your product definition. Your plug-in is not being included or started. Look closely at what your product file is including and ensure all required plug-ins are included. In addition to exporting a product, you can also run it from within Eclipse which will set up a launch configuration. If your code does not run when launched this way, it is very likely you have not set up your dependencies correctly in the .product file. Closing as INVALID. Until more information is provided, this does not appear to be a bug in PDE. |
Build Identifier: I have a problem with eclipse plugin development which is stopping me to further proceed. i have a code which parses the xml and formats it with neat indent with the help of the classes DocumentBuilderFactory, DocumentBuilder etc; the code works perfectly when i launch the UI from plugin.xml(Launch an Eclipse Application). but when i export the plugin application to make it a product using .product file, it is not formatting the xml. when i debugged the code, i found the statement db.parse(is) is not at all executed. but the same is working when i lanched from plugin.xml. i am using com.ibm.ws.runtime_6.1.0.jar , com.ibm.ws.admin.client_6.1.0.jar and ibm-jaxrpc-client.jar for calling webservice in another code of the same application...just to give info. this is the code im using where in db.parse(is) is giving me the problem. please help me over here ASAP. private Document parseXmlFile(String in) { try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder(); InputSource is = new InputSource(new StringReader(in)); return db.parse(is); } catch (ParserConfigurationException e) { throw new RuntimeException(e); } catch (SAXException e) { throw new RuntimeException(e); } catch (IOException e) { e.printStackTrace(); } return null; } Reproducible: Always