Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Disable a contributed Activity
Disable a contributed Activity [message #336446] Fri, 12 June 2009 09:19 Go to next message
Eclipse UserFriend
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 10:44 Go to previous message
Eclipse UserFriend
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: Mon Apr 28 02:53:01 EDT 2025

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

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

Back to the top