1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-11 10:15:39 +02:00

Comment adjustment.

This commit is contained in:
Sergey Prigogin 2009-04-27 04:36:50 +00:00
parent dedd9aaf48
commit ba1c469a99
2 changed files with 2 additions and 8 deletions

View file

@ -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();
}
}

View file

@ -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;
}
}