create package in a eclipse plugin [message #625547] |
Mon, 19 November 2007 16:09 |
kevin Messages: 22 Registered: July 2009 |
Junior Member |
|
|
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.
|
|
|
Powered by
FUDForum. Page generated in 0.03503 seconds