Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Programmatically add an extension to a plug-in
Programmatically add an extension to a plug-in [message #604348] Sun, 24 January 2010 16:28 Go to next message
Steve is currently offline SteveFriend
Messages: 16
Registered: July 2009
Junior Member
Hi,
I need to programmatically add an extension to a plug-in project. This is part of the code I am using:


IPluginModelBase model = PluginRegistry.findModel(project);
IPluginExtension extension = createExtension(model, info.getExtensionPointId(),true);
IPluginElement element = model.getPluginFactory().createElement(extension);
element.setName(info.getName());


The element.setName() call is throwing an exception because the model is not editable. How do I create an editable model or is there a better way to add an extension?

Thanks,
Steve
Re: Programmatically add an extension to a plug-in [message #604370 is a reply to message #604348] Mon, 25 January 2010 16:42 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
Registered: July 2009
Location: York, United Kingdom
Senior Member
Hi Steve,

Did you figure out how to do this? I'm trying to do the same.

Best,
Louis.
Re: Programmatically add an extension to a plug-in [message #901476 is a reply to message #604370] Sun, 12 August 2012 21:48 Go to previous message
Stefan Missing name is currently offline Stefan Missing nameFriend
Messages: 4
Registered: July 2011
Junior Member
hi, did you Wink ?

(->msg_901475)

[Updated on: Sun, 12 August 2012 21:50]

Report message to a moderator

Previous Topic:Modify indent of tree elements
Next Topic:How to make a type work for the run mode?
Goto Forum:
  


Current Time: Fri Apr 19 22:18:58 GMT 2024

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

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

Back to the top