Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mylyn » Access to Connector instance from query page
Access to Connector instance from query page [message #66369] Wed, 11 March 2009 22:51 Go to next message
Eclipse UserFriend
Originally posted by: ledelstein.salesforce.com

How can I access my own connector instance from a query page? I want to
access the connector to help me populate widgets on the query page -
drop-downs, for instance. The connector is my access to my native task
database (or at least it provides me access to the client instance I'm
using to access that database).

But I can't see a simple way to get to it from the query page. It's the
connector UI instance (a subclass of AbstractRepositoryConnectorUi) that
is going to create the wizard and query page, but this class doesn't
provide any access to the connector instance.

Any ideas? Sure, I can create a singleton field somewhere for the
connector, and I may do that for the moment. But is there a better way?

Larry Edelstein
Senior Member of Technical Staff
salesforce.com
Re: Access to Connector instance from query page [message #66380 is a reply to message #66369] Wed, 11 March 2009 23:13 Go to previous message
Steffen Pingel is currently offline Steffen PingelFriend
Messages: 706
Registered: July 2009
Senior Member
> How can I access my own connector instance from a query page? I want to
> access the connector to help me populate widgets on the query page -
> drop-downs, for instance. The connector is my access to my native task
> database (or at least it provides me access to the client instance I'm
> using to access that database).

You can get the connector through the TasksUi facade or extend
AbstractRepositoryQueryPage2 (available in Mylyn 3.1) which stores the
connector instance on a field:

connector =
TasksUi.getRepositoryConnector(getTaskRepository().getConnec torKind());

Development related questions are best asked on the dev or integrators
mailing list which reach a larger audience of committers and users building
on Mylyn: http://www.eclipse.org/mylyn/developers/.

Steffen
Re: Access to Connector instance from query page [message #596655 is a reply to message #66369] Wed, 11 March 2009 23:13 Go to previous message
Steffen Pingel is currently offline Steffen PingelFriend
Messages: 706
Registered: July 2009
Senior Member
> How can I access my own connector instance from a query page? I want to
> access the connector to help me populate widgets on the query page -
> drop-downs, for instance. The connector is my access to my native task
> database (or at least it provides me access to the client instance I'm
> using to access that database).

You can get the connector through the TasksUi facade or extend
AbstractRepositoryQueryPage2 (available in Mylyn 3.1) which stores the
connector instance on a field:

connector =
TasksUi.getRepositoryConnector(getTaskRepository().getConnec torKind());

Development related questions are best asked on the dev or integrators
mailing list which reach a larger audience of committers and users building
on Mylyn: http://www.eclipse.org/mylyn/developers/

Steffen
Previous Topic:Trac 0.11 + Mylyn: Weird Query results
Next Topic:Mylyn 3.1 RC updated
Goto Forum:
  


Current Time: Thu Dec 26 20:23:56 GMT 2024

Powered by FUDForum. Page generated in 0.03430 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top