[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?

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@xxxxxxxxxxxxx> wrote in message 
news:gnij79$gag$1@xxxxxxxxxxxxxxxxxxxx
>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?