Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to disable a feature programatically?
How to disable a feature programatically? [message #294247] Mon, 07 November 2005 20:30
Bert Hyman is currently offline Bert HymanFriend
Messages: 75
Registered: July 2009
Member
I tried this:

IPlatformConfiguration platformConfiguration =
ConfiguratorUtils.getCurrentPlatformConfiguration();

IPlatformConfiguration.IFeatureEntry fe =
platformConfiguration.findConfiguredFeatureEntry("feature.id ");

platformConfiguration.unconfigureFeatureEntry(fe);

platformConfiguration.save();

OperationsManager.applyChangesNow();
and/or
PlatformUI.getWorkbench().restart();

The feature is marked as disabled in "Manage Configuration", but it's
still active.

--
Bert Hyman | Unisys - Roseville MN
bert.hyman@unisys.com | (651) 635-7791 | net2: 524-7791
Previous Topic:Forms <li> and one word items
Next Topic:Text selection with columns instead of lines
Goto Forum:
  


Current Time: Sat Jul 20 23:33:04 GMT 2024

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

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

Back to the top