diff options
author | Tomasz Zarna | 2012-01-18 23:47:05 +0000 |
---|---|---|
committer | Tomasz Zarna | 2012-01-18 23:47:05 +0000 |
commit | ba69c12201fab5361a0f8f0ad1461e56b08e92ba (patch) | |
tree | 697b00b279eace3b947249a104d00e807936119f /bundles/org.eclipse.team.cvs.ui | |
parent | 465ec762a55e70fb743d4334d0150ed487c68cda (diff) | |
download | eclipse.platform.team-ba69c12201fab5361a0f8f0ad1461e56b08e92ba.tar.gz eclipse.platform.team-ba69c12201fab5361a0f8f0ad1461e56b08e92ba.tar.xz eclipse.platform.team-ba69c12201fab5361a0f8f0ad1461e56b08e92ba.zip |
Remove redundant null check and comment fixv20120118-2347
Diffstat (limited to 'bundles/org.eclipse.team.cvs.ui')
-rw-r--r-- | bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/wizards/GenerateDiffFileWizard.java | 16 |
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 */ |