Go to Post It moves so smoothly because it is magic. - dtengineering [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-01-2015, 17:27
Jalerre's Avatar
Jalerre Jalerre is offline
Registered User
FRC #4965 (FIRE)
Team Role: Alumni
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Anderson, SC
Posts: 147
Jalerre is on a distinguished road
Integrate the API into Eclipse

I was wondering if there was any way to integrate the 2015 API into Eclipse similar to how it was in NetBeans. I enjoyed the convenience of having it built right into the IDE that way if I needed information on a class or how to use a particular method I could just click the First logo and jump into the API. I know in previous years that when you installed the plugins it also installed the API but I just finished setting up Eclipse and was disappointed to see that it wasn't there (but I was very happy to see some other things like RobotBuilder and SmartDashboard simulation built into the IDE). Is it possible to do it or will I just have to keep the API open in another window when programming?

Last edited by Jalerre : 03-01-2015 at 17:29.
Reply With Quote
  #2   Spotlight this post!  
Unread 03-01-2015, 17:31
wmarshall11 wmarshall11 is offline
Registered User
FRC #2399
Team Role: Mentor
 
Join Date: May 2013
Rookie Year: 2011
Location: Cleveland, OH
Posts: 34
wmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to beholdwmarshall11 is a splendid one to behold
Re: Integrate the API into Eclipse

Select what you want to know about, hover for documentation, right-click and Go To Declaration for source code. Doesn't get much easier than that.
Reply With Quote
  #3   Spotlight this post!  
Unread 03-01-2015, 17:36
Jalerre's Avatar
Jalerre Jalerre is offline
Registered User
FRC #4965 (FIRE)
Team Role: Alumni
 
Join Date: Apr 2014
Rookie Year: 2013
Location: Anderson, SC
Posts: 147
Jalerre is on a distinguished road
Re: Integrate the API into Eclipse

Quote:
Originally Posted by wmarshall11 View Post
Select what you want to know about, hover for documentation, right-click and Go To Declaration for source code. Doesn't get much easier than that.
Well I already knew that. That works well when you already know what class you want to use for something but there are times when I don't know what the name is for a particular class that I need to use. Also I'm guessing that WPI made some changes to some classes that I already knew so I'm going to need to look that up as well.
Reply With Quote
  #4   Spotlight this post!  
Unread 03-01-2015, 17:56
virtuald's Avatar
virtuald virtuald is offline
RobotPy Guy
AKA: Dustin Spicuzza
FRC #1418 (), FRC #1973, FRC #4796, FRC #6367 ()
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2003
Location: Boston, MA
Posts: 1,067
virtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant futurevirtuald has a brilliant future
Re: Integrate the API into Eclipse

It does appear that they installed the javadocs in ~/wpilib, but it's not clear how the integration works.
__________________
Maintainer of RobotPy - Python for FRC
Creator of pyfrc (Robot Simulator + utilities for Python) and pynetworktables/pynetworktables2js (NetworkTables for Python & Javascript)

2017 Season: Teams #1973, #4796, #6369
Team #1418 (remote mentor): Newton Quarterfinalists, 2016 Chesapeake District Champion, 2x Innovation in Control award, 2x district event winner
Team #1418: 2015 DC Regional Innovation In Control Award, #2 seed; 2014 VA Industrial Design Award; 2014 Finalists in DC & VA
Team #2423: 2012 & 2013 Boston Regional Innovation in Control Award


Resources: FIRSTWiki (relaunched!) | My Software Stuff
Reply With Quote
  #5   Spotlight this post!  
Unread 03-01-2015, 21:10
cdewane cdewane is offline
Registered User
FRC #3381 (Droid Rage)
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: Kellnersville, WI
Posts: 8
cdewane is an unknown quantity at this point
Re: Integrate the API into Eclipse

Here's how to add the Javadoc for wpilib:

- Find wpilib under the project name in Project Explorer
- Right click wpilib and select Properties
- On the left click on Javadoc Location
- On the right select the Javadoc URL radio button
- Enter "file:/C:/Users/<user name>/wpilib/java/current/javadoc/" or use the browse button. (This is the Windows location)
- Click OK and enjoy
- Now if you hover the mouse over any of the wpilib classes or methods in the editor, the Javadoc will appear in a popup window.

Last edited by cdewane : 03-01-2015 at 21:14. Reason: Additional info
Reply With Quote
  #6   Spotlight this post!  
Unread 03-01-2015, 21:12
ThomasClark's Avatar
ThomasClark ThomasClark is offline
Registered User
FRC #0237
 
Join Date: Dec 2012
Location: Watertown, CT
Posts: 146
ThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud ofThomasClark has much to be proud of
Re: Integrate the API into Eclipse

Not sure if this is what you're looking for, but you can browse all of the classes using Eclipse's Project Explorer, which is in the leftmost panel by default.
Reply With Quote
  #7   Spotlight this post!  
Unread 03-01-2015, 21:50
Jeanne Boyarsky Jeanne Boyarsky is offline
Java Mentor
FRC #0694 (StuyPulse)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2010
Location: New York
Posts: 100
Jeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud ofJeanne Boyarsky has much to be proud of
Re: Integrate the API into Eclipse

If you want the full JavaDoc in a browser integrated in Eclipse (which is what NetBeans gave us) rather than the part of the JavaDoc relevant to a specific class:

Window > Show View > Other > Internal Web Browser
This gives you a browser embedded in Eclipse.

Then type the URL:
<User Home>/wpilib/java/current/javadoc/index.html

It looks like this. (I haven't updated from the beta to current yet so my URL is a tiny bit different in the screenshot than yours will be.)
__________________
Team 694 mentor 2010-present, FIRST Volunteer and Co-organizer of FIRST World Maker Faire Tent
2012 NYC Woodie Flowers Finalist
2015 NYC Volunteer of the Year
Reply With Quote
  #8   Spotlight this post!  
Unread 03-01-2015, 21:53
magnets's Avatar
magnets magnets is offline
Registered User
no team
 
Join Date: Jun 2013
Rookie Year: 2012
Location: United States
Posts: 748
magnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond reputemagnets has a reputation beyond repute
Re: Integrate the API into Eclipse

The JavaDoc has some incorrect documentation. Where can I submit a bug report?
Reply With Quote
  #9   Spotlight this post!  
Unread 03-01-2015, 22:09
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 989
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Integrate the API into Eclipse

Quote:
Originally Posted by magnets View Post
The JavaDoc has some incorrect documentation. Where can I submit a bug report?
https://usfirst.collab.net/sf/tracke...wpilib/tracker

Last edited by RufflesRidge : 03-01-2015 at 22:18.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 17:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi