-
Notifications
You must be signed in to change notification settings - Fork 0
Настройка параметров перспективы
Perspective is described in plugin.xml and loaded with extension registry point biouml.workbench.perspective:
<extension point="biouml.workbench.perspective">
<perspective name="Genome Enhancer" priority="30" intro="intro-genomeenhancer">
<repository>
<tab title="GenomeEnhancer" path="GenomeEnhancer" virtual="true"/>
</repository>
</perspective>
</extension>
Attributes:
- name - String - perspective name displayed in the dropdown selector
- intro - String - name of html page that will be shown as home page. .html should be placed in the webfiles folder
- projectSelector - boolean - whether to show Project selector dropdown in perspective. This option is additionally regulated by disableProjectSelector in
defines.js - template - String - default info template name for selected elements info (left bottom block), if applicable for selected element
- hideDiagramPanel - boolean - whether to show buttons History and Chat and corresponding panels in diagram at the top right diagram toolbar
- closeOnlyOnSessionExpire - boolean - whether to show login form when session is expired, if
true, only expired message without relogin possibility will be shown. - priority - integer - sorting value for position in the perspective dropdown list. Currently top is 100 (Default), PathFinder is 50, bottom (GalaxyAdmin) is 0. Others are between 100 and 0.
Nested properties:
- repository - list of repository tabs
<repository>
<tab title="Databases" path="databases" databases="true"/>
<tab title="PathFinder" path="PathFinder" virtual="true"/>
</repository>
- title - tab title (clicked tab elements on top of the tree)
- path - tab name in tree, used in data element paths
- virtual - boolean - true, if tab path is not equal to one of the 4 basic tabs: databases, data, analyses, users. This property is required for correct path initialization on web, if not set, some path-selector related features may not work properly just after login
- messageBunde - list of perspective-dependent message replacements for any messages in
BioUML/src/ru/biosoft/server/servlets/webservices/webfiles/lib/messageBundle.jsfile. Has key-value structure in the resources tag. Many client messages/captions/titles are stored in messageBundle and can be adjusted via perspective.
<messageBundle>
<resources key="commonErrorSessionExpiredNoUnsaved" value="PathFinder session has expired. Please,
close the current tab in your browser and invoke the pathway again from the database interface." />
</messageBundle>
- viewparts - rules for bottom right viewpart tabs management. All or specific viewparts can be shown/hidden. Rules are applied one after another, so if you set the last rule
<deny id="*"/>, no viewparts will be shown at all.
<viewparts>
<deny id="*"/>
<allow id="search.results"/>
<allow id="diagram.overview"/>
<allow id="pathfinder.legend"/>
</viewparts>
id field in rule is viewpart-specific id, see viewpart creation page. It is used in client javascript to operate the viewpart. It is set up when viewpart is created with method createViewPart as second variable:
createViewPart(this, "diagram.layout", resources.vpLayoutTitle);
There is no common list and strict rules for naming. Generally, id is like ‘diagram.layout’, prefix should specify type like 'common.', 'diagram.' etc.
Viewparts are created in files viewpart*.js, some of them are not loaded until specific perspective is selected or until specific data element is opened. For example, viewpartsDiagram.js will be loaded and initialized only when the user opens diagram at first time.
- actions - action visibility management. For static actions id is set in *.json files from
/BioUML/src/ru/biosoft/server/servlets/webservices/files/actions/folders for tree and toolbar. For dynamic actions (toolbar only) id is name attribute ofdynamicActionextension.
<actions>
<allow id="*"/>
<deny id="login"/>
<deny id="logout"/>
<deny id="account_info"/>
</actions>
- importers - allow or deny importers by class name or subname
<importers>
<deny id="*"/>
<allow id="biouml.plugins.genomeenhancer.importer.*" />
<allow id="ru.biosoft.access.ZipFileImporter" />
<allow id="ru.biosoft.access.TextFileImporter" />
</importers>
- exporters - allow or deny exporters by class name