Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Control


    /* (non-Javadoc)
     * @see ch.ethz.prose.eclipse.IProseRunListener#runAdded(ch.ethz.prose.eclipse.internal.core.ProseRunNode)
     */
    public void runAdded(final ProseRunNode node) {
        Control ctrl = viewer.getControl();
        if (ctrl == null || ctrl.isDisposed())
            return;
        ctrl.getDisplay().syncExec(new Runnable() {
            public void run() {
                if (!viewer.getControl().isDisposed()) {
                    viewer.add(viewer.getInput(), node);
                    viewer.expandToLevel(2);
                }
View Full Code Here


    /* (non-Javadoc)
     * @see ch.ethz.prose.eclipse.IProseRunListener#runUnreachable(ch.ethz.prose.eclipse.internal.run.ProseRunNode)
     */
    public void runUnreachable(final ProseRunNode node) {
        Control ctrl = viewer.getControl();
        if (ctrl == null || ctrl.isDisposed())
            return;
        ctrl.getDisplay().asyncExec(new Runnable() {
            public void run() {
                if (!viewer.getControl().isDisposed()) {
                    viewer.refresh(node);
                }
            }
View Full Code Here

    /* (non-Javadoc)
     * @see ch.ethz.prose.eclipse.IProseRunListener#runRemoved(ch.ethz.prose.eclipse.internal.run.ProseRunNode)
     */
    public void runRemoved(final ProseRunNode node) {
        Control ctrl = viewer.getControl();
        if (ctrl == null || ctrl.isDisposed())
            return;
        ctrl.getDisplay().syncExec(new Runnable() {
            public void run() {
                if (!viewer.getControl().isDisposed()) {
                    viewer.remove(node);
                }
            }
View Full Code Here

    /* (non-Javadoc)
     * @see ch.ethz.prose.eclipse.IProseRunListener#aspectInserted(ch.ethz.prose.eclipse.internal.core.AspectManagerNode)
     */
    public void aspectInserted(final AspectManagerNode node) {
        Control ctrl = viewer.getControl();
        if (ctrl == null || ctrl.isDisposed())
            return;
        ctrl.getDisplay().syncExec(new Runnable() {
            public void run() {
                if (!viewer.getControl().isDisposed()) {
                    viewer.collapseToLevel(node, AbstractTreeViewer.ALL_LEVELS);
                    viewer.refresh(node);
                }
View Full Code Here

    /* (non-Javadoc)
     * @see ch.ethz.prose.eclipse.IProseRunListener#aspectInserted(ch.ethz.prose.eclipse.internal.run.AspectNode)
     */
    public void aspectWithdrawn(final AspectNode node) {
        Control ctrl = viewer.getControl();
        if (ctrl == null || ctrl.isDisposed())
            return;
        ctrl.getDisplay().syncExec(new Runnable() {
            public void run() {
                if (!viewer.getControl().isDisposed()) {
                    viewer.refresh(node.getParent());
                }
            }
View Full Code Here

        // CompareEditor extends EditorPart implements IReusableEditor
        if(obj instanceof IReusableEditor){
            myEditor = (IReusableEditor)obj;
        }

        Control control = super.createContents(parent);

        CompareViewerSwitchingPane inputPane = getInputPane();
        if (inputPane != null) {
            ToolBarManager toolBarManager2 = CompareViewerPane
                .getToolBarManager(inputPane);
View Full Code Here

                org.eclipse.swt.widgets.Shell s = new org.eclipse.swt.widgets.Shell(getShell());
                    calendar = new PopupCalendar(s, PopupCalendar.SHOWALL, locale);
              }
                if (!calendar.isOpen()) {
                 
                    Control comp = (Control) e.getSource();
                    calendar.open(comp, SWT.RIGHT);
                } else
                    calendar.close();
            }
        });
View Full Code Here

        item.setToolTipText("Maximise");

        item.addSelectionListener(new SelectionAdapter() {
            @Override
            public void widgetSelected(SelectionEvent e) {
                Control maximised = sashForm.getMaximizedControl();
                if (maximised == panel) {
                    maximised = null;
                    item.setImage(maximiseImg);
                    item.setToolTipText("Maximise");
                } else {
View Full Code Here

        final Composite composite = new Composite(parent, SWT.NULL);
        composite.setFont(parent.getFont());
        composite.setLayout(new GridLayout(1, false));
        composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));

        Control nameControl = nameGroup.createControl(composite);
        nameControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

        Control locationControl = locationGroup.createControl(composite);
        locationControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

        Control jreControl = createJRESelectionControl(composite);
        jreControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

        Control layoutControl = layoutGroup.createControl(composite);
        layoutControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

        Control workingSetControl = createWorkingSetControl(composite);
        workingSetControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

        Control infoControl = createInfoControl(composite);
        infoControl.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));

        setControl(composite);
    }
View Full Code Here

        return Status.OK_STATUS;
    }

    protected void createMethodStubSelectionControls(Composite composite, int nColumns) {
        // Create stubs for constructors and abstract methods
        Control labelControl = fMethodStubsButtons.getLabelControl(composite);
        LayoutUtil.setHorizontalSpan(labelControl, nColumns);

        DialogField.createEmptySpace(composite);

        Control buttonGroup = fMethodStubsButtons.getSelectionButtonsGroup(composite);
        LayoutUtil.setHorizontalSpan(buttonGroup, nColumns - 1);
    }
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.Control

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.