Archive

Archive for the ‘Eclipse’ Category

Eclipse Adding License To Source Files

October 27th, 2011 No comments

Eclipse provides a good tool for applies copy right headers to source files, it can also replace one ones if the file already contain a copyright header.

The tool can be installed from the eclipse update site and is called:

  • Eclipse Releng Tools
Another tool which might be useful is: Eclipse Copyright Generator, it can be installed from the updatesite:
The latter plugin adds
  • a new Panel in the preferences (global or project based) with: Menu > Windows > Preferences > General > Copyright.
  • a Menu Menu > Project > Apply Copyright…
  • a realy nice Wizard with a lot of options and some default template for Open-Source licence (Apache, EPL, …)

Source of this post

 

Categories: Eclipse Tags:

Findbugs plugin for Eclipse

November 23rd, 2010 No comments

Here is a nice plug-in to analysis Java code in Eclipse. It can detect known bad practises and known or possible null pointers, synchronization problems etc.

Eclipse update site: http://findbugs.cs.umd.edu/eclipse

Categories: Eclipse Tags:

Debug Eclipse SWT: SWTError: No more handles

August 11th, 2010 No comments

To debug the SWT Framework a tool called Sleak can be used, it is provided by SWT itself.

Link to a guide about Sleak 

The tool can be found at: http://www.eclipse.org/swt/tools.php

Categories: Eclipse Tags:

Enable Japanese characters in Windows and Eclipse

December 17th, 2009 No comments

To enable the Japanese characters (Shift-JIS) the operation system needs to install the fonts.

This is how to do it in Windows Xp:

  1. Install the fonts. This is done in the Regional Options under languagesclip_image001
  2. Select the Install files for East Asian languages. The windows cd is needed.
  3. After this a restart is needed.
  4. In Eclipse select properties of the file which contains Japanese characters and select Test file encoding.
  5. Chose: UTF-8 and click ok.
    image
  6. Now you can open the file with any editor in Eclipse and it should show the file correctly.

 

Here is a link to a site which describes how to do the same for other operation systems.

Categories: Eclipse, Windows Vista Tags:

Eclipse spy and shortcuts

September 2nd, 2009 No comments

Eclipse Spy: Enables you to get information about what kind of e.g. window you are looking at in eclipse. This is useful if you be your self are developing plug-ins for eclipse. To invoke Eclipse spy:

  • alt + shift + F1

Plugin Spy

An other blog post about Eclipse 3.4 Hidden Treasures can be found at http://eclipse.dzone.com/articles/eclipse-34-hidden-treasures

 

Eclipse shortcuts: (source)

  • quick outline: ctrl + o
  • open resource: ctrl + shift + r
  • open type (class, interface etc.): ctrl + shift + t
  • go to line: ctrl + l
Categories: Eclipse Tags: