streda 25. júna 2014

vimdiff as svn diff tool

It's easy to like vimdiff. It's simply great.

This is small howto for using vimdiff as svn diff tool:

create script:

# Configure your favorite diff program here.

# Subversion provides the paths we need as the sixth
# and seventh parameters.

# Call the diff command (change the following line
# to make sense for your merge program).
#$DIFF --left $LEFT --right $RIGHT

# Return an errorcode of 0 if no differences were detected,
# 1 if some were.
# Any other errorcode will be treated as fatal.

create script:
svn diff $1 $2 $3 $4 $5 $6 $7 $8

enjoy diffs:
go to svn-versioned folder and run
It will open vimdiff for every modified file. For diffing only single file just put relative filename (or part of unique path) as parameter.

streda 12. marca 2014

Show logical structure while Debugging java code in Eclipse

This is copy/paste from wonderful Abdullah Çetin ÇAVDAR's blogpost 5 Tips for Debugging Java Code in Eclipse.

Logical Structure

The logical structure is very handy for examining things like maps and other java collections classes, instead of showing the full detail of all the internal variables the view will only show the “logical” pieces. It is activated/deactivated from “Variables” view using logical structure toggle button.