> One thing is that I'm developing my connector with Mylyn 3.0 and in this > version your suggested performFinish() method in my wizard doesn't work > because of restriction to TasksUiPlugin, deprecation of getTaskList() > and non-exist methods like addQuery() and getSynchronizationManager(). I > have temporarily solved this problem by using a RepositoryQueryWizard > instead of my own implementation, but with this workaround the created > queries aren't shown in the task list.
Using RepositoryQueryWizard which provides a default implementation of performQuery() that adds the query to the task list is the recommended way to implement this in 3.0. Does your query page extend AbstractRepositoryQueryPage and implement applyTo()? > The other thing is that I get an exception when calling > resultCollector.accept(myTaskData) (also a modification of Mylyn 3.0: > instead of Task the parameter is TaskData now): > > java.lang.IllegalArgumentException: Element handle-4 does not exist in > the task list. > at > org.eclipse.mylyn.internal.tasks.core.TaskList.getValidElement(TaskList. > java:464) > at > org.eclipse.mylyn.internal.tasks.core.TaskList.addTask(TaskList.java:149 > ) > at > org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob$TaskCol > lector.accept(SynchronizeQueriesJob.java:112) > at > org.eclipse.mylyn.consol.core.ConsolRepositoryConnector.performQuery(Con > solRepositoryConnector.java:235) > at > org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchro > nizeQuery(SynchronizeQueriesJob.java:333) > at > org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchro > nizeQueries(SynchronizeQueriesJob.java:286) > at > org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.run(Syn > chronizeQueriesJob.java:228) > at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) > > I have no idea where he gets this strange "handle-4". Before I set the > summary in MyTrackerQueryPage "handle-3" was shown in my search field > when creating a query, but I just don't know what this has got to do > with myTaskData. The handle is an automatically generated unique identifier for each element in the task list that has been automatically generated. The exception indicates that you are trying to synchronize a query that was not previously added to the task list and hence can not be found. Steffen -- Steffen Pingel - [EMAIL PROTECTED] - http://steffenpingel.de _______________________________________________ mylyn-integrators mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/mylyn-integrators
