Node with both ExternalApplicationNodeView and NodeView view's ?

Hi all,

I am trying to figure out how to create a node with both swing-based and non-swing based views. I must be missing something about the 2.1.2 code to do this:

public abstract NodeView createNodeView(final int viewIndex, final T nodeModel);

which I have overridden in my factory class to inspect viewIndex and instantiate the appropriate object, but this doesn’t work for the non-NodeView derived class because of the return type in NodeFactory. But I can’t figure out how to use createAbstractNodeView() instead for all three views… as this fails due to a missing implementation of createNodeView()

What am I missing?


Ugh… never mind… brain fade :wink:

To fix this, you just override createAbstractNodeView() and instantiate your abstract views there instead of in createNodeView(). I didn’t realise the framework was calling createAbstractNodeView() instead of createNodeView()