Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Swing JDesktopPane/JInternalFrame conunterpart in SWT??
Swing JDesktopPane/JInternalFrame conunterpart in SWT?? [message #436328] Tue, 18 May 2004 07:38 Go to next message
Eclipse UserFriend
Originally posted by: Mikle_Galutin.gmx.de

Hallo, All


Is anyone know how to achieve Swing JDesktopPane/JInternalFrame
functionality in SWT/JFace? Only similar i have found is IWorkbenchPage.
But it is not clear how (if it actually possible) to use it in
standalone application.

I will be appreciated for hints.

Thanks in advance,

Mikhail Galyutin.
Re: Swing JDesktopPane/JInternalFrame conunterpart in SWT?? [message #436371 is a reply to message #436328] Tue, 18 May 2004 07:52 Go to previous messageGo to next message
Henning Rogge is currently offline Henning RoggeFriend
Messages: 148
Registered: July 2009
Senior Member
Mikhail Galyutin wrote:
> Hallo, All
>
>
> Is anyone know how to achieve Swing JDesktopPane/JInternalFrame
> functionality in SWT/JFace? Only similar i have found is IWorkbenchPage.
> But it is not clear how (if it actually possible) to use it in
> standalone application.

Just use the rich client platform ( RCP ) of Eclipse, you can use the
view/editor system like the standard IDE too.

Henning Rogge
Re: Swing JDesktopPane/JInternalFrame conunterpart in SWT?? [message #436406 is a reply to message #436328] Tue, 18 May 2004 17:17 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 30
Registered: July 2009
Member
I believe MDI is supposed to show up in SWT at some point.

In the meantime, if you're happy limiting yourself to Windows platforms
you can use my implementation of MDI:

http://www.eadfrith.org/swt

Cheers,

Alun


Mikhail Galyutin wrote:

> Hallo, All


> Is anyone know how to achieve Swing JDesktopPane/JInternalFrame
> functionality in SWT/JFace? Only similar i have found is IWorkbenchPage.
> But it is not clear how (if it actually possible) to use it in
> standalone application.

> I will be appreciated for hints.

> Thanks in advance,

> Mikhail Galyutin.
Re: Swing JDesktopPane/JInternalFrame conunterpart in SWT?? [message #436462 is a reply to message #436406] Wed, 19 May 2004 06:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Mikle_Galutin.gmx.de

Hi,

Great library. Unfortunately, I do not plan to limit supported
platforms. Anyway, thanks a lot.

Alun wrote:
> I believe MDI is supposed to show up in SWT at some point.
>
> In the meantime, if you're happy limiting yourself to Windows platforms
> you can use my implementation of MDI:
>
> http://www.eadfrith.org/swt
>
> Cheers,
>
> Alun
>
>
> Mikhail Galyutin wrote:
>
>
>>Hallo, All
>
>
>
>>Is anyone know how to achieve Swing JDesktopPane/JInternalFrame
>>functionality in SWT/JFace? Only similar i have found is IWorkbenchPage.
>>But it is not clear how (if it actually possible) to use it in
>>standalone application.
>
>
>>I will be appreciated for hints.
>
>
>>Thanks in advance,
>
>
>>Mikhail Galyutin.
>
>
>
Re: Swing JDesktopPane/JInternalFrame conunterpart in SWT?? [message #436463 is a reply to message #436371] Wed, 19 May 2004 06:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Mikle_Galutin.gmx.de

Thank you for your answer.

RCP is a great thing, but it forces to use eclipse runtime model.
In my case that means a lot of redesign.

Anyway, thanks for the tip.


Mikhail.

Henning Rogge wrote:

> Mikhail Galyutin wrote:
>
>> Hallo, All
>>
>>
>> Is anyone know how to achieve Swing JDesktopPane/JInternalFrame
>> functionality in SWT/JFace? Only similar i have found is IWorkbenchPage.
>> But it is not clear how (if it actually possible) to use it in
>> standalone application.
>
>
> Just use the rich client platform ( RCP ) of Eclipse, you can use the
> view/editor system like the standard IDE too.
>
> Henning Rogge
Re: Swing JDesktopPane/JInternalFrame conunterpart in SWT?? [message #436464 is a reply to message #436463] Wed, 19 May 2004 06:39 Go to previous messageGo to next message
Henning Rogge is currently offline Henning RoggeFriend
Messages: 148
Registered: July 2009
Senior Member
Mikhail Galyutin wrote:
> Thank you for your answer.
>
> RCP is a great thing, but it forces to use eclipse runtime model.
> In my case that means a lot of redesign.

You could forget the eclipse plugin model and start your application
from the WorkbenchAdvisor... that way you have an eclipse framework in
the background and don't need to make your application compatible to the
plugin model. Maybe this could be a sollution for you.

Henning Rogge.
Re: Swing JDesktopPane/JInternalFrame conunterpart in SWT?? [message #436467 is a reply to message #436464] Wed, 19 May 2004 07:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Mikle_Galutin.gmx.de

Henning Rogge wrote:

> Mikhail Galyutin wrote:
>
>> Thank you for your answer.
>>
>> RCP is a great thing, but it forces to use eclipse runtime model.
>> In my case that means a lot of redesign.
>
>
> You could forget the eclipse plugin model and start your application
> from the WorkbenchAdvisor... that way you have an eclipse framework in
> the background and don't need to make your application compatible to the
> plugin model. Maybe this could be a sollution for you.
>
> Henning Rogge.

I am not shure I know what you mean.

How can I start WorkbenchAdvisor? What have I put in static void main,
or have I still to use org.eclipse.core.launcher.Main?

Thanks,

Mikhail.
Re: Swing JDesktopPane/JInternalFrame conunterpart in SWT?? [message #436552 is a reply to message #436328] Wed, 19 May 2004 09:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Mikle_Galutin.gmx.de

Hi,

I think I have found a solution: CTabFilder and CTabFolderListener.

If you are listening on itemClosed, then the Close button will be
displayed on a tab. This is exactly mechanism EditorWorkbook uses for
visualisation.

Many thanks to Alun and Henning Rogge for replays.

Mikhail
Re: Swing JDesktopPane/JInternalFrame conunterpart in SWT?? [message #436580 is a reply to message #436467] Wed, 19 May 2004 18:36 Go to previous message
Henning Rogge is currently offline Henning RoggeFriend
Messages: 148
Registered: July 2009
Senior Member
Mikhail Galyutin wrote:

>> You could forget the eclipse plugin model and start your application
>> from the WorkbenchAdvisor... that way you have an eclipse framework in
>> the background and don't need to make your application compatible to
>> the plugin model. Maybe this could be a sollution for you.
>>
>> Henning Rogge.
> I am not shure I know what you mean.
>
> How can I start WorkbenchAdvisor? What have I put in static void main,
> or have I still to use org.eclipse.core.launcher.Main?

You could use the eclipse.exe file ( with a modified config.ini ).

Instead of your mstatic void main, your programm would contain:

public class ClientApplication implements IPlatformRunnable {
public Object run(Object args) {
WorkbenchAdvisor workbenchAdvisor = new ClientWorkbenchAdvisor();
Display display = PlatformUI.createDisplay();
int returnCode = PlatformUI.createAndRunWorkbench(display,
workbenchAdvisor);

display.dispose();
if (returnCode == PlatformUI.RETURN_RESTART) {
return IPlatformRunnable.EXIT_RESTART;
}
else {
return IPlatformRunnable.EXIT_OK;
}
}
}

The run method you choose in config.ini is called by the eclipse.exe
starter, you create your own ClientWorkbenchAdvisor and start the
platform with it ( and your main task if necessary ).

Henning Rogge.
Previous Topic:problems displaying a treeitem
Next Topic:Status of CTabFolder ?
Goto Forum:
  


Current Time: Sat Apr 20 02:18:52 GMT 2024

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

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

Back to the top