Re: Re: Re: How to set the category programmatically in the suggestions window?

Tor Norbye <[email protected]> Wed, 13 Aug 2003 16:55:40 -0700
Newsgroups gmane.comp.java.netbeans.modules.tasklist.devel
Organization Sun Microsystems, Inc
Message-ID <[email protected]>
By the way, are you trying to permanently filter / exclude other
suggestion types such that you have a view dedicated to your
own suggestion type?

Filtering is probably not the best approach for this. Is this an
IDE type of application, or simply a platform-usage of NetBeans?

If it's an IDE you probably want to let users see other suggestions
too, so you probably really want your own "suggestion" view.
Look at the Scan action in the suggestions view - this creates
standalone views (these are not kept "live" in terms of edit
events however). 

You'd probably need some other APIs made public etc. to make
this practical, but it may be a better approach. But without
knowing what you're doing I can't say much :)

-- Tor

Tor Norbye wrote:
> Julian Sinai wrote:
> 
>>Hi, Tor--thanks for your response.
>>
>>I found I couldn't do quite what you suggested because I needed to add
>>another condition to the filter before setting the filter on the view. So I
>>needed to make the following items public, in order to replicate the code in
>>ShowCategoryAction.MainItemListener.actionPerformed:
>>
>>SuggestionManagerImpl.notifyFiltered
>>class SuggestionNode
>>SuggestionNode.getCategoryLabel
>>SuggestionsView.notifyFiltered
>>SuggestionsView.getCurrentView
>>SuggestionType.getLocalizedName
>>
>>If it's possible to make these changes, can they be made on the NB 3.5
>>branch?
> 
> 
> Can you send me a patch?    ( cvs diff -u > mypatch.diff )
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>