View | Details | Raw Unified | Return to bug 439299 | Differences between
and this patch

Collapse All | Expand All

(-)a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/WizardCollectionElement.java (-1 / +23 lines)
Lines 8-19 Link Here
8
 * Contributors:
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
9
 *     IBM Corporation - initial API and implementation
10
 *     Jan-Hendrik Diederich, Bredex GmbH - bug 201052
10
 *     Jan-Hendrik Diederich, Bredex GmbH - bug 201052
11
 *     Craig Otis - bug 439299
11
 *******************************************************************************/
12
 *******************************************************************************/
12
package org.eclipse.ui.internal.dialogs;
13
package org.eclipse.ui.internal.dialogs;
13
14
14
import java.util.ArrayList;
15
import java.util.ArrayList;
15
import java.util.Iterator;
16
import java.util.Iterator;
16
import java.util.List;
17
import java.util.List;
18
import java.util.Objects;
17
import org.eclipse.core.runtime.IAdaptable;
19
import org.eclipse.core.runtime.IAdaptable;
18
import org.eclipse.core.runtime.IConfigurationElement;
20
import org.eclipse.core.runtime.IConfigurationElement;
19
import org.eclipse.core.runtime.IPath;
21
import org.eclipse.core.runtime.IPath;
Lines 311-316 public class WizardCollectionElement extends AdaptableList implements IPluginCon Link Here
311
        return size() == 0 && wizards.size() == 0;
313
        return size() == 0 && wizards.size() == 0;
312
    }
314
    }
313
315
316
	/**
317
	 * A shallow equals based only on stored string properties. Child wizards or
318
	 * children inherited from AdaptableList are not compared.
319
	 *
320
	 * See: Bug 439299
321
	 *
322
	 * @author Craig Otis
323
	 */
324
	@Override
325
	public boolean equals(Object obj) {
326
		if (obj == this) {
327
			return true;
328
		}
329
		if (!(obj instanceof WizardCollectionElement)) {
330
			return false;
331
		}
332
		WizardCollectionElement other = (WizardCollectionElement) obj;
333
		return Objects.equals(this.getId(), other.getId()) && Objects.equals(this.name, other.name)
334
				&& Objects.equals(this.getPluginId(), other.getPluginId());
335
	}
336
314
    /**
337
    /**
315
     * For debugging purposes.
338
     * For debugging purposes.
316
     */
339
     */
317
- 

Return to bug 439299