Class LockViewTree

All Implemented Interfaces:
com.dassault_systemes.modeler.magic.ui.EditActionExecutorsOwner, com.nomagic.awt.PopupOwner, com.nomagic.magicdraw.ui.Activatable, WindowComponent, com.nomagic.magicdraw.ui.Updatable, Cachable, Autoscroll, FocusListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

@OpenApi public class LockViewTree extends BrowserTabTree
Locks Tab tree, for showing projects locks by containment. If element is locked - it will be visible in tree, as well as its owners.
See Also:
  • Field Details

    • INFO

      public static final com.nomagic.magicdraw.ui.browser.BrowserComponentInfo INFO
  • Constructor Details

    • LockViewTree

      public LockViewTree(Browser browser)
      Constructor.
      Parameters:
      browser - instance of Browser.
    • LockViewTree

      public LockViewTree(Browser browser, com.nomagic.magicdraw.ui.browser.BrowserComponentInfo info)
      Constructor
      Parameters:
      browser - instance of Browser.
      info - instance of BrowserComponentInfo
  • Method Details

    • specificUpdateBrowser

      public void specificUpdateBrowser(boolean updateOnlyDirty)
      Overrides:
      specificUpdateBrowser in class Tree
    • browserUpdateDelayed

      public void browserUpdateDelayed(boolean updateOnlyDirty)
      Description copied from class: Tree
      Called if browser lazy and update vas delayed
      Overrides:
      browserUpdateDelayed in class Tree
      Parameters:
      updateOnlyDirty - if true updates only dirty expanded nodes, otherwise - updates all expanded tree nodes
    • specificActivate

      public void specificActivate()
      Overrides:
      specificActivate in class BrowserTabTree
    • getLockOwners

      public Collection<com.nomagic.magicdraw.teamwork2.ui.UserAndRepresentation> getLockOwners(Project project)
      Returns collection of users (login names and representations) which has locked elements (not cached) in the server
      Parameters:
      project - project
      Returns:
      list of user names with representations which locked elements in the server.
    • getFilterValue

      public com.nomagic.magicdraw.teamwork2.ui.UserAndChangeSet getFilterValue()
      Returns value selected in a filtering combo box.
      Returns:
      value selected in filtering component. If none is selected or there are no values, returns UserLocksManager.ANY_USER
    • addTreeActionToPanel

      public void addTreeActionToPanel(JPanel panel, NMAction action)
    • initTree

      public void initTree()
      Description copied from class: BrowserTabTree
      Initializes the tree. Root nodes will be created here.
      Overrides:
      initTree in class BrowserTabTree
    • getActions

      protected ActionsManager getActions()
      Description copied from class: BrowserTabTree
      Returns shortcuts action manager for this browser.
      Overrides:
      getActions in class BrowserTabTree
      Returns:
      ActionsManager with actions to register in this browser as KeyListeners
    • configureContextActions

      protected void configureContextActions(ActionsManager manager)
      Description copied from class: BrowserTabTree
      Configures context menu actions.
      Specified by:
      configureContextActions in class BrowserTabTree
      Parameters:
      manager - a manager with context menu actions to configure.
    • configureToolbarActions

      protected void configureToolbarActions(ActionsManager manager)
      Specified by:
      configureToolbarActions in class BrowserTabTree
    • dispose

      public void dispose()
      Description copied from class: Tree
      Removes all nodes recursively.
      Overrides:
      dispose in class Tree
    • resetTabTree

      protected void resetTabTree()
      Overrides:
      resetTabTree in class BrowserTabTree