[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [mylyn-integrators] lost when porting to 3.0
|
An attribute needs to have valid meta data to become visible in the attribute
section of the task editor. Here is an example how to set the meta data (also
see JiraTaskDataHandler.createAttribute()):
attribute.getMetaData().defaults()
.setReadOnly(false)
.setKind(TaskAttribute.KIND_DEFAULT)
.setLabel("My Attribute")
.setType(TaskAttribute.TYPE_SHORT_TEXT);
It is important to set a valid type and kind. Framework supported Types are
defined in the TaskAttribute.TYPE_* constants. Currently
TaskAttribute.KIND_DEFAULT is the only supported kind.
Steffen
On Monday 08 September 2008, Maarten Meijer wrote:
> Hi all,
>
> I'm porting the generic SQL connector to Mylyn 3.0.
> I can see the connector in the dialogs, and can connect to the DB
> specified.
> I can create queries with a dialog and do performQuery() and show
> items in the task list
>
> but I cannot get anything to appear in the form-based TaskEditor. It
> appears that none of TaskData makes it to the editor.
>
> I have the TaskData for the thing initialized as follows:
>
> TaskAttribute[id=root,values=[],options=null,metaData=null]
> TaskAttribute[id=task.common.status,values=[],options={not used=not
> used},metaData=null]
> TaskAttribute[id=task.common.priority,values=[P1],options={P1=P1,
> P2=P2, P3=P3, P4=P4, P5=P5},metaData=null]
> TaskAttribute[id=task.common.product,values=[],options={Product
> 1=Product 1, Product 2=Product 2, Product 3=Product 3, Product
> 4=Product 4, Product 5=Product 5, UNKNOWN=UNKNOWN},metaData=null]
> TaskAttribute[id=task.common.summary,values=[Test issue
> 1],options=null,metaData=null]
>
> TaskAttribute
> [id
> =task.common.user.assigned,values=[Maarten],options=null,metaData=null]
> TaskAttribute[id=task.common.date.created,values=[Sat Sep 06
> 11:35:38 CEST 2008],options=null,metaData=null]
>
> Is there something wrong with the metadata being null? How do I get
> the stuff into the editor?
>
> Maarten
--
Steffen Pingel - steffenp@xxxxxx - http://steffenpingel.de