Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Disable a contributed Activity
Disable a contributed Activity [message #336446] Fri, 12 June 2009 13:19 Go to next message
Jean-Marie Damas is currently offline Jean-Marie DamasFriend
Messages: 29
Registered: July 2009
Junior Member

I'm building an application above Eclipse Platform (3.4.2) and Subversive
(0.7.8) plugin.

I'm using the "SVN activity" contributed by subversive plugin. This plugin
has defined it as "enabled by default", so when I launch my application,
the GUI is contributed by subversive actions.
I'd like to have "SVN activity" disabled by default, is this possible
without patching the subversive plugin ?

Thank you for your help.
Re: Disable a contributed Activity [message #336448 is a reply to message #336446] Fri, 12 June 2009 14:44 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

I don't believe there is a way to do this declaratively.

Probably the best workaround would be to create a "small" plugin and use
org.eclipse.ui.startup to run some early startup code. Use
org.eclipse.ui.IStartup on a class explicitly, don't depend on the
legacy plugin startup behaviour.

Then in your earlyStartup() method you can programmatically disable the
activity using the IActivityManager (I think).

You can use UIJob to run your job in the UI thread (or asyncExec(*) as
mentioned by the javadoc, but UIJob is preferred)


Paul Webster e.platform.doc.isv/guide/workbench.htm

Previous Topic:How to be notified of an editor being dragged and dropped
Next Topic:IFileEditorInput cannot be resolved to a type
Goto Forum:

Current Time: Sun May 27 21:45:24 GMT 2018

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

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

Back to the top