Examples of open()


Examples of org.eclipse.dltk.internal.ui.wizards.buildpath.FolderSelectionDialog.open()

    dialog.setMessage(NewWizardMessages.BuildPathsBlock_ChooseOutputFolderDialog_description);
    dialog.addFilter(filter);
    dialog.setInput(fWorkspaceRoot);
    dialog.setInitialSelection(initSelection);
    dialog.setComparator(new ResourceComparator(ResourceComparator.NAME));
    if (dialog.open() == Window.OK) {
      return (IContainer) dialog.getFirstResult();
    }
    return null;
  }
View Full Code Here

Examples of org.eclipse.dltk.ui.dialogs.ProjectSelectionDialog.open()

      } catch (ModelException e) {
        // ignore
      }
      ProjectSelectionDialog dialog = new ProjectSelectionDialog(
          getShell(), projectsWithSpecifics);
      if (dialog.open() == Window.OK) {
        IScriptProject res = (IScriptProject) dialog.getFirstResult();
        openProjectProperties(res.getProject(), data);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.ecf.core.util.AdapterManagerTracker.open()

  private List<IAdapterFactory> rscAdapterFactories;

  private static IAdapterManager getAdapterManager(BundleContext ctx) {
    AdapterManagerTracker t = new AdapterManagerTracker(ctx);
    t.open();
    IAdapterManager am = t.getAdapterManager();
    t.close();
    return am;
  }
View Full Code Here

Examples of org.eclipse.ecf.remoteservice.util.tracker.RemoteServiceTracker.open()

    sleep(3000);

    final RemoteServiceTracker st = new RemoteServiceTracker(adapters[1],
        null, IConcatService.class.getName(), null);
    assertNotNull(st);
    st.open();
    IRemoteService rs = st.getRemoteService();
    final IConcatService concatService = (IConcatService) rs.getProxy();
    assertNotNull(concatService);
    System.out.println("proxy call start");
    final String result = concatService.concat("OSGi ", "is cool");
View Full Code Here

Examples of org.eclipse.ecf.remoteservices.ui.MethodInvocationDialog.open()

  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() {
View Full Code Here

Examples of org.eclipse.ecf.ui.dialogs.ContainerConnectErrorDialog.open()

      joinChatRoom(container, selectedInfo, null);
    } catch (ECFException e) {
      Throwable e1 = e.getStatus().getException();
      Activator.getDefault().getLog().log(new Status(IStatus.ERROR, Activator.PLUGIN_ID, IStatus.ERROR, Messages.MultiRosterView_EXCEPTION_LOG_JOIN_ROOM, e1));
      ContainerConnectErrorDialog ed = new ContainerConnectErrorDialog(getViewSite().getShell(), selectedInfo.getRoomID().getName(), e1);
      ed.open();
    }
  }

  private void makeActions() {
    imAction = new Action() {
View Full Code Here

Examples of org.eclipse.egit.ui.internal.branch.CleanupUncomittedChangesDialog.open()

            MessageFormat
                .format(UIText.AbstractRebaseCommandHandler_cleanupDialog_title,
                    repoName),
            UIText.AbstractRebaseCommandHandler_cleanupDialog_text,
            repository, files);
        cleanupUncomittedChangesDialog.open();
        if (cleanupUncomittedChangesDialog.shouldContinue()) {
          try {
            execute(repository);
          } catch (ExecutionException e) {
            Activator.logError(e.getMessage(), e);
View Full Code Here

Examples of org.eclipse.egit.ui.internal.clean.CleanWizardDialog.open()

    Repository repository = getRepository();

    CleanWizardDialog dlg = new CleanWizardDialog(getShell(event),
        repository);
    dlg.setBlockOnOpen(true);
    dlg.open();

    return null;
  }

  @Override
View Full Code Here

Examples of org.eclipse.egit.ui.internal.dialogs.AbstractBranchSelectionDialog.open()

      public void widgetSelected(SelectionEvent selectionEvent) {
        String txt = branchText.getText();
        String refToMark = "".equals(txt) ? null : Constants.R_HEADS + txt; //$NON-NLS-1$
        AbstractBranchSelectionDialog dlg = new BranchEditDialog(
            checkoutGroup.getShell(), repository, refToMark);
        if (dlg.open() == Window.OK) {
          branchText.setText(Repository.shortenRefName(dlg
              .getRefName()));
        } else {
          // force calling branchText's modify listeners
          branchText.setText(branchText.getText());
View Full Code Here

Examples of org.eclipse.egit.ui.internal.dialogs.BranchConfigurationDialog.open()

      RefNode node = nodes.get(0);
      String branchName = Repository.shortenRefName(node.getObject()
          .getName());
      BranchConfigurationDialog dlg = new BranchConfigurationDialog(
          getShell(event), branchName, node.getRepository());
      dlg.open();
    }
    return null;
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.