Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » E4 part with JavaFX
E4 part with JavaFX [message #1095290] Mon, 26 August 2013 18:18 Go to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1067
Registered: July 2012
Senior Member
Hi,

I just started creating an E4 application using JavaFX. Of course I'm using e(fx)clipse! Wink

Looking at the short tutorials and the sample application I noticed that I can get the BorderPane injected in @PostConstruct. But where is configured which pane should be used? When I tried to get a StackPane, an exception was thrown that there is no value found for a StackPane.

So the question in detail, as the DI concepts are hopefully quite clear to me, which panes are supported? Am I able to change which pane to use as root pane? And if so, where to configure it?

Thanks for helping a newcomer to e(fx)clipse! Smile

Greez,
Dirk
Re: E4 part with JavaFX [message #1096079 is a reply to message #1095290] Tue, 27 August 2013 19:46 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5020
Registered: July 2009
Senior Member
Hi,

we always inject a BorderPane because it is the most natural and often
used one. You can not tell the system that you want another pane but
have to position your stuff on the BorderPane.

Tom

On 27.08.13 00:18, Dirk Fauth wrote:
> Hi,
>
> I just started creating an E4 application using JavaFX. Of course I'm
> using e(fx)clipse! ;)
>
> Looking at the short tutorials and the sample application I noticed that
> I can get the BorderPane injected in @PostConstruct. But where is
> configured which pane should be used? When I tried to get a StackPane,
> an exception was thrown that there is no value found for a StackPane.
>
> So the question in detail, as the DI concepts are hopefully quite clear
> to me, which panes are supported? Am I able to change which pane to use
> as root pane? And if so, where to configure it?
>
> Thanks for helping a newcomer to e(fx)clipse! :)
>
> Greez,
> Dirk
Re: E4 part with JavaFX [message #1096560 is a reply to message #1096079] Wed, 28 August 2013 11:10 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1067
Registered: July 2012
Senior Member
Hi,

Thanks for the answer. IMHO it should be possible for users to select the pane they want to use. Even if the BorderPane is a good default, people might want to use a different one.

Maybe this can be done by setting a tag to the part? What do you think?

Greez,
Dirk
Re: E4 part with JavaFX [message #1096612 is a reply to message #1096560] Wed, 28 August 2013 12:26 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5020
Registered: July 2009
Senior Member
File a Bugzilla, generally speaking I think forcing the user to e.g.
create a StackPane is acceptable but you are right, file a bugzilla and
we can add a tag.

Tom

On 28.08.13 17:10, Dirk Fauth wrote:
> Hi,
> Thanks for the answer. IMHO it should be possible for users to select
> the pane they want to use. Even if the BorderPane is a good default,
> people might want to use a different one.
> Maybe this can be done by setting a tag to the part? What do you think?
> Greez, Dirk
Re: E4 part with JavaFX [message #1098604 is a reply to message #1096612] Sat, 31 August 2013 06:35 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1067
Registered: July 2012
Senior Member
Ticket created: https://bugs.eclipse.org/bugs/show_bug.cgi?id=416288
Re: E4 part with JavaFX [message #1128277 is a reply to message #1098604] Mon, 07 October 2013 10:30 Go to previous messageGo to next message
Ghislain Mustermann is currently offline Ghislain Mustermann
Messages: 24
Registered: April 2013
Junior Member
Well when im trying to use AnchorPane or FillLayoutPane it dont work i have an Error : Quote:
org.eclipse.e4.core.di.InjectionException: Unable to process "LoginScreenPart#init()": no actual value was found for the argument "FillLayoutPane".
What im doing wrong? although i added "org.eclipse.fx.ui.panes (0.9.0)" to my required plug ins.
Re: E4 part with JavaFX [message #1128289 is a reply to message #1128277] Mon, 07 October 2013 10:42 Go to previous message
Thomas Schindl is currently offline Thomas Schindl
Messages: 5020
Registered: July 2009
Senior Member
So did you use the tag to inform the renderer that it should create a
FillLayoutPane?

See the list of tags at http://wiki.eclipse.org/Efxclipse/Runtime/e4#MPart

Tom

On 07.10.13 16:30, Ghislain Mustermann wrote:
> Well when im trying to use AnchorPane or FillLayoutPane it dont work i
> have an Error : Quote:
>> org.eclipse.e4.core.di.InjectionException: Unable to process
>> "LoginScreenPart#init()": no actual value was found for the argument
>> "FillLayoutPane".
> What im doing wrong? although i added "org.eclipse.fx.ui.panes (0.9.0)"
> to my required plug ins.
Previous Topic:Building OSGi-JavaFX program into jars
Next Topic:How to build Test Project
Goto Forum:
  


Current Time: Wed Apr 23 20:39:12 EDT 2014

Powered by FUDForum. Page generated in 0.01993 seconds