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
Hello.

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.
JM.D
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)

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.platform.doc.isv/guide/workbench.htm


Previous Topic:Heeelp! How to define a command group for "Customize Perspective..."->"Command Gr
Next Topic:IFileEditorInput cannot be resolved to a type
Goto Forum:
  


Current Time: Sun Nov 23 18:59:18 GMT 2014

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

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