Package org.eclipse.ui.forms.widgets

Examples of org.eclipse.ui.forms.widgets.ScrolledForm


    {
        // Getting the associated schema
        schema = ( ( SchemaEditor ) getEditor() ).getSchema();

        // Creating the base UI
        ScrolledForm form = managedForm.getForm();
        FormToolkit toolkit = managedForm.getToolkit();
        GridLayout layout = new GridLayout( 2, true );
        form.getBody().setLayout( layout );

        createAttributeTypesSection( form.getBody(), toolkit );

        createObjectClassesSection( form.getBody(), toolkit );

        // Initializes the UI from the schema
        fillInUiFields();

        // Listeners initialization
View Full Code Here


     */
    protected void createFormContent( IManagedForm managedForm )
    {
        schema = ( ( SchemaEditor ) getEditor() ).getSchema();

        ScrolledForm form = managedForm.getForm();
        FormToolkit toolkit = managedForm.getToolkit();
        GridLayout layout = new GridLayout();
        form.getBody().setLayout( layout );
        toolkit.paintBordersFor( form.getBody() );

        // SOURCE CODE Field
        schemaSourceViewer = new SchemaSourceViewer( form.getBody(), null, null, false, SWT.BORDER | SWT.H_SCROLL
            | SWT.V_SCROLL );
        GridData gd = new GridData( SWT.FILL, SWT.FILL, true, true );
        gd.heightHint = 10;
        schemaSourceViewer.getTextWidget().setLayoutData( gd );
        schemaSourceViewer.getTextWidget().setEditable( false );
View Full Code Here

        }
    }

    protected void createFormContent(IManagedForm managedForm) {
        FormToolkit toolkit = managedForm.getToolkit();
        ScrolledForm form = managedForm.getForm();
        form.setText(wrapper.getObjectName().getCanonicalName());

        createToolBarActions(form);

        form.getForm().setSeparatorVisible(true);
        Composite body = form.getBody();
        body.setLayout(new GridLayout(1, false));
        Table table = toolkit.createTable(body, SWT.FULL_SELECTION);
        toolkit.paintBordersFor(body);
        GridDataFactory.fillDefaults().grab(true, true).applyTo(table);
        createColumns(table);
View Full Code Here

        MBeanEditorInput input = (MBeanEditorInput) editor.getEditorInput();
        this.wrapper = input.getWrapper();
    }

    protected void createFormContent(IManagedForm managedForm) {
        ScrolledForm form = managedForm.getForm();
        form.setText(wrapper.getObjectName().toString());
        FormToolkit toolkit = managedForm.getToolkit();
        form.getForm().setSeparatorVisible(true);

        Composite body = form.getBody();
        FontData fd[] = body.getFont().getFontData();
        bold = new Font(body.getDisplay(), fd[0].getName(), fd[0].getHeight(),
                SWT.BOLD);

        GridLayout layout = new GridLayout(2, false);
View Full Code Here

public class ActionUtils {

    static void createLayoutActions(IManagedForm managedForm,
            final SashForm sashForm) {
        final ScrolledForm form = managedForm.getForm();
        Action haction = new Action("hor", Action.AS_RADIO_BUTTON) { //$NON-NLS-1$
            public void run() {
                sashForm.setOrientation(SWT.HORIZONTAL);
                form.reflow(true);
            }
        };
        haction.setChecked(true);
        haction.setToolTipText(Messages.horizontal);
        JMXImages.setLocalImageDescriptors(haction, "th_horizontal.gif"); //$NON-NLS-1$

        Action vaction = new Action("ver", Action.AS_RADIO_BUTTON) { //$NON-NLS-1$
            public void run() {
                sashForm.setOrientation(SWT.VERTICAL);
                form.reflow(true);
            }
        };
        vaction.setChecked(false);
        vaction.setToolTipText(Messages.vertical);
        JMXImages.setLocalImageDescriptors(vaction, "th_vertical.gif"); //$NON-NLS-1$
        form.getToolBarManager().add(haction);
        form.getToolBarManager().add(vaction);
    }
View Full Code Here

        this.wrapper = input.getWrapper();
        block = new OperationsBLock();
    }

    protected void createFormContent(IManagedForm managedForm) {
        ScrolledForm form = managedForm.getForm();
        form.getForm().setSeparatorVisible(true);
        form.getForm().setText(wrapper.getObjectName().toString());
        block.createContent(managedForm);
        block.masterSection.getTableViewer().addSelectionChangedListener(new ISelectionChangedListener() {
      public void selectionChanged(SelectionChangedEvent event) {
        UpdateSelectionJob.launchJob(Navigator.VIEW_ID);
      }
View Full Code Here

        this.wrapper = input.getWrapper();
        block = new AttributesBLock();
    }

    protected void createFormContent(IManagedForm managedForm) {
        ScrolledForm form = managedForm.getForm();
        form.getForm().setSeparatorVisible(true);
        form.getForm().setText(wrapper.getObjectName().toString());
        block.createContent(managedForm);
        block.masterSection.getTableViewer().addSelectionChangedListener(new ISelectionChangedListener() {
      public void selectionChanged(SelectionChangedEvent event) {
        UpdateSelectionJob.launchJob(Navigator.VIEW_ID);
      }
View Full Code Here

  }

  @Override
  protected void createFormContent(IManagedForm managedForm) {
    ScrolledForm form = managedForm.getForm();
    Composite body = form.getBody();
    body.setLayout(new FillLayout(SWT.HORIZONTAL));
    FormToolkit toolkit = managedForm.getToolkit();
    Composite content = toolkit.createComposite(body, SWT.NONE);
    content.setLayout(new FillLayout(SWT.HORIZONTAL));
View Full Code Here

   * {@inheritDoc}
   */
  public void createPartControl(Composite parent) {
    toolkit = new FormToolkit(parent.getDisplay());
   
    ScrolledForm form = toolkit.createScrolledForm(parent);
    form.setText("Installed Games");   
    form.getBody().setLayout(new GridLayout())
   
    createGameList(form.getBody());
   
    getSite().setSelectionProvider(gameTableViewer);
   
    gameTableViewer.setInput(KnapperCore.getDefault().getInstalledGames());
  }
View Full Code Here

   * {@inheritDoc}
   */
  public void createPartControl(Composite parent) {
    toolkit = new FormToolkit(parent.getDisplay());
   
    ScrolledForm form = toolkit.createScrolledForm(parent);
    form.setText("Installed Games");   
    form.getBody().setLayout(new GridLayout())
   
    createGameList(form.getBody());
   
    getSite().setSelectionProvider(gameTableViewer);
   
    gameTableViewer.setInput(KnapperCore.getDefault().getInstalledGames());
  }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.forms.widgets.ScrolledForm

Copyright © 2018 www.massapicom. 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.