Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » JavaSearchResultPage
JavaSearchResultPage [message #332943] Sat, 15 November 2008 09:37 Go to next message
Paul O'Connell is currently offline Paul O'ConnellFriend
Messages: 1
Registered: July 2009
Junior Member
Is it possible to reuse the existing eclipse java search input dialog, by
defining an extension point such as

1. <extension point="org.eclipse.search.searchPages">
2. <page id="org.eclipse.jdt.ui.JavaSearchPage">
3. icon="icons/full/obj16/jsearch_obj.png"
4. label="%JavaSearchPage.label"
5. sizeHint="460,160"
6. extensions="java:90, jav:90"
7. showScopeSection="true"
8. canSearchEnclosingProjects="true"
9. class="org.eclipse.jdt.internal.ui.search.JavaSearchPage">
10. </page>
11. </extension>

and have it send the search results to a customised JavaSearchResultPage?

<extension>
id="JavaSearchResultPage"
point="org.eclipse.search.searchResultViewPages">
<viewpage>
id="org.eclipse.jdt.ui.JavaSearchResultPage"
searchResultClass="org.eclipse.jdt.internal.ui.sea rch.JavaSearchResult"
class="my.custom.MyCustomJavaSearchResultPage">
</viewpage>
</extension>

I don't want to duplicate the search input dialog, but would like to be
able to have better control over the export options on the matched java
source tree/table in the search results panel. The examples i've found
have all had a custom search input dialog which i don't need. Any idea's,
pointers or workarounds would be appreciated.
Re: JavaSearchResultPage [message #332959 is a reply to message #332943] Mon, 17 November 2008 09:27 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
Paul O'Connell wrote:
> Is it possible to reuse the existing eclipse java search input dialog,
> by defining an extension point such as
No, this is not possible.

Dani
>
> 1. <extension point="org.eclipse.search.searchPages">
> 2. <page id="org.eclipse.jdt.ui.JavaSearchPage">
> 3. icon="icons/full/obj16/jsearch_obj.png"
> 4. label="%JavaSearchPage.label"
> 5. sizeHint="460,160"
> 6. extensions="java:90, jav:90"
> 7. showScopeSection="true"
> 8. canSearchEnclosingProjects="true"
> 9. class="org.eclipse.jdt.internal.ui.search.JavaSearchPage">
> 10. </page>
> 11. </extension>
>
> and have it send the search results to a customised JavaSearchResultPage?
>
> <extension>
> id="JavaSearchResultPage"
> point="org.eclipse.search.searchResultViewPages">
> <viewpage>
> id="org.eclipse.jdt.ui.JavaSearchResultPage"
> searchResultClass="org.eclipse.jdt.internal.ui.sea
> rch.JavaSearchResult"
> class="my.custom.MyCustomJavaSearchResultPage">
> </viewpage>
> </extension>
>
> I don't want to duplicate the search input dialog, but would like to
> be able to have better control over the export options on the matched
> java source tree/table in the search results panel. The examples i've
> found have all had a custom search input dialog which i don't need.
> Any idea's, pointers or workarounds would be appreciated.
>
Previous Topic:Specify whether an IEditorPart is closeable or not
Next Topic:How to show Capabilities
Goto Forum:
  


Current Time: Wed Jul 17 19:32:38 GMT 2024

Powered by FUDForum. Page generated in 0.03500 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top