Package org.eclipse.ecf.remoteservices.ui

Examples of org.eclipse.ecf.remoteservices.ui.MethodInvocationDialog


    return null;
  }

  protected void executeMethodInvocationDialog(final Class cls,
      final IRemoteService remoteService) {
    final MethodInvocationDialog mid = new MethodInvocationDialog(
        (Shell) null, cls);
    if (mid.open() == Window.OK) {
      final int timeout = (mid.getTimeout() > 0) ? mid.getTimeout()
          : 30000;
      final String methodName = mid.getMethod().getName();
      final Object[] methodArgs = mid.getMethodArguments();
      final IRemoteCall remoteCall = new IRemoteCall() {
        public String getMethod() {
          return methodName;
        }

        public Object[] getParameters() {
          return methodArgs;
        }

        public long getTimeout() {
          return timeout;
        }
      };
      final int invokeType = mid.getInvocationType();
      try {
        switch (invokeType) {
        case MethodInvocationDialog.ASYNC_FIRE_AND_GO:
          remoteService.callAsync(remoteCall);
          break;
View Full Code Here

TOP

Related Classes of org.eclipse.ecf.remoteservices.ui.MethodInvocationDialog

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.