Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » CVS and Context Menus
CVS and Context Menus [message #290409] Thu, 25 August 2005 08:36 Go to next message
Eclipse UserFriend
Originally posted by: dan.nicolici.nexource.ro

This is a multi-part message in MIME format.

------=_NextPart_000_01CD_01C5A969.2F697DB0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

How can I get rid of CVS menu items (Team, Compare With, Replace With) =
in the editor's context menu? I do not add them in the =
"ContextMenuProvider#buildContextMenu(IMenuManager menu)" method. It =
seems that the CVS plugin is doing that. Is there a way of =
programatically take them out?

Thanx
------=_NextPart_000_01CD_01C5A969.2F697DB0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1106" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>How can I get rid of CVS menu items =
(Team, Compare=20
With, Replace With)&nbsp;in the editor's context menu? I do not add them =
in the=20
"ContextMenuProvider#buildContextMenu(IMenuManager menu)" method. It =
seems that=20
the CVS plugin is doing that. Is there a way of programatically take =
them=20
out?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanx</FONT></DIV></BODY></HTML>

------=_NextPart_000_01CD_01C5A969.2F697DB0--
Re: CVS and Context Menus [message #290418 is a reply to message #290409] Thu, 25 August 2005 10:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

Don't include the CVS plugin?
Re: CVS and Context Menus [message #290422 is a reply to message #290418] Thu, 25 August 2005 12:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dan.nicolici.nexource.ro

Can't do that! I do not control the client's eclipse. Besides, isn't this a
little intrusive from the CVS plugin's creators?
....still opened to sugestions

Thanx, anyway

"Alex Blewitt" <automatic@javalobby.org> wrote in message
news:29178799.1124967150026.JavaMail.root@cp1.javalobby.org...
> Don't include the CVS plugin?
Re: CVS and Context Menus [message #290430 is a reply to message #290422] Thu, 25 August 2005 13:39 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Michael_Valenta.oti.com

Are you sure it is the CVS menus that are appearing. The menus you mention
are actually contributed by the Team infrastructure and they will only
appear if other plugins contribute actions to them. For instance the Compare
plugin contributes some local history operations (compare, replace) and an
Apply Patch operation. The CVS menu items will only appear in these
categories if the project is mapped to CVS.

In ether case, menus are there because the Team, Compare and CVS plugins
contributes actions to file or any objects that adapt to files. This allows
views like the Navigator and Package Explorer to show the Team menus. In
3.1, this mechanism was added to the text framework as well. Bascially, if
your editor input is a FileEditorInput, the Team menus will appear. You can
get ride of
the menus by setting the includeEditorInput to false in the call to
IEditorPart#registerContextMenu but this will get ride of other useful menu
items such as Save. I guess you could add the save explicitly if you didn't
like the default menus you are given by the workbench.

Is there a particular reason you don't want the menus? It seems to me that
having the ability to compare the contents of your editor with its local
history is useful. Also, once the project is shared with a repository, the
ability to commit or compare right from the editor without digging for the
file in a viewer somewhere is definitly useful.

Michael

"Dan Nicolici" <dan.nicolici@nexource.ro> wrote in message
news:dekdvp$kum$1@news.eclipse.org...
> Can't do that! I do not control the client's eclipse. Besides, isn't this
> a
> little intrusive from the CVS plugin's creators?
> ...still opened to sugestions
>
> Thanx, anyway
>
> "Alex Blewitt" <automatic@javalobby.org> wrote in message
> news:29178799.1124967150026.JavaMail.root@cp1.javalobby.org...
>> Don't include the CVS plugin?
>
>
Re: CVS and Context Menus [message #290469 is a reply to message #290430] Thu, 25 August 2005 16:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: douglas.pollock.magma.ca

Michael Valenta wrote:
> the menus by setting the includeEditorInput to false in the call to
> IEditorPart#registerContextMenu but this will get ride of other useful
> menu items such as Save. I guess you could add the save explicitly if you
> didn't like the default menus you are given by the workbench.

Are you sure about "Save"? The ones I'm aware of are the "Run/Debug/Profile
As..." and the Team/Replace With/Compare sub menus. I didn't realize there
were any others that are relying on this behaviour.



d.
Re: CVS and Context Menus [message #290534 is a reply to message #290430] Fri, 26 August 2005 06:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dan.nicolici.nexource.ro

Number one: I am sorry for the mistake I made regarding the plugin (thought
it was CVS).

Number two: Thank you for your advices.

Number three: I am not sure what to do ... :)

Thanx
Re: CVS and Context Menus [message #290566 is a reply to message #290534] Fri, 26 August 2005 13:12 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Michael_Valenta.oti.com

Dan,

If I were you, I would leave the menus there. They provide some useful
functionality (local history and repository operations for shared projects).
As I said before, your other option is to not register the menu with the
IEditorSite or indicated that you do not want the editor input included when
determining object contributions. Have a look at the IEditorSite interface
for more information.

Michael

"Dan Nicolici" <dan.nicolici@nexource.ro> wrote in message
news:demdg7$4np$1@news.eclipse.org...
> Number one: I am sorry for the mistake I made regarding the plugin
> (thought
> it was CVS).
>
> Number two: Thank you for your advices.
>
> Number three: I am not sure what to do ... :)
>
> Thanx
>
>
Re: CVS and Context Menus [message #290568 is a reply to message #290469] Fri, 26 August 2005 13:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Michael_Valenta.oti.com

You may be right. I was just playing around with an example and had to turn
off the editor input contributions. In the example the Save is missing but
that may be due to other reasons.

Michael

"Douglas Pollock" <douglas.pollock@magma.ca> wrote in message
news:dekrnd$api$1@news.eclipse.org...
> Michael Valenta wrote:
>> the menus by setting the includeEditorInput to false in the call to
>> IEditorPart#registerContextMenu but this will get ride of other useful
>> menu items such as Save. I guess you could add the save explicitly if you
>> didn't like the default menus you are given by the workbench.
>
> Are you sure about "Save"? The ones I'm aware of are the
> "Run/Debug/Profile
> As..." and the Team/Replace With/Compare sub menus. I didn't realize
> there
> were any others that are relying on this behaviour.
>
>
>
> d.
>
Re: CVS and Context Menus [message #290637 is a reply to message #290566] Mon, 29 August 2005 07:18 Go to previous message
Eclipse UserFriend
Originally posted by: dan.nicolici.nexource.ro

Thank you Michael!


"Michael Valenta" <Michael_Valenta@oti.com> wrote in message
news:den4fp$2o7$1@news.eclipse.org...
> Dan,
>
> If I were you, I would leave the menus there. They provide some useful
> functionality (local history and repository operations for shared
projects).
> As I said before, your other option is to not register the menu with the
> IEditorSite or indicated that you do not want the editor input included
when
> determining object contributions. Have a look at the IEditorSite interface
> for more information.
>
> Michael
>
> "Dan Nicolici" <dan.nicolici@nexource.ro> wrote in message
> news:demdg7$4np$1@news.eclipse.org...
> > Number one: I am sorry for the mistake I made regarding the plugin
> > (thought
> > it was CVS).
> >
> > Number two: Thank you for your advices.
> >
> > Number three: I am not sure what to do ... :)
> >
> > Thanx
> >
> >
>
>
Previous Topic:Building Eclipse Plugins with Maven
Next Topic:Properties / Categories question
Goto Forum:
  


Current Time: Thu Apr 25 16:56:22 GMT 2024

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

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

Back to the top