ystrot / glance

Eclipse Glance
59 stars 17 forks source link

Feature Request: Expanded support for graph/table views #17

Open jonathancone opened 12 years ago

jonathancone commented 12 years ago

ystrot,

First off this plugin is great -- I've been using it daily and telling other developers about it who have also begun using it.

Would it be possible to add expanded support for table views like you see in the Package Explorer and debug variable windows? Currently, you can search the package explorer and matches will only be returned for previously expanded folders. It would be helpful if the plugin could crawl the graph structure in this circumstance and expand all the nodes that match your search criteria.

Thanks again for the great work!

ystrot commented 12 years ago

Hey Jonathan,

We already have this support. You need to index hidden content first and there is a button "Index component" on the glance panel. You can even enable auto indexing on the glance preference page.

However you need to be careful with this feature. Some components can be too deep. For example few plugins in your Package Explorer hide all classes/methods of all system jars and standard plugins. Most likely your eclipse hasn't enough memory to index all this stuff. Therefore we have one more option on the preference page - "max indexing depth for trees" which equals to 4 by default.

You can play with all these options to find the best for your needs.

jonathancone commented 12 years ago

Yuri, this is great -- thanks! I didn't figure this about because it looks like the index button disappears randomly. Here is a test case to reproduce:

  1. Open Debug perspective
  2. Click on Variables view / tab
  3. Open Glance
  4. Notice the index button is visible in the Glance panel
  5. Click on the Java perspective
  6. Notice the index button disappears
  7. Click on a package or file -- still no index button
  8. Click in the space where the index button should be and it refreshes properly

Tested on Helios SR2 20110218-0911