public void selectionChanged(IAction action, ISelection s) {
 		if (s != null) {
 			if (s instanceof IStructuredSelection){
 				m_selection = (IStructuredSelection)s;
 			}
 			
 			 if (s instanceof ITextSelection){
 				IEditorPart part = RsyncPlugin.getActivePage().getActiveEditor();
 				if (part != null) {
 					IEditorInput input = part.getEditorInput();
 					IResource r = (IResource) input.getAdapter(IResource.class);
 					if (r != null) {
 						switch(r.getType()){
 							case IResource.FILE:
 								m_selection = new StructuredSelection(r);								
 							break;
 						}
 					}	//	set selection to current editor file;
 				}
 			}else{			
 			}
 		}	
 	}