Package org.eclipse.swt.layout

Examples of org.eclipse.swt.layout.GridData


        layout.verticalSpacing = 9;

        Label label = new Label(_container, SWT.NULL);
        label.setText("&Runtime name:");
        _txtRuntimeName = new Text(_container, SWT.BORDER | SWT.SINGLE);
        GridData gd = new GridData(GridData.FILL_HORIZONTAL);
        gd.horizontalSpan = 2;
        _txtRuntimeName.setLayoutData(gd);
        _txtRuntimeName.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent e) {
                dialogChanged();
            }
        });

        // join wga distribution download if present
        Job[] jobs = Job.getJobManager().find(WGADesignerPlugin.JOB_FAMILY_WGA_DISTRIBUTION_DOWNLOAD);
        if (jobs != null && jobs.length > 0) {
            ProgressMonitorDialog dialog = new ProgressMonitorDialog(getShell());
            IRunnableWithProgress runnable = new IRunnableWithProgress() {
                public void run(IProgressMonitor arg0) throws InvocationTargetException, InterruptedException {
                    Job.getJobManager().join(WGADesignerPlugin.JOB_FAMILY_WGA_DISTRIBUTION_DOWNLOAD, arg0);
                }
            };
            try {
                dialog.run(true, true, runnable);
            }
            catch (InvocationTargetException e) {
            }
            catch (InterruptedException e) {
            }
        }

        // init wga distributions
        label = new Label(_container, SWT.NULL);
        label.setText("WGA Distribution:");

        _comboWGADistribution = new Combo(_container, SWT.READ_ONLY);
        updateWGADistributions(false);

        _comboWGADistribution.addSelectionListener(new SelectionListener() {

            public void widgetDefaultSelected(SelectionEvent e) {
                dialogChanged();
            }

            public void widgetSelected(SelectionEvent e) {
                dialogChanged();
            }

        });

        HyperlinkGroup linkGroup = new HyperlinkGroup(_container.getDisplay());
        ImageHyperlink linkCreateNewRuntime = new ImageHyperlink(_container, SWT.NONE);
        linkGroup.add(linkCreateNewRuntime);
        linkCreateNewRuntime.setText("configure WGA distributions");
        linkCreateNewRuntime.addHyperlinkListener(new HyperlinkAdapter() {

            @Override
            public void linkActivated(HyperlinkEvent e) {
                PreferenceDialog pref = PreferencesUtil.createPreferenceDialogOn(new Shell(), WGADesignerPlugin.PREFERENCES_PAGE_WGA_DEPLOYMENTS, null, null);
                if (pref != null) {
                    pref.open();
                    updateWGADistributions();
                }
            }
        });



        _lblworkingSets = new Label(_container, SWT.NULL);
        _lblworkingSets.setText("Working set:");
        _selectWorkingSet = new Combo(_container, SWT.READ_ONLY);
        _selectWorkingSet.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));


        _lblworkingSets.setEnabled(true);
        _selectWorkingSet.setEnabled(true);
View Full Code Here


    composite.setLayout(layout);
 

    Color bg = getShell().getDisplay().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND);

    GridData tblLayoutData = new GridData(SWT.FILL, SWT.FILL, true, true);

    _table = new Table(composite, SWT.FULL_SELECTION | SWT.BORDER );
    _table.setHeaderVisible(true);
   
    TableColumn column1 = new TableColumn(_table, SWT.FILL);
View Full Code Here

    Label lblBuild = new Label(composite, SWT.None);
    lblBuild.setText("Build:");

    _txtBuild = new Text(composite, SWT.BORDER);
    _txtBuild.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    _txtBuild.setText(Integer.toString(_model.getPluginBuild()));       
    _txtBuild.addModifyListener(this);
   
   
   
    new Label(composite, SWT.None);
   
    Label label = new Label(composite, SWT.NULL);
    label.setText("Select target server(s)");   
    GridData g = new GridData(GridData.FILL_HORIZONTAL);
    g.horizontalSpan = 2;
    label.setLayoutData(g);
   
   
   

    _tableControl = new EditableTableControl<WGARemoteServer>(composite, SWT.NONE, SWT.BORDER | SWT.MULTI |SWT.FULL_SELECTION);
    _tableControl.setLayoutData(new GridData(GridData.FILL_BOTH));

    String[] columnNames = new String[] { "Servername", "URL" };

    _remoteServerModel = new WGARemoteServersModel(_serverstore.getBeans())
   

    _tableControl.init(columnNames, _remoteServerModel);

    _tableControl.getButton(EditableTableControl.BUTTON_ADD).addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
      public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
        handleAdd();
        validate();
      }

    });

    _tableControl.getButton(EditableTableControl.BUTTON_REMOVE).addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {
      public void widgetSelected(org.eclipse.swt.events.SelectionEvent e) {
        handleRemove();
        validate();
      }
    });

    _tableControl.getTable().addSelectionListener(this);

    g = new GridData(GridData.FILL_HORIZONTAL|GridData.FILL_VERTICAL);
    g.horizontalSpan = 2;

    _tableControl.setLayoutData(g);

