Package org.eclipse.jface.viewers

Examples of org.eclipse.jface.viewers.IDoubleClickListener


    /**
     * Creates listeners for the JFace treeviewer
     */
    private void createListeners()
    {
        _treeViewer.addDoubleClickListener(new IDoubleClickListener()
            {
                public void doubleClick(DoubleClickEvent event)
                {
                    IStructuredSelection ss = (IStructuredSelection) event.getSelection();
                    if ((ss == null) || (ss.getFirstElement() == null))
View Full Code Here


    }

    private TreeViewer buildTreeViewer(Composite composite)
    {
        TreeViewer tree = new TreeViewer(composite, SWT.V_SCROLL | SWT.SINGLE);
        tree.addDoubleClickListener(new IDoubleClickListener()
        {

            @Override
            public void doubleClick(DoubleClickEvent event)
            {
View Full Code Here

          }
        }
      }
    });

    listviewer.addDoubleClickListener(new IDoubleClickListener() {

      public void doubleClick(DoubleClickEvent event) {
        Object obj = event.getSelection();
        if (obj instanceof IStructuredSelection) {
          StructuredSelection selection = (StructuredSelection) obj;
View Full Code Here

                    }
                }
            }
        } );

        treeViewer.addDoubleClickListener( new IDoubleClickListener()
        {
            public void doubleClick( DoubleClickEvent event )
            {
                if ( event.getSelection() instanceof IStructuredSelection )
                {
View Full Code Here

    Transfer[] transfers = new Transfer[] { TextTransfer.getInstance() };
    treeViewer.addDragSupport(ops, transfers, new SourceDragListener(
        treeViewer));

    // Handle Double Clicks on items
    treeViewer.addDoubleClickListener(new IDoubleClickListener() {

      @Override
      public void doubleClick(DoubleClickEvent event) {
        // TODO Auto-generated method stub
View Full Code Here

    Transfer[] transfers = new Transfer[] { TextTransfer.getInstance() };
    treeViewer.addDragSupport(ops, transfers, new SourceDragListener(
        treeViewer));

    // Handle Double Clicks on items
    treeViewer.addDoubleClickListener(new IDoubleClickListener() {

      @Override
      public void doubleClick(DoubleClickEvent event) {
        // TODO Auto-generated method stub
View Full Code Here

    Transfer[] transfers = new Transfer[] { TextTransfer.getInstance() };
    treeViewer.addDragSupport(ops, transfers, new SourceDragListener(
        treeViewer));

    // Handle Double Clicks on items
    treeViewer.addDoubleClickListener(new IDoubleClickListener() {

      @Override
      public void doubleClick(DoubleClickEvent event) {
        // TODO Auto-generated method stub
View Full Code Here

                        Plugin.getDefault().getLog().log(e.getStatus());
                    }
                }
            }
        });
        viewer.addDoubleClickListener(new IDoubleClickListener() {
            @Override
            public void doubleClick(DoubleClickEvent event) {
                if (!event.getSelection().isEmpty()) {
                    IStructuredSelection selection = (IStructuredSelection) event.getSelection();
                    Object element = selection.getFirstElement();
View Full Code Here

            {
                valueSelected();
            }
        } );

        tableViewer.addDoubleClickListener( new IDoubleClickListener()
        {
            public void doubleClick( DoubleClickEvent event )
            {
                editValue();
            }
View Full Code Here

    private void initListeners()
    {
        ServersHandler serversHandler = ServersHandler.getDefault();
        serversHandler.addListener( serversHandlerListener );

        tableViewer.addDoubleClickListener( new IDoubleClickListener()
        {
            public void doubleClick( DoubleClickEvent event )
            {
                openConfiguration.run();
            }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.viewers.IDoubleClickListener

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.