Clippy

my thoughts on java, smartphones, stuff…

Posts Categorized / Java

Portable Eclipse and Portable Java

I like portable software. I carry around a bunch of them in my flash drive. I just found out that both Java and Eclipse are available as portable versions at PortableApps.com. The Java version they have is Java 6 update 14 but Eclipse is stuck at 3.4.2. Eclipse uses portable Java, so Java need not [...]

10

Eclipse Tip: Fix your Javadoc

Eclipse’s Java compiler has the ability to process Javadoc comment and validate them. You can set Eclipse to warn about malformed Javadoc comments. Just go to Java > Compiler > Javadoc or Project > Properties > Java Compiler > Javadoc for project specific setting to enable this. Once enabled you will see warning like below [...]

Comments Off

Eclipse Tip: Structured Selections

Eclipse has a great set of keyboard shortcuts speed things up. Structured Selection shortcuts are a great way to select enclosing identifiers or adjacent statements. Take the following example. When the cursor is on the variable aFile in the second if statement. Just press Alt+Shift+Arrow Up to quickly select the variable aFile. Press Alt+Shift+Arrow Up [...]

Comments Off

Eclipse Tip: Customize menus and toolbars

In Eclipse 3.5 Ganymede it is easier to customize menus and toolbars. Go to Windows>Customize Perspective… to find a newly redesigned UI for customizing individual menu or toolbar items. I install a lot of plugins for Eclipse. This enhancement lets me keep my perspective clean and tidy.

Comments Off

Changing Java AppEngine’s port number

I have been playing around with Google’s Java AppEngine. By default the local development server starts up in port 8080. This kind of messes with my development setup. Every app server I use Weblogic, Tomcat… uses this port by default. To change the port number in eclipse go to Run>Run Configurations…>Web Application><AppEngine Project Name>. In [...]

Comments Off

Java rides on Google App Engine

Finally cloud computing comes to Java developers. Dot Net got it with Azure. Now Java has got support from Google in its cloud platform AppEngine. The great thing about Google’s implantation is that it is not just supporting Java the language but also parts of Java the platform. So Java developers do not have to [...]

Comments Off

Eclipse Tip: Block Selection Mode

Every once in a while I would open up a source file in Notepad++ to copy/cut text using the block selection mode. Now I can do it from within Eclipse (3.5 M5 and above). The block selection mode can be toggled using the toolbar icon highlighted above or using the shortcut key Alt+Shift+A. Nice addition [...]

Comments Off

XMind: Mind mapping in Eclipse

Xmind is an Open Source Eclipse based mind mapping tool. It can run as a stand alone application or as a plugin within Eclipse. The application looks good and has a decent set of features. It also lets you upload and share mindmaps on their site. XMind, combined with online sharing service, provides a revolutionary [...]

Comments Off

Eclipse Tip: Trace method call chains

When reviewing or fixing some old code have you though where is this method called from? Eclipse provides a nice way to find that out. Just go to the method in Java Editor and press Ctrl+Alt+H. Eclipse opens up a Call Hierarchy view that show the method’s call chain. You can also find the trace [...]

Comments Off

Eclipse Tip: Escape text when pasting

When you paste some text in to a string have you seen this? The problem is that the string is not escaped. This gives you a error. Fixing this is not easy if you have pasted text that needs a lot of escaping. I have encountered this a few times. It is annoying. Luckily Eclipse [...]

4
Pages:1234567...22