View Full Code Here

    layout.verticalSpacing = 9;
    container.setLayout(layout);
   
    new Label(container, SWT.NULL).setText("Plugin unique name:");
    _txtPluginUniqueName = new Text(container, SWT.BORDER);
    GridData g = new GridData(GridData.FILL_HORIZONTAL);
    g.horizontalSpan = 1;
    _txtPluginUniqueName.setLayoutData(g);

    _txtPluginUniqueName.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
View Full Code Here

    layout.verticalSpacing = 9;
    container.setLayout(layout);

    new Label(container, SWT.NULL).setText("Design name:");
    _designName = new Text(container, SWT.BORDER);
    GridData g = new GridData(GridData.FILL_HORIZONTAL);
    g.horizontalSpan = 1;
    _designName.setLayoutData(g);

    _designName.addModifyListener(new ModifyListener() {
      public void modifyText(ModifyEvent e) {
View Full Code Here

        layout.numColumns = 1;
        _container.setLayout(layout);

        _multiTaskStatusControl = new MultiTaskStatusControl(_container, SWT.NONE);
       
        _multiTaskStatusControl.setLayoutData(new GridData(GridData.FILL_BOTH));
       
        _taskStatusMap = new LinkedHashMap<String, TaskStatus>();
        _taskStatusMap.put(RUNTIME_STARTED_TASK, new TaskStatus("Local runtime started"));
        _taskStatusMap.put(CONNECTION_TASK, new TaskStatus("Remote server connection established"));     
        _taskStatusMap.put(REMOTE_VERSION_TASK, new TaskStatus("Remote server version >= 5.3"));
        _taskStatusMap.put(CONFIGURATION_TASK,new TaskStatus("Remote server configuration retrieved"));
        _taskStatusMap.put(WEBAPP_TASK,new TaskStatus("Database key for new web application available"));
        _taskStatusMap.put(DOMAIN_TASK,new TaskStatus("Domain for web application available"));
        _taskStatusMap.put(DBSERVER_TASK,new TaskStatus("Remote database servers for content store creation available"));
       
        List<TaskStatus> statusList = new ArrayList<TaskStatus>();
        statusList.addAll(_taskStatusMap.values());
        _multiTaskStatusControl.init(statusList);

        _multiTaskStatusControl.getRefreshButton().addSelectionListener(new SelectionListener() {
           
            public void widgetSelected(SelectionEvent e) {
                performCheck();              
            }
           
            public void widgetDefaultSelected(SelectionEvent e) {
            }
        });
       
        GridData statusLayoutData = new GridData(GridData.FILL_BOTH);
        _multiTaskStatusControl.setLayoutData(statusLayoutData);
       
        setControl(_container);
    }
View Full Code Here

        _container.setLayout(layout);

        Label label = new Label(_container, SWT.NONE);
        label.setText("Local runtime:");       
        _lblLocalRuntime = new Label(_container, SWT.NONE);
        _lblLocalRuntime.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
       
        label = new Label(_container, SWT.NONE);
        label.setText("Local web application:");       
        _lblWebApplication = new Label(_container, SWT.NONE);
        _lblWebApplication.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));       
       
        label = new Label(_container, SWT.NONE);
        label.setText("Remote location:");       
        _lblRemoteLocation = new Label(_container, SWT.NONE);
        _lblRemoteLocation.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
       
        label = new Label(_container, SWT.NONE);
        label.setText("Remote database server:");       
        _lblRemoteDatabaseServer = new Label(_container, SWT.NONE);
        _lblRemoteDatabaseServer.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
       
        label = new Label(_container, SWT.NONE);
        label.setText("Remote database name:");       
        _lblRemoteDatabaseName = new Label(_container, SWT.NONE);
        _lblRemoteDatabaseName.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
       
        label = new Label(_container, SWT.NONE);
       
        GridData chkGridData = new GridData(GridData.FILL_HORIZONTAL);       
        _chkCopyLocalContent = new Button(_container, SWT.CHECK);
        _chkCopyLocalContent.setText("copy local content");
        _chkCopyLocalContent.setLayoutData(chkGridData);
        _chkCopyLocalContent.setEnabled(false);
       
        label = new Label(_container, SWT.NONE);
       
        _chkIncludeACL = new Button(_container, SWT.CHECK);
        _chkIncludeACL.setText("include ACL on content copy");
        _chkIncludeACL.setLayoutData(GridDataFactory.copyData(chkGridData));
        _chkIncludeACL.setEnabled(false);
       
        _multiTaskStatusControl = new MultiTaskStatusControl(_container, SWT.NONE);
       
        _multiTaskStatusControl.setLayoutData(new GridData(GridData.FILL_BOTH));
       
        _taskStatusMap = new LinkedHashMap<String, TaskStatus>();
        _taskStatusMap.put(DBNAME_TASK, new TaskStatus("Name for new database is available on database server"));              
        _taskStatusMap.put(DESIGN_TASK,new TaskStatus("WebTML design"));
        _taskStatusMap.put(PLUGINS_TASK,new TaskStatus("Plugin status:"));
       
        List<TaskStatus> statusList = new ArrayList<TaskStatus>();
        statusList.addAll(_taskStatusMap.values());
        _multiTaskStatusControl.init(statusList);
             
        _multiTaskStatusControl.getRefreshButton().addSelectionListener(new SelectionListener() {
           
            public void widgetSelected(SelectionEvent e) {
                performCheck();
            }
           
            public void widgetDefaultSelected(SelectionEvent e) {
            }
        });
       
        GridData statusLayoutData = new GridData(GridData.FILL_BOTH);
        statusLayoutData.horizontalSpan = 2;
        _multiTaskStatusControl.setLayoutData(statusLayoutData);
       
        setControl(_container);
    }
