Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » test swt/jface dialog without rcp runtime?
test swt/jface dialog without rcp runtime? [message #334583] Thu, 19 February 2009 03:21 Go to next message
Eclipse UserFriend
Originally posted by: nospam.somewhere.org

I am developing an swt/jface dialog in a rcp plugin. For
developing/testing my need is to start this dialog without the need to
start the whole eclipse application. I simply added a pubic static void
main() to the dialog, but got eclipse runtime problem when starting this
dialog out of the eclipse.
The dialog references classes from another rcp plugin. This plugin
internally uses eclipse/java preferences and throws an exception when
instantiating the preference classes.

Main problem i think is the main method, which doesn't initialize
eclipse runtime. I also reference another plugin (eclipse project), the
classpath is okay, but not the runtime environment.

Question: is there a simple way to initialize eclipse runtime and to
avoid the described problem. My need is a development testing iteration.
The solution should simply work and needs not to be a clean way.

The only alternative i currently see, is to create a new product
configuration. Thats too much effort for simple testing, isn't it?

Any ideas?
Re: test swt/jface dialog without rcp runtime? [message #334585 is a reply to message #334583] Thu, 19 February 2009 05:56 Go to previous messageGo to next message
Prakash G.R. is currently offline Prakash G.R.Friend
Messages: 621
Registered: July 2009
Senior Member
SWT & JFace doesn't need Eclipse runtime. You can have a look at the
snippets which run without Eclipse (as plain Java apps):

http://wiki.eclipse.org/index.php/JFaceSnippets

--

http://blog.eclipse-tips.com
"Ceeper" <nospam@somewhere.org> wrote in message
news:gnij79$gag$1@build.eclipse.org...
>I am developing an swt/jface dialog in a rcp plugin. For developing/testing
>my need is to start this dialog without the need to start the whole eclipse
>application. I simply added a pubic static void main() to the dialog, but
>got eclipse runtime problem when starting this dialog out of the eclipse.
> The dialog references classes from another rcp plugin. This plugin
> internally uses eclipse/java preferences and throws an exception when
> instantiating the preference classes.
>
> Main problem i think is the main method, which doesn't initialize eclipse
> runtime. I also reference another plugin (eclipse project), the classpath
> is okay, but not the runtime environment.
>
> Question: is there a simple way to initialize eclipse runtime and to avoid
> the described problem. My need is a development testing iteration. The
> solution should simply work and needs not to be a clean way.
>
> The only alternative i currently see, is to create a new product
> configuration. Thats too much effort for simple testing, isn't it?
>
> Any ideas?
Re: test swt/jface dialog without rcp runtime? [message #334605 is a reply to message #334583] Fri, 20 February 2009 04:18 Go to previous message
Chris Aniszczyk is currently offline Chris AniszczykFriend
Messages: 674
Registered: July 2009
Senior Member
Ceeper wrote:
> I am developing an swt/jface dialog in a rcp plugin. For
> developing/testing my need is to start this dialog without the need to
> start the whole eclipse application. I simply added a pubic static void
> main() to the dialog, but got eclipse runtime problem when starting this
> dialog out of the eclipse.
> The dialog references classes from another rcp plugin. This plugin
> internally uses eclipse/java preferences and throws an exception when
> instantiating the preference classes.
>
> Main problem i think is the main method, which doesn't initialize
> eclipse runtime. I also reference another plugin (eclipse project), the
> classpath is okay, but not the runtime environment.
>
> Question: is there a simple way to initialize eclipse runtime and to
> avoid the described problem. My need is a development testing iteration.
> The solution should simply work and needs not to be a clean way.
>
> The only alternative i currently see, is to create a new product
> configuration. Thats too much effort for simple testing, isn't it?
>
> Any ideas?

Does SWTBot help you at all?

http://www.eclipse.org/swtbot/

Cheers,

Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
http://twitter.com/caniszczyk | http://twitter.com/eclipsesource
Previous Topic:(EMF generated) editor plugin does not run (without reported errors)
Next Topic:databinding - how do I detect changes in model
Goto Forum:
  


Current Time: Sun Jul 07 17:28:06 GMT 2024

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

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

Back to the top