简体   繁体   中英

I want to display a table of metrics but unable to do so

i am developing a plugin that calculates the class metrics of the selected java file. so, m using IWorkbenchWindowAction delegate to add the plugin button and menu option.

by selecting the java file, and clicking on the plugin button, i obtain the pathname of the selected file, and now i need to calculate the metrics over it.

suppose i have already calculated the metrics. now, i want to display them in tabular form.

what needs to be done??? how can i display a table, and display it as soon as the plugin button is pressed (after calculating the metrics, ofcourse).. ??

You must probably create your own view, with table (Viewer) inside it. Updating viewer strategy can be different. For instance, you can make your view listen to some events, which are generated after the metrics are calculated. Or, if you want to have a separate button for updating the view, then you should attach proper action/command handler with necessary logic. Does this answer your question, or I am missing something?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM