DZone Forums
Go Back   DZone Forums > Community > Tools & IDEs > Eclipse
Reload this Page Hiding a editor programmatically in eclipse rcp
Notices
Reply
 
LinkBack Thread Tools Display Modes
  (#1 (permalink)) Old
Member
 
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Jul 2008
Post Hiding a editor programmatically in eclipse rcp - 07-10-2008, 10:46 AM

Hi,

I am new to this forum,
facing a problem in hiding a editor,
i have tried in this way

IEditorReference[] editors = page.getEditorReferences();
if(editors!=null){
for (IEditorReference reference : editors) {
if (!(reference.getId().equals("MyEditorID")) {
IEditorPart editorPart = reference.getEditor(false);
if(editorPart.isDirty()){
page.closeEditor(editorPart, true);
}else{
page.closeEditor(editorPart, false);
}
}
}
I don't want to close the editor, is there any way to hide the editor ?
please help ...

Thanks in Advance
Manoj Gautam
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create a java project programmatically during run time ? pratibha Eclipse 2 05-22-2009 05:35 PM
Integrating GMF editor with a custom Eclipse Forms editor llednicki Eclipse 0 12-21-2008 04:43 AM
Programmatically maximize/restore a view in Eclipse and Eclipse WIndow khewuwei Eclipse 0 11-27-2008 08:32 PM
hiding default preferences kerspe Eclipse 0 09-01-2008 03:57 AM
JSP Editor for Eclipse? ramesh_manian Java 1 06-24-2008 08:27 AM


Copyright 1997-2009, DZone, Inc.
vBulletin Skin developed by: vBStyles.com