Package hermes.browser.model.tree

Examples of hermes.browser.model.tree.MessageStoreDestinationTreeNode


  public MessageStore getSelectedMessageStore() {
    if (getSelectionPath() != null) {
      if (getSelectionPath().getLastPathComponent() instanceof MessageStoreTreeNode) {
        return ((MessageStoreTreeNode) getSelectionPath().getLastPathComponent()).getMessageStore();
      } else if (getSelectionPath().getLastPathComponent() instanceof MessageStoreDestinationTreeNode) {
        MessageStoreDestinationTreeNode dNode = (MessageStoreDestinationTreeNode) getSelectionPath().getLastPathComponent();

        return ((MessageStoreTreeNode) dNode.getParent()).getMessageStore();
      } else if (getSelectionPath().getLastPathComponent() instanceof RepositoryTreeNode) {
        RepositoryTreeNode dNode = (RepositoryTreeNode) getSelectionPath().getLastPathComponent();
        return dNode.getRepository();

      }
    }

    return null;
View Full Code Here

TOP

Related Classes of hermes.browser.model.tree.MessageStoreDestinationTreeNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.