Updating TreeViewer # (Object, String [] properties); What do properties refer to?

I wondered about the parameter propertiesin the method TreeViewer#update(Object element, String[] properties). What are they? What do they relate to? I'm not sure what goes into String[]- are there predefined constants? Or are these the names of my column headers? Something else?

I could not find any example of use update()that has not nullpassed to it as a value for properties. Javadoc doesn't help me much.

Thanks!

+3
source share
3 answers

eclipse.org " ", : , treeitem . , . , , , javadocs .

+2

, , . , - , isLabelProperty(), true .

, , , null .

+2

TreeViewer is an "extended" version of the SWT class tree. Therefore, I assume that here the property should refer to the property stored in TreeItem (which can be set by calling setData (String, Object).

-2
source

Source: https://habr.com/ru/post/1713294/


All Articles