Examples of open()


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

    Repository repository = getRepository(true, event);
    final String resourceName = resources.length == 1 ? resources[0].getFullPath()
        .lastSegment() : null;
    ReplaceTargetSelectionDialog dlg = new ReplaceTargetSelectionDialog(
        shell, repository, resourceName);
    if (dlg.open() == Window.OK)
      return dlg.getRefName();
    else
      throw new OperationCanceledException();
  }
View Full Code Here

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

                  .getRepositoryState().getDescription()));
      return null;
    }
    ResetTargetSelectionDialog branchSelectionDialog = new ResetTargetSelectionDialog(
        getShell(event), repository);
    if (branchSelectionDialog.open() == IDialogConstants.OK_ID) {
      final String refName = branchSelectionDialog.getRefName();
      final ResetType type = branchSelectionDialog.getResetType();
      String jobname = NLS.bind(UIText.ResetAction_reset, refName);
      final ResetOperation operation = new ResetOperation(repository,
          refName, type);
View Full Code Here

Examples of org.eclipse.egit.ui.internal.history.CommitSelectionDialog.open()

      return null;
    IResource[] resources = getSelectedResources(event);

    CommitSelectionDialog dlg = new CommitSelectionDialog(getShell(event),
        repo, resources);
    if (dlg.open() != Window.OK)
      return null;

    final String commitId = dlg.getCommitId().getName();

    IWorkbenchPage workBenchPage = PlatformUI.getWorkbench()
View Full Code Here

Examples of org.eclipse.egit.ui.internal.merge.MergeModeDialog.open()

        UIPreferences.MERGE_MODE);
    IPath[] locations = getSelectedLocations(event);
    CompareEditorInput input;
    if (mergeMode == 0) {
      MergeModeDialog dlg = new MergeModeDialog(getShell(event));
      if (dlg.open() != Window.OK)
        return null;
      input = new GitMergeEditorInput(dlg.useWorkspace(), locations);
    } else {
      boolean useWorkspace = mergeMode == 1;
      input = new GitMergeEditorInput(useWorkspace, locations);
View Full Code Here

Examples of org.eclipse.egit.ui.internal.push.RefSpecDialog.open()

      public void widgetSelected(SelectionEvent e) {
        RefSpec oldSpec = (RefSpec) ((IStructuredSelection) specViewer
            .getSelection()).getFirstElement();
        RefSpecDialog dlg = new RefSpecDialog(getShell(), repository,
            config, oldSpec, false);
        if (dlg.open() == Window.OK) {
          config.removeFetchRefSpec(oldSpec);
          config.addFetchRefSpec(dlg.getSpec());
        }
        updateControls();
      }
View Full Code Here

Examples of org.eclipse.egit.ui.internal.rebase.CommitMessageEditorDialog.open()

    final String[] message = { commit.getFullMessage() };
    shell.getDisplay().syncExec(new Runnable() {
      public void run() {
        CommitMessageEditorDialog dialog = new CommitMessageEditorDialog(
            shell, message[0]);
        if (dialog.open() == Window.OK)
          message[0] = dialog.getCommitMessage();
        else
          message[0] = null;
      }
    });
View Full Code Here

Examples of org.eclipse.emf.edit.ui.celleditor.FeatureEditorDialog.open()

        }

        FeatureEditorDialog featureEditorDialog = new FeatureEditorDialog(getShell(), LABEL_PROVIDER, be,
            reference, "Select elements", l);

        if (featureEditorDialog.open() == Window.OK) {

          updateEObject(refs, (EList<EObject>) featureEditorDialog.getResult());
          updateTextField(refs, text);
        }
      }
View Full Code Here

Examples of org.eclipse.jdt.core.ICompilationUnit.open()

      IJavaProject project = root.getJavaProject();
      if (isPrimary || (root.validateOnClasspath().isOK() && isIncluded && resource.isAccessible() && Util.isValidCompilationUnitName(workingCopy.getElementName(), project.getOption(JavaCore.COMPILER_SOURCE, true), project.getOption(JavaCore.COMPILER_COMPLIANCE, true)))) {

        // force opening so that the delta builder can get the old info
        if (!isPrimary && !primary.isOpen()) {
          primary.open(null);
        }

        // creates the delta builder (this remembers the content of the cu) if:
        // - it is not excluded
        // - and it is not a primary or it is a non-consistent primary
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaModel.open()

            }
            setCoffeeName(name);
          }
          if(p!=null) {
            IJavaModel m = p.getJavaModel();
            m.open(new SubProgressMonitor(pm, 1));
            buildModelService(p);
            IPackageFragment processPack = (IPackageFragment)el;
            processPackageFragment(processPack, pm);
            IPackageFragment[] packs = p.getPackageFragments();
            if(packs!=null) {
View Full Code Here

Examples of org.eclipse.jdt.core.IJavaProject.open()

    for(IProject project: workspace.getRoot().getProjects()){
      if (project.getDescription().getName().equals(name)){
        //prepare project for tests
        project.refreshLocal(IResource.DEPTH_INFINITE, null);
        IJavaProject result = JavaCore.create(project);
        result.open(null);
        result.makeConsistent(null);
        assert result.isOpen();
        assert result.isConsistent();
        return result;
      }
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.