[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mylyn-integrators] help regarding doing some action on TaskEditor creation completion
|
Hi,
Currently at the time of synchronization I m fetching list of tasks with few required details.
Now, I want to list all the Tasks that are open in the TaskEditor, so that at the time of auto-synchronization it would fetch details of that task.
Below mentioned code gives me the all open tasks in TaskEditor.
IWorkbench workbench = PlatformUI.getWorkbench();
IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
for(IWorkbenchPage w_page : window.getPages()){
for(IEditorReference w_reference : w_page.getEditorReferences()){
w_selectionList.add(w_reference.getName());
}
}
I tried to invoke this block of code from createPartDescriptors method of MyTaskEditorPage.
It works fine once the eclipse is loaded. But on eclipse startup, since the pages are not yet been created, it gives me empty list and on synchronization it just can't retrive the whole details of that task.
Now I want something similer to the event like "CreationComplete" or semething else.
Could anyone plz suggest me as what I could do in order to achieve this..
Thanks,
Pankaj
--
Panku