Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Dialog based application?
Dialog based application? [message #515935] Mon, 22 February 2010 09:47 Go to next message
ulrichsg  is currently offline ulrichsg
Messages: 5
Registered: February 2010
Junior Member
Hello all,

I am currently working on my first RCP project. However, the requirements I'm supposed to meet seem not quite to fit the offerings of RCP, so I am experiencing some difficulties.

I'm supposed to create a small dialog-based application which should be usable both as a separate program and as a plug-in for other RCP applications. (In the separate case, though, it should ideally look like just another dialog box spawned by the program that called it, which will most probably be a Windows application using MFC.)

Here's what I'm wondering about right now, and I'd be grateful for some advice:

1. When running as a separate program, I want to have just the dialog - no workbench window (at least not visible). Can I do this by setting its initial size to (0, 0) in the window advisor? Or is there a better way after all?

2. What would be the best way to open the dialog automatically on startup? The advisor's postWindowOpen() method?

3. How can I programmatically terminate the application?

4. I need to allow the passing of data to my program (eg. a filename). I know how to do this via command-line arguments, which is fine for the separate program case, but how do I do it for a plug-in?

By the way, if you think that Eclipse RCP is the wrong tool for this job after all, so do I... but it's a company policy that all Java applications should use it. Rolling Eyes

Thanks in advance,
Ulrich
Re: Dialog based application? [message #516011 is a reply to message #515935] Mon, 22 February 2010 13:32 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

If it's a dialog, what about focusing on JFace+SWT (instead of full
RCP)? JFace+SWT(+3 other jars) would allow you to launch a dialog from
a java program.

To add it to as a plugin to an existing RCP app, simply include it as a
command that will launch the dialog. Or is that not sufficient?

For a more complex option you can write a "container" that generates all
of your content. Use the container in your JFace+SWT to get dialog
only, and host the container in a view when added to your RCP app.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Dialog based application? [message #534055 is a reply to message #516011] Mon, 17 May 2010 19:58 Go to previous messageGo to next message
Laurie Williams is currently offline Laurie Williams
Messages: 2
Registered: May 2010
Junior Member
I have the same issue as this initial post and have a couple of followup questions:

1) You wrote:
If it's a dialog, what about focusing on JFace+SWT (instead of full
RCP)? JFace+SWT(+3 other jars) would allow you to launch a dialog from
a java program.


The advantage I see to using RCP is the packaging. This builds an executable that can be shipped. If I don't use RCP then I would need to determine how to build a deployable executable. Not impossible just curious if this a good use for RCP.

2) You wrote:
For a more complex option you can write a "container" that generates all
of your content. Use the container in your JFace+SWT to get dialog
only, and host the container in a view when added to your RCP app.


Can you elaborate on this some more and any known example of writing a container? I am stuck on how to launch my dialog from a view when I just want the dialog shown and not the workbench.
Re: Dialog based application? [message #534244 is a reply to message #534055] Tue, 18 May 2010 12:55 Go to previous messageGo to next message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

This is a multi-part message in MIME format.
--------------050205000605010904010007
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

laurieaw@us.ibm.com wrote:
> I have the same issue as this initial post and have a couple of followup
> questions:
>
> 1) You wrote:
> If it's a dialog, what about focusing on JFace+SWT (instead of full
> RCP)? JFace+SWT(+3 other jars) would allow you to launch a dialog from
> a java program.
>
> The advantage I see to using RCP is the packaging. This builds an
> executable that can be shipped. If I don't use RCP then I would need to
> determine how to build a deployable executable. Not impossible just
> curious if this a good use for RCP.

It depends on the cost you are willing to pay. If you don't need to run
the workbench, an RCP app that includes JFace, SWT, and enough of the
core.runtime to run includes 14 plugins, and runs almost 6 Meg. A Java
app including SWT+JFace and the few other bundles they need is about 3.5
Meg.

> 2) You wrote:
> For a more complex option you can write a "container" that generates all
> of your content. Use the container in your JFace+SWT to get dialog
> only, and host the container in a view when added to your RCP app.
>
> Can you elaborate on this some more and any known example of writing a
> container? I am stuck on how to launch my dialog from a view when I just
> want the dialog shown and not the workbench.

It depends. I've attached a small RCP app that only launches a dialog
and then exits.

It's not clear what requirements you are trying to satisfy. Isn't an
app that's a dialog basically an app with one window, one perspective,
and one view? Why would you want to launch an SWT dialog over an
Workbench Window with one view in it? Or is it that you'd like to have
a JFace dialog that you could launch from a minimal RCP app as well as
by command from an eclipse based IDE?

