I followed
https://www.umlet.com/faq.htm instruction to put com.umlet.plugin to put com.umlet.plugin-14.4.0.jar under dropins folder. And the plugin only works properly for Eclipse/CDT version; not for Eclipse/Java; neither Eclipse/Committers. However for Eclipse/CDT
version, I got the following exception:
com.umlet.plugin : null
java.lang.NullPointerException
at com.baselet.diagram.io.EclipseOpenFile.createClass(EclipseOpenFile.java:89)
at com.baselet.diagram.io.DiagramFileHandler.generateAClass(DiagramFileHandler.java:644)
at com.baselet.diagram.io.DiagramFileHandler.generateCPPSrc(DiagramFileHandler.java:548)
at com.baselet.diagram.DiagramHandler.generateCPPSrc(DiagramHandler.java:500)
at com.baselet.gui.menu.MenuFactory$1.run(MenuFactory.java:248)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
from this code snippet:
IWorkbench workbench = PlatformUI.getWorkbench();
NewClassCreationWizard wizard = new NewClassCreationWizard();
wizard.init(workbench, (IStructuredSelection)workbench.getActiveWorkbenchWindow().getSelectionService().getSelection());
// Exception from here
wizard.addPages();
NewClassCreationWizardPage page = (NewClassCreationWizardPage) wizard.getStartingPage();
try {
if (page != null) page.createClass(null);
else JOptionPane.showMessageDialog( null, "null page");
} catch (Exception e) {
JOptionPane.showMessageDialog( null, "createClass Exception");
}
My question is whether and how I should configure Eclipse to add com.umlet.plugin information?
Thanks.
Sent from
Mail for Windows 10