server side Advisor plugin, with client side Ui.. how does that happen
I have a plugin that runs on the server.. no problem..
I want to pass it some configuration data, like the dynamic attributes, or required attributes,, how do you create that UI part? where does it get installed? anyone have any samples? Thx |
3 answers
There are a couple wiki topics that will should help you with this: https://jazz.net/wiki/bin/view/Main/ProcessAspectEditorCreation
Don Jazz Process Team |
Ralph Schoon (63.5k●3●36●46)
| answered Jun 22 '12, 7:42 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
This shows how this works: https://jazz.net/library/article/784
Search for Aspect Editor. |
Thanks, but, I think I'm sorry I asked. Those links yield such a barrage of unclear technical text.
and gosh I HATE creating UI in code.. and it looks like I have to do the whole user search, select, add/manage the list.. ugh.. We call them Advisors and Participants now, I never think pre/post so the text is.. tough.. In one case, it shows three classes to extend, but then says don't use one.. why bother showing it then.. "Implement the aspect editor class The aspect editor class must extend one of the following classes:
I have a working Advisor, and its hard to tell what in those links is delta to what I have vs required for an AspectEditor. Also not discussed is how the plugin gets access to this data. I don't see it in any of the properties passed to the Advisor or Participant. I guess I will have to go read the source of the supplied code.. hope it uses the data, altho I didn't see it on first glimpse. The editor appears to use the IMemento, and the plugin uses the IConfigurationElement. also, the text says "Both the advisor implementing this precondition and its aspect editor are defined in the com.ibm.team.process.definitions.ide.ui plug-in.
"in that plugin(on 4.0), all I see is the AspectEditor.. not the actual Advisor that would USE the properties managed by the AspectEditor. there are two classes in the plugin com.ibm.team.process.internal.definitions.ide.ui and com.ibm.team.process.internal.definitions.ide.ui.deliver.editors but I don't see a single class method with the parameters like my Advisor gets public void run(AdvisableOperation operation, IProcessConfigurationElement advisorConfiguration, IAdvisorInfoCollector collector, IProgressMonitor monitor) throws TeamRepositoryException so, I don't see how to package this UI component with the actual Advisor component which is installed at the server. (here's hoping you don't have to installed it in both eclipse client and server). Comments
Ralph Schoon
commented Jun 22 '12, 9:34 a.m.
| edited Jul 18 '12, 4:34 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Sam,
Ralph Schoon
commented Jun 22 '12, 9:38 a.m.
| edited Jul 18 '12, 4:34 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Oh, I forgot, the Aspect editor uses the client API to retrieve the UI elements. Notifications are used to make parts of the UI aware of changes in other parts, as far as i remember. thanks.. depressing..
Ralph Schoon
commented Jun 22 '12, 10:07 a.m.
| edited Jul 18 '12, 4:35 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
The deployment.... Well.... That's why I mentioned in my Innovate talk 'The Rational Team Concert SDK: How to Nice presentation.. wished I'd had it year before last!..
Ralph Schoon
commented Jun 22 '12, 11:48 a.m.
| edited Jul 18 '12, 4:36 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Hi Sam,
showing 5 of 6
show 1 more comments
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.