Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » Syntax to DI AnchorPane
Syntax to DI AnchorPane [message #1705625] Mon, 17 August 2015 22:31 Go to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
I did a search on this forum but could not find an example of the syntax to override the default "Container:AnchorPane " using injection. If I understand correctly, as per this (https://wiki.eclipse.org/Efxclipse/Runtime/e4) link, it is possible.

What imports, if any, are needed and how do I tell DI to override the default "BorderPane" with the "AnchorPane"?

I tried the following but they did not work.
public EtherColumn(@Container:AnchorPane) parent, final MApplication application) {

and this ....
public EtherColumn(@Container(AnchorPane) parent, final MApplication application) {




Oxygen 3a
Windows 10
Re: Syntax to DI AnchorPane [message #1705626 is a reply to message #1705625] Mon, 17 August 2015 22:59 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You need to add "Container:AnchorPane" to the tags section of the MPart
in the e4xmi-Editor.

Tom

On 18.08.15 00:31, Paul Roubekas wrote:
> I did a search on this forum but could not find an example of the syntax
> to override the default "Container:AnchorPane " using injection. If I
> understand correctly, as per this
> (https://wiki.eclipse.org/Efxclipse/Runtime/e4) link, it is possible.
>
> What imports, if any, are needed and how do I tell DI to override the
> default "BorderPane" with the "AnchorPane"?
>
> I tried the following but they did not work.
> public EtherColumn(@Container:AnchorPane) parent, final MApplication
> application) {
>
> and this ....
> public EtherColumn(@Container(AnchorPane) parent, final MApplication
> application) {
>
>
>
Re: Syntax to DI AnchorPane [message #1705627 is a reply to message #1705626] Mon, 17 August 2015 23:09 Go to previous messageGo to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
Eclipse for RCP and RAP Developers
Version: Mars Release (4.5.0)
Build id: 20150621-1200

The add button is no-op when pressed.

index.php/fa/22948/0/


Oxygen 3a
Windows 10
Re: Syntax to DI AnchorPane [message #1705628 is a reply to message #1705627] Tue, 18 August 2015 00:16 Go to previous messageGo to next message
Joe Van Steen is currently offline Joe Van SteenFriend
Messages: 25
Registered: March 2015
Junior Member
Type your content into the text box first, then press "Add." (The single line text box, just below the row of buttons.)

[Updated on: Tue, 18 August 2015 00:18]

Report message to a moderator

Re: Syntax to DI AnchorPane [message #1705646 is a reply to message #1705627] Tue, 18 August 2015 06:35 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
You might please file a bug to the editor to disable the button until
you have typed a value into it.

Tom

On 18.08.15 01:09, Paul Roubekas wrote:
> Eclipse for RCP and RAP Developers
> Version: Mars Release (4.5.0)
> Build id: 20150621-1200
>
> The add button is no-op when pressed.
>
>
Re: Syntax to DI AnchorPane [message #1705691 is a reply to message #1705628] Tue, 18 August 2015 12:06 Go to previous messageGo to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
The following steps have no effect within the "Tags" group in the "Supplementary" tab of the e4xmi editor.

Clicking in the text box, then typing.
Right clicking in the text box.
Left clicking in the text box then typing.
Pressing the add button.

Bug 475261 has been submitted.


Oxygen 3a
Windows 10
Re: Syntax to DI AnchorPane [message #1705749 is a reply to message #1705691] Tue, 18 August 2015 18:43 Go to previous messageGo to next message
Joe Van Steen is currently offline Joe Van SteenFriend
Messages: 25
Registered: March 2015
Junior Member
Paul,
Are you clicking in the single line text field, or the multi-line text box? You need to enter your tag data in the single line text field. Then, after you click ADD, the content will be added to the text box. Since you can supply multiple tags, each tag shows as a separate line in the text box after add. I have successfully added a "container:AnchorPane" tag in Luna using this method and then successfully used the pane with the new specification. (I have not yet upgraded to Mars and e(fx)clipse 2.x, so cannot speak for the current release.)

FYI - the remaining buttons are activated when you click on data that has been entered, in order to edit the content of the text box ... removing tags, or adjusting arrangement.
Re: Syntax to DI AnchorPane [message #1705750 is a reply to message #1705749] Tue, 18 August 2015 19:00 Go to previous messageGo to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
Embarrassed
Thanks Joe:
What threw me off was the fact that the "Add" button on both "Default" and "Supplementary" tabs of the "Part" are the same. Then when a user clicks on any of the "Add" buttons on the "Default" tab they all bring up a dialog. But, when a user goes to the "Supplementary" tab both "Add" button behave different than the "Default" tab. The cursor does not give focus to the one line text box on either "Variables" or "Tags". I will remove the bug report.


Oxygen 3a
Windows 10
Re: Syntax to DI AnchorPane [message #1705752 is a reply to message #1705749] Tue, 18 August 2015 19:18 Go to previous messageGo to next message
Paul Roubekas is currently offline Paul RoubekasFriend
Messages: 207
Registered: March 2012
Location: Chattanooga, TN USA
Senior Member
I am still not doing something correctly.

index.php/fa/22954/0/

index.php/fa/22955/0/



Oxygen 3a
Windows 10
Re: Syntax to DI AnchorPane [message #1705753 is a reply to message #1705752] Tue, 18 August 2015 19:29 Go to previous message
Joe Van Steen is currently offline Joe Van SteenFriend
Messages: 25
Registered: March 2015
Junior Member
Try:
	@PostConstruct
	public void postConstruct(AnchorPane parent, ...
Previous Topic:eclispe e4 application in part class open with scene builder time ERROR
Next Topic:CSS validation problems
Goto Forum:
  


Current Time: Tue Jan 21 12:05:46 GMT 2025

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

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

Back to the top