Q.) Add the Javadoc for a jar
--> Download the javadoc of the jar and put it somewhere in your filesystem.
--> Open the Java Build Path page of a project (Projects > Properties > Java Build Path). On the Libraries page expand the library's node and select the Javadoc location attribute and press Edit
Maintain the location to the API.
Important Preference Settings
-----------------------------
Window->Preferences -> java -> Editor -> Typing
Window -> Preferences -> java -> Editor -> Save Actions
=> You can export your Preferences settings from one workspace via
File -> Export -> General -> Preferences -> Give file name and location
File -> Import -> General -> Preferences -> select exiting preference file
Similar you can import them again into your workspace.
Q.) How to import existing project ?
File -> Import -> General -> Existing Project into workspace
->select the project folder -> ok -> finish.
Q.) What are the Code Templates ?
Window -> preferences -> java -> Editor -> Templates
If you have to type frequently the same code / part of the document you can maintain templates which can be activated via auto-complete (Ctrl + Space).
For example, lets assume you are frequently creating "public void name(){}" methods. You could define a template which creates the method body for you.
To create a template for this select the menu Window->Preferences and Open Java -> Editor -> Templates
Q) What is perspective?
-> A perspective is a visual container for a set of views and editors.
-> We can change the perspective using Window->
Open Perspective -> Other.
-> Reset perspective "Window" -> "Reset Perspective".
-> Examples of perspectives
java, DB, debug, SVN Repository Exploring
Q) What is debugging?
--> Debugging is a tool used to identify coding errors at various development stages.
Shortcuts for debugging:
Next line : F6
Step into : F5
Step Out : F7
Next Breakpoint : F8
Terminate : Ctrl + F2
Comments
Post a Comment