Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [mylyn-integrators] Startup help for writing new connector

> 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()?

Yes to both, but I think there's the problem.
My applyTo() method is following:

    @Override
    public void applyTo(IRepositoryQuery query) {
 
//query.setUrl(getQueryUrl(getTaskRepository().getRepositoryUrl()));
        query.setSummary(SUMMARY);
    }

There is only one operation, setting the summary of the query. In all
other connectors I used for reference there is my commented line,
setting the query URL. But I don't know how to use this query URL and
why I need it. My connector gets the task list from a database server
and there is no query URL.
Could this be the problem, not setting the query URL?
Or what could be the reason that my created query isn't added to the
task list?

> 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.

Ok, so I think this problem will be resolved when the problem above is
solved.

Kind regards,
Robert


Back to the top