Is there a way for a NodeDialogPane to get available flow variables during init.

Hi,

In the constructor of my NodeDialogPane, i need the list of available flow variables.

However, the NodeDialogPane#m_flowObjectStack is only populated during NodeDialogPane#internalLoadSettingsFrom.

Is there another way that i can access the available flow variables from my NodeDialogPane, or should i call a new NodeModel from my NodeDialogPane to retrieve it via NodeModel#getAvailableFlowVariables

 

Cheers,

Ken

Why do you need the flow variables already in the constructor? Before the dialog is shown to the user, loadSettingFrom is always called. Therefore you can make any modification to the dialog that needs flow variables in this method.