Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Debug / log failing nattableconfiguration
Debug / log failing nattableconfiguration [message #1709437] Mon, 28 September 2015 12:26 Go to next message
Johan Van Noten is currently offline Johan Van NotenFriend
Messages: 87
Registered: July 2009
Member
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 #1709618 is a reply to message #1709437] Tue, 29 September 2015 15:42 Go to previous messageGo to next message
Vincent Lorenzo is currently offline Vincent LorenzoFriend
Messages: 247
Registered: June 2010
Location: Paris Saclay, France
Senior Member
Hello Johan.
We do not provide a debugger for tableconfiguration.
I know how to reproduce your problem.
You should create a viewpoint file too to get your table in the Papyrus Menu.

Documentation for viewpoint is embedded in Eclipse. You could have a look to viewpoint configuration of the plugin org.eclipse.papyrus.uml.nattable.clazz.config (I attached 3 files to my answer).


Regards,
--
Vincent Lorenzo
Re: Debug / log failing nattableconfiguration [message #1709997 is a reply to message #1709618] Fri, 02 October 2015 14:20 Go to previous message
Johan Van Noten is currently offline Johan Van NotenFriend
Messages: 87
Registered: July 2009
Member
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
Previous Topic:Help Notes and all graphical shapes are grayed out on my Papyrus
Next Topic:UML to ECORE Transformation
Goto Forum:
  


Current Time: Fri Mar 29 05:04:09 GMT 2024

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

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

Back to the top