View Full Code Here

        container.setLayout(layout);
       
        Label label = new Label(container, SWT.NONE);
        label.setText("Available database servers on remote location:");
       
        GridData gd = new GridData(GridData.FILL_HORIZONTAL);
        gd.horizontalSpan = 2;
        label.setLayoutData(gd);
      
       
        _tblDatabaseServers = new TableViewer(container);
        _tblDatabaseServers.setLabelProvider(new DBServerLabelProvider());
        _tblDatabaseServers.setContentProvider(new DBServerContentProvider());
        _tblDatabaseServers.setInput(_config);

        _tblDatabaseServers.addSelectionChangedListener(this);
       
        gd = new GridData(GridData.FILL_BOTH);
        gd.horizontalSpan = 2;
        _tblDatabaseServers.getTable().setLayoutData(gd);
       
        label = new Label(container, SWT.NONE);
        label.setText("Database name:");
       
       
        _txtDatabaseName = new Text(container, SWT.BORDER);
        _txtDatabaseName.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
       
        _txtDatabaseName.addModifyListener(this);
       
        label = new Label(container, SWT.NONE);
        label.setText("Options:");
       
        GridData chkGridData = new GridData(GridData.FILL_HORIZONTAL);
           
        _chkCopyLocalContent = new Button(container, SWT.CHECK);
        _chkCopyLocalContent.setText("copy local content");
        _chkCopyLocalContent.setLayoutData(chkGridData);
        _chkCopyLocalContent.addSelectionListener(new SelectionListener() {
View Full Code Here

       
        _tblWebApplications = new TableViewer(_container);
        _tblWebApplications.setLabelProvider(new WebApplicationsLabelProvider());
        _tblWebApplications.setContentProvider(new WebApplicationsContentProvider());
       
        GridData gd = new GridData(GridData.FILL_BOTH);
        _tblWebApplications.getTable().setLayoutData(gd);
       
        _tblWebApplications.addSelectionChangedListener(this);
       
        setControl(_container);
View Full Code Here

    setHelpAvailable(false);
  }

  protected Control createDialogArea(Composite parent) {
    Composite composite = new Composite(parent, SWT.None);
    composite.setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
    GridLayout layout = new GridLayout(3, false);
    composite.setLayout(layout);

    GridData txtStyle = new GridData(GridData.FILL_HORIZONTAL);
    txtStyle.minimumWidth = convertWidthInCharsToPixels(60);

    Label lblTemplateName = new Label(composite, SWT.None);
    lblTemplateName.setText("Template name:");
    _tmplName = new Text(composite, SWT.BORDER);
View Full Code Here

TOP

Related Classes of org.eclipse.swt.layout.GridData

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.