How to force editor to foreground? [message #499103] |
Thu, 19 November 2009 20:45 |
Eclipse User |
|
|
|
Originally posted by: yoduderoo.netscape.net
Hi,
In my app, when a user clicks a resource in the common nav, the resource
is opened in an editor. Normal stuff. But if the resource clicked is
already open in an editor, I would like that editor to pop on top of the
editor stack. How can I do that programmatically?
Thanks, y
|
|
|
Re: How to force editor to foreground? [message #499110 is a reply to message #499103] |
Thu, 19 November 2009 21:44 |
|
Hi,
do you mean that you want if the editor come open with the tab at the top left?
You can set an IPartListener2 to listen when editor opened or is broughttotop and you will need to set the tab of your editor where you want in one of these methods but I don't know how.
Hope that it will show you the way ^^
regards,
Aurelien Pupier
Aurélien Pupier - Red Hat
Senior Software Engineer in Fuse Tooling team
|
|
|
Re: How to force editor to foreground? [message #499147 is a reply to message #499110] |
Fri, 20 November 2009 06:50 |
Eclipse User |
|
|
|
Originally posted by: yoduderoo.netscape.net
Thanks but not quite what I am looking for.
I would like to make an editor the active editor (ie, more than one
editor is currently open).
Thanks,y
Aurelien Pupier wrote:
> Hi,
>
> do you mean that you want if the editor come open with the tab at the
> top left?
>
> You can set an IPartListener2 to listen when editor opened or is
> broughttotop and you will need to set the tab of your editor where you
> want in one of these methods but I don't know how.
>
> Hope that it will show you the way ^^
>
> regards,
>
> Aurelien Pupier
|
|
|
Re: How to force editor to foreground? [message #499213 is a reply to message #499147] |
Fri, 20 November 2009 12:53 |
Eclipse User |
|
|
|
Originally posted by: yoduderoo.netscape.net
Found it:
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActi vePage().bringToTop(part);
Yodude wrote:
> Thanks but not quite what I am looking for.
> I would like to make an editor the active editor (ie, more than one
> editor is currently open).
> Thanks,y
>
> Aurelien Pupier wrote:
>> Hi,
>>
>> do you mean that you want if the editor come open with the tab at the
>> top left?
>>
>> You can set an IPartListener2 to listen when editor opened or is
>> broughttotop and you will need to set the tab of your editor where you
>> want in one of these methods but I don't know how.
>>
>> Hope that it will show you the way ^^
>>
>> regards,
>>
>> Aurelien Pupier
|
|
|
|
Powered by
FUDForum. Page generated in 0.01774 seconds