Examples of create()


Examples of org.eclipse.sapphire.ui.forms.swt.PropertyEditorPresentationFactory.create()

                = getRenderingHint( PropertyEditorDef.HINT_FACTORY, (Class<PropertyEditorPresentationFactory>) null );
           
            if( factoryClass != null )
            {
                final PropertyEditorPresentationFactory factory = factoryClass.newInstance();
                presentation = factory.create( this, parent, composite );
            }
        }
        catch( Exception e )
        {
            Sapphire.service( LoggingService.class ).log( e );

Examples of org.eclipse.swt.widgets.FileDialog.create()

      IFile original= (input instanceof IFileEditorInput) ? ((IFileEditorInput) input).getFile() : null;
      if (original != null)
        dialog.setOriginalFile(original);

      dialog.create();

      if (provider.isDeleted(input) && original != null) {
        String message= NLSUtility.format(TextEditorMessages.AbstractDecoratedTextEditor_warning_saveAs_deleted, original.getName());
        dialog.setErrorMessage(null);
        dialog.setMessage(message, IMessageProvider.WARNING);

Examples of org.eclipse.swtbot.eclipse.ui.project.ProjectCreator.create()

    String pluginProvider = projectWizardPage.pluginProvider();

    IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
    ProjectCreator projectCreator = new ProjectCreator(pluginId, pluginName, pluginVersion, pluginProvider, root);
    try {
      projectCreator.create();
      return true;
    } catch (CoreException e) {
      projectCreator.delete();
      return false;
    }

Examples of org.eclipse.ui.dialogs.SaveAsDialog.create()

    SaveAsDialog dialog = new SaveAsDialog(getShell());
    if (originalFilePath != null) {
      IFile originalFile = ResourcesPlugin.getWorkspace().getRoot().getFile(originalFilePath);
      dialog.setOriginalFile(originalFile);
    }
    dialog.create();

    dialog.getShell().setText(XMLCatalogMessages.UI_LABEL_EXPORT_DIALOG_TITLE);
    dialog.setTitle(XMLCatalogMessages.UI_LABEL_EXPORT_DIALOG_HEADING);
    dialog.setMessage(XMLCatalogMessages.UI_LABEL_EXPORT_DIALOG_MESSAGE);

Examples of org.eclipse.ui.internal.dialogs.PropertyDialog.create()

        page.setTitle("Styles");
        PreferenceManager mgr = new PreferenceManager();
        IPreferenceNode node = new PreferenceNode("1", page);
        mgr.addToRoot(node);
        PropertyDialog dialog = new PropertyDialog(getSite().getShell(), mgr, sel);
        dialog.create();
        dialog.setMessage(page.getTitle());
        dialog.open();
      }
    };
   

Examples of org.eclipse.ui.internal.dialogs.WorkbenchPreferenceDialog.create()

    public static int openPreferencePage(String pageId) {
        PreferenceManager pm = WorkbenchPlugin.getDefault().getPreferenceManager();
        if (pm != null) {
            PreferenceDialog d = new WorkbenchPreferenceDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), pm);
            d.setSelectedNode(pageId);
            d.create();
            return d.open();  
        }
        return Window.CANCEL;}
}

Examples of org.eclipse.wb.internal.core.model.clipboard.JavaInfoMemento.create()

          private static final long serialVersionUID = 0L;

          @Override
          public void execute(JavaInfo javaInfo) throws Exception {
            LayoutContainerInfo composite = (LayoutContainerInfo) javaInfo;
            LayoutInfo newLayout = (LayoutInfo) layoutMemento.create(javaInfo);
            composite.setLayout(newLayout);
            layoutMemento.apply();
          }
        });
      }

Examples of org.eclipse.wb.internal.core.xml.model.clipboard.XmlObjectMemento.create()

        commands.add(new ClipboardCommand() {
          private static final long serialVersionUID = 0L;

          @Override
          public void execute(XmlObjectInfo tree) throws Exception {
            TreeItemInfo item = (TreeItemInfo) memento.create(tree);
            XmlObjectUtils.flowContainerCreate(tree, item, null);
            memento.apply();
          }
        });
      }

Examples of org.eclipse.wst.common.ui.internal.dialogs.SelectSingleFileDialog.create()

  protected void invokeImportDialog() {
    SelectSingleFileDialog dialog = new SelectSingleFileDialog(getShell(), null, true);
    String[] extensions = {".xmlcatalog", ".xml"}; //$NON-NLS-1$ //$NON-NLS-2$
    dialog.addFilterExtensions(extensions);
    dialog.create();
    dialog.getShell().setText(XMLCatalogMessages.UI_LABEL_IMPORT_DIALOG_TITLE);
    dialog.setTitle(XMLCatalogMessages.UI_LABEL_IMPORT_DIALOG_HEADING);
    dialog.setMessage(XMLCatalogMessages.UI_LABEL_IMPORT_DIALOG_MESSAGE);
    dialog.setBlockOnOpen(true);
    int rc = dialog.open();

Examples of org.eclipse.wst.xml.core.internal.commentelement.util.CommentElementFactory.create()

    if (map.getNamedItem(tagName) == null) {
      return null;
    }

    CommentElementFactory factory = new CommentElementFactory(document, isJSPTag, this);
    Element element = factory.create(tagName, CommentElementFactory.IS_START);

    // set attributes
    String attrName = scanner.nextName();
    while (attrName != null) {
      String attrValue = scanner.nextValue();
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.