When I click on the installation tab and that my installation node was already selected, the callback openView() is called twice. To reproduce it:
- Add some console trace in the openView method
- Select the installation node
- Press on the tab Program
- Press on the tab Installation
- You should se the trace printed twice.
You are correct, that
openView() is called twice when toggling from Program to an open Installation node.
closeView() is called twice as well, so the math should add up, and you will end up with the
Normally, toggling between two different installation- or program nodes will only yield 1
For the ProgramNode the behaviour is:
@Override methods, such as
isDefined() etc. should be designed in a way, so they are lean and not very resource consuming, as this might affect the responsiveness of the GUI.
isDefined()method is called every time a change is made in the program.
Hence, you should not have any remote calls or methods with slow response time in
(Valid for SDK 18.104.22.168)
The problem we have with the openView/closeView called twice is that we set
the visibility of a widget from those callbacks so it flickers on the
screen. That is not a major issue but it looks strange.
2016-08-19 5:42 GMT-04:00 Jacob Bom Madsen <