Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Head: Class skeletons to begin C/CPP Search


This patch introduces the beginnings of the classes necessary for the C/CPP search.  So far, its pretty much based on the JDT search.
With these changes, there is now a C/CPP tab in the search dialog, but clicking on the search button does nothing.

For the core,
A new source folder is added to org.eclipse.core called search, it contains the following packages:
        search\org.eclipse.cdt.core.search
        search\org.eclipse.cdt.internal.core.search
        search\org.eclipse.cdt.internal.core.search.matching
        search\org.eclipse.cdt.internal.core.search.processing

These files can be found attached in search.zip

For the UI,
A new package has been added to the src folder: org.eclipse.cdt.internal.ui.search
these files can be found attached in org.eclipse.cdt.internal.ui.search.zip


The cdt.ui plugin.xml has been modified to extend org.eclipse.search.SearchPages

Also attached is an icon, csearch_obj.gif which goes in org.eclipse.cdt.ui/icons/full/obj16


 

-Andrew
Index: .classpath
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/.classpath,v
retrieving revision 1.7
diff -u -r1.7 .classpath
--- .classpath	4 Mar 2003 18:25:40 -0000	1.7
+++ .classpath	13 Jun 2003 20:22:48 -0000
@@ -15,5 +15,6 @@
     <classpathentry kind="src" path="/org.eclipse.debug.core"/>
     <classpathentry kind="src" path="/org.eclipse.core.boot"/>
     <classpathentry kind="var" path="JRE_LIB" sourcepath="JRE_SRC"/>
+    <classpathentry kind="src" path="search"/>
     <classpathentry kind="output" path="bin"/>
 </classpath>
Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.core/ChangeLog,v
retrieving revision 1.98
diff -u -r1.98 ChangeLog
--- ChangeLog	9 Jun 2003 19:22:15 -0000	1.98
+++ ChangeLog	13 Jun 2003 20:22:49 -0000
@@ -1,3 +1,11 @@
+2003-06-13 Andrew Niefer
+	Added search\org.eclipse.cdt.core.search
+		  search\org.eclipse.cdt.internal.core.search
+		  search\org.eclipse.cdt.internal.core.search.matching
+		  search\org.eclipse.cdt.internal.core.search.processing
+	with skeleton classes based on the JDT search as a beginning for 
+	implementing C/CPP search.
+
 2003-06-06 Sean Evoy
 
 	Added new interface, IResourceBuildInfo, so clients could
Index: plugin.xml
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/plugin.xml,v
retrieving revision 1.27
diff -u -r1.27 plugin.xml
--- plugin.xml	9 Jun 2003 19:22:19 -0000	1.27
+++ plugin.xml	13 Jun 2003 20:35:32 -0000
@@ -888,5 +888,18 @@
          </tool>
       </target>
    </extension>
+   <extension
+         id="org.eclipse.cdt.ui.CSearchPage"
+         name="CSearchPage"
+         point="org.eclipse.search.searchPages">
+      <page
+            showScopeSection="true"
+            label="C/CPP Search"
+            icon="icons/full/obj16/csearch_obj.gif"
+            class="org.eclipse.cdt.internal.ui.search.CSearchPage"
+            sizeHint="460, 160"
+            id="org.eclipse.cdt.ui.CSearchPage">
+      </page>
+   </extension>
 
 </plugin>
Index: icons/full/obj16/csearch_obj.gif
===================================================================
RCS file: icons/full/obj16/csearch_obj.gif
diff -N icons/full/obj16/csearch_obj.gif
Binary files /dev/null and csearch_obj.gif differ

Attachment: search.zip
Description: Zip archive

Attachment: org.eclipse.cdt.internal.ui.search.zip
Description: Zip archive

Attachment: csearch_obj.gif
Description: GIF image


Back to the top