Discussion:
actionSet available in Team menu for specific vcs
mikael
2012-01-10 14:07:02 UTC
Permalink
Hi,

I am developing an open source Eclipse clearcase plugin.
People work with different vcs in the same workspace like cvs, svn and clearcase ...
And a point I got was from a svn user that got his Team menu cluttered with clearcase command when working with svn repos.

I have read the article about it:

http://www.eclipse.org/articles/article.php?file=Article-action-contribution/index.html

that recommended this:

http://www.eclipse.org/articles/using-perspectives/PerspectiveArticle.html#Extend%20an%20Existing%20Perspective

So I already have an actionSet with id="net.sourceforge.eclipseccase.ui.actionset" and I tried to extend perspective:

<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension targetID="net.sourceforge.eclipseccase.ui.perspective.ClearCase">
<actionSet id="net.sourceforge.eclipseccase.ui.actionset"/>
</perspectiveExtension>
</extension>

But when I select a svn project I still have my clearcase options in the menu and it does not look nice since it's cluttering for users.

What am I missing to have my actionset for clearcase in only for clearcase repos?

All hints are very much appreciated.

br,

//mike

Ps. Attached file is for cvs but it works the same for svn.

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2907593

To unsubscribe from this discussion, e-mail: [dev-***@subclipse.tigris.org].
Stephen Elsemore
2012-02-01 23:01:47 UTC
Permalink
See Example 3 in the article that you linked to:

http://www.eclipse.org/articles/article.php?file=Article-action-contribution/index.html#example3

The key is to filter based on projectNature. In the example, the filter will cause the contribution to only apply for Java projects:

<filter
name="projectNature"
value="org.eclipse.jdt.core.javanature">
</filter>

In your case, you'll need to figure out the value to use for ClearCase projects.

Steve
-----Original Message-----
Sent: Tuesday, January 10, 2012 6:07 AM
Subject: [Subclipse-dev] actionSet available in Team menu for specific vcs
Hi,
I am developing an open source Eclipse clearcase plugin.
People work with different vcs in the same workspace like cvs, svn and clearcase ...
And a point I got was from a svn user that got his Team menu cluttered with
clearcase command when working with svn repos.
http://www.eclipse.org/articles/article.php?file=Article-action-
contribution/index.html
http://www.eclipse.org/articles/using-
perspectives/PerspectiveArticle.html#Extend%20an%20Existing%20Perspect
ive
So I already have an actionSet with
id="net.sourceforge.eclipseccase.ui.actionset" and I tried to extend
<extension point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="net.sourceforge.eclipseccase.ui.perspective.ClearCase">
<actionSet id="net.sourceforge.eclipseccase.ui.actionset"/>
</perspectiveExtension>
</extension>
But when I select a svn project I still have my clearcase options in the menu
and it does not look nice since it's cluttering for users.
What am I missing to have my actionset for clearcase in only for clearcase repos?
All hints are very much appreciated.
br,
//mike
Ps. Attached file is for cvs but it works the same for svn.
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessag
eId=2907593
To unsubscribe from this discussion, e-mail: [dev-
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1043&dsMessageId=2917035

To unsubscribe from this discussion, e-mail: [dev-***@subclipse.tigris.org].
Loading...