Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Unable to create 'ResourceSetImpl' instance in Eclipse 3.4.1
Unable to create 'ResourceSetImpl' instance in Eclipse 3.4.1 [message #627312] Tue, 06 January 2009 08:30
Kishore Kushwaha is currently offline Kishore KushwahaFriend
Messages: 36
Registered: July 2009
Location: Lucknow, India
Member

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
Previous Topic:Reusing package-element in UML Metamodel extension
Next Topic:Memory leak in uml2 ?
Goto Forum:
  


Current Time: Fri Mar 29 09:43:01 GMT 2024

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

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

Back to the top