CVS and Context Menus [message #290409] |
Thu, 25 August 2005 04:36  |
Eclipse User |
|
|
|
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) 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> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanx</FONT></DIV></BODY></HTML>
------=_NextPart_000_01CD_01C5A969.2F697DB0--
|
|
|
|
|
Re: CVS and Context Menus [message #290430 is a reply to message #290422] |
Thu, 25 August 2005 09:39   |
Eclipse User |
|
|
|
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 #290637 is a reply to message #290566] |
Mon, 29 August 2005 03:18  |
Eclipse User |
|
|
|
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
> >
> >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04364 seconds