Class BpSchemeUiUtil
- java.lang.Object
-
- com._1c.g5.v8.dt.bp.scheme.ui.util.BpSchemeUiUtil
-
public class BpSchemeUiUtil extends Object
Instance of this class contains basic methods for UI.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BpScheme
getActiveBpScheme()
Returns active BP scheme if there is one.static List<BpRelation>
getAssociatedRelations(List<? extends AbstractBpConnection> connections)
Returns associated with given connections relations.static String
getAvailableName(String desiredName)
Returns available name.static BpSchemeEditor
getBpSchemeEditor()
Returns active bp scheme editor.static String
getConfigurationLanguage(org.eclipse.emf.ecore.EObject modelObject)
Returns language literal from configuration project associated with given modelObject.static GraphicalSchemeBmExporter
getGraphicalSchemeExporter()
Returns graphical scheme bm exporter.static boolean
isActiveEditorIsReadOnly()
Returnstrue
if active editor is read only.static boolean
isFullEditorActive()
Returnstrue
if full editor is active.
-
-
-
Method Detail
-
isFullEditorActive
public static boolean isFullEditorActive()
Returnstrue
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 returnsnull
.- 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 benull
.- 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 benull
.- 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 benull
.- Returns:
- language literal from configuration project associated with given modelObject.
-
isActiveEditorIsReadOnly
public static boolean isActiveEditorIsReadOnly()
Returnstrue
if active editor is read only.- Returns:
true
if active editor is read only.
-
-