Eclipse Forum says it should be available in next Eclipse release or in Eclipse patch.
Tuesday, June 23, 2009
Eclipse RCP "Close Others" Right click option
The "Close Others" action on right click of mouse button which closes all the other editors except for the current one is only available for Editors but not for views yet in Eclipse Ganymede as shown below:

Eclipse Forum says it should be available in next Eclipse release or in Eclipse patch.
Eclipse Forum says it should be available in next Eclipse release or in Eclipse patch.
Monday, May 11, 2009
Java Time and Daylight Savings
I wanted to create a Java based clock which can show timings of London and Newyork. I got stuck at the point of handling DayLight savings. Searched over Google and found out that Java on its own is not handling DayLight Savings.
For ex:
Calendar londonCal = Calendar.getInstance(TimeZone.getTimeZone("Europe/London"));
String londonTime = londonCal.get(Calendar.HOUR_OF_DAY)+":"+londonCal.get(Calendar.MINUTE)+":"+londonCal.get(Calendar.SECOND);
Calendar newyorkCal = Calendar.getInstance(TimeZone.getTimeZone("US/Central"));
String newyorkTime = newyorkCal.get(Calendar.HOUR_OF_DAY)+":"+newyorkCal.get(Calendar.MINUTE)+":"+newyorkCal.get(Calendar.SECOND);
System.out.println("London: "+londonTime+"\nNewYork: "+newyorkTime);
I thought the above code would have handled DayLight savings but to my surprise i got below result in console:
London: 12:23:17
Newyork: 6:23:17
stating diff in time to be:6 hours
wherein currently its daylight savings so it should have been 5 hours and i should have got a result of
London: 12:23:17
Newyork: 7:23:17
hmm either i am not finding a way to get java calendar handle daylight saving or there isnt one which does tht?
For ex:
Calendar londonCal = Calendar.getInstance(TimeZone.getTimeZone("Europe/London"));
String londonTime = londonCal.get(Calendar.HOUR_OF_DAY)+":"+londonCal.get(Calendar.MINUTE)+":"+londonCal.get(Calendar.SECOND);
Calendar newyorkCal = Calendar.getInstance(TimeZone.getTimeZone("US/Central"));
String newyorkTime = newyorkCal.get(Calendar.HOUR_OF_DAY)+":"+newyorkCal.get(Calendar.MINUTE)+":"+newyorkCal.get(Calendar.SECOND);
System.out.println("London: "+londonTime+"\nNewYork: "+newyorkTime);
I thought the above code would have handled DayLight savings but to my surprise i got below result in console:
London: 12:23:17
Newyork: 6:23:17
stating diff in time to be:6 hours
wherein currently its daylight savings so it should have been 5 hours and i should have got a result of
London: 12:23:17
Newyork: 7:23:17
hmm either i am not finding a way to get java calendar handle daylight saving or there isnt one which does tht?
Wednesday, March 11, 2009
Ubuntu Eclipse Subverion Stored Password delete
In Ubuntu, To clear stored cached passwords.
1. If eclipse is running, close your eclipse instance.
2. sudo rm -rf /home/%user%/.subversion/auth
3. Open your eclipse installation.
4. Open Configurations.
5. Open org.eclipse.core.runtime folder.
6. ls -a
7. sudo rm -rf .keyring
8. sudo gedit /home/%user%/.subversion/config
9. Uncomment 'store-passwords' inside 'auth'.
10. modify store-passwords=yes.
11. Restart eclipse, add your repository location and see that you are prompted with user/password dialog box.
1. If eclipse is running, close your eclipse instance.
2. sudo rm -rf /home/%user%/.subversion/auth
3. Open your eclipse installation.
4. Open Configurations.
5. Open org.eclipse.core.runtime folder.
6. ls -a
7. sudo rm -rf .keyring
8. sudo gedit /home/%user%/.subversion/config
9. Uncomment 'store-passwords' inside 'auth'.
10. modify store-passwords=yes.
11. Restart eclipse, add your repository location and see that you are prompted with user/password dialog box.