[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform] Adding an action / best practice

Hello list,
I am making an application that uses a file browser which I have made using a TreeViewer. I need to sort out hidden files iff the user clicks some button.


I have made an action that implements ISelectionListener and through that (the IWorkBenchPart) gets the view object which displays the files that need sorting. When the user clicks the button associated with this action it simply call a "sort files" method on the view object.

I wonder if there is a better way to do this? If so, please point me in the right direction.

Best regards Kim Pedersen