Examples of ListViewer


Examples of org.eclipse.jface.viewers.ListViewer

    /* Apply Gridlayout */
    setLayout(LayoutUtils.createGridLayout(2, 0, 0));

    /* Left: List of Columns */
    fNewsColumnViewer = new ListViewer(this, SWT.BORDER | SWT.MULTI | SWT.V_SCROLL);
    fNewsColumnViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
    fNewsColumnViewer.setContentProvider(new ArrayContentProvider());
    fNewsColumnViewer.setLabelProvider(new LabelProvider() {
      @Override
      public String getText(Object element) {
View Full Code Here

Examples of org.eclipse.jface.viewers.ListViewer

        Font font = parent.getFont();
        composite.setFont(font);

        createMessageArea(composite);

        viewer = new ListViewer(composite, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
        GridData data = new GridData(GridData.FILL_BOTH);
        data.heightHint = 200;
        data.widthHint = 450;
        viewer.getList().setLayoutData(data);
View Full Code Here

Examples of org.eclipse.jface.viewers.ListViewer

    });
    setHelpContext(reportFolderBrowseButton, HelpContexts.TESTABILITY_REPORT_FOLDER);

    Label whiteList = new Label(control, SWT.NONE);
    whiteList.setText("White list:");
    whiteListList = new ListViewer(control, SWT.BORDER | SWT.V_SCROLL | SWT.MULTI);
    whiteListList.getList().setBounds(0, 0, 100, 100);
    GridData whiteListGridData = new GridData(GridData.FILL_HORIZONTAL);
    whiteListGridData.heightHint = 100;
    whiteListGridData.verticalSpan = 2;
    whiteListList.getList().setLayoutData(whiteListGridData);
View Full Code Here

Examples of org.eclipse.jface.viewers.ListViewer

            formData_7.width = 77;
            btnRemove_1.setLayoutData(formData_7);
        }
        btnRemove_1.setText("Remove");
        {
            final ListViewer listViewer = new ListViewer(includeComposite, SWT.BORDER);
            final org.eclipse.swt.widgets.List includes_list = listViewer.getList();
            {
                final FormData formData = new FormData();
                formData.right = new FormAttachment(btnAddFolder, -6);
                formData.left = new FormAttachment(0, 10);
                formData.bottom = new FormAttachment(100, -10);
                formData.top = new FormAttachment(lblFoldersWithInclude, 6);
                includes_list.setLayoutData(formData);
            }
        }

        final TabItem projectsTab = new TabItem(tabFolder, SWT.NONE);
        projectsTab.setText("Projects");

        final Composite dependenciesComposite = new Composite(tabFolder, SWT.NONE);
        dependenciesComposite.setLayout(new FormLayout());
        projectsTab.setControl(dependenciesComposite);

        final Label lblProjectsOnThe = new Label(dependenciesComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.right = new FormAttachment(100, -10);
            formData.top = new FormAttachment(0, 10);
            formData.left = new FormAttachment(0, 10);
            lblProjectsOnThe.setLayoutData(formData);
        }
        lblProjectsOnThe.setText("Required projects on the build path:");

        final Button button = new Button(dependenciesComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(lblProjectsOnThe, 6);
            formData.right = new FormAttachment(lblProjectsOnThe, 0, SWT.RIGHT);
            button.setLayoutData(formData);
        }
        button.setText("New Button");

        final Button button_1 = new Button(dependenciesComposite, SWT.NONE);
        FormData formData_8;
        {
            formData_8 = new FormData();
            formData_8.right = new FormAttachment(lblProjectsOnThe, 0, SWT.RIGHT);
            button_1.setLayoutData(formData_8);
        }
        button_1.setText("New Button");

        final Button button_2 = new Button(dependenciesComposite, SWT.NONE);
        formData_8.bottom = new FormAttachment(button_2, -6);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(0, 110);
            formData.right = new FormAttachment(lblProjectsOnThe, 0, SWT.RIGHT);
            button_2.setLayoutData(formData);
        }
        button_2.setText("New Button");
        {
            final ListViewer listViewer = new ListViewer(dependenciesComposite,
                    SWT.BORDER);
            final org.eclipse.swt.widgets.List projects_list = listViewer.getList();
            {
                final FormData formData = new FormData();
                formData.right = new FormAttachment(button, -6);
                formData.left = new FormAttachment(0, 10);
                formData.bottom = new FormAttachment(100, -6);
                formData.top = new FormAttachment(lblProjectsOnThe, 6);
                projects_list.setLayoutData(formData);
            }
        }

        final Collection<RuntimeInfo> rs = BackendCore.getRuntimeInfoCatalog()
                .getRuntimes();
        final List<String[]> vv = new ArrayList<String[]>();
        for (final RuntimeInfo ri : rs) {
            vv.add(new String[] { ri.getName(), ri.getName() });
        }
        @SuppressWarnings("unused")
        final String[][] values = vv.toArray(new String[][] {});

        final TabItem librariesTab = new TabItem(tabFolder, SWT.NONE);
        librariesTab.setText("Libraries");

        final Composite librariesComposite = new Composite(tabFolder, SWT.NONE);
        librariesComposite.setLayout(new FormLayout());
        librariesTab.setControl(librariesComposite);

        final Label lblExternalLibrariesRequired = new Label(librariesComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.right = new FormAttachment(100, -10);
            formData.top = new FormAttachment(0, 10);
            formData.left = new FormAttachment(0, 10);
            lblExternalLibrariesRequired.setLayoutData(formData);
        }
        lblExternalLibrariesRequired
                .setText("External libraries required on build path:");

        final Button button_3 = new Button(librariesComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(lblExternalLibrariesRequired, 6);
            formData.right = new FormAttachment(100, -10);
            button_3.setLayoutData(formData);
        }
        button_3.setText("New Button");

        final Button button_4 = new Button(librariesComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(button_3, 6);
            formData.right = new FormAttachment(lblExternalLibrariesRequired, 0,
                    SWT.RIGHT);
            button_4.setLayoutData(formData);
        }
        button_4.setText("New Button");

        final Button button_5 = new Button(librariesComposite, SWT.NONE);
        FormData formData_9;
        {
            formData_9 = new FormData();
            formData_9.right = new FormAttachment(lblExternalLibrariesRequired, 0,
                    SWT.RIGHT);
            button_5.setLayoutData(formData_9);
        }
        button_5.setText("New Button");

        final Button button_6 = new Button(librariesComposite, SWT.NONE);
        formData_9.bottom = new FormAttachment(100, -226);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(button_5, 6);
            formData.right = new FormAttachment(lblExternalLibrariesRequired, 0,
                    SWT.RIGHT);
            button_6.setLayoutData(formData);
        }
        button_6.setText("New Button");
        {
            final TreeViewer treeViewer = new TreeViewer(librariesComposite, SWT.BORDER);
            final Tree libraries_tree = treeViewer.getTree();
            {
                final FormData formData = new FormData();
                formData.right = new FormAttachment(button_3, -6);
                formData.left = new FormAttachment(0, 10);
                formData.top = new FormAttachment(lblExternalLibrariesRequired, 4);
                formData.bottom = new FormAttachment(100, -10);
                libraries_tree.setLayoutData(formData);
            }
        }

        final TabItem orderTab = new TabItem(tabFolder, SWT.NONE);
        orderTab.setText("Codepath order");

        final Composite codepathComposite = new Composite(tabFolder, SWT.NONE);
        codepathComposite.setLayout(new FormLayout());
        orderTab.setControl(codepathComposite);

        final Label lblOrderOfThe = new Label(codepathComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.right = new FormAttachment(100, -10);
            formData.top = new FormAttachment(0, 10);
            formData.left = new FormAttachment(0, 10);
            lblOrderOfThe.setLayoutData(formData);
        }
        lblOrderOfThe.setText("Order of the dependencies on runtime code path:");

        final Button button_7 = new Button(codepathComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(lblOrderOfThe, 6);
            formData.right = new FormAttachment(lblOrderOfThe, 0, SWT.RIGHT);
            button_7.setLayoutData(formData);
        }
        button_7.setText("New Button");

        final Button button_8 = new Button(codepathComposite, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(button_7, 6);
            formData.right = new FormAttachment(lblOrderOfThe, 0, SWT.RIGHT);
            button_8.setLayoutData(formData);
        }
        button_8.setText("New Button");
        {
            final ListViewer listViewer = new ListViewer(codepathComposite, SWT.BORDER);
            final org.eclipse.swt.widgets.List codepath_list = listViewer.getList();
            {
                final FormData formData = new FormData();
                formData.right = new FormAttachment(button_7, -6);
                formData.left = new FormAttachment(0, 10);
                formData.bottom = new FormAttachment(100, -10);
                formData.top = new FormAttachment(lblOrderOfThe, 6);
                codepath_list.setLayoutData(formData);
            }
        }

        final TabItem tbtmPreprocessor = new TabItem(tabFolder, SWT.NONE);
        tbtmPreprocessor.setText("Preprocessor");

        final Composite composite_1 = new Composite(tabFolder, SWT.NONE);
        composite_1.setLayout(new FormLayout());
        tbtmPreprocessor.setControl(composite_1);

        final Label lblMacrosDefinedFor = new Label(composite_1, SWT.NONE);
        {
            final FormData formData = new FormData();
            formData.top = new FormAttachment(0, 10);
            formData.left = new FormAttachment(0, 10);
            lblMacrosDefinedFor.setLayoutData(formData);
        }
        lblMacrosDefinedFor.setText("Macros defined for this project");

        final Button button_9 = new Button(composite_1, SWT.NONE);
        {
            final FormData formData_10 = new FormData();
            formData_10.top = new FormAttachment(0, 31);
            formData_10.right = new FormAttachment(100, -10);
            button_9.setLayoutData(formData_10);
        }
        button_9.setText("New Button");

        final Button button_10 = new Button(composite_1, SWT.NONE);
        FormData formData_12;
        {
            formData_12 = new FormData();
            formData_12.right = new FormAttachment(button_9, 0, SWT.RIGHT);
            button_10.setLayoutData(formData_12);
        }
        button_10.setText("New Button");

        final Button button_11 = new Button(composite_1, SWT.NONE);
        formData_12.bottom = new FormAttachment(100, -262);
        {
            final FormData formData_11 = new FormData();
            formData_11.top = new FormAttachment(button_10, 6);
            formData_11.right = new FormAttachment(button_9, 0, SWT.RIGHT);
            button_11.setLayoutData(formData_11);
        }
        button_11.setText("New Button");
        {
            final ListViewer listViewer = new ListViewer(composite_1, SWT.BORDER);
            final org.eclipse.swt.widgets.List macros_list = listViewer.getList();
            {
                final FormData formData = new FormData();
                formData.right = new FormAttachment(button_9, -6);
                formData.left = new FormAttachment(0, 10);
                formData.bottom = new FormAttachment(100, -10);
View Full Code Here

Examples of org.eclipse.jface.viewers.ListViewer

        // SWT.WRAP);
        // anyModuleHavingLabel.setLayoutData(new GridData(279, SWT.DEFAULT));
        // anyModuleHavingLabel
        // .setText("Any module having breakpoints enabled will be dynamically added to the list.\n\nThis widget is disabled for now, it takes 100%CPU for large projects. If you need to use \"attach on first call\" or \"attach on exit\", please mark the modules by setting a dummy breakpoint in them. Sorry for the inconvenience!");

        listViewer = new ListViewer(interpretedModulesGroup, SWT.BORDER | SWT.MULTI);
        listViewer.addSelectionChangedListener(new ISelectionChangedListener() {

            @Override
            public void selectionChanged(final SelectionChangedEvent event) {
                final ISelection selection = event.getSelection();
View Full Code Here

Examples of org.eclipse.jface.viewers.ListViewer

    }

    @Override
    protected Viewer createViewer(final Composite parent) {
        listViewer = new ListViewer(parent, SWT.BORDER);
        listViewer.setLabelProvider(new ModuleItemLabelProvider());
        contentProvider = new InterpretedModuleListContentProvider();
        listViewer.setContentProvider(contentProvider);
        getSite().setSelectionProvider(listViewer);
        listViewer.addDoubleClickListener(new IDoubleClickListener() {
View Full Code Here

Examples of org.eclipse.jface.viewers.ListViewer

      {
        ViewerPane viewerPane =
          new ViewerPane(getSite().getPage(), URMLEditor.this) {
            @Override
            public Viewer createViewer(Composite composite) {
              return new ListViewer(composite);
            }
            @Override
            public void requestActivation() {
              super.requestActivation();
              setCurrentViewerPane(this);
View Full Code Here

Examples of org.eclipse.jface.viewers.ListViewer

      {
        ViewerPane viewerPane =
          new ViewerPane(getSite().getPage(), OntoUMLEditor.this) {
            @Override
            public Viewer createViewer(Composite composite) {
              return new ListViewer(composite);
            }
            @Override
            public void requestActivation() {
              super.requestActivation();
              setCurrentViewerPane(this);
View Full Code Here

Examples of org.eclipse.jface.viewers.ListViewer

    typePaneData.grabExcessHorizontalSpace = true;
    typePaneData.grabExcessVerticalSpace = false;
    typePaneData.horizontalAlignment = SWT.FILL;
    mTypePane.setLayoutData(typePaneData);

    mFSList = new ListViewer(mInstanceComposite, SWT.MULTI | SWT.V_SCROLL | SWT.BORDER);
    GridData instanceListData = new GridData();
    instanceListData.grabExcessHorizontalSpace = true;
    instanceListData.grabExcessVerticalSpace = true;
    instanceListData.horizontalAlignment = SWT.FILL;
    instanceListData.verticalAlignment = SWT.FILL;
View Full Code Here

Examples of org.eclipse.jface.viewers.ListViewer

        Label l = new Label(this, SWT.NONE);
        l.setText(label);
        l.setLayoutData(new GridData(GridData.BEGINNING, GridData.FILL, false, false));

        filelist = new ListViewer(this, SWT.BORDER);
        filelist.getList().setLayoutData(new GridData(GridData.FILL, GridData.FILL, true, true));
        filelist.setContentProvider(ArrayContentProvider.getInstance());
        filelist.setLabelProvider(new LabelProvider());
        filelist.addSelectionChangedListener(new ISelectionChangedListener() {
            public void selectionChanged(SelectionChangedEvent event) {
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.