[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform] Re: test swt/jface dialog without rcp runtime?

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