Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Combo.clearSelection()


         editor.grabHorizontal = true;
         editor.setEditor (isRegEx_combo, item, 2);
         if(isRegEx.equalsIgnoreCase("1")){
           isRegEx_combo.select(1);
           isRegEx_combo.clearSelection();
         }else{
           isRegEx_combo.select(0);
           isRegEx_combo.clearSelection();
         }
         isRegEx_combo.addListener(SWT.Selection, new Listener() {
View Full Code Here


         if(isRegEx.equalsIgnoreCase("1")){
           isRegEx_combo.select(1);
           isRegEx_combo.clearSelection();
         }else{
           isRegEx_combo.select(0);
           isRegEx_combo.clearSelection();
         }
         isRegEx_combo.addListener(SWT.Selection, new Listener() {
           public void handleEvent(Event e) {
             Plugin.getTab2().getClientTable().setSelection(item_number);
             String position = item.getText(0);
View Full Code Here

             position = stringNumberDownOne(position);
             String clientName = item.getText(1);
             String[] oldRules = FileUtilities.getRules(position);
             if(isRegEx_combo.getSelectionIndex() == 0){
               FileUtilities.changeClientRules(position,clientName,"0",oldRules[1],oldRules[2],oldRules[3],oldRules[4]);
               isRegEx_combo.clearSelection();
             }else{
               try{
                 Pattern p = Pattern.compile(item.getText(1));
                 Matcher m = p.matcher("Test");
                 m.find();
View Full Code Here

               try{
                 Pattern p = Pattern.compile(item.getText(1));
                 Matcher m = p.matcher("Test");
                 m.find();
                 FileUtilities.changeClientRules(position,clientName,"1",oldRules[1],oldRules[2],oldRules[3],oldRules[4]);
                 isRegEx_combo.clearSelection();
               }catch(PatternSyntaxException f){
                 f.printStackTrace();
                 String errorText = ("Java is reporting that your RegEx is incorrectly formed, please correct this. \n\n" +
                     "For further information and examples, check the readme at \n\n" +
                     "http://azcvsupdater.sourceforge.net/stuffer/readme.txt \n\n" +
View Full Code Here

                     "Also check http://www.regular-expressions.info for more information\n\n" +
                     "Java is reporting the following problem with the expression: \n"
                     + f.getDescription()) + " at position " + f.getIndex() + " in the rule";
                 openErrorMessageBox("Error",errorText);
                 isRegEx_combo.select(0);
                 isRegEx_combo.clearSelection();
               }



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.