Mercurial > hg > ltpda
diff m-toolbox/classes/@LTPDAprefs/cb_addExtensionPath.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_addExtensionPath.m Wed Nov 23 19:22:13 2011 +0100 @@ -0,0 +1,19 @@ +% cb_addExtensionPath callback for adding a extensions path +% +% Parameters: +% first - LTPDAprefs object +% second - Source object (here: JButton) +% third - Event Object (here: ActionEvent) +% +% Version: +% $Id: cb_addExtensionPath.m,v 1.1 2010/11/29 19:34:25 ingo Exp $ +% + +function cb_addExtensionPath(varargin) + disp('adding path'); + ltpdaPrefs = varargin{1}; + newPath = char(ltpdaPrefs.gui.getPrefsTabPane().getExtensionsPanel().getNewPathTextField().getText()); + if ~isempty(newPath) + utils.helper.installExtensionsForDir(newPath); + end +end