Skip to main content



      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 06:13 Go to next message
Eclipse UserFriend
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 08:28 Go to previous messageGo to next message
Eclipse UserFriend
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 08:49 Go to previous message
Eclipse UserFriend
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: Sat Aug 30 11:22:20 EDT 2025

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

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

Back to the top