Package org.eclipse.ui.forms.widgets

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


                contentSection.getLayoutModificationListener());
    }

    private void createAlertsActionsSection(Composite parent) {
        FormToolkit formToolkit = getFormToolkit(parent.getShell().getDisplay());
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        form.setLayoutData(data);

        alertsActionsSection =
                new AlertsActionsSection(form.getBody(), SWT.NONE, getContext());
        data = new GridData(GridData.FILL_HORIZONTAL);
        alertsActionsSection.setLayoutData(data);
    }
View Full Code Here


        alertsActionsSection.setLayoutData(data);
    }

    private void createAssetsSection(Composite parent) {
        FormToolkit formToolkit = getFormToolkit(parent.getShell().getDisplay());
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_BOTH);
        form.setLayoutData(data);

        assetsSection = AssetSectionFactory.getDefaultInstance().
                createAssetsSection(form.getBody(), getContext());
        data = new GridData(GridData.FILL_BOTH);
        assetsSection.setLayoutData(data);
    }
View Full Code Here

        assetsSection.setLayoutData(data);
    }

    private void createAssetAttributesSection(Composite parent) {
        FormToolkit formToolkit = getFormToolkit(parent.getShell().getDisplay());
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        form.setLayoutData(data);

        assetAttributesSection = AssetSectionFactory.getDefaultInstance().
                createAssetAttributesSection(form.getBody(), getContext());
        data = new GridData(GridData.FILL_HORIZONTAL);
        assetAttributesSection.setLayoutData(data);
    }
