diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/corext/codemanipulation/AddIncludesOperation.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/corext/codemanipulation/AddIncludesOperation.java index daa10190287..6e5b3426872 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/corext/codemanipulation/AddIncludesOperation.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/corext/codemanipulation/AddIncludesOperation.java @@ -36,11 +36,10 @@ import org.eclipse.cdt.ui.IRequiredInclude; import org.eclipse.cdt.internal.ui.editor.CEditorMessages; - /** * Add includes to a translation unit. * The input is an array of full qualified type names. No elimination of unnecessary - * includes is not done. Dublicates are eliminated. + * includes is not done. Duplicates are eliminated. * If the translation unit is open in an editor, be sure to pass over its working copy. */ public class AddIncludesOperation implements IWorkspaceRunnable { @@ -216,7 +215,6 @@ public class AddIncludesOperation implements IWorkspaceRunnable { } public void run(IProgressMonitor monitor) throws CoreException { - if (monitor == null) { monitor= new NullProgressMonitor(); } @@ -234,5 +232,4 @@ public class AddIncludesOperation implements IWorkspaceRunnable { public ISchedulingRule getScheduleRule() { return ResourcesPlugin.getWorkspace().getRoot(); } - } diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java index 1a67c5df195..87a5d492f19 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java @@ -61,7 +61,6 @@ import org.eclipse.cdt.internal.ui.util.EditorUtility; public class OpenIncludeAction extends Action { - private static final String PREFIX= "OpenIncludeAction."; //$NON-NLS-1$ private static final String DIALOG_TITLE= PREFIX + "dialog.title"; //$NON-NLS-1$ @@ -179,7 +178,7 @@ public class OpenIncludeAction extends Action { * Returns the path as is, if it points to a workspace resource. If the path * does not point to a workspace resource, but there are linked workspace * resources pointing to it, returns the paths of these resources. - * Othervise, returns the path as is. + * Otherwise, returns the path as is. */ private IPath[] resolveIncludeLink(IPath path) { if (!isInProject(path)) { @@ -280,7 +279,6 @@ public class OpenIncludeAction extends Action { return null; } - private static IInclude getIncludeStatement(ISelection sel) { if (!sel.isEmpty() && sel instanceof IStructuredSelection) { List list= ((IStructuredSelection)sel).toList(); @@ -304,5 +302,4 @@ public class OpenIncludeAction extends Action { } return false; } - }