Re: Re: Re: How to set the category programmatically in the suggestions window?
"Julian Sinai" <[email protected]> Thu, 14 Aug 2003 11:45:07 -0700
| Newsgroups | gmane.comp.java.netbeans.modules.tasklist.devel |
|---|---|
| Message-ID | <[email protected]> |
Yes, we are trying to permanently exclude other suggestion types such that we have a view dedicated to our own suggestion type. To give you an idea of what we're doing: We use NetBeans as a platform because our primary interface is a graph where users draw objects and connect them with edges, and then customize these objects in property sheets. From this we generate XML and JSP code. Users can inspect and change the XML and JSP if they desire, so we've retained most of the IDE modules. We provide suggestions to fix objects in the graph. When you click on an object, we show only the suggestions for that object. This is why we need to filter. The reason we need to set the category is that filtering doesn't seem to work if the suggestions are collected under a parent node. Also, we want to present the suggestions in a flat list, not a tree. Julian "Tor Norbye" <[email protected]> wrote in message news:[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] > >