Hi Yang,
From what you say, you seem to
have done everything necessary in the code to make your
tracetype available. Some things to check:
1- How do you run Trace
Compass? Are you sure your plugin is enabled? In Eclipse,
click on the "Run configurations...", select your
configuration and on the "Plug-ins" tab, make sure your
plugin is selected, or you have Launch with All workspace
and enabled plugins. If you build your RCP with maven, then
your plugins will need to be added to the rcp product (in
the o.e.t.i.rcp.product project). To make sure, click Help
-> About. Find the installation details button, in the
Plug-ins tab, see if your plugin is there.
2- Are there any warnings in
the plugin.xml or manifest.mf files? Sometimes, if the
package containing your traces is not exported in the
Manifest, there will be a simple warning, but the tracetype
will not be found.
3- In the Console view, while
you run, are there any error messages relating to your
tracetype?
4- Do you have a default
constructor for your trace type?
Those are my first ideas for
why it does not work. Let us know if any of it fixes your
problem, otherwise, more investigation will be required.
Best regards,
Geneviève
On
4/23/20 6:47 AM, tracecompass developer discussions wrote:
Hi,
I'm developing a custom json
parser in the TC incubator, and I have a question about
it.
1. The build including my
custom module is successful, but the feature doesn't show
up in the "select trace type" when I right click on
a trace, while running the incubator executable. What I
want is to make my parser an option in the trace type
selection, as other formats like Trace Event Format or
OpenTracing.
Here's what I did:
My new feature is initialized
with the command "skeleton/create_new_feature --dir
tracetypes --copyright "" "myTraceType"
(I check the results of this
command, the new modules are created and added to the
pom.xml file)
I extended the JsonTrace and
TmfEvent classes (as well as the traceEvent, traceField,
etc) , the current implementations compiled successfully
without error.
I add a "plugin.xml" under
the mytrace.core module, specifying the id, name category,
trace_type of my trace parser. I use the same template as
I checked in other trace type modules.
What should I do or undo to
make a new option in the "select trace type" menu?
Thank you very much
Best,
Yang
_______________________________________________
tracecompass-dev mailing list
tracecompass-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/tracecompass-dev