Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Hooks into the Synchronize View Context Menu
Hooks into the Synchronize View Context Menu [message #95642] Thu, 17 July 2003 07:58 Go to next message
Eclipse UserFriend
Does anyone know offhand if there are any extension points or hooks into
the context menu in the Team Synchronize View? I want to add my cvs
graph plugin capability into that view. There is apparently no
popupmenu extension defined in plugin.xml for the view. Admittedly, I
have not spent a lot of time looking through the source code for this
yet. I was hoping someone might have already done this and know how to
proceed, or that one of the eclipse developers monitoring the list might
reveal the "secret"? ;-)

jeff

--
Jeffrey Bonevich
Ann Arbor, Michigan
bonevich at covad dot net
jeff at bonevich dot com
http://www.bonevich.com

"Make me a fire and I'm warm for a night. Set me
on fire and I'm warm for the rest of my life."
- Ancient Didactical Saying
Re: Hooks into the Synchronize View Context Menu [message #95749 is a reply to message #95642] Thu, 17 July 2003 10:16 Go to previous messageGo to next message
Eclipse UserFriend
You need to look at the source for CVS sync view.
Classes imp to you are CVSSyncCompareInput and CVSCatchupReleaseViewer.
CatchupReleaseViewer has a
protected void fillContextMenu(IMenuManager mgr)

{

}

which u need to overide to contribute ur own context menu actions.

HTH, Balaji


"Jeffrey Bonevich" <jeff@bonevich.com> wrote in message
news:bf63am$nn1$1@eclipse.org...
> Does anyone know offhand if there are any extension points or hooks into
> the context menu in the Team Synchronize View? I want to add my cvs
> graph plugin capability into that view. There is apparently no
> popupmenu extension defined in plugin.xml for the view. Admittedly, I
> have not spent a lot of time looking through the source code for this
> yet. I was hoping someone might have already done this and know how to
> proceed, or that one of the eclipse developers monitoring the list might
> reveal the "secret"? ;-)
>
> jeff
>
> --
> Jeffrey Bonevich
> Ann Arbor, Michigan
> bonevich at covad dot net
> jeff at bonevich dot com
> http://www.bonevich.com
>
> "Make me a fire and I'm warm for a night. Set me
> on fire and I'm warm for the rest of my life."
> - Ancient Didactical Saying
>
Re: Hooks into the Synchronize View Context Menu [message #96116 is a reply to message #95749] Fri, 18 July 2003 00:06 Go to previous messageGo to next message
Eclipse UserFriend
Right. I see where I can hook in to CVSCatchupReleaseViewer. But in
order to use my own subclass of it, do I have to provide the entire
hierarchy of classes back to SyncAction and, in essence, provide my own
action, view, etc.? I guess I am not clear what I can use to hook my
own context menu subclass into the existing framework.

I see that in org.eclipse.team.cvs.ui plugin there is a subscriber
extension-point that might be handy to hook in. Am I on the right track?

Thanx!

jeff

Balaji wrote:
> You need to look at the source for CVS sync view.
> Classes imp to you are CVSSyncCompareInput and CVSCatchupReleaseViewer.
> CatchupReleaseViewer has a
> protected void fillContextMenu(IMenuManager mgr)
>
> {
>
> }
>
> which u need to overide to contribute ur own context menu actions.
>
> HTH, Balaji
>
>
> "Jeffrey Bonevich" <jeff@bonevich.com> wrote in message
> news:bf63am$nn1$1@eclipse.org...
>
>>Does anyone know offhand if there are any extension points or hooks into
>>the context menu in the Team Synchronize View? I want to add my cvs
>>graph plugin capability into that view. There is apparently no
>>popupmenu extension defined in plugin.xml for the view. Admittedly, I
>>have not spent a lot of time looking through the source code for this
>>yet. I was hoping someone might have already done this and know how to
>>proceed, or that one of the eclipse developers monitoring the list might
>>reveal the "secret"? ;-)
>>
>>jeff
>>
>>--
>>Jeffrey Bonevich
>>Ann Arbor, Michigan
>>bonevich at covad dot net
>>jeff at bonevich dot com
>>http://www.bonevich.com
>>
>>"Make me a fire and I'm warm for a night. Set me
>>on fire and I'm warm for the rest of my life."
>>- Ancient Didactical Saying
>>
>
>
>

--
Jeffrey Bonevich
Ann Arbor, Michigan
bonevich at covad dot net
jeff at bonevich dot com
http://www.bonevich.com

