[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mat-dev] Proposal: MAT Warning System
|
Here is an example of how a problem view
might look.
I modified MultiPaneEditor to implement
IGotoMarker, added some dummy problem markers when an IFileEditorInput
was received on opening a file from the project explorer, and added a public
void gotoMarker(IMarker arg0) method which when given a location would
bring an existing list_objects page for the object to the top.
I then ran MAT inside Eclipse, then
created a project in the project explorer for the dump file, then opened
the dump file.
This was just a quick example to try
out the idea - the gotoMarker also needs to run a list_objects command
if one does not already exist.
The problem marker creation would need
to be integrated into the new MAT warning framework. Also problem markers
only seem to work with resources, so I'm not sure how to make a resource
for a dump which is not in a workspace. Perhaps the dump would need to
be linked into a project, or the index files linked into the project. When
there are multiple snapshots in a dump [1 ] how could we show this in the
project explorer? Could the project explorer expand from dump to snapshot[s]
to classloaders/classes/objects?
Andrew Johnson
[1] 380858: Allow selection of which
runtime to analyze when core file contains multiple java runtimes
https://bugs.eclipse.org/bugs/show_bug.cgi?id=380858
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6
3AU
Attachment:
problemlog.png
Description: Binary data