Warning message

Nonexistent node nid: 1314.

eclipse

Automatically add license text in new file

Tag(s):

  1. Go to Window->Preference->Java->Code Style->Code Templates.
  2. Paste your license in Code->New Java files
  3. In case you need to change ${user}, see
Nonexistent node nid: 1314.

.

Apache License

Reference: http://www.apache.org/licenses/LICENSE-2.0#apply

Change ${user} variable

Tag(s):

In eclipse.ini, add

-Duser.name=Firstname Lastname

Change the default text encoding in Eclipse to UTF-8

Tag(s):

  1. In Eclipse, open Window->Preferences.
  2. Go to General->Workspace.
  3. Under the Text file encoding section, check Other and click on the drop down box to select UTF-8.

Compile your java code to different JRE

Tag(s):

  1. Right-click on your project.
  2. Select Properties.
  3. Go to Java Compiler
  4. Check Enable project specific settings.
  5. Set the JRE that you like.

Export/Import code style formater

Tag(s):

It is located at Window->Preferences->Java->Code Style->Formater.

Show line number in Eclipse

Tag(s):

  1. In Eclipse, open Window->Preferences.
  2. Go to General->Appearance->Editors->Text Editors, check Show line numbers.

Egit: Remove git commit

Tag(s):

  1. Right-click on your project name.
  2. Go to Team->Show in History.
  3. Select the last good commit that you want.
  4. Right-click and select Reset->Hard (HEAD, Index, and working Directory).

http://stackoverflow.com/questions/13534336/how-to-delete-commits-with-egit#13797416

Out of heap memory

Tag(s):

Check if eclipse uses your settings: Help->About Eclipse->Installation Details->Configuration. Check .eclipse.vmargs. http://xam.dk/blog/eclipse-and-memory-settings/

Eclipse: Resolve DIRTY_WORKTREE

Tag(s):

  • Right-click on your project.
  • Select Team -> Synchronize workspace.
  • You will then see conflicting files marked with a special icon.
  • Open the conflicting file and make all your changes.
  • Right-click on the file and select Mark as Merged.
  • Right-click on the your project and select Merge.
  • Right-click on the your project and select Team->Push to Upstream.

Pages

Subscribe to RSS - eclipse