Author: rob.stryker(a)jboss.com
Date: 2008-10-06 16:30:06 -0400 (Mon, 06 Oct 2008)
New Revision: 10698
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesContentProviderDelegate.java
Log:
JBIDE-2862 - weird archives UI bug
Modified:
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesContentProviderDelegate.java
===================================================================
---
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesContentProviderDelegate.java 2008-10-06
18:27:51 UTC (rev 10697)
+++
trunk/archives/plugins/org.jboss.ide.eclipse.archives.ui/src/main/org/jboss/ide/eclipse/archives/ui/providers/ArchivesContentProviderDelegate.java 2008-10-06
20:30:06 UTC (rev 10698)
@@ -42,7 +42,9 @@
public static final int CATEGORY = 2;
private IProject element;
private int type;
- public WrappedProject(IProject element, int type) { this.element = element; this.type =
type;}
+ public WrappedProject(IProject element, int type) {
+ this.element = element; this.type = type;
+ }
public IProject getElement() { return element; }
public int getType() { return type; }
public boolean equals(Object otherObject) {
@@ -50,8 +52,9 @@
return true;
return false;
}
+ public String toString() { return element.toString() + "," + type;}
//$NON-NLS-1$
public int hashCode() {
- return element.hashCode();
+ return element.hashCode() + type;
}
}
@@ -69,6 +72,9 @@
public int hashCode() {
return wProject.hashCode() + 15;
}
+ public String toString() {
+ return wProject.toString();
+ }
}
private int type;
Show replies by date