Package org.eclipse.ecf.pubsub.model.impl

Examples of org.eclipse.ecf.pubsub.model.impl.LocalAgent


  protected void addSharedObject(ISharedObjectManager mgr, ID id, Object data, String updaterID) throws SharedObjectCreateException {
    HashMap props = new HashMap(2);
    props.put(INITIAL_DATA_KEY, data);
    props.put(MODEL_UPDATER_KEY, updaterID);
    try {
      mgr.addSharedObject(id, new LocalAgent(), props);
    } catch (SharedObjectAddException e) {
      throw new SharedObjectCreateException(e);
    }   
  }
View Full Code Here


      public void run() {
        InputDialog dlg = new InputDialog(getSite().getShell(), "Append to Shared List", "Enter element to append:", null, null);
        dlg.open();
        String value = dlg.getValue();
        if (value != null) {
          LocalAgent model = (LocalAgent) getStructuredSelection().getFirstElement();
          AppendableList list = (AppendableList) model.getData();
          if (list.add(value)) {
            try {
              model.update(value);
            } catch (IOException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
            }
          }
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.pubsub.model.impl.LocalAgent

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.