| Debug / log failing nattableconfiguration [message #1709437] |
Mon, 28 September 2015 08:26  |
Eclipse User |
|
|
|
Environment: Papyrus 1.1.x nightly
I just created my first "x.nattableconfiguration" based on the tutorial
https://wiki.eclipse.org/Table_Developer_Documentation
It is quite a lengthy procedure, so surprise: it doesn't work.
I propably made a mistake...
I can select my new definition from "New table | create a table from the configurations catalog", but then nothing happens, no errors, no log messages and - most importantly - no table.
Of course I can re-re-re-read the tutorial and manually look for my mistake.
I was wondering though whether there is a more intelligent approach.
Something like:
* activate logging
* debug
* validate
...
Is there anything of that kind available to facilitate looking for mistakes in the declarative definition of tables through nattableconfig files?
Thanks,
Johan
|
|
|
|
| Re: Debug / log failing nattableconfiguration [message #1709997 is a reply to message #1709618] |
Fri, 02 October 2015 10:20  |
Eclipse User |
|
|
|
Hi Vincent,
Thanks for your feedback.
Quote:I know how to reproduce your problem.
You should create a viewpoint file too to get your table in the Papyrus Menu.
I did have a viewpoint configuration and I also had the impression I configured it according to the description in https://wiki.eclipse.org/Table_Developer_Documentation.
I have been looking at your attachments and to the way the SysML1.4 tables have been created.
Next, I started debugging and it seems nothing happens because the "type" of my TableConfiguration cannot be matched with any of the available ViewPrototypes.
(from CreateNatTableFromCatalogHandler:155, today's nightly 1.1.2)
ViewPrototype current = (...)
if (current.getImplementation().equals(tableConfiguration.getType())) {
(...)
}
The 'if' never matches. For your information: as the document suggests, I used a custom unique type name for my table.
Does this ring a bell for you?
Thanks,
Johan
|
|
|
Powered by
FUDForum. Page generated in 0.03774 seconds