[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: tree viewer refresh problem ...

can you provide a snippet we can run and test and debug it and when we can get it working it could get part of our snippet collection.

Tom

KarSc schrieb:
Hi guys sorry for the delay ...

i did try the update on the decorator manager ... but still no luck :-(
not sure using the auto expand level is correct for me ... i have got a huge tree to display :-(


still thanks for all ur help
Ciao
Kar


"Shawn Spiars" <sspiars@xxxxxxxx> wrote in message news:47D8A516.6080908@xxxxxxxxxxx
I used this once to get a decorator to do it's thing.

Display.getDefault().asyncExec(new Runnable() {
public void run() {
PlatformUI.getWorkbench().getDecoratorManager().
                    update("com.acme.decorator");
        }
});


Shawn Spiars wrote:
I am just wondering if setting the autoExpandLevel on the treeViewer will prevent it from collapsing during a refresh?

viewer.setAutoExpandLevel(TreeViewer.ALL_LEVELS);

Shawn

KarSc wrote:
Hi guys thanks for your help but none of the solution works :-(



I have checked and printed the status of the model before actually calling the refresh or update, it is correct but the decorator is not called ...



hope I haven't done anything wrong in the viewer...



anything I can check :-(



Cheers

Kar


"Tom Schindl" <tom.schindl@xxxxxxxxxxxxxxx> wrote in message news:fr82cr$8h4$1@xxxxxxxxxxxxxxxxxxxx
isn't viewer update(Object,null) enough to update the decoration status?

Tom

Shawn Spiars schrieb:
KarSc wrote:

Note: I have seen that If I run the refresh on the item itself the label
will not get properly updated .


Not sure if this will work, but you might try refresh on the item with the updateLabels set to true.

viewer.refresh(Object element, boolean updateLabels);
--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl JFace-Committer
--------------------------------------------------------------------





--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl                                          JFace-Committer
--------------------------------------------------------------------