Thanks a lot! This is exactly what I needed. I saw that code but didn't make the connection.
From: [email protected] [mailto:[email protected]] On Behalf Of Frank Becker Sent: Thursday, February 03, 2011 12:46 To: Mylyn Integrators list Subject: Re: [mylyn-integrators] how to control layout order of widgets in rich task editor You can use BugzillaTaskEditorPage.createAttributeEditorFactory() as an example. if (editor != null && taskAttribute.getId().startsWith(BugzillaCustomField.CUSTOM_FIELD_PREFIX)) { editor.setLayoutHint(new LayoutHint(editor.getLayoutHint()) { @Override public int getPriority() { return super.getPriority() * 10; } }); } Hope this helps. Frank Am 03.02.2011 um 19:18 schrieb Schnaubelt, Gabe T: I'm implementing a custom integrator for Mylyn and my company's internal bug tracker. When opening a task into Mylyn's TaskEditorPage how can I control the order of the different widgets (text fields, combo boxes, etc.)? I have a class that extends AbstractTaskDataHandler. In this class I create TaskAttributes. The editor then automatically displays widgets for the TaskAttributes but in seemingly random order. The widgets are not in the order I create the TaskAttributes, and are not in alphabetic order. Here's the method I wrote to create the TaskAttributes: public static TaskAttribute createAttribute(final TaskAttribute parent, final HsdAttribute key) { final TaskAttribute attribute = parent.createAttribute(key.getKey()); attribute.getMetaData().defaults() .setReadOnly(key.isReadOnly()) .setKind(key.getKind()) .setLabel(key.toString()) .setType(key.getType()); return attribute; } I've used the Trac integrator as an example to develop a lot of the other parts of my code. I've also referenced the wiki here: http://wiki.eclipse.org/Mylyn/Integrator_Reference _______________________________________________ mylyn-integrators mailing list [email protected]<mailto:[email protected]> https://dev.eclipse.org/mailman/listinfo/mylyn-integrators
_______________________________________________ mylyn-integrators mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/mylyn-integrators
