Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Questions on Search feature
Questions on Search feature [message #548185] Wed, 21 July 2010 02:19 Go to next message
Anakkapan K. is currently offline Anakkapan K.Friend
Messages: 11
Registered: February 2010
Junior Member
Hi,

I've 2 questions on Search feature. I implemented it on Eclipse 3.5.2.

1. I want to disable the "Run the current search again" button. How can I do this? What I have done is return false for SearchQuery.cannRerun(). But this just prevent the search to be done, not disable the button.

2. When I select the previous search result from "Show previous searches" button, the subnode of the search result is disappered (I attached the pictures for this case). How can I have the result shows correctly?

Before selecting previous search
http://www.uppicweb.com/x/i/ig/before.png


After selecting previous search
http://www.uppicweb.com/x/i/if/after.png

[Updated on: Wed, 21 July 2010 02:21]

Report message to a moderator

Re: Questions on Search feature [message #548241 is a reply to message #548185] Wed, 21 July 2010 08:37 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3801
Registered: July 2009
Senior Member
Anakkapan K. wrote:
> Hi,
>
> I've 2 questions on Search feature. I implemented it on Eclipse 3.5.2.
>
> 1. I want to disable the "Run the current search again" button. How
> can I do this? What I have done is return false for
> SearchQuery.cannRerun(). But this just prevent the search to be done,
> not disable the button.
This should work. Make sure you don't have a typo in your method like in
this message ;-)
>
> 2. When I select the previous search result from "Show previous
> searches" button, the subnode of the search result is disappered (I
> attached the pictures for this case). How can I have the result shows
> correctly?
Maybe you do something wrong in your search page. Anything in the .log?

Dani
>
>
> http://www.uppicweb.com/show.php?id=ceb811f8e030ba826fb307d5 7a42f4bd
>
> http://www.uppicweb.com/show.php?id=f31404be02eda200c7de6306 22e29d9a
Re: Questions on Search feature [message #548474 is a reply to message #548185] Thu, 22 July 2010 03:23 Go to previous messageGo to next message
Anakkapan K. is currently offline Anakkapan K.Friend
Messages: 11
Registered: February 2010
Junior Member
Ah.. I see. For the first question I make sure that is has no typing mistake but the problem is how can I ask the search result page to disable that butt? I mean how can I ask it to check the canRerun() again since now it check when I run the search but what I want is to check it again when user has press some buttons or do some actions.

For the second question, I found no error on log. May you give some idea what the search result page do when pressing the "Previous search result"? I may have to debug into it.
Re: Questions on Search feature [message #548492 is a reply to message #548474] Thu, 22 July 2010 07:14 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3801
Registered: July 2009
Senior Member
Anakkapan K. wrote:
> Ah.. I see. For the first question I make sure that is has no typing
> mistake but the problem is how can I ask the search result page to
> disable that butt?
The framework should do this for you.
> I mean how can I ask it to check the canRerun() again since now it
> check when I run the search but what I want is to check it again when
> user has press some buttons or do some actions.
>
> For the second question, I found no error on log. May you give some
> idea what the search result page do when pressing the "Previous search
> result"? I may have to debug into it.
Yep, debugging is the right path.

Dani
Re: Questions on Search feature [message #548786 is a reply to message #548492] Fri, 23 July 2010 02:34 Go to previous messageGo to next message
Anakkapan K. is currently offline Anakkapan K.Friend
Messages: 11
Registered: February 2010
Junior Member
Hi, Dani

For the first question, what I want is to call the button refreshing myself. Since I added some actions that could ruin the search, then I want to have the re-run search button disabled after I do those actions. How can I do that?

For the second one, I want to know where can I do debugging. Since I'm very new to this search feature so I don't know what is done after pressing the history button.
Re: Questions on Search feature [message #549565 is a reply to message #548786] Tue, 27 July 2010 08:53 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3801
Registered: July 2009
Senior Member
Anakkapan K. wrote:
> Hi, Dani
>
> For the first question, what I want is to call the button refreshing
> myself. Since I added some actions that could ruin the search, then I
> want to have the re-run search button disabled after I do those
> actions. How can I do that?
You can't refresh it yourself but it should refresh automatically
(depending on the canRerun() value) once a query has been started or
finished.
>
> For the second one, I want to know where can I do debugging. Since I'm
> very new to this search feature so I don't know what is done after
> pressing the history button.
Then add a breakpoint where the widget sends the selection event and
start from there ;-)

Dani
Previous Topic:Can`t see the plugin dependency list
Next Topic:Discard last session state on a condition
Goto Forum:
  


Current Time: Thu Nov 27 22:12:33 GMT 2014

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

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