Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » e(fx)clipse » @FXMLLoader and @LocalInstance(@LocalInstance cannot be resolved to a type)
@FXMLLoader and @LocalInstance [message #1760648] Sat, 29 April 2017 23:38 Go to next message
Henri Boucher is currently offline Henri BoucherFriend
Messages: 38
Registered: September 2015
Member
void initUI(BorderPane pane, @FXMLLoader FXMLLoaderFactory factory)

works but is deprecated, while

void initUI(BorderPane pane, @LocalInstance FXMLLoader loader)

generates "@LocalInstance cannot be resolved to a type."

I import javafx.fxml.FXMLLoader and I have org.eclipse.fx.core.fxml (2.6.0) in my "imported packages". I tried to add all packages with "annotation" in their names, but none worked.
Re: @FXMLLoader and @LocalInstance [message #1760651 is a reply to message #1760648] Sun, 30 April 2017 08:13 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6313
Registered: July 2009
Senior Member
The annoation is in org.eclipse.fx.core.di
Re: @FXMLLoader and @LocalInstance [message #1760660 is a reply to message #1760651] Sun, 30 April 2017 18:39 Go to previous messageGo to next message
Henri Boucher is currently offline Henri BoucherFriend
Messages: 38
Registered: September 2015
Member
Thanks Tom.

I have since discovered that I could have resolved this topic by searching for "localinstance" in the github efxclipse-rt repository, but not "localinstance.java."

I tried googling "site:git.eclipse.org/c/efxclipse LocalInstance.java" but only commits are returned.

Any tips or links on how to find a particular .java file in the repos?
Re: @FXMLLoader and @LocalInstance [message #1760740 is a reply to message #1760660] Tue, 02 May 2017 13:48 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6313
Registered: July 2009
Senior Member
Well you use CTRL+SHIFT+T but before that leads to appropriate results you need to "Include Java all stuff from the target platform"

You do that with:
* Open the Preferences
* Navigate to "Plug-in Development"
* Make sure "Include all plug-ins from target in Java search" is checked
Re: @FXMLLoader and @LocalInstance [message #1760961 is a reply to message #1760740] Thu, 04 May 2017 15:26 Go to previous messageGo to next message
Henri Boucher is currently offline Henri BoucherFriend
Messages: 38
Registered: September 2015
Member
Works like a charm. Thanks again, Tom.
Re: @FXMLLoader and @LocalInstance [message #1761129 is a reply to message #1760961] Sun, 07 May 2017 17:52 Go to previous messageGo to next message
Henri Boucher is currently offline Henri BoucherFriend
Messages: 38
Registered: September 2015
Member
No Message Body
Re: @FXMLLoader and @LocalInstance [message #1761130 is a reply to message #1761129] Sun, 07 May 2017 18:09 Go to previous messageGo to next message
Henri Boucher is currently offline Henri BoucherFriend
Messages: 38
Registered: September 2015
Member
LineChart shows up in the Open Type dialog but the Class File Editor reports "Source not found."

The Add Software Site dialog has "Include source if available" checked. Is there any way to get the source?
Re: @FXMLLoader and @LocalInstance [message #1761191 is a reply to message #1761130] Mon, 08 May 2017 17:13 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6313
Registered: July 2009
Senior Member
Well LineChart is a JavaFX class most likely you have configured a JRE and not a JDK?
Previous Topic:How to FXGraph include with attributes
Next Topic:Has anyone tried the maven repositories for e(fx)clipse?
Goto Forum:
  


Current Time: Thu May 25 05:09:58 GMT 2017

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

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