Package org.eclipse.ui.forms.widgets

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


      return;
    }
   
    Label portNumber = toolkit.createLabel(composite, Messages.ConnectionDetailsEditorSection_port_num_label);
    portNumber.setLayoutData(leftData);
    final Text portNumberText = toolkit.createText(composite, ""+configuration.getPortNumber(),SWT.BORDER);
    portNumberText.setLayoutData(filldata);
    portNumberText.addModifyListener(new ModifyListener(){
      public void modifyText(ModifyEvent e) {
        try {
        int parseInt = Integer.parseInt(portNumberText.getText().trim());
View Full Code Here


      }
    });
   
    Label sshUserNameLabel = toolkit.createLabel(composite, Messages.ConnectionDetailsEditorSection_user_name_label);
    sshUserNameLabel.setLayoutData(leftData);
    final Text sshUserNameText = toolkit.createText(composite, ""+configuration.getUserName(),SWT.BORDER);
    sshUserNameText.setLayoutData(filldata);
    sshUserNameText.addModifyListener(new ModifyListener(){
      public void modifyText(ModifyEvent e) {
        execute(new UserNameChangeOperation(configuration,sshUserNameText.getText(),Messages.ConnectionDetailsEditorSection_user_name_op));
      }
View Full Code Here

      }
    });
   
    Label sshPasswordLabel = toolkit.createLabel(composite, Messages.ConnectionDetailsEditorSection_password_label);
    sshPasswordLabel.setLayoutData(leftData);
    sshPasswordText = toolkit.createText(composite, PASSWORD_NOT_LOADED,SWT.BORDER|SWT.PASSWORD); //$NON-NLS-1$
    sshPasswordText.setLayoutData(filldata);
    sshPasswordListener = new ModifyListener(){
      public void modifyText(ModifyEvent e) {
        execute(new SetPassCommand(server));
      }
View Full Code Here

    this.headerViewer.setUseHashlookup(true);

    Composite child3 = new Composite(this.sash, SWT.NONE);
    child3.setLayout(new FillLayout());

    this.bodyText = toolkit.createText(child3, "", SWT.MULTI | SWT.BORDER | SWT.WRAP | SWT.V_SCROLL | SWT.H_SCROLL | SWT.READ_ONLY);
    this.bodyText.setToolTipText(Messages.MessageDetailBodyTextToolTip);

    this.sash.setWeights(new int[] {60,40});
  }
View Full Code Here

        // Details Label
        Label detailsLabel = toolkit.createLabel( parent, "Details:" );
        detailsLabel.setLayoutData( new GridData( SWT.NONE, SWT.NONE, false, false, 2, 1 ) );

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

    GridData gd = new GridData();
    gd.horizontalSpan = 4;
    label.setLayoutData(gd);
    for (int i=0; i<80; i++) {
      toolkit.createLabel(body, "Field "+i);
      Text text = toolkit.createText(body, null);
      gd = new GridData(GridData.FILL_HORIZONTAL);
      text.setLayoutData(gd);
    }
  }
}
View Full Code Here

        // Getting the input and the objectClass
        AttributeTypeFormEditorInput input = ( AttributeTypeFormEditorInput ) getEditorInput();
        attributeType = input.getAttributeType();

        // SOURCE CODE Field
        sourceCode_text = toolkit.createText( form.getBody(), "", SWT.MULTI ); //$NON-NLS-1$
        sourceCode_text.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) );
        sourceCode_text.setEditable( false );

        // Initialization from the "input" object class
        initFieldsContentFromInput();
View Full Code Here

        // Getting the input and the objectClass
        ObjectClassFormEditorInput input = ( ObjectClassFormEditorInput ) getEditorInput();
        objectClass = input.getObjectClass();

        // SOURCE CODE Field
        sourceCode_text = toolkit.createText( form.getBody(), "", SWT.MULTI ); //$NON-NLS-1$
        sourceCode_text.setLayoutData( new GridData( SWT.FILL, SWT.FILL, true, true ) );
        sourceCode_text.setEditable( false );

        // Initialization from the "input" object class
        initFieldsContentFromInput();
View Full Code Here

        // Adding elements to the section
        // NAME Field
        toolkit
            .createLabel( client_general_information, Messages.getString( "ObjectClassFormEditorOverviewPage.Name" ) ); //$NON-NLS-1$
        name_text = toolkit.createText( client_general_information, "" ); //$NON-NLS-1$
        name_text.setLayoutData( new GridData( GridData.FILL, SWT.NONE, true, false ) );

        // ALIASES Button
        toolkit.createLabel( client_general_information, Messages
            .getString( "ObjectClassFormEditorOverviewPage.Aliases" ) ); //$NON-NLS-1$
View Full Code Here

            .getString( "ObjectClassFormEditorOverviewPage.Manage_Aliases" ), SWT.PUSH ); //$NON-NLS-1$
        aliases_button.setLayoutData( new GridData( SWT.NONE, SWT.BEGINNING, false, false ) );

        // OID Field
        toolkit.createLabel( client_general_information, Messages.getString( "ObjectClassFormEditorOverviewPage.OID" ) ); //$NON-NLS-1$
        oid_text = toolkit.createText( client_general_information, "" ); //$NON-NLS-1$
        oid_text.setLayoutData( new GridData( SWT.FILL, SWT.NONE, true, false ) );

        // DESCRIPTION Field
        toolkit.createLabel( client_general_information, Messages
            .getString( "ObjectClassFormEditorOverviewPage.Description" ) ); //$NON-NLS-1$
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.