@Override public boolean equals(Object obj) { return (obj instanceof HistoryPageSourceWorkbenchPart) && source.equals(((HistoryPageSourceWorkbenchPart) obj).getSource()); }