Changeset 648

Show
Ignore:
Timestamp:
04/17/08 09:54:57 (8 months ago)
Author:
markd
Message:

Not sure why these are changed, but might as well check them in

Location:
org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions
Files:
23 modified

Legend:

Unmodified
Added
Removed
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/BrowseToCurrentPageAction.java

    r596 r648  
    104104        } 
    105105 
    106         public void selectionChanged(IAction action, ISelection selection){;} 
     106        public void selectionChanged(IAction action, ISelection selection){ 
     107                if(editor != null){ 
     108                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     109                } 
     110        } 
    107111 
    108112        public void dispose() { 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/BrowseToProjectRootAction.java

    r598 r648  
    103103        } 
    104104 
    105         public void selectionChanged(IAction action, ISelection selection){;} 
     105        public void selectionChanged(IAction action, ISelection selection){ 
     106                if(editor != null){ 
     107                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     108                } 
     109        } 
    106110 
    107111        public void dispose() { 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/CFCommentAction.java

    r596 r648  
    3737import org.eclipse.ui.IWorkbenchWindowActionDelegate; 
    3838import org.eclipse.ui.texteditor.ITextEditor; 
     39import org.jdom.Parent; 
    3940 
    4041 
     
    9899                } 
    99100        } 
    100         public void selectionChanged(IAction action, ISelection selection){;} 
     101 
     102        public void selectionChanged(IAction action, ISelection selection){ 
     103                if(editor != null){ 
     104                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     105                } 
     106        } 
    101107 
    102108        public void dispose() { 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/CreateUnitTestAction.java

    r596 r648  
    9191        } 
    9292 
    93         public void selectionChanged(IAction action, ISelection selection) { 
    94                 // TODO Auto-generated method stub 
    95  
     93        public void selectionChanged(IAction action, ISelection selection){ 
     94                if(editor != null){ 
     95                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     96                } 
    9697        } 
    9798 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/EditCustomTagAction.java

    r596 r648  
    9494        } 
    9595 
    96         public void selectionChanged(IAction action, ISelection selection) { 
    97                 // TODO Auto-generated method stub 
    98                  
     96        public void selectionChanged(IAction action, ISelection selection){ 
     97                if(editor != null){ 
     98                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     99                } 
    99100        } 
    100101 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/EditFunctionAction.java

    r596 r648  
    103103                 
    104104        } 
    105         public void selectionChanged(IAction action, ISelection selection) { 
    106                 // TODO Auto-generated method stub 
    107                  
     105 
     106        public void selectionChanged(IAction action, ISelection selection){ 
     107                if(editor != null){ 
     108                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     109                } 
    108110        } 
    109111 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/EditTagAction.java

    r596 r648  
    439439        //} 
    440440 
    441         public void selectionChanged(IAction action, ISelection selection) { 
    442                 // TODO Auto-generated method stub 
    443                  
     441        public void selectionChanged(IAction action, ISelection selection){ 
     442                if(editor != null){ 
     443                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     444                } 
    444445        } 
    445446 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/ExternalBrowserAction.java

    r596 r648  
    242242     * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection) 
    243243     */ 
    244     public void selectionChanged(IAction action, ISelection selection) { 
    245         // TODO Auto-generated method stub 
    246  
    247     } 
     244        public void selectionChanged(IAction action, ISelection selection){ 
     245                if(editor != null){ 
     246                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     247                } 
     248        } 
    248249     
    249250    private String getDefaultProperties(IProject project) { 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/FindBracketAction.java

    r596 r648  
    141141         *      org.eclipse.jface.viewers.ISelection) 
    142142         */ 
    143         public void selectionChanged(IAction action, ISelection selection) 
    144         { 
    145                 // not sure anything needs to be done here 
     143        public void selectionChanged(IAction action, ISelection selection){ 
     144                if(editor != null){ 
     145                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     146                } 
    146147        } 
    147148 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/GenericEncloserAction.java

    r596 r648  
    122122        } 
    123123 
    124         public void selectionChanged(IAction action, ISelection selection){;} 
     124        public void selectionChanged(IAction action, ISelection selection){ 
     125                if(editor != null){ 
     126                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     127                } 
     128        } 
    125129 
    126130        public void dispose() { 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/GetHelpAction.java

    r596 r648  
    125125        } 
    126126 
    127         public void selectionChanged(IAction action, ISelection selection){;} 
     127        public void selectionChanged(IAction action, ISelection selection){ 
     128                if(editor != null){ 
     129                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     130                } 
     131        } 
    128132 
    129133        public void dispose() { 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/InsertColorAction.java

    r596 r648  
    166166        } 
    167167         
    168         public void selectionChanged(IAction action, ISelection selection) {;} 
     168        public void selectionChanged(IAction action, ISelection selection){ 
     169                if(editor != null){ 
     170                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     171                } 
     172        } 
    169173 
    170174        public void dispose() { 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/InsertGetAndSetAction.java

    r596 r648  
    107107        } 
    108108         
    109         public void selectionChanged(IAction action, ISelection selection) { 
    110                 // TODO Auto-generated method stub 
    111                  
     109        public void selectionChanged(IAction action, ISelection selection){ 
     110                if(editor != null){ 
     111                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     112                } 
    112113        } 
     114 
    113115        public void dispose() { 
    114116                // TODO Auto-generated method stub 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/InsertSnippetAction.java

    r596 r648  
    274274        } 
    275275         
    276         public void selectionChanged(IAction action, ISelection selection){;} 
     276        public void selectionChanged(IAction action, ISelection selection){ 
     277                if(editor != null){ 
     278                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     279                } 
     280        } 
     281 
    277282        public void dispose() { 
    278283                // TODO Auto-generated method stub 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/JumpToDocPos.java

    r596 r648  
    8686         * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection) 
    8787         */ 
    88         public void selectionChanged(IAction action, ISelection selection) { 
     88        public void selectionChanged(IAction action, ISelection selection){ 
     89                if(editor != null){ 
     90                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     91                } 
    8992        } 
    9093 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/JumpToMatchingTagAction.java

    r596 r648  
    101101     * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection) 
    102102     */ 
    103     public void selectionChanged(IAction action, ISelection selection) { 
    104     } 
     103        public void selectionChanged(IAction action, ISelection selection){ 
     104                if(editor != null){ 
     105                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     106                } 
     107        } 
    105108 
    106109    /** 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/LocateInTreeAction.java

    r596 r648  
    110110         * @see org.eclipse.ui.IActionDelegate#selectionChanged(org.eclipse.jface.action.IAction, org.eclipse.jface.viewers.ISelection) 
    111111         */ 
    112         public void selectionChanged(IAction action, ISelection selection) { 
    113                 // TODO Auto-generated method stub 
    114  
     112        public void selectionChanged(IAction action, ISelection selection){ 
     113                if(editor != null){ 
     114                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     115                } 
    115116        } 
    116117 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/OpenAtMethodAction.java

    r596 r648  
    204204        } 
    205205 
    206         public void selectionChanged(IAction action, ISelection selection){;} 
    207     /** 
     206        public void selectionChanged(IAction action, ISelection selection){ 
     207                if(editor != null){ 
     208                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     209                } 
     210        } 
     211 
     212        /** 
    208213     * @return Returns the success. 
    209214     */ 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/RTrimAction.java

    r596 r648  
    121121        } 
    122122 
    123         public void selectionChanged(IAction action, ISelection selection) { 
     123        public void selectionChanged(IAction action, ISelection selection){ 
     124                if(editor != null){ 
     125                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     126                } 
    124127        } 
    125128 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/RefreshBrowserAction.java

    r596 r648  
    8686        } 
    8787 
    88         public void selectionChanged(IAction action, ISelection selection){;} 
     88        public void selectionChanged(IAction action, ISelection selection){ 
     89                if(editor != null){ 
     90                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     91                } 
     92        } 
    8993 
    9094        public void dispose() { 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/ToLowerCaseAction.java

    r596 r648  
    7878        } 
    7979         
    80         public void selectionChanged(IAction action, ISelection selection) {;} 
     80        public void selectionChanged(IAction action, ISelection selection){ 
     81                if(editor != null){ 
     82                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     83                } 
     84        } 
    8185 
    8286        public void dispose() { 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/ToUpperCaseAction.java

    r596 r648  
    7575                } 
    7676        } 
    77         public void selectionChanged(IAction action, ISelection selection) {;} 
     77 
     78        public void selectionChanged(IAction action, ISelection selection){ 
     79                if(editor != null){ 
     80                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     81                } 
     82        } 
    7883 
    7984        public void dispose() { 
  • org.cfeclipse.cfml/trunk/src/org/cfeclipse/cfml/editors/actions/WordWrapAction.java

    r596 r648  
    3636 
    3737        public void selectionChanged(IAction action, ISelection selection) { 
    38                 if (editor == null && editor == null) { 
     38                if(editor != null){ 
     39                        setActiveEditor(null,  editor.getSite().getPage().getActiveEditor()); 
     40                } 
     41                if (editor == null) { 
    3942                        action.setEnabled(false); 
    4043                } else {