Archive for the ‘Eclipse’ Category

Eclipse Keyboard Shortcut: Compare with Latest from Repository

Wednesday, February 26th, 2014

I use Subversion within my Eclipse environment, and use the Compare with Latest from Repository option a lot. My Ctrl+Alt+C custom shortcut would not work though for some reason, so it was a case of right-clicking the file, and going through the options.

Fix:

In Preferences>Keys, find “Compare with Latest..”, Category: SVN.

Set the binding e.g. Ctrl+Alt+C, and set When to Flash Global Scope

The next bit is what was stumping me, and took ages to figure out!!!!

Right Click on the Command Bar>Custom Perspective>Command Groups Availablity.. tick SVN… now the shortcut will work.

Preferences Options

Preferences Options

SVN Custom Perspective

SVN Custom Perspective

Note:

Also use Ctrl+Shift+B to skip all breakpoints, use this loads:

Skip All Breakpoints

Eclipse/Flash Builder 4.7 Hanging on Loading Workbench

Thursday, January 16th, 2014

Firstly, go to the .metadata folder of the workspace in question.
Open the .log file, and see if it contains the following:

!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.

The recovery can sometimes fail, which will prevent Eclipse from loading, and will hang on the splash screen.

Try the following: Go to,

workspace\.metadata\.plugins\org.eclipse.core.resources

And delete the .snap file (make a backup first of course)

Your workspace should now open ok… hopefully.

.snap files represent the changes in workspace state of the IDE during the runtime. This is mostly for eclipse crash recovery plan. When a crash happens these files are used to recover the state fo eclipse workspace.

http://stackoverflow.com/questions/2026502/what-are-snap-files-in-eclipse

 

 

Flash Builder/Eclipse Breakpoint Working Sets

Wednesday, February 27th, 2013

As a way of managing (sharing, exporting, or importing) breakpoints, the Working Sets feature of Flash Builder/Eclipse can be used.

There are many occasions when I will have dozens of temporary breakpoints set while working on a particular issue/task, and at the same time I will have some permanent breakpoints that I wish to monitor regardless of the task I am working on. When the temporary task is completed, I usually just want to delete all the breakpoints in one go, but it can be tedious having to go through and deselect all of the permanent breakpoints. This is where Working Sets can come in very handy.

I have a default Working Set (WS), and any breakpoints that I create automatically get set under this WS. I also create a secondary WS, and call it Permanent, and simply move the permanent breakpoints to this WS. In the Breakpoints tab, hit the down arrow, and select Working Sets and create some new ones. Then set the default working set.

Create, then set the Default Working Set

Create, then set the Default Working Set

Group you breakpoints by Breakpoint working sets:

Grouping

When Deleting breakpoints, just select the Default WS and hit the single X button. The Permanent breakpoints will be left as is. Voila!

Delete just the Default breakpoints

Delete just the Default breakpoints