Examples of open()


Examples of org.eclipse.nebula.widgets.nattable.columnRename.ColumnRenameDialog.open()

        Rectangle colHeaderBounds = contextLayer.getBoundsByPosition(
                columnPosition, 0);
        Point point = new Point(colHeaderBounds.x, colHeaderBounds.y
                + colHeaderBounds.height);
        dialog.setLocation(command.toDisplayCoordinates(point));
        dialog.open();

        if (!dialog.isCancelPressed()) {
            int columnIndex = contextLayer
                    .getColumnIndexByPosition(columnPosition);
            ColumnGroup columnGroup = model.getColumnGroupByIndex(columnIndex);
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.edit.gui.ICellEditDialog.open()

                            .createCellEditDialog(
                                    parent != null ? parent.getShell() : null,
                                    initialCanonicalValue, cells.iterator()
                                            .next(), cellEditor, configRegistry);

                    int returnValue = dialog.open();

                    if (returnValue == Window.OK) {
                        for (ILayerCell selectedCell : cells) {
                            Object editorValue = dialog.getCommittedValue();
                            if (!(dialog.getEditType() == EditTypeEnum.SET)) {
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.persistence.gui.PersistenceDialog.open()

        PersistenceDialog dialog = new PersistenceDialog(command.getNatTable()
                .getShell(), command.getNatTable(), this.properties);
        // register the listeners
        dialog.addAllStateChangeListener(this.stateChangeListeners);
        // open the dialog
        dialog.open();
        return true;
    }

    /**
     * @return The Properties instance that is used for saving and loading.
View Full Code Here

Examples of org.eclipse.nebula.widgets.nattable.style.editor.ColumnStyleEditorDialog.open()

    public static void main(String[] args) throws Exception {
        Shell shell = new Shell();
        ColumnStyleEditorDialog dialog = new ColumnStyleEditorDialog(shell,
                new Style());
        dialog.open();
        System.out.println("Style: " + dialog.getNewColumnCellStyle());
    }

}
View Full Code Here

Examples of org.eclipse.osgi.storagemanager.StorageManager.open()

  }

  protected StorageManager initFileManager(File baseDir, String lockMode, boolean readOnly) throws IOException {
    StorageManager sManager = new StorageManager(baseDir, lockMode, readOnly);
    try {
      sManager.open(!readOnly);
    } catch (IOException ex) {
      if (Debug.DEBUG && Debug.DEBUG_GENERAL) {
        Debug.println("Error reading framework metadata: " + ex.getMessage()); //$NON-NLS-1$
        Debug.printStackTrace(ex);
      }
View Full Code Here

Examples of org.eclipse.php.internal.debug.ui.wizards.ClosableWizardDialog.open()

        .getShell();
    NullProgressMonitor monitor = new NullProgressMonitor();
    PHPexeItem phpExeItem = null;
    PHPExeWizard wizard = new PHPExeWizard(phpExes.getAllItems());
    ClosableWizardDialog dialog = new ClosableWizardDialog(shell, wizard);
    if (dialog.open() == Window.CANCEL) {
      monitor.setCanceled(true);
      return;
    }
    phpExeItem = (PHPexeItem) wizard.getRootFragment().getWizardModel()
        .getObject(PHPExeWizard.MODEL);
View Full Code Here

Examples of org.eclipse.php.internal.debug.ui.wizards.PHPExeEditDialog.open()

    phpExeToEdit.setSapiType(phpExe.getSapiType());
    phpExeToEdit.setLoadDefaultINI(phpExe.isLoadDefaultINI());
    PHPExeEditDialog dialog = new PHPExeEditDialog(getShell(),
        phpExeToEdit, phpExes.getAllItems());
    dialog.setTitle(PHPDebugUIMessages.InstalledPHPsBlock_8);
    if (dialog.open() != Window.OK) {
      return;
    }
    phpExe.setName(phpExeToEdit.getName());
    phpExe.setExecutable(phpExeToEdit.getExecutable());
    phpExe.setINILocation(phpExeToEdit.getINILocation());
View Full Code Here

Examples of org.eclipse.php.internal.server.ui.launching.PHPWebPageLaunchDialog.open()

                String selectedURL = null;
                boolean showDebugDialog = true;
                if (obj instanceof IScriptProject) {
                    final PHPWebPageLaunchDialog dialog = new PHPWebPageLaunchDialog(
                            mode, (IScriptProject) obj, basePath);
                    final int open = dialog.open();
                    if (open == PHPWebPageLaunchDialog.OK) {
                        defaultServer = dialog.getServer();
                        selectedURL = dialog.getPhpPathString();
                        phpPathString = dialog.getFilename();
                        breakAtFirstLine = dialog.isBreakAtFirstLine();
View Full Code Here

Examples of org.eclipse.php.internal.ui.dialogs.saveFiles.SaveAsDialog.open()

    IDocumentProvider provider = getDocumentProvider();
    SaveAsDialog dialog = new SaveAsDialog(shell);
    dialog.setOriginalName(input.getName());
    dialog.create();

    if (dialog.open() == Window.CANCEL) {
      if (progressMonitor != null)
        progressMonitor.setCanceled(true);
      return;
    }
View Full Code Here

Examples of org.eclipse.sapphire.ui.assist.internal.PropertyEditorAssistDialog.open()

            swtPosition = canvas.getDisplay().map(canvas, null, swtPosition);
           
            final PropertyEditorAssistDialog dialog = new PropertyEditorAssistDialog( getConfigurationManager().getDiagramEditor().getEditorSite().getShell(),
                swtPosition, this.assistContext );

            dialog.open();
        }
  }
 
  private PropertyEditorAssistContext getAssistContext()
  {
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.