Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Switch off remembering last opened editor
Switch off remembering last opened editor [message #326964] Thu, 03 April 2008 17:42 Go to next message
Wishwas Mohan is currently offline Wishwas MohanFriend
Messages: 38
Registered: July 2009
Member
Hello,

I have a problem with the opening of editors. I have two editors. One just
on just an object while the other is basically an editor which shows the
differences between two selected objects.

The problem I have is when I select two objects and open it with the
Diffing editor, The diffing editor is associated with that object. The
next time I double click on a single object, It tries to open the diffing
editor since the last open the diffing editor. I will have to again open
the actual editor using "open with" context menu. But, I want the basic
editor to open every time I double click and the diffing editor should
open only when I seect two objects and use "Open with" context menu.

Can someone let me know if I can switch off Eclipse's feature of
remembering the lsat opened editor on the object.I guess this could solve
my problem.

Thanks in advance,
Wishwas.
Re: Switch off remembering last opened editor [message #326984 is a reply to message #326964] Thu, 03 April 2008 20:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Wishwas wrote:
> Hello,
>
> I have a problem with the opening of editors. I have two editors. One
> just on just an object while the other is basically an editor which
> shows the differences between two selected objects.
> The problem I have is when I select two objects and open it with the
> Diffing editor, The diffing editor is associated with that object. The
> next time I double click on a single object, It tries to open the
> diffing editor since the last open the diffing editor. I will have to
> again open the actual editor using "open with" context menu. But, I want
> the basic editor to open every time I double click and the diffing
> editor should open only when I seect two objects and use "Open with"
> context menu.
>
> Can someone let me know if I can switch off Eclipse's feature of
> remembering the lsat opened editor on the object.I guess this could
> solve my problem.

No, there is no way to do it right now. I requested such a feature
almost a year ago, but it has received no attention:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=184747
Perhaps if you add your own comments and/or vote for that bug, it might
get fixed in 3.4.x or 3.5...
:-(

Eric
Re: Switch off remembering last opened editor [message #327007 is a reply to message #326964] Fri, 04 April 2008 13:23 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

What kind of editor input do you use for your diffing editor? A
CompareEditorInput returns null for getPersistable(), so if you are
already using that it won't help.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Re: Switch off remembering last opened editor [message #327017 is a reply to message #327007] Fri, 04 April 2008 18:09 Go to previous messageGo to next message
Wishwas Mohan is currently offline Wishwas MohanFriend
Messages: 38
Registered: July 2009
Member
It is a FileEditorInput.

Paul Webster wrote:

> What kind of editor input do you use for your diffing editor? A
> CompareEditorInput returns null for getPersistable(), so if you are
> already using that it won't help.

> PW
Re: Switch off remembering last opened editor [message #327018 is a reply to message #326984] Fri, 04 April 2008 18:27 Go to previous message
Wishwas Mohan is currently offline Wishwas MohanFriend
Messages: 38
Registered: July 2009
Member
Voted for. Let us wait and see.

Eric Rizzo wrote:

> Wishwas wrote:
>> Hello,
>>
>> I have a problem with the opening of editors. I have two editors. One
>> just on just an object while the other is basically an editor which
>> shows the differences between two selected objects.
>> The problem I have is when I select two objects and open it with the
>> Diffing editor, The diffing editor is associated with that object. The
>> next time I double click on a single object, It tries to open the
>> diffing editor since the last open the diffing editor. I will have to
>> again open the actual editor using "open with" context menu. But, I want
>> the basic editor to open every time I double click and the diffing
>> editor should open only when I seect two objects and use "Open with"
>> context menu.
>>
>> Can someone let me know if I can switch off Eclipse's feature of
>> remembering the lsat opened editor on the object.I guess this could
>> solve my problem.

> No, there is no way to do it right now. I requested such a feature
> almost a year ago, but it has received no attention:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=184747
> Perhaps if you add your own comments and/or vote for that bug, it might
> get fixed in 3.4.x or 3.5...
> :-(

> Eric
Previous Topic:Putting the Eclipse platform to work
Next Topic:Re: Size information fdrom IFile
Goto Forum:
  


Current Time: Wed Jul 17 12:15:55 GMT 2024

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

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

Back to the top