Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Create and open a new E4 part programmatically(What's the best way to open a part programmatically?)
Create and open a new E4 part programmatically [message #1263570] Tue, 04 March 2014 15:55 Go to next message
Uwe San is currently offline Uwe SanFriend
Messages: 119
Registered: January 2012
Senior Member
Hi,

I'd like to create and open an E4 part programmatically, and I found several code snippets for doing this, e.g.

(1) http://blog.vogella.com/2010/12/07/eclipse-e4-create-a-new-part-dynamically/
(2) http://wiki.eclipse.org/E4/Snippets#Open_a_part_dynamically

What's the recommended way to do this with e(fx)clipse? I'd like to get a JavaFX Pane injected into the contribution class, which does not work using the first code snippet, for instance (I get a "no actual value was found for the argument 'StackPane'" error).


Thanks,
Uwe
Re: Create and open a new E4 part programmatically [message #1263621 is a reply to message #1263570] Tue, 04 March 2014 16:41 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Both should work just fine! The org.eclipse.fx.testcases.e4 adds a part
using this strategy and it works just fine.

Tom

On 04.03.14 16:55, Uwe San wrote:
> Hi,
>
> I'd like to create and open an E4 part programmatically, and I found
> several code snippets for doing this, e.g.
>
> (1)
> http://blog.vogella.com/2010/12/07/eclipse-e4-create-a-new-part-dynamically/
>
> (2) http://wiki.eclipse.org/E4/Snippets#Open_a_part_dynamically
>
> What's the recommended way to do this with e(fx)clipse? I'd like to get
> a JavaFX Pane injected into the contribution class, which does not work
> using the first code snippet, for instance (I get a "no actual value was
> found for the argument 'StackPane'" error).
>
>
> Thanks,
> Uwe
Re: Create and open a new E4 part programmatically [message #1263631 is a reply to message #1263621] Tue, 04 March 2014 16:50 Go to previous message
Uwe San is currently offline Uwe SanFriend
Messages: 119
Registered: January 2012
Senior Member
Thanks, I'll take a look at that.
Previous Topic:Maven repository providing org.eclipse.fx.runtime:org.eclipse.fx.osgi:jar:0.9.0?
Next Topic:Re: JavaFX with JRE only?
Goto Forum:
  


Current Time: Thu Sep 26 19:47:55 GMT 2024

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

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

Back to the top