Home   Notes   Contact Me

Eclipse

Local

External


Verifying Eclipse Memory Settings

Goto Help | About Eclipse SDK | Configuration Details and then look at the value for "eclipse.vmargs", note that it is a multiline value. See below for what mine currently says:

(( For this fragment I am also showing the value before and after, which are respectively )) (( eclipse.vm and eof )) eclipse.vm=C:\Java\jdk1.6.0_04\jre\bin\javaw.exe eclipse.vmargs=-Xms256m -Xmx512m -XX:MaxPermSize=256m -jar C:\eclipse-3.3.0\plugins\org.eclipse.equinox.launcher_1.0.0.v20070606.jar eof=eof

Tabs, how to display them

There is a button that toggles if tabs are shown. You can make it appear by checking:
Window | Customize Perspective | Editor Presentation
After this there is a button with a paragraph symbol on it that controls the display of tabs.


CVS

Description
Team | UpdateGet latest changes
Team | Commit...Save changes to repository
Team | Synchronize with Repository? Update and then Commit ?

Perforce with Eclipse

To show perforce label decorations in Package Explorer

Goto Window | Preferences | General(which is 1st item) | Appearance | Label Decorations


Debugging, how to write an array to a file

// In the "Display" panel, put the following code (rename the file and the input array), // then highlight it and use the context menu to execute it double[] array = imagePoints; java.io.RandomAccessFile outFile = new java.io.RandomAccessFile("c:\\a.bin","rw"); outFile.writeInt(array.length); for (int i = 0; i < array.length; i++) { outFile.writeDouble(array[i]); } outFile.close();

Settings

PurposeWhere
LinewidthWindow | Preferences | Java | Code Style | Formatter | Show... or Edit... | Line Wrapping | Maximum line width for comments:
Linewidth, commentsWindow | Preferences | Java | Code Style | Formatter | Show... or Edit... | Comments | Maximum line width for comments:
Tabs, useWindow | Preferences | Java | Code Style | Formatter | Show... or Edit... | Indentation | Tab policy:

Fixing a Broken Project

MessageHow to Fix
Project xxx is missing required library: 'yyy.jar' xxx

Shortcuts

NameShortcutDescription
Class, Find and GotoControl-Shift-T
Context Menu ShortcutControl-Shift-F10
Format CodeControl-Shift-F
Goto line numberControl-L
Imports, optimizeControl-Shift-O
Import type under cursorControl-Shift-M???
Quick FixControl-1 Will suggest fixes for things (including finding and inserting import statements)
  1. Make sure the curser is on the thing with the red squiggle under it.
  2. Press Control-1
  3. Choose the action you want.
Search (with Dialog)Control-HBrings up the search dialog with tabs on top that choose what sort of search to do.
Search (without Dialog)Control-K search
Shift-Control-K backwards
Hightlight something and then use this to search for the next occurance of it
Sync Editor with Package ExplorerButton on Package Explorer

Plugin Creation


Creating a Web page Project

  1. Make sure the eclise project is not stored in the same directory, nor a child directory of the web project it is controlling.
  2. Create the Project File | New | Project | Simple | Project
  3. Add the directory containing the web files via Context on the project | New | Folder | Advanced
  4. Check Link to foler in the File System
  5. Browse to the directory the web files are in, and choose it
  6. Done