Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » How to get an editable IPluginModelBase?
How to get an editable IPluginModelBase? [message #605770] Wed, 12 May 2010 12:32
David BY Chan is currently offline David BY ChanFriend
Messages: 40
Registered: July 2009
Member
Hi, gurus, I encountered a problem which cost me a lot of time, but I
can't get any tips.

I wrote a plugin to help plugin development. This plugin injects plugin
library (that is jar files) from maven repository.

I can get a plugin model through the invocation like below:

IPluginModelBase model =
PDECore.getDefault().getModelManager().findModel(project);

and then use it to create a library:

IPluginLibrary library = model.getPluginFactory().createLibrary();

When I set the library's name, an exception was thrown. Because the
whole library is readonly. I can only use it to query info but I can't
write something back.

Thanks!

David
Previous Topic:How to get an editable IPluginModelBase?
Next Topic:"Access Restriction" - Is this a PDE bug?
Goto Forum:
  


Current Time: Wed Apr 24 22:52:58 GMT 2024

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

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

Back to the top