diff options
Diffstat (limited to 'Plugins/emoticons/MepEditor/src/emoticons/Emoticon.java')
-rw-r--r-- | Plugins/emoticons/MepEditor/src/emoticons/Emoticon.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/Plugins/emoticons/MepEditor/src/emoticons/Emoticon.java b/Plugins/emoticons/MepEditor/src/emoticons/Emoticon.java new file mode 100644 index 0000000..f0470d1 --- /dev/null +++ b/Plugins/emoticons/MepEditor/src/emoticons/Emoticon.java @@ -0,0 +1,42 @@ +package emoticons;
+import java.util.HashMap;
+import java.util.Map;
+
+import org.eclipse.swt.widgets.Composite;
+
+public class Emoticon
+{
+ String name;
+ final Map<String, EmoticonImage> icons = new HashMap<String, EmoticonImage>();
+
+ Composite frames;
+
+ @Override
+ public int hashCode()
+ {
+ final int prime = 31;
+ int result = 1;
+ result = prime * result + ((name == null) ? 0 : name.hashCode());
+ return result;
+ }
+
+ @Override
+ public boolean equals(Object obj)
+ {
+ if (this == obj)
+ return true;
+ if (obj == null)
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ final Emoticon other = (Emoticon) obj;
+ if (name == null)
+ {
+ if (other.name != null)
+ return false;
+ }
+ else if (!name.equals(other.name))
+ return false;
+ return true;
+ }
+}
|