Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-ui-dev] Packages view requests

Re 1: we will add a getViewer() method to IPackagesViewPart.

Re 2:  persisting the state of view contributions will be supported by the
workbench for 2.0

--erich



                                                                                                                               
                      Stef_van_Dijk@oti                                                                                        
                      .com                      To:      jdt-ui-dev@xxxxxxxxxxx                                                
                      Sent by:                  cc:                                                                            
                      jdt-ui-dev-admin@         Subject: Re: [jdt-ui-dev] Packages view requests                               
                      eclipse.org                                                                                              
                                                                                                                               
                                                                                                                               
                      14.02.2002 15:17                                                                                         
                      Please respond to                                                                                        
                      jdt-ui-dev                                                                                               
                                                                                                                               
                                                                                                                               




Sorry to take so long in responding, but with the upcoming WSDD release I
haven't had much time to play with Eclipse 2.0. My comments are also based
on the 12/19 SDK, so again my apologies if this information is out of date
now.
With regard to the viewer filter, I got it working fairly easily, but have
a couple of comments/issues:
1. While my action receives the IPackagesViewPart (PackageExplorerPart) on
the init(), that interface doesn't really seem to help. The filter needs to
be set on the viewer (PackageViewer), but there's no API to access it. I
had to get the view site from the IViewPart, then get the selection
provider and cast that to an AbstractTreeViewer.
2. Unlike the Show Referenced Libraries filter, there's no way to preserve
the state of my filter. PackageExplorerPart has specific code in saveState
() and restoreFilters() to handle it's own filter. Since
PackageExplorerPart is internal, I can't really subclass it, but I wouldn't
really want to do that anyway as I want my filter available in all Packages
views. However as it stands, the user must always re-tickle the filter to
get it turned back on when the perspective is opened or workbench
restarted.

Again, sorry if this has changed since the drop I worked with. Hopefully
I'll be able to look at Eclipse 2.0 again in a couple of weeks.

   Stef




                      Erich_Gamma@oti.c

                      om                        To:
jdt-ui-dev@xxxxxxxxxxx
                      Sent by:                  cc:
jdt-ui-dev@xxxxxxxxxxx
                      jdt-ui-dev-admin@         Subject: Re: [jdt-ui-dev]
Packages view requests
                      eclipse.org



                      12/14/2001 08:12

                      AM

                      Please respond to

                      jdt-ui-dev







Re 1:
let us know how the viewer filter action works. The API additions to enable
this are minimal,
since a subset of the PackageExplorerPart's API is already surfaced (see
IPackagesViewPart).

Re 2:
as you see from the published plan on eclipse.org this is currently not a
committed item, but we would like to make this happen. The
mechanism to do so is mostly in place.

--erich




                    Stef_van_Dijk@oti.

                    com                       To:
jdt-ui-dev@xxxxxxxxxxx

                    Sent by:                  cc:

                    jdt-ui-dev-admin@e        Subject:     [jdt-ui-dev]
Packages view requests
                    clipse.org



                    13.12.2001 20:27

                    Please respond to

                    jdt-ui-dev






Here are a couple of requests for the Packages view. We currently use a
custom viewer and would like to abandon it in favor the Packages view, but
need a little extra functionality.

1. Will any support for more advanced filtering of the packages view appear
in 2.0? Specifically, we want a filter that will only show bundle projects.
This is something that is logically determined. We do not have a bundle
nature to flag this.

I have already received a suggestion to add a ViewFilter I've defined as a
contribution to the View menu (as opposed to integrating something that
would be accessed from the Filters... action already on the View menu). I
will look to do this, but it was noted that this would require that jdt-ui
minimally expose the PackageExplorerPart as API. In fact, it goes beyond
that as I really need access to the PackageViewer in order to add the
filter, and getViewer() is not an accessible method.

2. Will we be able to get markers (error, warning and info) shown for
non-java files in the packages view? Note, currently our markers are not a
subtype of JavaProblem, though we could change that if necessary.

   Stef


_______________________________________________
jdt-ui-dev mailing list
jdt-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-ui-dev




_______________________________________________
jdt-ui-dev mailing list
jdt-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-ui-dev




_______________________________________________
jdt-ui-dev mailing list
jdt-ui-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-ui-dev






Back to the top