Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Eclipse complains my plugin null
  • From: Ming Cheng <chengm349@xxxxxxxxxxx>
  • Date: Thu, 6 Feb 2020 02:22:28 +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=Kq8CplWfHQGiRYoKzeZSme0I17oGajwlFXRFjrADUYw=; b=FpBAISVfpspzq+eHdZ52zJYHmyr6kHhhnTPnx6suEYzlAY1OyCsJ5ZJJWDF5uUkFYjpi/gG1qwAQFmpqPMxg2u59YBH02iYKUm5fJ1mYfutJ6tIEzR7CbfEzNxH2PaQrS6aANeerpL5ylBUIYafwd1PWD0LW2BbA772IKntD9b8sIxA6iHi1Z6k40EGZT+UqlxH3x/JuhfQRDLhB3wyc5eoS+3uMGyZGchk69je1FAUZmZjj3Xsp8hcJeekVUEU3jxpxPh6/VUnk74XqCfCxX80x/HoC0TXC747wmwO46L37fPUIdGt+XxIIIEfsHTkiczzFRwdocHLkkJkP9OTvzw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c/TBR1juA99XfUTjvwoYdY+TyJfhfAr0bc/MJtMQDPDKAHh8KbUrpgi6seoAzfTEvteOrlWLvv7zo6upK2+WyU86GoHiy00rYj6AmrvdTcGyA7P3sL2utFl9rzWDdmMUyKTU9KAPWfJz1ruZCYpiEoED8foTDlDJ8+aavcY0TSQNuV+6p9IL2PLQT3l4S9/IR6vzzL7W7H08VvwGGXCdmQTSJk+6yCPDi7wnRnZTBzQTESPRLkaujB3aodXpNC8t5lb3OMg2FRcjpK8uAIl2XP+28cCBuvRHTLhDJCNTZRPEqdo//Q2tfqDVeKx8uxC6c+WkDOK/B9N4zTDNIcjqzQ==
  • 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+W5RfVSqWUNg==
  • Thread-topic: 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