Examples of createText()


Examples of org.eclipse.ui.forms.widgets.FormToolkit.createText()

                txtName.setSelection(patternProposal.getCursorPosition());
            }
        });

        toolkit.createLabel(mainComposite, "Version:");
        txtVersion = toolkit.createText(mainComposite, "", SWT.BORDER);

        /*
         * Section attribsSection = toolkit.createSection(parent, Section.TITLE_BAR | Section.TWISTIE);
         * attribsSection.setText("Extra Attributes"); Composite attribsComposite =
         * toolkit.createComposite(attribsSection);
 
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createText()

        GridData gd;

        sectProcessingErrors = toolkit.createSection(composite, Section.TITLE_BAR | Section.EXPANDED);
        sectProcessingErrors.setText("Processing Errors:");

        processingErrorsText = toolkit.createText(sectProcessingErrors, "", SWT.BORDER | SWT.MULTI | SWT.WRAP | SWT.READ_ONLY);
        sectProcessingErrors.setClient(processingErrorsText);

        ControlDecoration controlDecoration = new ControlDecoration(processingErrorsText, SWT.RIGHT | SWT.TOP);
        controlDecoration.setMarginWidth(2);
        controlDecoration.setDescriptionText("Double-click to view details");
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createText()

    Label emailLabel = toolkit.createLabel(topComposite, Messages.COMMONTXT_EMAIL_WITH_COLON, SWT.NONE);
    emailLabel.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
    emailLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));

    emailText = toolkit.createText(topComposite, ""); //$NON-NLS-1$
    emailText.setEditable(false);
    emailText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    emailText.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    if (cfServer.getUsername() != null) {
      emailText.setText(cfServer.getUsername());
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createText()

    Label passwordLabel = toolkit.createLabel(topComposite, Messages.COMMONTXT_PW, SWT.NONE);
    passwordLabel.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
    passwordLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));

    passwordText = toolkit.createText(topComposite, "", SWT.PASSWORD); //$NON-NLS-1$
    passwordText.setEditable(false);
    passwordText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    passwordText.setData(FormToolkit.KEY_DRAW_BORDER, FormToolkit.TEXT_BORDER);
    if (cfServer.getPassword() != null) {
      passwordText.setText(cfServer.getPassword());
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createText()

    Label label = toolkit.createLabel(topComposite, Messages.COMMONTXT_URL);
    label.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
    label.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));

    urlText = toolkit.createText(topComposite, "", SWT.NONE); //$NON-NLS-1$
    urlText.setEditable(false);
    urlText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    urlText.setData(FormToolkit.KEY_DRAW_BORDER, Boolean.FALSE);
    if (cfServer.getUrl() != null) {
      urlText.setText(CloudUiUtil.getDisplayTextFromUrl(cfServer.getUrl(), cfServer.getServer().getServerType()
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createText()

    Label orgLabel = toolkit.createLabel(topComposite, Messages.CloudFoundryAccountSection_LABEL_ORG, SWT.NONE);
    orgLabel.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
    orgLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));

    orgText = toolkit.createText(topComposite, "", SWT.NONE); //$NON-NLS-1$
    orgText.setEditable(false);
    orgText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    orgText.setData(FormToolkit.KEY_DRAW_BORDER, Boolean.FALSE);
    if (cfServer.getCloudFoundrySpace() != null && cfServer.getCloudFoundrySpace().getOrgName() != null) {
      orgText.setText(cfServer.getCloudFoundrySpace().getOrgName());
View Full Code Here

Examples of org.eclipse.ui.forms.widgets.FormToolkit.createText()

    Label spaceLabel = toolkit.createLabel(topComposite, Messages.CloudFoundryAccountSection_LABEL_SPACE, SWT.NONE);
    spaceLabel.setForeground(toolkit.getColors().getColor(IFormColors.TITLE));
    spaceLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false));

    spaceText = toolkit.createText(topComposite, "", SWT.NONE); //$NON-NLS-1$
    spaceText.setEditable(false);
    spaceText.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    spaceText.setData(FormToolkit.KEY_DRAW_BORDER, Boolean.FALSE);
    if (cfServer.getCloudFoundrySpace() != null && cfServer.getCloudFoundrySpace().getSpaceName() != null) {
      spaceText.setText(cfServer.getCloudFoundrySpace().getSpaceName());
View Full Code Here

Examples of org.eclipse.ui.views.properties.tabbed.TabbedPropertySheetWidgetFactory.createText()

    TabbedPropertySheetWidgetFactory factory = getWidgetFactory();
    Composite composite = factory.createFlatFormComposite(parent);
    FormData data;
  
    ruleNamesText = factory.createText(composite, ""); //$NON-NLS-1$
    data = new FormData();
    data.left = new FormAttachment(0, 120);
    data.right = new FormAttachment(100, 0);
    data.top = new FormAttachment(0, VSPACE);
    ruleNamesText.setLayoutData(data);
View Full Code Here

Examples of org.jfree.layouting.renderer.text.RenderableTextFactory.createText()

    }
    buffer = Utf16LE.getInstance().decodeString(str, buffer);
    final int[] data = buffer.getBuffer();

    final RenderableTextFactory textFactory = getCurrentTextFactory();
    return textFactory.createText(data, 0, buffer.getLength(), context);
  }

  private RenderableReplacedContent createImage(final Image image,
                                                final ResourceKey source,
                                                final LayoutContext context)
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.text.DefaultRenderableTextFactory.createText()

    final int[] data = buffer.getBuffer();

    final int length = buffer.getLength();
    final ElementDefaultStyleSheet defaultStyle = ElementDefaultStyleSheet.getDefaultStyle();
    final RenderNode[] renderNodes =
        textFactory.createText(data, 0, length, defaultStyle, LegacyType.INSTANCE, new InstanceID(), ReportAttributeMap.EMPTY_MAP);
    final RenderNode[] finishNodes = textFactory.finishText();

    assertNotNull(renderNodes);
    assertEquals(renderNodes.length, 3);
    assertTrue(renderNodes[0].getMinimumChunkWidth() > 0);
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.