Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Stop editors reopening
Stop editors reopening [message #271620] Tue, 16 June 2009 13:38 Go to next message
Rob is currently offline RobFriend
Messages: 27
Registered: July 2009
Junior Member
Hi,

I have defined a couple of new editors for my plugin. If I open these
editors, and then close eclipse, when I restart eclipse, it tries to
reopen the same editors. (perspective layout is being saved).
Is there anyway to stop this happening - only for the editors i have
defined in my plugin? I'd still like the perspective saved (i.e. view
locations etc).

Any help appreciated.
Thanks!
Re: Stop editors reopening [message #271622 is a reply to message #271620] Tue, 16 June 2009 13:44 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Rob wrote:
> Hi,
>
> I have defined a couple of new editors for my plugin. If I open these
> editors, and then close eclipse, when I restart eclipse, it tries to
> reopen the same editors. (perspective layout is being saved).
> Is there anyway to stop this happening - only for the editors i have
> defined in my plugin? I'd still like the perspective saved (i.e. view
> locations etc).
Do you only want this for your editors or for all?

Dani
>
> Any help appreciated.
> Thanks!
>
Re: Stop editors reopening [message #271624 is a reply to message #271622] Tue, 16 June 2009 14:42 Go to previous messageGo to next message
Rob is currently offline RobFriend
Messages: 27
Registered: July 2009
Junior Member
Hi,

I only want this for the new editor types I have defined in my plugin.
Thanks!

Daniel Megert wrote:

> Rob wrote:
>> Hi,
>>
>> I have defined a couple of new editors for my plugin. If I open these
>> editors, and then close eclipse, when I restart eclipse, it tries to
>> reopen the same editors. (perspective layout is being saved).
>> Is there anyway to stop this happening - only for the editors i have
>> defined in my plugin? I'd still like the perspective saved (i.e. view
>> locations etc).
> Do you only want this for your editors or for all?

> Dani
>>
>> Any help appreciated.
>> Thanks!
>>
Re: Stop editors reopening [message #271650 is a reply to message #271624] Wed, 17 June 2009 15:41 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Rob wrote:
> Hi,
>
> I only want this for the new editor types I have defined in my plugin.
The easiest way is to use your own editor input implementation which
returns null for org.eclipse.ui.IEditorInput.getPersistable().

Dani
> Thanks!
>
> Daniel Megert wrote:
>
>> Rob wrote:
>>> Hi,
>>>
>>> I have defined a couple of new editors for my plugin. If I open
>>> these editors, and then close eclipse, when I restart eclipse, it
>>> tries to reopen the same editors. (perspective layout is being saved).
>>> Is there anyway to stop this happening - only for the editors i have
>>> defined in my plugin? I'd still like the perspective saved (i.e.
>>> view locations etc).
>> Do you only want this for your editors or for all?
>
>> Dani
>>>
>>> Any help appreciated.
>>> Thanks!
>>>
>
>
Re: Stop editors reopening [message #271655 is a reply to message #271650] Thu, 18 June 2009 09:26 Go to previous message
Rob is currently offline RobFriend
Messages: 27
Registered: July 2009
Junior Member
That worked great - thanks Daniel
Rob

Daniel Megert wrote:

> Rob wrote:
>> Hi,
>>
>> I only want this for the new editor types I have defined in my plugin.
> The easiest way is to use your own editor input implementation which
> returns null for org.eclipse.ui.IEditorInput.getPersistable().

> Dani
>> Thanks!
>>
>> Daniel Megert wrote:
>>
>>> Rob wrote:
>>>> Hi,
>>>>
>>>> I have defined a couple of new editors for my plugin. If I open
>>>> these editors, and then close eclipse, when I restart eclipse, it
>>>> tries to reopen the same editors. (perspective layout is being saved).
>>>> Is there anyway to stop this happening - only for the editors i have
>>>> defined in my plugin? I'd still like the perspective saved (i.e.
>>>> view locations etc).
>>> Do you only want this for your editors or for all?
>>
>>> Dani
>>>>
>>>> Any help appreciated.
>>>> Thanks!
>>>>
>>
>>
Previous Topic:File outside of application
Next Topic:Do I have to install wtp, pdt, ...
Goto Forum:
  


Current Time: Tue Apr 23 16:50:31 GMT 2024

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

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

Back to the top