Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Programmatically adding a plug-in dependency
Programmatically adding a plug-in dependency [message #493431] Mon, 26 October 2009 09:20
Matt R is currently offline Matt RFriend
Messages: 2
Registered: October 2009
Junior Member
I'm trying to programmatically add a plug-in dependency to a plug-in project. I tried the following:

  IPluginModelBase pluginModelBase = PluginRegistry.findModel(project);
  IPluginBase pluginBase = pluginModelBase.getPluginBase();
  IPluginImport newImport = pluginModelBase.getPluginFactory().createImport();
  newImport.setId("x.y.z");
  pluginBase.add(newImport);

However, it complains with an "org.eclipse.core.runtime.CoreException: Illegal attempt to change read-only plug-in manifest model". What's the right way to do this?
Previous Topic:Is it possible to set plugin and feature versions from ant build?
Next Topic:Programmatically adding a plug-in dependency
Goto Forum:
  


Current Time: Sat Apr 20 00:42:01 GMT 2024

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

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

Back to the top