Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Eclipse complains my plugin null
  • From: Ming Cheng <chengm349@xxxxxxxxxxx>
  • Date: Fri, 7 Feb 2020 04:13:02 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=D37cceCc5i1jT0AxeDdqGZR4CGWcmmk39DYewfMezfk=; b=M6pguaVk3eKq0NOYpU0OoDbZsmcibSq7ygBCqVrWW45mwo2n9e5wV9TvjsvBtd4lHFeE/i1sSHIQT5AkJ/GGCW7gu9DP6JayAP+1EkRTUpQ2QWXiYJDy0R5Z0H6nFw4SlghbxLG/kCRzSjbmtfl9hr3bc8Wh3BpW4iY26zy/HlCvr6d5cSkHxOE1K1rOr/UGUW0OWsA8Sov6fbLZESc8Mi+NVTyIf2LDZ1JyTphnwMQ5htfDvay+OrF0IdMSe8rTpEeJZL1tY7g59TtHtx/gLwnFjjmvm4YkntvLRAsB4npxsmdIKKOtNsyRXBcw0YwDPyAoOqfs9dzPdRyuFBHhLw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aXwfxlVOJgVo2l9D+cwbX/ks3mgMwke1ZaokNU1Dm87ou8wXw8S5PL41m9+YDQl0pnqCQteRLeugZ+8LZhAAc0HKW0Bjj17cuGvb85h06/ag2YjnBh3d2bOXTuL10xuSwvItW+mvfYE7uUTVUlFMd/pUxIoWwpJ+7Qnxdl9QpUEU2HjePjCkrpNgIVhIqPp25cisbcAAVSwehK3oNwGIUilnjDTiIkB1cIHLDuQyktakaR/gZk/NEFb+lzmTyqIUncVys3Ds4VerMTD1rDvGr5uWqwmPsGtCcGS3JGZacZuTl//13G4WSJjRfj5SR2n/qQtlQukmi9rNzRpm/Xo+2A==
  • Delivered-to: cdt-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cdt-dev>
  • List-help: <mailto:cdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHV3I2RpfCSKDFIXU+W5RfVSqWUNqgPICEh
  • Thread-topic: Eclipse complains my plugin null

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: Ming Cheng
Sent: Thursday, February 6, 2020 10:23 AM
To: cdt-dev@xxxxxxxxxxx
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

 

 


Back to the top