As for the container reference, by that I just mean creating a class,
MyContents, that takes the parent composite and whatever else is needed
to create contents on that composite.

Then MyContents could be instantiated in a JFace dialog or in the
createPartControl(*) of a view easily.

Later,
PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


--------------050205000605010904010007
Content-Type: application/zip;
name="dialogProj.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="dialogProj.zip"

UEsDBBQACAAIANdCsjwAAAAAAAAAAAAAAAAWAAAAei5leC5kaWFsb2cvLmNs YXNzcGF0aJWQ
wWoCMRCGz/UpltydrZfiYVcpZQsV1KJbryUmwzptOomTROrb60KlRWiht/mH bz5+ppp+frji
gBLJc61GcKsKZOMtcVerl/ZxOFbTyaAyTscYdNpNBjffATnJsXgntrUynlXR L2vlpQM0jkJE
eLMJnM5sdmcjzFbN68Ny0d4/LZpVec0RJxTWDixucweZvi5RYJ00Wy12M2+P AcuZPuh1MxzB
nSr/2yhYBOMFQXCfSdA+u9wRxz9MUczF1I+/gz6nkNOF3RL3bFX++N4JUEsH CElK+7bOAAAA
cQEAAFBLAwQUAAgACADXQrI8AAAAAAAAAAAAAAAAFAAAAHouZXguZGlhbG9n Ly5wcm9qZWN0
vZJBSwMxEIXP9leUvZvorYd0C7Z4U4TqD4jJmKYkk5BkS+mvd3Y3LW5FEARv 7715kw+SiNXR
u/kBUrYBl809u2vmgCpoi2bZvL0+3i6aVTsTMYU9qLKBrJKNhcrt7Eag9NCe G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ze9QjgEAAMEDAAAqAAAAAAAAAAAAAAAAAHMPAAB6 LmV4LmRpYWxv
Zy9zcmMvei9leC9kaWFsb2cvQWN0aXZhdG9yLmphdmFQSwECFAAUAAgACAD9 Q7I82N0RXhcB
AAA8AgAALAAAAAAAAAAAAAAAAABZEQAAei5leC5kaWFsb2cvc3JjL3ovZXgv ZGlhbG9nL0Fw
cGxpY2F0aW9uLmphdmFQSwECFAAUAAgACACTQ7I8Q4S9lv0AAAAiAgAAKQAA AAAAAAAAAAAA
AADKEgAAei5leC5kaWFsb2cvc3JjL3ovZXgvZGlhbG9nL015RGlhbG9nLmph dmFQSwUGAAAA
AA0ADQAdBAAAHhQAAAAA
--------------050205000605010904010007--


Re: Dialog based application? [message #534256 is a reply to message #515935] Tue, 18 May 2010 13:47 Go to previous messageGo to next message
Laurie Williams is currently offline Laurie Williams
Messages: 2
Registered: May 2010
Junior Member
I misspoke, I am really trying to launch a wizard packaged as a RCP. This wizard would initially just be a standalone application. And in a later release could be launched from a menu or command. I was hoping to use the WizardDialog class to navigate the wizard. I do not know how to use that with RCP.

Perhaps I am approaching this wrong. If I don't use RCP then I need to build my own packaging. I really want this application to be shipped as binary. Otherwise I will be inclined to wrapper the wizard in a script and will then need to get approval to ship additional jars.

FYI I cannot get your attached example.
Re: Dialog based application? [message #534284 is a reply to message #534256] Tue, 18 May 2010 14:56 Go to previous message
Paul Webster is currently offline Paul Webster
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

laurieaw@us.ibm.com wrote:
> I misspoke, I am really trying to launch a wizard packaged as a RCP.
> This wizard would initially just be a standalone application. And in a
> later release could be launched from a menu or command. I was hoping to
> use the WizardDialog class to navigate the wizard. I do not know how to
> use that with RCP.

You can use a similar approach that I used for a JFace dialog to launch
a JFace wizard as well. You have to use the JFace interfaces and
abstract classes but it can show up.

This could then be included in an RCP app, but ... it won't be
integrated with the Eclipse Wizards (new, import, export). At that time
you might have to rework your wizard so that you can contribute parts of
it to the correct wizard (new, import, or export) while in the larger
RCP app but in your small RCP app you can write your implementation to
use the same classes. I'm not really sure how much work that would be,
however.

Later,
PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Previous Topic:Initialize Action and View simultaneously
Next Topic:Setting the classpath for Java scripting engine
Goto Forum:
  


Current Time: Fri Oct 31 08:36:25 GMT 2014

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

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