Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to remove "X" button -- on only 1 editor?
How to remove "X" button -- on only 1 editor? [message #298611] Wed, 01 February 2006 12:03 Go to next message
Eclipse UserFriend
Originally posted by: eric.widhalm.ftc.usda.gov

I have an editor area with several editor instances. However, one of them
is particularly special in that I can't allow it to be closed -- I want to
remove the "X" button from its tab, but leave the button on all the other
editor tabs.

My understanding is that a PresentationFactory is for the whole Page, not
just one particular editor, right? If so, how can I achieve my goal? If
not, how can I make it specific to just the one editor?
Re: How to remove "X" button -- on only 1 editor? [message #298640 is a reply to message #298611] Wed, 01 February 2006 18:24 Go to previous message
Eclipse UserFriend
Originally posted by: automatic.javalobby.org

I'm not sure that you can (or should) do this. Depending on what you are looking for, you might like to hook up a listener to detect that if a window is closed that the editor is re-opened. Alternatively, you could see what happens when an editor is dirty (has changes) and the close button happens; I think a return result of IStatus.CANCEL will be used somewhere to prevent the editor from closing; you could just replicate that.

As for getting rid of the close button; I think that's going to be next to impossible without some serious hacking.

Alex.
Previous Topic:Launch Configuration takes plugins classpath
Next Topic:Admisistration and Management of Eclipse Installations
Goto Forum:
  


Current Time: Tue Jul 15 22:27:19 EDT 2025

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

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

Back to the top