Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Comment out reference to the builder.

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/ChangeLog,v
retrieving revision 1.58
diff -u -r1.58 ChangeLog
--- ChangeLog	13 Feb 2003 14:00:29 -0000	1.58
+++ ChangeLog	14 Feb 2003 01:09:36 -0000
@@ -1,4 +1,9 @@
-2003-0213 Thomas Fletcher
+2003-02-13 Alain Magloire
+
+	* src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java:
+	Comment out old the reference to the builder.
+
+2003-02-13 Thomas Fletcher
 	* src/org/eclipse/cdt/internal/ui/cview/CView.java
 	* src/org/eclipse/cdt/internal/ui/cview/FilterSelectionAction.java
 	Cleaned up some text strings.
Index: src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java,v
retrieving revision 1.5
diff -u -r1.5 OpenIncludeAction.java
--- src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java	4 Feb 2003 20:00:45 -0000	1.5
+++ src/org/eclipse/cdt/internal/ui/editor/OpenIncludeAction.java	14 Feb 2003 01:09:39 -0000
@@ -8,14 +8,18 @@
 import java.util.ArrayList;
 import java.util.List;
 
-
+import org.eclipse.cdt.core.model.CModelException;
+import org.eclipse.cdt.core.model.ICElement;
+import org.eclipse.cdt.internal.ui.CPluginImages;
+import org.eclipse.cdt.internal.ui.dialogs.ElementListSelectionDialog;
+import org.eclipse.cdt.internal.ui.util.EditorUtility;
+import org.eclipse.cdt.ui.CUIPlugin;
 import org.eclipse.core.resources.IContainer;
 import org.eclipse.core.resources.IFile;
 import org.eclipse.core.resources.IResource;
 import org.eclipse.core.runtime.CoreException;
 import org.eclipse.core.runtime.IPath;
 import org.eclipse.core.runtime.Path;
-
 import org.eclipse.jface.action.Action;
 import org.eclipse.jface.viewers.ILabelProvider;
 import org.eclipse.jface.viewers.ISelection;
@@ -23,23 +27,11 @@
 import org.eclipse.jface.viewers.IStructuredSelection;
 import org.eclipse.jface.viewers.LabelProvider;
 import org.eclipse.jface.window.Window;
-
 import org.eclipse.ui.IEditorDescriptor;
 import org.eclipse.ui.IEditorRegistry;
 import org.eclipse.ui.PlatformUI;
 
 
-import org.eclipse.cdt.internal.ui.dialogs.ElementListSelectionDialog;
-import org.eclipse.cdt.internal.ui.util.EditorUtility;
-import org.eclipse.cdt.ui.CUIPlugin;
-import org.eclipse.cdt.internal.ui.CPluginImages;
-
-import org.eclipse.cdt.core.CCorePlugin;
-import org.eclipse.cdt.core.builder.ICBuilder;
-import org.eclipse.cdt.core.model.CModelException;
-import org.eclipse.cdt.core.model.ICElement;
-
-
 public class OpenIncludeAction extends Action {
 
 
@@ -87,29 +79,30 @@
 				EditorUtility.openInEditor(fileToOpen);
 			} else { // Try to get via the include path.
 
-				ICBuilder[] builders = CCorePlugin.getDefault().getBuilders(res.getProject());
-				
-				IPath includePath = null;
-				for( int j = 0; includePath == null && j < builders.length; j++ ) {				
-					IPath[] paths = builders[j].getIncludePaths();
-
-					for (int i = 0; i < paths.length; i++) {
-						if (res != null) {
-							// We've already scan the project.
-							if (paths[i].isPrefixOf(res.getProject().getLocation()))
-								continue;
-						}
-						IPath path = paths[i].append(include.getElementName());
-						if (path.toFile().exists()) {
-							includePath = path;
-							break;
-						}
-					}
-				}
-
-				if (includePath != null) {
-					EditorUtility.openInEditor(includePath);
-				}
+// This code is for getting the include paths from the builder.
+//				ICBuilder[] builders = CCorePlugin.getDefault().getBuilders(res.getProject());
+//				
+//				IPath includePath = null;
+//				for( int j = 0; includePath == null && j < builders.length; j++ ) {				
+//					IPath[] paths = builders[j].getIncludePaths();
+//
+//					for (int i = 0; i < paths.length; i++) {
+//						if (res != null) {
+//							// We've already scan the project.
+//							if (paths[i].isPrefixOf(res.getProject().getLocation()))
+//								continue;
+//						}
+//						IPath path = paths[i].append(include.getElementName());
+//						if (path.toFile().exists()) {
+//							includePath = path;
+//							break;
+//						}
+//					}
+//				}
+//
+//				if (includePath != null) {
+//					EditorUtility.openInEditor(includePath);
+//				}
 			}
 		} catch (CModelException e) {
 			CUIPlugin.getDefault().log(e.getStatus());



Back to the top