Difference between revisions of "Eclipse Tips"

From CDOT Wiki
Jump to: navigation, search
(New page: == Identify Multiple Instances of Eclipse == You might have learned to identify your instance of Eclipse by looking at the perspective. I have discovered an easier way to identify them.)
 
Line 1: Line 1:
 +
This page collects useful tips on using Eclipse.
 +
 
== Identify Multiple Instances of Eclipse ==
 
== Identify Multiple Instances of Eclipse ==
You might have learned to identify your instance of Eclipse by looking at the perspective. I have discovered an easier way to identify them.
+
You might have learned to identify your instance of Eclipse by looking at the perspective or "about Eclipse".
 +
 
 +
There is an easier way to identify an instance of Eclipse.  It's the "-showlocation" flag.  It embeds the workspace path to the title bar of Eclipse. 
 +
 
 +
Example:
 +
{| border="1"
 +
! !! Title bar
 +
|-
 +
| Without –showlocation || Java – Eclipse SDK
 +
|-
 +
| With –showlocation || Java – Eclipse SDK – E:/Eclipse/Eclipse WTP/wksp/....
 +
|}
 +
 
 +
Here is how you do it
 +
 
 +
'''For Windows'''
 +
* Create a shortcut of Eclipse.exe
 +
* Go to shortcut's properties
 +
* Add "-showlocation"(without quote) to the end of Target field
 +
* Click OK
 +
* Use this shortcut to start eclipse
 +
 
 +
'''For Linux'''
 +
* Create a batch script
 +
* type "/path/to/eclipse/eclipse -showlocation" (without quote)
 +
* Save it
 +
* Run it when you start eclipse
 +
Someone please test this on linux, I created this based on my memory about linux. =D

Revision as of 17:59, 21 January 2009

This page collects useful tips on using Eclipse.

Identify Multiple Instances of Eclipse

You might have learned to identify your instance of Eclipse by looking at the perspective or "about Eclipse".

There is an easier way to identify an instance of Eclipse. It's the "-showlocation" flag. It embeds the workspace path to the title bar of Eclipse.

Example:

Title bar
Without –showlocation Java – Eclipse SDK
With –showlocation Java – Eclipse SDK – E:/Eclipse/Eclipse WTP/wksp/....

Here is how you do it

For Windows

  • Create a shortcut of Eclipse.exe
  • Go to shortcut's properties
  • Add "-showlocation"(without quote) to the end of Target field
  • Click OK
  • Use this shortcut to start eclipse

For Linux

  • Create a batch script
  • type "/path/to/eclipse/eclipse -showlocation" (without quote)
  • Save it
  • Run it when you start eclipse

Someone please test this on linux, I created this based on my memory about linux. =D