Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2012-01-18 23:47:05 +0000
committerTomasz Zarna2012-01-18 23:47:05 +0000
commitba69c12201fab5361a0f8f0ad1461e56b08e92ba (patch)
tree697b00b279eace3b947249a104d00e807936119f
parent465ec762a55e70fb743d4334d0150ed487c68cda (diff)
downloadeclipse.platform.team-ba69c12201fab5361a0f8f0ad1461e56b08e92ba.tar.gz
eclipse.platform.team-ba69c12201fab5361a0f8f0ad1461e56b08e92ba.tar.xz
eclipse.platform.team-ba69c12201fab5361a0f8f0ad1461e56b08e92ba.zip
Remove redundant null check and comment fixv20120118-2347
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/GenerateDiffFileWizard.java16
1 files changed, 7 insertions, 9 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/GenerateDiffFileWizard.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/GenerateDiffFileWizard.java
index 49769e1a8..18aa4c6f2 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/GenerateDiffFileWizard.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/GenerateDiffFileWizard.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2010 IBM Corporation and others.
+ * Copyright (c) 2000, 2012 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
@@ -207,13 +207,11 @@ public class GenerateDiffFileWizard extends Wizard {
//Open to whatever is selected in the workspace field
IPath existingWorkspacePath = new Path(wsPathText.getText());
- if (existingWorkspacePath != null){
- //Ensure that this workspace path is valid
- IResource selectedResource = ResourcesPlugin.getWorkspace().getRoot().findMember(existingWorkspacePath);
- if (selectedResource != null) {
- wsTreeViewer.expandToLevel(selectedResource, 0);
- wsTreeViewer.setSelection(new StructuredSelection(selectedResource));
- }
+ //Ensure that this workspace path is valid
+ IResource selectedResource = ResourcesPlugin.getWorkspace().getRoot().findMember(existingWorkspacePath);
+ if (selectedResource != null) {
+ wsTreeViewer.expandToLevel(selectedResource, 0);
+ wsTreeViewer.setSelection(new StructuredSelection(selectedResource));
}
final Composite group = new Composite(composite, SWT.NONE);
@@ -446,7 +444,7 @@ public class GenerateDiffFileWizard extends Wizard {
}
/**
- * The following conditions must hold for the file system location to be valid:
+ * The following conditions must hold for the workspace location to be valid:
* - a parent must be selected in the workspace tree view
* - the resource name must be valid
*/

Back to the top