Examples of open()


Examples of org.eclipse.jgit.http.server.resolver.FileResolver.open()

    FileResolver resolver;

    assertFalse("no git-daemon-export-ok", export.exists());
    resolver = new FileResolver(base, false /* require flag */);
    try {
      resolver.open(null, name);
      fail("opened non-exported repository");
    } catch (ServiceNotEnabledException e) {
      assertEquals("Service not enabled", e.getMessage());
    }

View Full Code Here

Examples of org.eclipse.jgit.lib.ObjectReader.open()

    while(mpathsIt.hasNext()) {
      String mpath=mpathsIt.next();
      DirCacheEntry entry = dc.getEntry(mpath);
      FileOutputStream fos = new FileOutputStream(new File(db.getWorkTree(), mpath));
      try {
        or.open(entry.getObjectId()).copyTo(fos);
      } finally {
        fos.close();
      }
      mpathsIt.remove();
    }
View Full Code Here

Examples of org.eclipse.jgit.lib.Repository.open()

                    .length()) {
                  treeWalk.enterSubtree();
                }
              } else {
                ObjectId objId = treeWalk.getObjectId(0);
                ObjectLoader loader = repo.open(objId);
                long size = loader.getSize();
                listEntry(treeWalk.getNameString(), "file", Long.toString(size), treeWalk.getPathString(), projectName, head.getName(), git, contents);
              }
            } while (treeWalk.next());
            String response = JSONUtil.write(contents);
View Full Code Here

Examples of org.eclipse.jgit.lib.RepositoryCache.FileKey.open()

  protected void run() throws Exception {
    final org.eclipse.jgit.transport.UploadPack up;

    try {
      FileKey key = FileKey.lenient(srcGitdir, FS.DETECTED);
      db = key.open(true /* must exist */);
    } catch (RepositoryNotFoundException notFound) {
      throw die(MessageFormat.format(CLIText.get().notAGitRepository,
          srcGitdir.getPath()));
    }

View Full Code Here

Examples of org.eclipse.jst.jsf.common.ui.internal.dialogs.CommonResourceDialog.open()

    CommonResourceDialog dialog = new CommonResourceDialog(shell, _project,
        style);
    dialog.setTitle(ResourceBoundle.getString("FileCellEditor.Title")); //$NON-NLS-1$
    dialog.setSuffixs(_suffixs);
    dialog.setResourceDescription(_resourceDescription);
    if (dialog.open() == Window.OK) {
      Object[] result = dialog.getResult();
      StringBuffer buffer = new StringBuffer();
      for (int i = 0; i < result.length; i++) {
        IPath path = ((IFile) result[i]).getLocation();
View Full Code Here

Examples of org.eclipse.jst.jsf.common.ui.internal.dialogs.CommonWizardDialog.open()

        CommonWizardDialog wizardDialog = new CommonWizardDialog(
            getShell(), wizard);
        wizardDialog.setTitle(Messages
            .getString("LocalDropCommand.DropHandler")); //$NON-NLS-1$
        wizardDialog.create();
        wizardDialog.open();
      } else {
        if (_widget != null) {
          handler.doUpdateWidget(_localObject, _widget, _viewer);
        } else {
          handler.doInsertElements(_localObject, _position, _viewer);
View Full Code Here

Examples of org.eclipse.jst.jsf.common.ui.internal.dialogs.ResourceOnClasspathDialog.open()

        ResourceOnClasspathDialog dialog =
          new ResourceOnClasspathDialog(shell, getJavaProject());
        dialog.setTitle(JSFUICommonPlugin
            .getResourceString("DialogField.ResourceButton.SelectFile"));//$NON-NLS-1$
        dialog.setSuffixs(PROPERTIES_FILES_SUFFIXS);
        if (dialog.open() == Window.OK) {
          String oldValue = classPathField.getText();
 
          String newValue = (String) dialog.getResult()[0];
          if (oldValue != newValue) {
            classPathField.setText(newValue);
View Full Code Here

Examples of org.eclipse.jst.pagedesigner.ui.dialogs.StyleDialog.open()

    PreferenceManager manager = new PreferenceManager();
    Shell shell = cellEditorWindow.getShell();

    final CSSPropertyContext context = new CSSPropertyContext(styleDeclaration);
    StyleDialog dialog = new StyleDialog(shell, manager, _element, context);
    if (dialog.open() == Window.OK) {
      if (context.isModified()) {     
        PlatformUI.getWorkbench().getDisplay().asyncExec(
                      new Runnable()
                      {
                          public void run()
View Full Code Here

Examples of org.eclipse.mylyn.internal.provisional.commons.ui.AbstractNotificationPopup.open()

      }
    };
   
    popup.setBlockOnOpen(false);
    popup.setFadingEnabled(true);
    popup.open();
  }
}
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.columnCategories.gui.ColumnCategoriesDialog.open()

                new ColumnCategoriesModelFixture(),
                ColumnEntriesFixture.getEntriesWithEvenIndexes(),
                ColumnEntriesFixture.getEntriesWithOddIndexes());

        dialog.addListener(new Listener());
        dialog.open();
    }
}

class Listener implements IColumnCategoriesDialogListener {
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.