Unable to create 'ResourceSetImpl' instance in Eclipse 3.4.1 [message #627312] |
Tue, 06 January 2009 08:30 |
|
I have just started working on an UML project after studying the article
"Getting Started with UML2" from the following URL:
http://www.eclipse.org/modeling/mdt/uml2/docs/articles/Getti ng_Started_with_UML2/article.html
I have followed all steps given in this article, and its working except
these lines:
------------------------------------------------------------ ----------------
URI uri =
URI.createURI("file:///C:").appendSegment("Try-ExtendedPO2-Activity").appendFileExtension(UMLResource.FILE_EXTENSION);
save(model, uri);
------------------------------------------------------------ ----------------
protected static void save(org.eclipse.uml2.uml.Package package_, URI uri)
{
Resource resource = new ResourceSetImpl().createResource(uri);
resource.getContents().add(package_);
----------------
----------------
----------------
}
------------------------------------------------------------ ----------------
But the line "new ResourceSetImpl().createResource(uri);"
always returns a null object, even if the uri object is proper.
I am unable to understand the problem b'coz I have installed all required
plugins as given in article. (Also ResourceSetImpl class is also present
into workspace of eclipse 3.4.1)
Please tell me the cause of my problem.
Thanks in advance.
Kishore
Regards,
Kishore
|
|
|
Powered by
FUDForum. Page generated in 0.04588 seconds