Skip to main content



      Home
Home » Eclipse Projects » Mylyn » [API] dealing with priorites
[API] dealing with priorites [message #67879] Mon, 06 April 2009 10:22 Go to next message
Eclipse UserFriend
Hi

I'm writing a Mylyn connector for a proprietary in-house issue tracker.
I'm using the connector crash course examples from the EclipseCon
presentation as a basis for my work. I'm now at the end of the examples
and at the point where my issues show up in Mylyn and basic query
functionality works.

The current problem I have is that custom and standardized task
attributes don't show up in the task editor. Right now I'd like to get
the priority to work. I create the priority attribute like this:

TaskAttribute priority =
data.getRoot().createAttribute(TaskAttribute.PRIORITY);
priority.getMetaData().setReadOnly(false).setType(TaskAttrib ute.TYPE_SINGLE_SELECT).setLabel( "Priority:");

However it doesn't show up in the task editor. Additionally I don't know
what value I should set for the attribute PriorityLevel#toString() or
PriorityLevel#getDescription().

Cheers
Philippe
Re: [API] dealing with priorites [message #67984 is a reply to message #67879] Thu, 09 April 2009 22:08 Go to previous message
Eclipse UserFriend
Phillipe, please post development related questions on the integrators
mailing list: http://www.eclipse.org/mylyn/developers/.

> The current problem I have is that custom and standardized task
> attributes don't show up in the task editor. Right now I'd like to get
> the priority to work. I create the priority attribute like this:
>
> TaskAttribute priority =
> data.getRoot().createAttribute(TaskAttribute.PRIORITY);
>
priority.getMetaData().setReadOnly(false).setType(TaskAttrib ute.TYPE_SINGLE_SELECT).setLabel( "Priority:");

You also need to set the kind of the attribute:

priority.getMetaData().setKind(TaskAttribute.KIND_DEFAULT);

Steffen

--
Steffen Pingel
Committer, http://eclipse.org/mylyn
Senior Developer, http://tasktop.com
Re: [API] dealing with priorites [message #597401 is a reply to message #67879] Thu, 09 April 2009 22:08 Go to previous message
Eclipse UserFriend
Phillipe, please post development related questions on the integrators
mailing list: http://www.eclipse.org/mylyn/developers/

> The current problem I have is that custom and standardized task
> attributes don't show up in the task editor. Right now I'd like to get
> the priority to work. I create the priority attribute like this:
>
> TaskAttribute priority =
> data.getRoot().createAttribute(TaskAttribute.PRIORITY);
>
priority.getMetaData().setReadOnly(false).setType(TaskAttrib ute.TYPE_SINGLE_SELECT).setLabel( "Priority:");

You also need to set the kind of the attribute:

priority.getMetaData().setKind(TaskAttribute.KIND_DEFAULT);

Steffen

--
Steffen Pingel
Committer, http://eclipse.org/mylyn
Senior Developer, http://tasktop.com
Previous Topic:WikiText Linking to Other Files
Next Topic:Mac Leopard 10.5.6, mylyn installed but not showing
Goto Forum:
  


Current Time: Tue Jun 24 07:05:22 EDT 2025

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

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

Back to the top