Skip to main content



      Home
Home » Modeling » UML2 » create package in a eclipse plugin
create package in a eclipse plugin [message #625547] Mon, 19 November 2007 11:09
Eclipse UserFriend
Hi,

I'm writing a eclipse plugin,which will create some uml models by using
UML2.

I wrote following code in the plugin and call it

public void run(IAction action)
{
...
// create uml package

org.eclipse.uml2.uml.Package
paket=org.eclipse.uml2.uml.UMLFactory.eINSTANCE.createPackag e();
paket.setName("package");

// export uml model
...
}

The plugin returned without giving any answers or error message to me. So
I set one breakpoints on each line and step into. On the first line, in
which the package should be created, it went to the EventTable and sent
some event to Workbench. Then it went to an exception in the runEventLoop
: "java.lang.NoClassDefFoundError: org/eclipse/uml2/uml/UMLFactory". I
step out and resumed. It stopped on the first line and returned.

The code works very well when I put them in a single main method.

Is there something I've missed? I am new to Plugin.
Previous Topic:Code generated from UML with OCL
Next Topic:how to compare elements belonging to two ResourceSet
Goto Forum:
  


Current Time: Thu Jul 03 20:14:08 EDT 2025

Powered by FUDForum. Page generated in 0.04413 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top