Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-integrators] No externalizer for query - What did I miss?

Hi Eugene,
Thanks again for the additional explanations and pointer. In fact the lack of documentation is one of the biggest problems for me when implementing my connector. Sometimes the javadoc is even wrong like in AbstractRepositoryConnector.markStaleTasks - it says that it returns a set of changed tasks but the method actually returns a boolean (I use the Mylyn 2.x stream for Eclipse 3.3).

regards,
Dennis

On Dec 17, 2007 6:13 AM, Eugene Kuleshov < eu@xxxxxxxx> wrote:
Dennis Rietmann wrote:
> Thanks for your fast reply. In fact I already had a TaskListFactory
> but did not override getQueryElementName. Now I simply return
> "<connector name> Query" and the error doesn't appear anymore.
> I wonder what this element name is used for, seems like it has
> something to do with xml externalization (unfortunately there is no
> javadoc at all)?
 Glad to hear you got it resolved.

 You are right, the return value of that method is a name of the XML
element used to store your query data. For example, in Bugzilla
connector there are two query types, one created from URL and the form
based one, so those names should be deterministic and unique between
connectors. Also note that you need to add it to the set returned by
getQueryElementNames() method. All the logic and interaction between
these methods reside in the DelegatingTaskExternalizer class.

 Regarding javadocs, there is an open enhancement request scheduled for
Mylyn 3.0:

195450: improve documentation for APIs and extension point definitions
https://bugs.eclipse.org/bugs/show_bug.cgi?id=195450

 I've submitted a patch there that includes javadocs for the
AbstractTaskListFactory class.

 regards,
 Eugene


_______________________________________________
mylyn-integrators mailing list
mylyn-integrators@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/mylyn-integrators


Back to the top