Changeset 4089


Ignore:
Timestamp:
Jan 18, 2008, 1:43:14 PM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #901: GuiContext? should implement the equals() method

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/plugin/GuiContext.java

    r4034 r4089  
    7878  }
    7979 
     80  public boolean equals(Object other)
     81  {
     82    if (this == other) return true;
     83    if (!(other instanceof GuiContext)) return false;
     84    GuiContext gc = (GuiContext)other;
     85    return gc.item == this.item && gc.type == this.type;
     86  }
     87 
    8088  public String toString()
    8189  {
Note: See TracChangeset for help on using the changeset viewer.