View Full Code Here

    private void createSelectorsSection(Composite parent) {
        if (formToolkit == null) {
            formToolkit = new FormToolkit(parent.getShell().getDisplay());
        }
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_HORIZONTAL);
        form.setLayoutData(data);

        selectorsSection =
                new SelectorsSection(form.getBody(), SWT.NONE,
                        (ThemeEditorContext) getContext());
        data = new GridData(GridData.FILL_HORIZONTAL);
        selectorsSection.setLayoutData(data);
        selectorsSection.addSelectionChangeListener(new ISelectionChangedListener() {
            public void selectionChanged(SelectionChangedEvent event) {
View Full Code Here

    private void createStylePropertiesSection(Composite parent) {
        if (formToolkit == null) {
            formToolkit = new FormToolkit(parent.getShell().getDisplay());
        }
        Form form = formToolkit.createForm(parent);
        GridLayout layout = new GridLayout();
        form.getBody().setLayout(layout);

        GridData data = new GridData(GridData.FILL_BOTH);
        form.setLayoutData(data);

        stylePropertiesSection =
                new StylePropertiesSection(form.getBody(), SWT.NONE, (ThemeEditorContext) getContext());
        data = new GridData(GridData.FILL_BOTH);
        stylePropertiesSection.setLayoutData(data);
    }
View Full Code Here

        ((MenuItem) button.getData("menuItem")).setEnabled(enabled);
    }

    protected SashForm createToolkit(Composite parent, String titleKey) {
        toolkit = new FormToolkit(parent.getDisplay());
        Form form = toolkit.createForm(parent);
        form.setText(Messages.getString(titleKey));

        GridLayout layout = new GridLayout();
        layout.marginWidth = 0;
        layout.marginHeight = 0;
        form.getBody().setLayout(layout);

        SashForm sashForm = new SashForm(form.getBody(), SWT.NULL);
        toolkit.adapt(sashForm, false, false);
        sashForm.setLayoutData(new GridData(GridData.FILL_BOTH));
        return sashForm;
    }
View Full Code Here

   
    ScrolledForm scrolledForm = managedForm.getForm();
    toolkit.decorateFormHeading(scrolledForm.getForm());
    scrolledForm.setText("Tapestry 5 custom component packages list");
   
    Form form = scrolledForm.getForm();
        toolkit.decorateFormHeading(form);
        Composite body = form.getBody();

        greyTitleBarColour = new Color(body.getDisplay(), 210, 245, 210);

        // Create controls
        MDSashForm sashForm = new MDSashForm(body, SWT.HORIZONTAL, managedForm);
View Full Code Here

   
    ScrolledForm scrolledForm = managedForm.getForm();
    toolkit.decorateFormHeading(scrolledForm.getForm());
    scrolledForm.setText("Tapestry 5 custom component packages list");
   
    Form form = scrolledForm.getForm();
        toolkit.decorateFormHeading(form);
        Composite body = form.getBody();

        // Create controls
        MDSashForm sashForm = new MDSashForm(body, SWT.HORIZONTAL, managedForm);
        sashForm.setSashWidth(6);
        toolkit.adapt(sashForm, false, false);
View Full Code Here

    IDocument document = getDocumentProvider().getDocument(getEditorInput());
    JavaTextTools tools= JavaPlugin.getDefault().getJavaTextTools();
    tools.setupJavaDocumentPartitioner(document, IJavaPartitions.JAVA_PARTITIONING);
   
    FormToolkit tk = new FormToolkit(parent.getDisplay());
    Form createForm = tk.createForm(parent);
    createForm.setText(getTitle()+" ("+getJavaProject().getElementName()+" )");
/*    Action launch = new Action() {
      public void run() {
        doIt(this,true);
               
      }
    };*/
    //launch.setText("Run snippet on local server");
    debugMode = new Action("Run snippet") { // in context of deployed application
      public void run(){
        //com.onpositive.gae.baseviewer.Activator
       
        //IPreferenceStore ps = com.onpositive.gae.baseviewer.Activator.getDefault().getPreferenceStore();
        boolean isLocal = Platform.getPreferencesService().getBoolean("com.onpositive.gae.base.manager","CONNECTION_MODE",false,null);
        //boolean isLocal = ps.getBoolean("CONNECTION_MODE");
        doIt(this,isLocal);
      }
     
    };
//    ImageDescriptor imageDescriptorFromPlugin = Activator.imageDescriptorFromPlugin(
//        Activator.PLUGIN_ID, "/icons/launch_run.gif");
    //launch.setImageDescriptor(imageDescriptorFromPlugin);
    debugMode.setImageDescriptor(Activator.imageDescriptorFromPlugin(
        Activator.PLUGIN_ID, "/icons/exec_view_obj.gif"));
    IToolBarManager toolBarManager = createForm.getToolBarManager();
    //toolBarManager.add(launch);
    toolBarManager.add(debugMode);
    toolBarManager.update(true);
    Composite body = createForm.getBody();
    body.setLayout(new FillLayout());
    tk.decorateFormHeading(createForm);
    SashForm composite = new SashForm(body, SWT.NONE);
    super.createPartControl(composite);
    createForm.setLayoutData(GridDataFactory.fillDefaults()
        .grab(true, true).create());
    browser = new Browser(composite, SWT.NONE);
    browser
        .setText(DESCR);
    // browser.setUrl(getConsoleRootUrl());
View Full Code Here

    preferences = new Preference();
  }
 
  @Override
  public void createPartControl(Composite parent) {
    Form form = toolkit.createForm(parent);
    form.getBody().setLayout(new FormLayout());

    sashFormData = new FormData();
    sashFormData.width = 1;
    sashFormData.top = new FormAttachment(0, 0);
    sashFormData.left = new FormAttachment(0, 200);
    sashFormData.bottom = new FormAttachment(100, 0);
    final Sash sash = new Sash(form.getBody(), SWT.VERTICAL);
    sash.setBackground(toolkit.getColors().getBorderColor());
    sash.setLayoutData(sashFormData);
    sash.addListener(SWT.Selection, new Listener() {
      @Override
      public void handleEvent(Event e) {
        ((FormData) sash.getLayoutData()).left = new FormAttachment(0, e.x);
        sash.getParent().layout();
      }
    });

    // Extension list:
    FormData leftData = new FormData();
    leftData.top = new FormAttachment(0, 0);
    leftData.left = new FormAttachment(0, 0);
    leftData.right = new FormAttachment(sash, 0);
    leftData.bottom = new FormAttachment(100, 0);
    Form left = toolkit.createForm(form.getBody());
    left.setText("Metrics");
    left.setLayoutData(leftData);
    left.getBody().setLayout(new FillLayout());
    MetricsPanel list = new MetricsPanel(this);
    list.createContents(left.getBody());

    // Displaying area:
    FormData rightData = new FormData();
    rightData.top = new FormAttachment(0, 0);
    rightData.left = new FormAttachment(sash, 0);
View Full Code Here

TOP

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

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.