Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Right clicking the Titlebar of the Editor and the X close of the Editor
Right clicking the Titlebar of the Editor and the X close of the Editor [message #444264] Mon, 13 February 2006 11:13 Go to next message
Karthikeyan J is currently offline Karthikeyan JFriend
Messages: 20
Registered: July 2009
Junior Member
while right clicking the title bar of the editor there is a menu called New Editor, which if clicked opens a new editor with the same content. I dont want this to happen in my application. Its better if i can avoid the right click menu.
i also need to remove the x close button of the editor or over ride the save dialog prompted when x close is used.
Re: Right clicking the Titlebar of the Editor and the X close of the Editor [message #444282 is a reply to message #444264] Mon, 13 February 2006 13:28 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

You can't get rid of or remove New Editor or Close from those little
pop-up menus or get rid of the X. That's written in the presentation,
and there are no hooks. You can write your own presentation where you
control tab placement, toolbar placement, if those popup menus are
available, etc, but it can be a lot of work.

If you want to provide a customer "Save" dialog, you can implement the
ISaveablePart2 interface on your editor part.

Later,
PW


Re: Right clicking the Titlebar of the Editor and the X close of the Editor [message #444288 is a reply to message #444264] Mon, 13 February 2006 13:49 Go to previous message
Rohit Khariwal is currently offline Rohit KhariwalFriend
Messages: 114
Registered: July 2009
Senior Member
for disabling the x of view try this

layout.getViewLayout("viewID").setCloseable(false);
Previous Topic:Problems with 3.2 M4
Next Topic:Need advises for multiple RCA sharing plugins
Goto Forum:
  


Current Time: Thu Dec 12 01:46:42 GMT 2024

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

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

Back to the top