No, there's a single contextual view factory SPI for any view - net.sf.taverna.t2.workbench.ui.views.contextualviews.activity.ContextualViewFactory
You can choose in your factory if you want to do inputs and outputs in one go, or list several of your factory classes in net.sf.taverna.t2.workbench.ui.views.contextualviews.activity.ContextualViewFactory. The factory is asked if it wants to handle a selection in the canHandle() method - you can just do an instanceof check to see if it is one of "your" ports, regardless of input or output. Note that in some cases it might be the processor port rather than the activity port that is selected, but I have not checked this. You should NOT list Taverna's InputPortContextualViewFactory as that is already listed elsewhere. In the end you should see both contextual views listed for input/output ports I would try m On Tue, Mar 19, 2013 at 12:07 PM, welkin zzp <[email protected]> wrote: > On 2013年03月19日 18:55, Alan R Williams wrote: > > On 19/03/2013 10:49, welkin zzp wrote: > > Hi, Alan > > You need to list WPSPortContextualViewFactory as implementing the SPI of > ContextualViewFactory. So the file > net.sf.taverna.t2.workbench.ui.views.contextualviews.activity.ContextualViewFactory > > in your src/main/resources/META-INF/services needs to have the fully > qualified name of WPSPortContextualViewFactory > > I have added the WPSPortContextualViewFactory and > WPSPortContextualView class,and which the SPI file in > src/main/resources/META-INF/services > should added for inputs and outputs ? > > > I am not sure what your question means. Do you want different details for > the inputs and for the outputs of the WPS activity? > > Thanks > > > Alan > > I think the inputs and outputs may require different SPI, and I added > net.sf.tavernathe. > t2.workbench.ui.views.contextualviews.inputport.InputPortContextualViewFactory > with ogc.wps.ui.view.WpsProcessActivityInputContextViewFactory content and > net.sf.taverna.t2.workbench.ui.views.contextualviews.outputport.OutputPortContextualViewFactory > with > ogc.wps.ui.view.WpsProcessActivityOutputContextViewFactory content in > src/main/resources/META-INF/services respectively, but It doesn't work, so I > think it maybe the SPI problem, so that is the correct ui SPI for activity > inputs and outputs ? > > Thanks > Translate from: English > Type text or a website address or translate a document. > Cancel > Zhèngquè de > Example usage of "": > automatically translated by Google > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_mar > _______________________________________________ > taverna-hackers mailing list > [email protected] > Web site: http://www.taverna.org.uk > Mailing lists: http://www.taverna.org.uk/about/contact-us/ > Developers Guide: http://www.taverna.org.uk/developers/ -- Stian Soiland-Reyes, myGrid team School of Computer Science The University of Manchester ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ taverna-hackers mailing list [email protected] Web site: http://www.taverna.org.uk Mailing lists: http://www.taverna.org.uk/about/contact-us/ Developers Guide: http://www.taverna.org.uk/developers/
