Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Close editor via button?
Close editor via button? [message #478431] Thu, 06 August 2009 09:48 Go to next message
Bastian is currently offline BastianFriend
Messages: 7
Registered: July 2009
Junior Member
Hello at all,
I got an Editor view (IEditorPart).
On this editor I want to implement a "Close" button, which performs the
same action, like clicking on the "X" on the editor tab.

I cannot find the method call to perform this.

Thanks for any advice,

Bastian
Re: Close editor via button? [message #478582 is a reply to message #478431] Thu, 06 August 2009 10:39 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
Bastian wrote:
> I got an Editor view (IEditorPart).
> On this editor I want to implement a "Close" button, which performs the
> same action, like clicking on the "X" on the editor tab.

IWorkbenchPage.closeEditor(...)

- Prakash
---
http://blog.eclipse-tips.com
Re: Close editor via button? [message #478704 is a reply to message #478582] Thu, 06 August 2009 13:11 Go to previous message
Bastian is currently offline BastianFriend
Messages: 7
Registered: July 2009
Junior Member
Thanks alot.
I am not used yet with the SWT style of delegating actions from a child to
a parent which executest these actions on the child.
Previous Topic:Creating A Table From Linked-objects
Next Topic:auto resize GridData
Goto Forum:
  


Current Time: Thu Apr 18 02:10:43 GMT 2024

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

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

Back to the top