Eclipse complains my plugin null

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Eclipse complains my plugin null

Ming Cheng

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

 


_______________________________________________
cdt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev
Reply | Threaded
Open this post in threaded view
|

Re: Eclipse complains my plugin null

Ming Cheng

Hi All,

 

Hope this issue is not related to low-level AWT/SWT etc programming concept. So may not take too much of your time?

 

Thanks.

 

Sent from Mail for Windows 10

 

From: [hidden email]
Sent: Thursday, February 6, 2020 10:23 AM
To: [hidden email]
Subject: [cdt-dev] Eclipse complains my plugin null

 

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

 

 


_______________________________________________
cdt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev