Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Extending IAnalysisResultView
Extending IAnalysisResultView [message #92109] Thu, 01 February 2007 15:52 Go to next message
Eclipse UserFriend
Originally posted by: junk.gianfagna.net

Hi,

I'm looking for some pointers on extending IAnalysisResultView. I'd like to
create a custom result view to display more detailed result information. I
spent some time pouring through plug-in config files and source code and I'm
a little lost...

I tried adding a plug-in extension of
org.eclipse.tptp.platform.analysis.core.ui.analysisResultVie w, but it just
seemed to call the ResultViewDefault implementation. Any thoughts about
what I'm missing?

Is it possible to do this without also creating a new CodeReviewProvider?
I'd like to leverage what is already in the C code review plug-in, but
provide a different UI to view results.

Any help would be much appreciated.

Thanks.
--Andy
Re: Extending IAnalysisResultView [message #92336 is a reply to message #92109] Wed, 07 February 2007 20:01 Go to previous messageGo to next message
Steve Gutz is currently offline Steve GutzFriend
Messages: 70
Registered: July 2009
Member
For TPTP 4.4 there is a new extension point that will allow you to poke your
own renderer into the result view. This will permit you to use the current
default tree view or to insert something like a table view. Using the
org.eclipse.tptp.platform.analysis.core.ui.analysisResultVie w extension
point is the right thing to do, so you're already on your way.

Give your extension an id and refer to a class that implements
IAnalysisResultView (you probably also want to implement
AnalysisHistoryListener to catch history events too). Also in the extension
assign a provider id (i.e. codereview.java.analysisProvider is the id for
Java code review provider) so the framework knows which provider your
renderer is for. Give your exntesion a label - this will appear in the UI
in a combobox in the result view.

You can model your rendering class after
org.eclipse.tptp.platform.analysis.core.ui.views.ResultViewD efault, which
you can find in the TPTP source.

Steve


"Andy Gianfagna" <junk@gianfagna.net> wrote in message
news:ept2be$m9u$1@utils.eclipse.org...
> Hi,
>
> I'm looking for some pointers on extending IAnalysisResultView. I'd like
> to create a custom result view to display more detailed result
> information. I spent some time pouring through plug-in config files and
> source code and I'm a little lost...
>
> I tried adding a plug-in extension of
> org.eclipse.tptp.platform.analysis.core.ui.analysisResultVie w, but it just
> seemed to call the ResultViewDefault implementation. Any thoughts about
> what I'm missing?
>
> Is it possible to do this without also creating a new CodeReviewProvider?
> I'd like to leverage what is already in the C code review plug-in, but
> provide a different UI to view results.
>
> Any help would be much appreciated.
>
> Thanks.
> --Andy
>
>
Re: Extending IAnalysisResultView [message #92352 is a reply to message #92336] Thu, 08 February 2007 04:24 Go to previous message
Eclipse UserFriend
Originally posted by: junk.gianfagna.net

Steve,

Nice, that's exactly what I was looking for. I was developing with the 4.3
branch before, I've since switched to HEAD and picked up the change your
talked about. My new placeholder view renders in there as expected. Thanks
so much for the info.

--Andy


"Steve Gutz" <sgutz@ca.ibm.com> wrote in message
news:eqdb6h$f8l$1@utils.eclipse.org...
> For TPTP 4.4 there is a new extension point that will allow you to poke
> your own renderer into the result view. This will permit you to use the
> current default tree view or to insert something like a table view. Using
> the org.eclipse.tptp.platform.analysis.core.ui.analysisResultVie w
> extension point is the right thing to do, so you're already on your way.
>
> Give your extension an id and refer to a class that implements
> IAnalysisResultView (you probably also want to implement
> AnalysisHistoryListener to catch history events too). Also in the
> extension assign a provider id (i.e. codereview.java.analysisProvider is
> the id for Java code review provider) so the framework knows which
> provider your renderer is for. Give your exntesion a label - this will
> appear in the UI in a combobox in the result view.
>
> You can model your rendering class after
> org.eclipse.tptp.platform.analysis.core.ui.views.ResultViewD efault, which
> you can find in the TPTP source.
>
> Steve
>
>
> "Andy Gianfagna" <junk@gianfagna.net> wrote in message
> news:ept2be$m9u$1@utils.eclipse.org...
>> Hi,
>>
>> I'm looking for some pointers on extending IAnalysisResultView. I'd like
>> to create a custom result view to display more detailed result
>> information. I spent some time pouring through plug-in config files and
>> source code and I'm a little lost...
>>
>> I tried adding a plug-in extension of
>> org.eclipse.tptp.platform.analysis.core.ui.analysisResultVie w, but it
>> just seemed to call the ResultViewDefault implementation. Any thoughts
>> about what I'm missing?
>>
>> Is it possible to do this without also creating a new CodeReviewProvider?
>> I'd like to leverage what is already in the C code review plug-in, but
>> provide a different UI to view results.
>>
>> Any help would be much appreciated.
>>
>> Thanks.
>> --Andy
>>
>>
>
>
Previous Topic:Status of JVM 1.6 support for JVM TI
Next Topic:Error when i try to profile a tomcat app
Goto Forum:
  


Current Time: Fri Aug 14 03:01:21 GMT 2020

Powered by FUDForum. Page generated in 0.03442 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top