server side Advisor plugin, with client side Ui.. how does that happen
3 answers
There are a couple wiki topics that will should help you with this:
https://jazz.net/wiki/bin/view/Main/PreconditionFollowupCreation
https://jazz.net/wiki/bin/view/Main/ProcessAspectEditorCreation
Don
Jazz Process Team
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
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
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).
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:
com.ibm.team.process.ide.ui.ProcessAspectEditor: although this is the return type for the factory's create method, it is actually deprecated and should no longer be used directly; extendProcessAspectEditor2orOperationDetailsAspectEditorinstead
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
showing 5 of 6
show 1 more comments