Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Show a view as a 'detached view' by code ?
Show a view as a 'detached view' by code ? [message #437150] Thu, 22 September 2005 21:29 Go to next message
Stephane  fournier is currently offline Stephane fournierFriend
Messages: 340
Registered: July 2009
Senior Member
Does anyone have any idea to achieve that ?

Stephane.
Re: Show a view as a 'detached view' by code ? [message #437218 is a reply to message #437150] Fri, 23 September 2005 12:05 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Stéphane Fournier wrote:
> Does anyone have any idea to achieve that ?
>
> Stephane.

Do a google search: site:dev.eclipse.org news.eclipse detached view

http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/m sg07130.html

Later,
PW


Re: Show a view as a 'detached view' by code ? [message #437228 is a reply to message #437218] Fri, 23 September 2005 16:25 Go to previous messageGo to next message
Ben Brown is currently offline Ben BrownFriend
Messages: 23
Registered: July 2009
Junior Member
Yeah this question turns up often, turns out the patch won't work for
various reasons, mainly the DetachedWindow class no longer extends
Window. I'm still working on trying to create a new patch, things do
not look promising at this point though.

Paul Webster wrote:
> Stéphane Fournier wrote:
>
>> Does anyone have any idea to achieve that ?
>>
>> Stephane.
>
>
> Do a google search: site:dev.eclipse.org news.eclipse detached view
>
> http://dev.eclipse.org/newslists/news.eclipse.platform.rcp/m sg07130.html
>
> Later,
> PW
Re: Show a view as a 'detached view' by code ? [message #437229 is a reply to message #437228] Fri, 23 September 2005 17:03 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

I know it's not API and doesn't help with actually setting up a layout,
but there is a way to do it for specific releases of Eclipse
programatically (once eclipse is up and running).

WorkbenchPage page = WorkbenchPage)window.getActivePage();
page.detachView(IViewReference)

It's an internal method, so there's no gaurantee that it'll stay in that
class or form, but it works.

Later,
PW


Re: Show a view as a 'detached view' by code ? [message #437230 is a reply to message #437229] Sat, 24 September 2005 08:56 Go to previous messageGo to next message
Stephane  fournier is currently offline Stephane fournierFriend
Messages: 340
Registered: July 2009
Senior Member
Thanks for the tip but it could not work with 3.1 or 3.2M1 due to
restrictions access on the required library
org.eclipse.ui.workbench_3.2.0.jar .

Do you know if a public API will be offered in 3.2 to figure out that
issue ?

Stephane.

Paul Webster wrote:
> I know it's not API and doesn't help with actually setting up a layout,
> but there is a way to do it for specific releases of Eclipse
> programatically (once eclipse is up and running).
>
> WorkbenchPage page = WorkbenchPage)window.getActivePage();
> page.detachView(IViewReference)
>
> It's an internal method, so there's no gaurantee that it'll stay in that
> class or form, but it works.
>
> Later,
> PW
Re: Show a view as a 'detached view' by code ? [message #437261 is a reply to message #437230] Mon, 26 September 2005 12:39 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Stéphane Fournier wrote:
> Thanks for the tip but it could not work with 3.1 or 3.2M1 due to
> restrictions access on the required library
> org.eclipse.ui.workbench_3.2.0.jar .

It's true that those APIs are restricted, but unless you activate some
kind of strict compliance, it won't prevent you from doing stuff.

>
> Do you know if a public API will be offered in 3.2 to figure out that
> issue ?

My guess is no, monitor https://bugs.eclipse.org/bugs/show_bug.cgi?id=70050

PW


Re: Show a view as a 'detached view' by code ? [message #437273 is a reply to message #437261] Mon, 26 September 2005 19:31 Go to previous messageGo to next message
Stephane  fournier is currently offline Stephane fournierFriend
Messages: 340
Registered: July 2009
Senior Member
I assume that I should alter the MANIFET.MF for the Wrokbench Plugin ?

Stephane

Paul Webster wrote:
> Stéphane Fournier wrote:
>
>> Thanks for the tip but it could not work with 3.1 or 3.2M1 due to
>> restrictions access on the required library
>> org.eclipse.ui.workbench_3.2.0.jar .
>
>
> It's true that those APIs are restricted, but unless you activate some
> kind of strict compliance, it won't prevent you from doing stuff.
>
>>
>> Do you know if a public API will be offered in 3.2 to figure out that
>> issue ?
>
>
> My guess is no, monitor https://bugs.eclipse.org/bugs/show_bug.cgi?id=70050
>
> PW
Re: Show a view as a 'detached view' by code ? [message #437323 is a reply to message #437273] Tue, 27 September 2005 13:01 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Stéphane Fournier wrote:
> I assume that I should alter the MANIFET.MF for the Wrokbench Plugin ?

I don't believe so ... it should be giving discouraged access warnings,
but there's nothing that prevents it from compiling or running (unless
you somehow activate strict compliance).

Later,
PW


Re: Show a view as a 'detached view' by code ? [message #437524 is a reply to message #437229] Thu, 29 September 2005 15:38 Go to previous messageGo to next message
Ben Brown is currently offline Ben BrownFriend
Messages: 23
Registered: July 2009
Junior Member
Thanks Paul,

You don't also happen to know if there is a way to position and resize
the view after detaching using this methodology do you?

--Ben

Paul Webster wrote:
> I know it's not API and doesn't help with actually setting up a layout,
> but there is a way to do it for specific releases of Eclipse
> programatically (once eclipse is up and running).
>
> WorkbenchPage page = WorkbenchPage)window.getActivePage();
> page.detachView(IViewReference)
>
> It's an internal method, so there's no gaurantee that it'll stay in that
> class or form, but it works.
>
> Later,
> PW
Re: Show a view as a 'detached view' by code ? [message #437530 is a reply to message #437524] Thu, 29 September 2005 16:29 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Ben Brown wrote:
> Thanks Paul,
>
> You don't also happen to know if there is a way to position and resize
> the view after detaching using this methodology do you?
>
> --Ben

I don't remember seeing anything ... maybe you can get ahold of it's
detached window shell and resize and move that.

Later,
PW


Re: Show a view as a 'detached view' by code ? [message #437736 is a reply to message #437323] Mon, 03 October 2005 17:35 Go to previous messageGo to next message
Stephane  fournier is currently offline Stephane fournierFriend
Messages: 340
Registered: July 2009
Senior Member
I do not have customized Eclipse. I am running Eclipse/RCP 3.2M2 win32
with JRE_1.5.0-04.
When I am lauching the RCP app, it warns me there are errors... Indeed,
when running I got exceptions...

ErrorLog :
java.lang.Error: Unresolved compilation problems:
Discouraged access: The type WorkbenchPage is not accessible due to
restriction on required library
C:\outils\sdk\3.2M1\eclipse\plugins\org.eclipse.ui.workbench _3.2.0.jar
Discouraged access: The type WorkbenchPage is not accessible due to
restriction on required library
C:\outils\sdk\3.2M1\eclipse\plugins\org.eclipse.ui.workbench _3.2.0.jar
Discouraged access: The type WorkbenchPage is not accessible due to
restriction on required library
C:\outils\sdk\3.2M1\eclipse\plugins\org.eclipse.ui.workbench _3.2.0.jar


The discouraged access are not warnings but errors into the ErrorLog
Any idea to turn off strict compliance ?
Stephane.

Paul Webster wrote:
> Stéphane Fournier wrote:
>
>> I assume that I should alter the MANIFET.MF for the Wrokbench Plugin ?
>
>
> I don't believe so ... it should be giving discouraged access warnings,
> but there's nothing that prevents it from compiling or running (unless
> you somehow activate strict compliance).
>
> Later,
> PW
Re: Show a view as a 'detached view' by code ? [message #437739 is a reply to message #437736] Mon, 03 October 2005 19:25 Go to previous message
Stephane  fournier is currently offline Stephane fournierFriend
Messages: 340
Registered: July 2009
Senior Member
Ok I figured out my problem with quick fix and configuring acces rules !!!


Stéphane Fournier wrote:
> I do not have customized Eclipse. I am running Eclipse/RCP 3.2M2 win32
> with JRE_1.5.0-04.
> When I am lauching the RCP app, it warns me there are errors... Indeed,
> when running I got exceptions...
>
> ErrorLog :
> java.lang.Error: Unresolved compilation problems:
> Discouraged access: The type WorkbenchPage is not accessible due to
> restriction on required library
> C:\outils\sdk\3.2M1\eclipse\plugins\org.eclipse.ui.workbench _3.2.0.jar
> Discouraged access: The type WorkbenchPage is not accessible due to
> restriction on required library
> C:\outils\sdk\3.2M1\eclipse\plugins\org.eclipse.ui.workbench _3.2.0.jar
> Discouraged access: The type WorkbenchPage is not accessible due to
> restriction on required library
> C:\outils\sdk\3.2M1\eclipse\plugins\org.eclipse.ui.workbench _3.2.0.jar
>
>
> The discouraged access are not warnings but errors into the ErrorLog
> Any idea to turn off strict compliance ?
> Stephane.
>
> Paul Webster wrote:
>
>> Stéphane Fournier wrote:
>>
>>> I assume that I should alter the MANIFET.MF for the Wrokbench Plugin ?
>>
>>
>>
>> I don't believe so ... it should be giving discouraged access
>> warnings, but there's nothing that prevents it from compiling or
>> running (unless you somehow activate strict compliance).
>>
>> Later,
>> PW
Previous Topic:RCP Text Example under 3.1?
Next Topic:Several questions to be asked.
Goto Forum:
  


Current Time: Sun Dec 08 23:04:08 GMT 2024

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

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

Back to the top