Mercurial > hg > ltpda
diff m-toolbox/classes/@LTPDAprefs/cb_removeExtensionPath.m @ 0:f0afece42f48
Import.
author | Daniele Nicolodi <nicolodi@science.unitn.it> |
---|---|
date | Wed, 23 Nov 2011 19:22:13 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/m-toolbox/classes/@LTPDAprefs/cb_removeExtensionPath.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,22 @@ +% cb_removeExtensionPath callback for removing a extensions path +% +% Parameters: +% first - LTPDAprefs object +% second - Source object (here: JButton) +% third - Event Object (here: ActionEvent) +% +% Version: +% $Id: cb_removeExtensionPath.m,v 1.3 2011/02/07 13:31:37 ingo Exp $ +% + +function cb_removeExtensionPath(varargin) + disp('removing path'); + ltpdaPrefs = varargin{1}; + removePaths = char(ltpdaPrefs.gui.getPrefsTabPane().getExtensionsPanel().getRemovePaths()); + if ~isempty(removePaths) + for ii =1:size(removePaths,1) + p = strtrim(removePaths(ii,:)); + utils.helper.uninstallExtensionsForDir(p); + end + end +end