[Patchanim-commit] SF.net SVN: patchanim: [224] trunk/patchanim/src/com/mebigfatguy/patchanim/ Shif
Brought to you by:
dbrosius
From: <dbr...@us...> - 2008-02-24 02:25:47
|
Revision: 224 http://patchanim.svn.sourceforge.net/patchanim/?rev=224&view=rev Author: dbrosius Date: 2008-02-23 18:25:51 -0800 (Sat, 23 Feb 2008) Log Message: ----------- enum for directions to shift patches Added Paths: ----------- trunk/patchanim/src/com/mebigfatguy/patchanim/ShiftDirection.java Added: trunk/patchanim/src/com/mebigfatguy/patchanim/ShiftDirection.java =================================================================== --- trunk/patchanim/src/com/mebigfatguy/patchanim/ShiftDirection.java (rev 0) +++ trunk/patchanim/src/com/mebigfatguy/patchanim/ShiftDirection.java 2008-02-24 02:25:51 UTC (rev 224) @@ -0,0 +1,22 @@ +package com.mebigfatguy.patchanim; + +import java.util.ResourceBundle; + +import com.mebigfatguy.patchanim.main.PatchAnimBundle; + +public enum ShiftDirection { + Left, + Down, + Right, + Up; + + /** + * returns the localized value of the type + */ + @Override + public String toString() { + ResourceBundle rb = PatchAnimBundle.getBundle(); + return rb.getString(PatchAnimBundle.ROOT + name().toLowerCase()); + } + +} Property changes on: trunk/patchanim/src/com/mebigfatguy/patchanim/ShiftDirection.java ___________________________________________________________________ Name: svn:mime-type + text/plain Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |