Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.ToolItem.addListener()


        //bottom
        final ToolItem bottom_toolitem = new ToolItem(toolBar, SWT.PUSH);
        bottom_toolitem.setToolTipText("Move Rule to Bottom");
        bottom_toolitem.setImage(ImageRepository.getImage("bottom"));
        bottom_toolitem.setEnabled(false);
        bottom_toolitem.addListener(SWT.Selection, new Listener() {
            public void handleEvent (Event e){
                try{
                    TableItem[] items = clientTable.getSelection();
                    if(items.length != 1){
                        return;
View Full Code Here



        ToolItem help = new ToolItem(toolBar,SWT.PUSH);
        help.setImage(ImageRepository.getImage("info"));
        help.setToolTipText("View helpful tips about the settings tab");
        help.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event e) {

                Plugin.getDisplay().asyncExec(new Runnable (){
                    public void run () {
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.