Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Allow only one open editor
Allow only one open editor [message #325844] Thu, 28 February 2008 19:08 Go to next message
Adam Cabler is currently offline Adam CablerFriend
Messages: 113
Registered: July 2009
Senior Member
I am trying to make sure users can't open more than one editor at a
time. I tried doing this in the editor code, but the best I can get is
to fire off an async call to close the other one which has the effect of
temporarily having 2 editors. I was wondering if anyone knows of a
pre_open listener or something I could use for this.

thanks,
adam
Re: Allow only one open editor [message #325848 is a reply to message #325844] Thu, 28 February 2008 21:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

AdamC wrote:
> I am trying to make sure users can't open more than one editor at a
> time. I tried doing this in the editor code, but the best I can get is
> to fire off an async call to close the other one which has the effect of
> temporarily having 2 editors. I was wondering if anyone knows of a
> pre_open listener or something I could use for this.

Which kind of editor? Any arbitrary editor (ie, there is never any more
than 1 editor, regardless of what kind of editor it is)?

Eric
Re: Allow only one open editor [message #325973 is a reply to message #325848] Tue, 04 March 2008 17:03 Go to previous message
Adam Cabler is currently offline Adam CablerFriend
Messages: 113
Registered: July 2009
Senior Member
This is my own editor, not any of the built in ones.

Eric Rizzo wrote:
> AdamC wrote:
>> I am trying to make sure users can't open more than one editor at a
>> time. I tried doing this in the editor code, but the best I can get
>> is to fire off an async call to close the other one which has the
>> effect of temporarily having 2 editors. I was wondering if anyone
>> knows of a pre_open listener or something I could use for this.
>
> Which kind of editor? Any arbitrary editor (ie, there is never any
> more than 1 editor, regardless of what kind of editor it is)?
>
> Eric
Previous Topic:how to add an anttask to an eclipse plugin
Next Topic:Extending Ant View
Goto Forum:
  


Current Time: Thu Jun 27 19:30:50 GMT 2024

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

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

Back to the top