Package org.jivesoftware.smackx.filetransfer

Examples of org.jivesoftware.smackx.filetransfer.FileTransferManager$Event


    public boolean canCreate(ICreateContext context) {
      if (!super.canCreate(context)) {
        return false;
      }

      Event e = (Event) getBusinessObjectForPictogramElement(context.getTargetContainer());
      if (e instanceof ThrowEvent) {
        return false;
      }

      return true;
View Full Code Here


    public boolean canCreate(ICreateContext context) {
      if (!super.canCreate(context)) {
        return false;
      }

      Event e = (Event) getBusinessObjectForPictogramElement(context.getTargetContainer());

      return e instanceof EndEvent;
    }
View Full Code Here

    public boolean canCreate(ICreateContext context) {
      if (!super.canCreate(context)) {
        return false;
      }

      Event e = (Event) getBusinessObjectForPictogramElement(context.getTargetContainer());

      if (e instanceof BoundaryEvent) {
        BoundaryEvent be = (BoundaryEvent) e;
        return be.isCancelActivity();
      }
View Full Code Here

    public boolean canCreate(ICreateContext context) {
      if (!super.canCreate(context)) {
        return false;
      }

      Event e = (Event) getBusinessObjectForPictogramElement(context.getTargetContainer());

      if (e instanceof BoundaryEvent) {
        BoundaryEvent be = (BoundaryEvent) e;
        return be.isCancelActivity();
      }
View Full Code Here

    public boolean canCreate(ICreateContext context) {
      if (!super.canCreate(context)) {
        return false;
      }

      Event e = (Event) getBusinessObjectForPictogramElement(context.getTargetContainer());

      if (e instanceof BoundaryEvent) {
        BoundaryEvent be = (BoundaryEvent) e;
        return be.isCancelActivity();
      }
View Full Code Here

    public boolean canCreate(ICreateContext context) {
      if (!super.canCreate(context)) {
        return false;
      }

      Event e = (Event) getBusinessObjectForPictogramElement(context.getTargetContainer());

      if (e instanceof IntermediateCatchEvent || e instanceof IntermediateThrowEvent) {
        return true;
      }
View Full Code Here

    public boolean canCreate(ICreateContext context) {
      if (!super.canCreate(context)) {
        return false;
      }

      Event e = (Event) getBusinessObjectForPictogramElement(context.getTargetContainer());
      if (e instanceof ThrowEvent) {
        return false;
      }

      return true;
View Full Code Here

    FileDialog fileDialog = new FileDialog(parent,SWT.SINGLE|SWT.OPEN);
    fileDialog.setText("Choose file to send to " + user);
    String file = fileDialog.open();
    if(file == null) return false;
   
    FileTransferManager manager = new FileTransferManager(account.xmpp.getConnection());
    final OutgoingFileTransfer outgoingFileTransfer = manager.createOutgoingFileTransfer(user);
   
    final File f = new File(file);
    InputDialog descriptionInput = new InputDialog(parent,
        "Sending file to " + user,
        "Please Provide a description of the file (" + f.getName() + ") " +
View Full Code Here

                  }
                }
              });
            }
          });
          FileTransferManager fileTransferManager = new FileTransferManager(conn);
          fileTransferManager.addFileTransferListener(new FileTransferListener() {
            public void fileTransferRequest(final FileTransferRequest request) {
              PlatformUI.getWorkbench().getDisplay().asyncExec(new Runnable() {
                public void run() {
                  Shell parent = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
                  boolean accept = MessageDialog.openConfirm(parent,
View Full Code Here

    }


    // strJidreceiver muss der Form "test2@192.168.1.143/Smack" entsprechen, also mit / und der Ressource
    public void sendFile(String strJidreceiver){
        FileTransferManager manager = new FileTransferManager(xmppconnection);
        OutgoingFileTransfer transfer = manager.createOutgoingFileTransfer(strJidreceiver);

        OpenDialog opendialogsendfile = new OpenDialog(true);
        if (opendialogsendfile.getAbortedStatus() != true){
            try {
                transfer.sendFile(new File(opendialogsendfile.getCompletePath()),opendialogsendfile.getFileDescription());
View Full Code Here

TOP

Related Classes of org.jivesoftware.smackx.filetransfer.FileTransferManager$Event

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.