Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[recommenders-dev] ExtDoc provider for runtime exceptions

Hi,

I worked on a new ExtDoc provider that I'd like to contribute to the
Code Recommenders project. It is called Throws Provider and lists all
possible runtime exceptions found in a selected method, similar to the
Eclipse Call Hierarchy Viewer. See the attached Screenshot for an
example.

The code can be found in the repository at:
http://code.google.com/a/eclipselabs.org/p/code-recommenders/source/checkout?repo=throws-fabio

There is one class in the project which I copied from another project
that was released under the EPL v1.0:
org.eclipselabs.recommenders.throwsgen.util.ConversionUtils. The
Source is stated in the classes JavaDoc. Does this pose a problem?

Additionally a remark about the ExtDoc UI: I had problems fitting my
SashForm into the available Composite given to the ExtDoc providers.
It would look much better if I could fit the SashForm exactly into the
available space. Unfortunately that doesn't seem to be possible using
the ScrolledComposite. I had to reimplement some computeSize() methods
and adjust the size manually to avoid the scrollsbars from showing up.
I'm not too familiar with SWT, so I don't know if there is an easier
way of achieving this, but it seems to me that allowing the provider
to decide if it requires a ScrolledComposite or not would offer much
more freedom to the provider.

Regards,
Fabio

Attachment: ExtDoc_ThrowsProvider.png
Description: PNG image


Back to the top