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 | Update | Get 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
| Purpose | Where |
| Linewidth | Window | Preferences | Java | Code Style | Formatter | Show... or Edit... | Line Wrapping | Maximum line width for comments: |
| Linewidth, comments | Window | Preferences | Java | Code Style | Formatter | Show... or Edit... | Comments | Maximum line width for comments: |
| Tabs, use | Window | Preferences | Java | Code Style | Formatter | Show... or Edit... | Indentation | Tab policy: |
Fixing a Broken Project
| Message | How to Fix |
| Project xxx is missing required library: 'yyy.jar' xxx |
Shortcuts
| Name | Shortcut | Description |
| Class, Find and Goto | Control-Shift-T | |
| Context Menu Shortcut | Control-Shift-F10 | |
| Format Code | Control-Shift-F |
| Goto line number | Control-L |
| Imports, optimize | Control-Shift-O | |
| Import type under cursor | Control-Shift-M | ??? |
| Quick Fix | Control-1 |
Will suggest fixes for things (including finding and inserting import statements)
- Make sure the curser is on the thing with the red squiggle under it.
- Press
Control-1
- Choose the action you want.
|
| Search (with Dialog) | Control-H | Brings 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 Explorer | Button on Package Explorer | |
Plugin Creation
Creating a Web page Project
- Make sure the eclise project is not stored in the same directory, nor a child directory of the web project it is controlling.
- Create the Project File | New | Project | Simple | Project
- Add the directory containing the web files via
Context on the project | New | Folder | Advanced
- Check Link to foler in the File System
- Browse to the directory the web files are in, and choose it
- Done