Package org.codemap.communication

Examples of org.codemap.communication.SelectionShare


       
        IRoster roster = rosterEntry.getRoster();
        IContainer container = (IContainer) roster.getPresenceContainerAdapter().getAdapter(IContainer.class);
        if (container.getConnectedID() == null)
            showErrorMessage("not connected.");
            SelectionShare sender = ECFContribution.getDefault().getStringShare(container.getID());
            if (sender == null)
                showErrorMessage("no sender.");
//            currently share anyway to be able do do better debugging
//            if (sender.isSharing())
//                showErrorMessage("sharing already started.");
//            final ITextEditor textEditor = getTextEditor();
//            if (textEditor == null)
//                showErrorMessage(Messages.DocShareRosterMenuHandler_EXCEPTION_EDITOR_NOT_TEXT);
//            final String inputName = getInputName(textEditor);
//            if (inputName == null)
//                showErrorMessage(Messages.DocShareRosterMenuHandler_NO_FILENAME_WITH_CONTENT);
            final IUser user = roster.getUser();
            sender.startShare(user.getID(), rosterEntry.getUser().getID());
       
        return null;
    }
View Full Code Here


        // Then present menu item to stop
        for (Object each: getPresenceContainerAdapters()) {
            if (!(each instanceof IPresenceContainerAdapter)) continue;
            IPresenceContainerAdapter pca = (IPresenceContainerAdapter) each;
           
            SelectionShare share = getStringShareForPresenceContainerAdapter(pca);
            if (share != null && share.isSharing()) {
                return getMenuContributionForStopShare(pca.getRosterManager().getRoster(), share);
            }
        }
        return super.getContributionItems();
    }
View Full Code Here

TOP

Related Classes of org.codemap.communication.SelectionShare

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.