Conditional style in tree description [message #1805151] |
Mon, 08 April 2019 09:32  |
Eclipse User |
|
|
|
Hello,
I am trying to create a new tree view based on sirius tree description.
So far I have successfully been able to define the content of the tree, and to define some drag & drop tools.
However, I do not achieve to apply conditional style on the tree.
I have declared a conditional style under a tree element.
In order to know if the conditional style has to be applied, I need to get the DTreeItem in order to know where the semantic element is represented in the tree.
The predicate expression I use is: "<% $view.isMissingFromInterfaces() %>" and I have defined the associated Java function:
public boolean isMissingFromInterfaces (DTreeItem item) { ... }
The result is that my Java function is never called...
It seems like the variable "view" is use is not recognized.
Any idea?
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05870 seconds