Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/GlobalRefreshElementSelectionPage.java')
-rw-r--r--bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/GlobalRefreshElementSelectionPage.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/GlobalRefreshElementSelectionPage.java b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/GlobalRefreshElementSelectionPage.java
index a6171f5c2..62735946f 100644
--- a/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/GlobalRefreshElementSelectionPage.java
+++ b/bundles/org.eclipse.team.ui/src/org/eclipse/team/internal/ui/synchronize/GlobalRefreshElementSelectionPage.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2007 IBM Corporation and others.
+ * Copyright (c) 2006, 2017 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
@@ -64,9 +64,6 @@ public abstract class GlobalRefreshElementSelectionPage extends WizardPage {
}
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)
- */
@Override
public void createControl(Composite parent2) {
Composite top = new Composite(parent2, SWT.NULL);
@@ -252,7 +249,7 @@ public abstract class GlobalRefreshElementSelectionPage extends WizardPage {
updateParticipantScope();
} else {
StringTokenizer st = new StringTokenizer(working_sets, " ,"); //$NON-NLS-1$
- ArrayList ws = new ArrayList();
+ ArrayList<IWorkingSet> ws = new ArrayList<>();
while (st.hasMoreTokens()) {
String workingSetName = st.nextToken();
if (workingSetName != null && workingSetName.equals("") == false) { //$NON-NLS-1$
@@ -264,7 +261,7 @@ public abstract class GlobalRefreshElementSelectionPage extends WizardPage {
}
}
if(! ws.isEmpty()) {
- this.workingSets = (IWorkingSet[]) ws.toArray(new IWorkingSet[ws.size()]);
+ this.workingSets = ws.toArray(new IWorkingSet[ws.size()]);
updateWorkingSetScope();
updateWorkingSetLabel();
participantScope.setSelection(false);
@@ -274,9 +271,6 @@ public abstract class GlobalRefreshElementSelectionPage extends WizardPage {
}
}
- /* (non-Javadoc)
- * @see org.eclipse.jface.dialogs.IDialogPage#dispose()
- */
@Override
public void dispose() {
if(workingSets != null && isWorkingSetSelected()) {

Back to the top