Perspective

A Perspective is a top-level GUI Panel within Taverna 1.7.x Workbench.

A new Perspective can be added to Taverna 1.7.x by a class that implements the net.sf.taverna.perspectives.PerspectiveSPI interface. The name of the new class must be specified within a net.sf.taverna.perspectives.PerspectiveSPI file within the appropriate resources/META-INF/services directory.

The layout of the perspective is normally specified within the resources/META-INF/services directory by an XML file.

Example

net.sf.taverna.perspectives.DesignPerspective implements the net.sf.taverna.perspectives.WorkflowPerspective interface, an extension of the net.sf.taverna.perspectives.PerspectiveSPI interface.

public class DesignPerspective ... implements WorkflowPerspective {	

	public ImageIcon getButtonIcon() {
		return TavernaIcons.editIcon;
	}	

	public String getText() {
		return "Design";
	}

        ...
}

The file named net.sf.taverna.perspectives.PerspectiveSPI must contain the line:

net.sf.taverna.perspectives.DesignPerspective