|
Re: UIJob Problem [message #663511 is a reply to message #663495] |
Tue, 05 April 2011 12:25 |
Ivan Furnadjiev Messages: 2427 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Hussein,
could you provide a little snippet of UIJob usage?
Best,
Ivan
On 4/5/2011 2:45 PM, Hussein Kobeisi wrote:
>
> hey ppl,
> I have a TreeUpdateJob Class which updates the Tree when a new element
> is created, but it doesnt work, because in the UIJob class the
> RWTLifeCycle.getSessionDisplay() gives back a null, and this comment
> was inserted // RAP [fappel]: discovering the display at runtime of a
> job is not is there another way to update the tree?
> thanks, Hussein
>
|
|
|
|
Re: UIJob Problem [message #663522 is a reply to message #663513] |
Tue, 05 April 2011 13:44 |
Ivan Furnadjiev Messages: 2427 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi Hussein,
try to provide the display from the outside by using the other UIJob
ctor - UIJob(Display jobDisplay, String name).
HTH,
Ivan
On 4/5/2011 4:11 PM, Hussein Kobeisi wrote:
> Hi Ivan,
>
> public class TreeUpdateJob extends UIJob {
>
> private final UniqueMultiValueMap _addSet;
>
> private final Set<Object> _removeSet;
>
> private final Set<Object> _refreshSet;
>
> private final UniqueMultiValueMap _updateSet;
>
> private final TreeViewer _treeViewer;
>
> private final TreeArtefactRepository _treeArtefactRepository;
>
>
> /**
> * @param addSet
> * @param removeSet
> * @param refreshSet
> * @param updateSet
> */
> public TreeUpdateJob(
> DefaultContentProvider contentProvider,
> TreeViewer treeViewer,
> TreeArtefactRepository treeArtefactRepository,
> UniqueMultiValueMap addSet,
> Set<Object> removeSet,
> Set<Object> refreshSet,
> UniqueMultiValueMap updateSet) {
> super(Messages.getString("DefaultContentProvider.updateJob.label
> ")); //$NON-NLS-1$
> hier it give back a null _treeViewer = treeViewer;
> _treeArtefactRepository = treeArtefactRepository;
> _addSet = addSet;
> _removeSet = removeSet;
> _refreshSet = refreshSet;
> _updateSet = updateSet;
> }
>
>
> thx for your help,
> Hussein
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05555 seconds