Mercurial > hg > ltpda
comparison 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 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:f0afece42f48 |
---|---|
1 % cb_addExtensionPath callback for adding a extensions path | |
2 % | |
3 % Parameters: | |
4 % first - LTPDAprefs object | |
5 % second - Source object (here: JButton) | |
6 % third - Event Object (here: ActionEvent) | |
7 % | |
8 % Version: | |
9 % $Id: cb_addExtensionPath.m,v 1.1 2010/11/29 19:34:25 ingo Exp $ | |
10 % | |
11 | |
12 function cb_addExtensionPath(varargin) | |
13 disp('adding path'); | |
14 ltpdaPrefs = varargin{1}; | |
15 newPath = char(ltpdaPrefs.gui.getPrefsTabPane().getExtensionsPanel().getNewPathTextField().getText()); | |
16 if ~isempty(newPath) | |
17 utils.helper.installExtensionsForDir(newPath); | |
18 end | |
19 end |