Examples of ToolTipPresenterHandler


Examples of org.python.pydev.core.tooltips.presenter.ToolTipPresenterHandler

    @Override
    public void createPartControl(Composite parent) {
        Assert.isTrue(!disposed);
        super.createPartControl(parent);
        IInformationPresenter presenter = new InformationPresenterWithLineTracker();
        final ToolTipPresenterHandler tooltip = new ToolTipPresenterHandler(parent.getShell(), presenter);

        GridLayout layout = new GridLayout();
        layout.numColumns = 1;
        layout.verticalSpacing = 2;
        layout.marginWidth = 0;
        layout.marginHeight = 2;
        parent.setLayout(layout);
        configureToolBar();

        fCounterComposite = new Composite(parent, SWT.NONE);
        layout = new GridLayout();
        fCounterComposite.setLayout(layout);
        fCounterComposite.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));

        fCounterPanel = new CounterPanel(fCounterComposite);
        fCounterPanel.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));

        fProgressBar = new PyUnitProgressBar(fCounterComposite);
        fProgressBar.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));

        fStatus = new Label(fCounterComposite, 0);
        GridData statusLayoutData = new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL);
        statusLayoutData.grabExcessHorizontalSpace = true;
        fStatus.setLayoutData(statusLayoutData);
        fStatus.setText("Status");

        sash = new SashForm(parent, SWT.HORIZONTAL);
        GridData layoutData = new GridData();
        layoutData.grabExcessHorizontalSpace = true;
        layoutData.grabExcessVerticalSpace = true;
        layoutData.horizontalAlignment = GridData.FILL;
        layoutData.verticalAlignment = GridData.FILL;
        sash.setLayoutData(layoutData);

        tree = new Tree(sash, SWT.FULL_SELECTION | SWT.MULTI);
        tooltip.install(tree);
        tree.setHeaderVisible(true);

        Listener sortListener = new PyUnitSortListener(this);
        colIndex = createColumn(" ", 50, sortListener);
        colResult = createColumn("Result", 70, sortListener);
View Full Code Here

Examples of org.python.pydev.core.tooltips.presenter.ToolTipPresenterHandler

            protected void onHandleClick(Object data) {
            }
        };

        Composite p = getFieldEditorParent();
        tooltipPresenter = new ToolTipPresenterHandler(p.getShell(), presenter,
                "Tip: Click on the link to add it as a parameter to the test runner.");

        addField(createTestRunnerEditor(p));
        parametersField = new MultiStringFieldEditor(TEST_RUNNER_DEFAULT_PARAMETERS,
                "Parameters for test runner   (click links below to add flags)", p);
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.