Package org.eclipse.swt.widgets

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


                                       remove.setToolTipText("Remove " + Utilities.verifyName(download.getName()));
                                       remove.setBackground(Utilities.getDisplay().getSystemColor(SWT.COLOR_WHITE));
                                       remove.setForeground(Utilities.getDisplay().getSystemColor(SWT.COLOR_DARK_BLUE));
                                       remove.setCursor(Utilities.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
                                       remove.setLayoutData(gridData);
                                       remove.addListener(SWT.MouseDown, new Listener(){
                                           public void handleEvent(Event e) {
                                               //pop up confirmation box for this event
                                               Shell messageshell = new Shell(DownloadManagerShell.DOWNLOAD_MANAGER_SHELL);
                                                MessageBox messageBox = new MessageBox(messageshell, SWT.ICON_QUESTION | SWT.NO | SWT.YES);
                                                messageBox.setText("Remove File Confirmation");
View Full Code Here


         colorLabel.setBackground(temp_color);
         temp_color.dispose();
         editor.minimumWidth = 20;
         editor.horizontalAlignment = SWT.CENTER;
         editor.setEditor (colorLabel, item, 6);
         colorLabel.addListener(SWT.MouseDown, new Listener() {
           public void handleEvent(Event e) {

             Plugin.getTab2().getClientTable().setSelection(item_number);
           }
         });
View Full Code Here

                                       hide.setLayoutData(gridData);
                                       hide.setText("Hide");
                                       hide.setBackground(Utilities.getDisplay().getSystemColor(SWT.COLOR_WHITE));
                                       hide.setForeground(Utilities.getDisplay().getSystemColor(SWT.COLOR_DARK_BLUE));
                                       hide.setCursor(Utilities.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
                                       hide.addListener(SWT.MouseDown, new Listener(){
                                           public void handleEvent(Event e) {
                                               HideFiles.addFile(Utilities.verifyName(download.getName()));
                                               cleanOne(Utilities.verifyName(download.getName()),2);
                                               DownloadManagerShell.CURRENT_RESPONSES.layout();
                                               DownloadManagerShell.setHiddenNumber();
View Full Code Here

             Plugin.getTab2().getClientTable().setSelection(item_number);
           }
         });

         colorLabel.addListener(SWT.MouseDoubleClick, new Listener() {
           public void handleEvent(Event e) {
             //Choose color
             Plugin.getTab2().getClientTable().setSelection(item_number);
             ColorDialog colorDialog1 = new ColorDialog(colorLabel.getShell());
             colorDialog1.setText("Choose Color for Client");
View Full Code Here

                               remove.setToolTipText("Remove " + Utilities.verifyName(download.getName()));
                               remove.setBackground(Utilities.getDisplay().getSystemColor(SWT.COLOR_WHITE));
                               remove.setForeground(Utilities.getDisplay().getSystemColor(SWT.COLOR_DARK_BLUE));
                               remove.setCursor(Utilities.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
                               remove.setLayoutData(gridData);
                               remove.addListener(SWT.MouseDown, new Listener(){
                                   public void handleEvent(Event e) {
                                       //pop up confirmation box for this event
                                       Shell messageshell = new Shell(DownloadManagerShell.DOWNLOAD_MANAGER_SHELL);
                                        MessageBox messageBox = new MessageBox(messageshell, SWT.ICON_QUESTION | SWT.NO | SWT.YES);
                                        messageBox.setText("Remove File Confirmation");
View Full Code Here

                               unHide.setLayoutData(gridData);
                               unHide.setText("Unhide");
                               unHide.setBackground(Utilities.getDisplay().getSystemColor(SWT.COLOR_WHITE));
                               unHide.setForeground(Utilities.getDisplay().getSystemColor(SWT.COLOR_DARK_BLUE));
                               unHide.setCursor(Utilities.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
                               unHide.addListener(SWT.MouseDown, new Listener(){
                                   public void handleEvent(Event e) {
                                       HideFiles.removeFile(Utilities.verifyName(download.getName()));
                                       cleanOne(Utilities.verifyName(download.getName()),3);
                                       DownloadManagerShell.setHiddenNumber();
                                   }
View Full Code Here

        COLLAPSED = true;
        final Label list_button = new Label(miniHiddenComp,SWT.NULL);
        list_button.setImage(ImageRepository.getImage("right_arrow"));
        list_button.setBackground(Utilities.getDisplay().getSystemColor(SWT.COLOR_WHITE));
        list_button.setCursor(Utilities.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
        list_button.addListener(SWT.MouseDown, new Listener(){
            public void handleEvent(Event e) {
                if(list_button.getImage().equals(ImageRepository.getImage("right_arrow"))){
                    list_button.setImage(ImageRepository.getImage("down_arrow"));
                    HIDDEN.layout();
                    dm_composite.layout();
View Full Code Here

        default_directory.setLayoutData(gridData);
        default_directory.setText("All Downloads Saved To:  " + Plugin.getPluginInterface().getPluginconfig().getStringParameter("Default save path") );
        //default_directory.setForeground(Utilities.getDisplay().getSystemColor(SWT.COLOR_DARK_BLUE));
        default_directory.setToolTipText("Click to open directory in default file browser");
        default_directory.setCursor(Utilities.getDisplay().getSystemCursor(SWT.CURSOR_HAND));
        default_directory.addListener(SWT.MouseDown, new Listener(){
            public void handleEvent(Event e) {
                String path = Plugin.getPluginInterface().getPluginconfig().getStringParameter("Default save path");
                System.out.println(path);
                if(Plugin.getPluginInterface().getUtilities().isWindows()){
                    Program.launch(path);   
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.