Package hermes.browser.actions

Examples of hermes.browser.actions.MessageStoreBrowserAction


  public MessageStoreBrowserAction getOpenStoreBrowser(MessageStore store) {
    for (int d = 0 ; d < HermesBrowser.getBrowser().getDocumentPane().getDocumentCount() ; d++) {
       DocumentComponent doc =  HermesBrowser.getBrowser().getDocumentPane().getDocumentAt(d) ;
       if (doc instanceof MessageStoreBrowserAction) {
         MessageStoreBrowserAction sBrowser = (MessageStoreBrowserAction) doc ;
         if (sBrowser.getMessageStore().equals(store)) {
           return sBrowser ;
         }
       }
     }
    return null ;
View Full Code Here


                     if (browserAction instanceof MessageStoreBrowserAction)
                     {
                        if (HermesBrowser.getBrowser().getBrowserTree().getLastSelectedHermesTreeNode() != null)
                        {
                           final MessageStoreBrowserAction storeAction = (MessageStoreBrowserAction) browserAction;
                           final MessageFactory messageFactory = HermesBrowser.getBrowser().getBrowserTree().getLastSelectedHermesTreeNode().getHermes();
                           HermesBrowser.getBrowser().getThreadPool()
                                 .invokeLater(new AddToMessageStoreTask(messageFactory, storeAction.getMessageStore(), xml));
                        }
                        else
                        {
                           HermesBrowser.getBrowser().showErrorDialog("A session must be selected to use as a factory for the messages") ;                                                   
                        }
View Full Code Here

               Hermes.ui.getDefaultMessageSink().add(messages.size() + TextUtils.plural(messages.size()) + " messages copied to clipboard, now deleting.");

               if (browserAction instanceof MessageStoreBrowserAction)
               {
                  final MessageStoreBrowserAction storeAction = (MessageStoreBrowserAction) browserAction;

                  HermesBrowser.getBrowser().getActionFactory().createDeleteFromMessageStoreAction(storeAction.getMessageStore(),
                        browserAction.getSelectedMessages(), false);
               }
               else
               {
                  HermesBrowser.getBrowser().getActionFactory().createTruncateAction(browserAction.getHermes(), browserAction.getConfig(),
View Full Code Here

TOP

Related Classes of hermes.browser.actions.MessageStoreBrowserAction

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.