Package org.eclipse.ui.forms.widgets

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


     

     
    Label lbl = toolkit.createLabel(sectionClient, "Additional jvm options:");
      lbl.setLayoutData(new GridData(GridData.BEGINNING));
      _txtJvmOptions = toolkit.createText(sectionClient, "", SWT.MULTI|SWT.BORDER|SWT.V_SCROLL);
      _txtJvmOptions.setData("jvmOptions");
      GridData jvmOptionLayout = new GridData(GridData.FILL_BOTH);
      jvmOptionLayout.minimumHeight = WidgetFactory.computeFontHeight(_txtJvmOptions) * 5;
      _txtJvmOptions.setLayoutData(jvmOptionLayout);
     
View Full Code Here


        // Details Label
        Label detailsLabel = toolkit.createLabel( parent, Messages.getString( "ErrorPage.Details" ) ); //$NON-NLS-1$
        detailsLabel.setLayoutData( new GridData( SWT.NONE, SWT.NONE, false, false, 2, 1 ) );

        // Details Text
        Text detailsText = toolkit.createText( parent, "", SWT.MULTI ); //$NON-NLS-1$
        detailsText.setEditable( false );
        detailsText.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true, 2, 1 ) );
        detailsText.setText( ( ( ServerConfigurationEditor ) getEditor() ).getErrorMessage() );
    }
}
View Full Code Here

        mainComposite = toolkit.createComposite(mainSection);
        mainSection.setClient(mainComposite);

        toolkit.createLabel(mainComposite, "Pattern:");
        txtName = toolkit.createText(mainComposite, "", SWT.BORDER);
        ControlDecoration decPattern = new ControlDecoration(txtName, SWT.LEFT | SWT.TOP, mainComposite);
        decPattern.setImage(assistDecor.getImage());
        if (assistKeyStroke == null) {
            decPattern.setDescriptionText("Content assist is available. Start typing to activate");
        } else {
View Full Code Here

                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

        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

    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

    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

    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

    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

    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

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.