Home
Resources - Getting tools
Tutorials
Sample Code
Documents
Help

                 

 

 

Tips & Tricks

Topics

Create Project From scratch
  Using existing Java files
  Import existing Eclipse project
  Import other Java files
   
Using the Editor Display full screen
  Go to matching bracket
   
   
Run Running a project
   
Scrapbook Testing code
   
Searching For references to a variable or function
   
Debugging Working with breakpoints
   


Create new project from scratch

 

Create new project from existing Java files

 

Display full screen editor

On the file tab (top of editor panel), right click and choose Maximize. Choose Restore to return to the default setting. Or, double click the file tab to toggle between full screen and "normal."

Go to matching bracket

Place cursor immediately after the bracket or parenthesis and press CTRL-SHIFT-P.

Import existing Eclipse project:

  1. From the menu, choose: File | Import.
  2. In the Import window, choose Existing project into workspace. Click Next.
  3. In the next Import window, click the Browse button and find the project folder.

Import other Java files from another folder into an Eclipse folder/project:

  1. Be sure to open the Eclipse project.
  2. From the menu, choose: File | Import.
  3. In the Import window, choose file system. Click Next.
  4. In the next Import window, use the Browse button for the From Directory to locate the source folder. The Into Folder should already be defined as the current project folder. Then check the boxes to select the files in the source folder you wish to import.

Running a project

Choose: Run | Run As | Java Application (or Java Applet).

Testing code

Choose File | New | Scrapbook page. In the page, you can enter code snippets, highlight them and choose Execute from the context menu (right-click).

Searching for references to a variable or function in the source code

Here's a scenario: your cursor is on a function definition or a variable and you want to find all lines in the code that use the function/variable. Do the following:

Working with breakpoints in the debugger

Remember - When first running the debugger, your program will execute up to the first breakpoint encountered.