Class BpSchemeUiUtil


  • public class BpSchemeUiUtil
    extends Object
    Instance of this class contains basic methods for UI.
    • Method Detail

      • isFullEditorActive

        public static boolean isFullEditorActive()
        Returns true if full editor is active. (Full editor is business process route map editor)
        Returns:
        Returns true if full editor is active.
      • getActiveBpScheme

        public static BpScheme getActiveBpScheme()
        Returns active BP scheme if there is one. Otherwise returns null.
        Returns:
        active BP scheme. Can return null.
      • getBpSchemeEditor

        public static BpSchemeEditor getBpSchemeEditor()
        Returns active bp scheme editor.
        Returns:
        active bp scheme editor. Can return null.
      • getAvailableName

        public static String getAvailableName​(String desiredName)
        Returns available name. If item with given name already on diagram, adds number to given name.
        Parameters:
        desiredName - - desired name. Can't be null.
        Returns:
        available name. Can't return null.
      • getAssociatedRelations

        public static List<BpRelation> getAssociatedRelations​(List<? extends AbstractBpConnection> connections)
        Returns associated with given connections relations.
        Parameters:
        connections - - connections. Can't be null.
        Returns:
        associated with given connections relations. Can't return null.
      • getGraphicalSchemeExporter

        public static GraphicalSchemeBmExporter getGraphicalSchemeExporter()
        Returns graphical scheme bm exporter.
        Returns:
        graphical scheme bm exporter. Can't return null.
      • getConfigurationLanguage

        public static String getConfigurationLanguage​(org.eclipse.emf.ecore.EObject modelObject)
        Returns language literal from configuration project associated with given modelObject. If object's configuration can't be found returns JVM language.
        Parameters:
        modelObject - - object to get parent configuration language. Can't be null.
        Returns:
        language literal from configuration project associated with given modelObject.
      • isActiveEditorIsReadOnly

        public static boolean isActiveEditorIsReadOnly()
        Returns true if active editor is read only.
        Returns:
        true if active editor is read only.