diff options
Diffstat (limited to 'ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/exports/CrossPlatformExportPage.java')
-rw-r--r-- | ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/exports/CrossPlatformExportPage.java | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/exports/CrossPlatformExportPage.java b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/exports/CrossPlatformExportPage.java index 9b9a831f2f..0062562fbf 100644 --- a/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/exports/CrossPlatformExportPage.java +++ b/ui/org.eclipse.pde.ui/src/org/eclipse/pde/internal/ui/wizards/exports/CrossPlatformExportPage.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2005, 2012 IBM Corporation and others. + * Copyright (c) 2005, 2013 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -35,10 +35,12 @@ public class CrossPlatformExportPage extends AbstractExportWizardPage { String ws; String arch; + @Override public String toString() { return os + " (" + ws + "/" + arch + ")"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ } + @Override public boolean equals(Object obj) { if (obj instanceof Configuration) { Configuration config = (Configuration) obj; @@ -47,6 +49,11 @@ public class CrossPlatformExportPage extends AbstractExportWizardPage { return super.equals(obj); } + @Override + public int hashCode() { + return os.hashCode() + ws.hashCode() + arch.hashCode(); + } + } class ContentProvider extends DefaultContentProvider implements IStructuredContentProvider { @@ -60,11 +67,13 @@ public class CrossPlatformExportPage extends AbstractExportWizardPage { super(label, buttonLabels); } + @Override public void updateCounter(int count) { super.updateCounter(count); pageChanged(); } + @Override protected void buttonSelected(Button button, int index) { switch (index) { case 0 : @@ -139,6 +148,7 @@ public class CrossPlatformExportPage extends AbstractExportWizardPage { pageChanged(); } + @Override public void saveSettings(IDialogSettings settings) { Object[] objects = fPlatformPart.getSelection(); StringBuffer buffer = new StringBuffer(); @@ -186,6 +196,7 @@ public class CrossPlatformExportPage extends AbstractExportWizardPage { } } + @Override protected void pageChanged() { setPageComplete(fPlatformPart.getSelectionCount() > 0); } |