Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » how to extend main menu bar action of eclipse
how to extend main menu bar action of eclipse [message #896154] Tue, 17 July 2012 12:29 Go to next message
Srikrishna Bera is currently offline Srikrishna Bera
Messages: 2
Registered: July 2012
Location: Bangalore
Junior Member
I would like handle the openInNewWindow or OpenInNewEditor action when a user selects WindoW->New Window or Window-> new Editor from main menuBar of Eclipse Runtime. I mean I want to create my own customized action class by extending some of the actions from main menubar. Please suggest how to do this.
Re: how to extend main menu bar action of eclipse [message #896168 is a reply to message #896154] Tue, 17 July 2012 13:38 Go to previous message
Joseph Carroll is currently offline Joseph Carroll
Messages: 174
Registered: May 2012
Location: Milwaukee, WI
Senior Member

If you are utilizing an editor in 3.x, most of that plumbing already exists. Take a look at some of Lars' tutorials and the wiki documentation.

A good place to start is:
http://www.vogella.com/articles/EclipseEditors/article.html
-or-
http://www.vogella.com/articles/Eclipse3RCP/article.html

Again if you are within 3.x, the method you will need to focus on is doSave(). When you create your editor by extending from EditorPart, you will need to override this method.
Previous Topic:shared install: private plug-ins not showing up
Next Topic:Save Button in RCP Product
Goto Forum:
  


Current Time: Mon Sep 15 02:13:55 GMT 2014

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

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