"Make me a fire and I'm warm for a night. Set me
on fire and I'm warm for the rest of my life."
- Ancient Didactical Saying
Re: Hooks into the Synchronize View Context Menu [message #96420 is a reply to message #95749] Fri, 18 July 2003 08:20 Go to previous messageGo to next message
Eclipse UserFriend
Right. I see where I can hook in to CVSCatchupReleaseViewer. But in
order to use my own subclass of it, do I have to provide the entire
hierarchy of classes back to SyncAction and, in essence, provide my own
action, view, etc.? I guess I am not clear what I can use to hook my
own context menu subclass into the existing framework.

I see that in org.eclipse.team.cvs.ui plugin there is a subscriber
extension-point that might be handy to hook in. Am I on the right track?

Thanx!

jeff

Balaji wrote:
> You need to look at the source for CVS sync view.
> Classes imp to you are CVSSyncCompareInput and CVSCatchupReleaseViewer.
> CatchupReleaseViewer has a
> protected void fillContextMenu(IMenuManager mgr)
>
> {
>
> }
>
> which u need to overide to contribute ur own context menu actions.
>
> HTH, Balaji
>
>
> "Jeffrey Bonevich" <jeff@bonevich.com> wrote in message
> news:bf63am$nn1$1@eclipse.org...
>
>>Does anyone know offhand if there are any extension points or hooks into
>>the context menu in the Team Synchronize View? I want to add my cvs
>>graph plugin capability into that view. There is apparently no
>>popupmenu extension defined in plugin.xml for the view. Admittedly, I
>>have not spent a lot of time looking through the source code for this
>>yet. I was hoping someone might have already done this and know how to
>>proceed, or that one of the eclipse developers monitoring the list might
>>reveal the "secret"? ;-)
>>
>>jeff
>>
>>--
>>Jeffrey Bonevich
>>Ann Arbor, Michigan
>>bonevich at covad dot net
>>jeff at bonevich dot com
>>http://www.bonevich.com
>>
>>"Make me a fire and I'm warm for a night. Set me
>>on fire and I'm warm for the rest of my life."
>>- Ancient Didactical Saying
>>
>
>
>

--
Jeffrey Bonevich
Ann Arbor, Michigan
bonevich at covad dot net
jeff at bonevich dot com
http://www.bonevich.com

"Make me a fire and I'm warm for a night. Set me
on fire and I'm warm for the rest of my life."
- Ancient Didactical Saying
Re: Hooks into the Synchronize View Context Menu [message #96799 is a reply to message #96116] Fri, 18 July 2003 15:06 Go to previous message
Eclipse UserFriend
My experience with Synchronize view is not related to CVS. I created my own
synchronize view.

This is what I would do:
1. Subclass CVSSyncCompareInput. Override
public Viewer createDiffViewer(Composite parent)

to create your own CatchupReleaseViewer (the one that extends
CVSCatchupReleaseViewer).

Finally u need to call your method when CVS Synchronize action is called. (I
have no idea how u would accomplish this task)

Maybe some CVS folks can provide you with more inputs on extension points
provided by CVS plug-in. (Note: I have not looked at CVS code so I don't
know what CVS provides)

HTH, Balaji


"Jeffrey Bonevich" <jeff@bonevich.com> wrote in message
news:3F177250.60506@bonevich.com...
> Right. I see where I can hook in to CVSCatchupReleaseViewer. But in
> order to use my own subclass of it, do I have to provide the entire
> hierarchy of classes back to SyncAction and, in essence, provide my own
> action, view, etc.? I guess I am not clear what I can use to hook my
> own context menu subclass into the existing framework.
>
> I see that in org.eclipse.team.cvs.ui plugin there is a subscriber
> extension-point that might be handy to hook in. Am I on the right track?
>
> Thanx!
>
> jeff
>
> Balaji wrote:
> > You need to look at the source for CVS sync view.
> > Classes imp to you are CVSSyncCompareInput and CVSCatchupReleaseViewer.
> > CatchupReleaseViewer has a
> > protected void fillContextMenu(IMenuManager mgr)
> >
> > {
> >
> > }
> >
> > which u need to overide to contribute ur own context menu actions.
> >
> > HTH, Balaji
> >
> >
> > "Jeffrey Bonevich" <jeff@bonevich.com> wrote in message
> > news:bf63am$nn1$1@eclipse.org...
> >
> >>Does anyone know offhand if there are any extension points or hooks into
> >>the context menu in the Team Synchronize View? I want to add my cvs
> >>graph plugin capability into that view. There is apparently no
> >>popupmenu extension defined in plugin.xml for the view. Admittedly, I
> >>have not spent a lot of time looking through the source code for this
> >>yet. I was hoping someone might have already done this and know how to
> >>proceed, or that one of the eclipse developers monitoring the list might
> >>reveal the "secret"? ;-)
> >>
> >>jeff
> >>
> >>--
> >>Jeffrey Bonevich
> >>Ann Arbor, Michigan
> >>bonevich at covad dot net
> >>jeff at bonevich dot com
> >>http://www.bonevich.com
> >>
> >>"Make me a fire and I'm warm for a night. Set me
> >>on fire and I'm warm for the rest of my life."
> >>- Ancient Didactical Saying
> >>
> >
> >
> >
>
> --
> Jeffrey Bonevich
> Ann Arbor, Michigan
> bonevich at covad dot net
> jeff at bonevich dot com
> http://www.bonevich.com
>
> "Make me a fire and I'm warm for a night. Set me
> on fire and I'm warm for the rest of my life."
> - Ancient Didactical Saying
>
Previous Topic:EditorContributors
Next Topic:How to trap the Save Event?
Goto Forum:
  


Current Time: Fri May 09 15:00:46 EDT 2025

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

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

Back to the top