diff options
author | Peti Gomori <[email protected]> | 2012-06-15 20:26:33 +0200 |
---|---|---|
committer | Henrik Nord <[email protected]> | 2012-08-02 13:59:50 +0200 |
commit | e223525ce20d4c7962994448d5ee632c4f229ec0 (patch) | |
tree | 63b750b0e307bf9aa7df7855eacd581f0dbe812e /lib/observer/src/observer_tv_table.erl | |
parent | 24ad2d1d985bbadb28dc8fe9dfee5e33c3bdcbbc (diff) | |
download | otp-e223525ce20d4c7962994448d5ee632c4f229ec0.tar.gz otp-e223525ce20d4c7962994448d5ee632c4f229ec0.tar.bz2 otp-e223525ce20d4c7962994448d5ee632c4f229ec0.zip |
Edit table row in a multiline text dialog
Diffstat (limited to 'lib/observer/src/observer_tv_table.erl')
-rw-r--r-- | lib/observer/src/observer_tv_table.erl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/observer/src/observer_tv_table.erl b/lib/observer/src/observer_tv_table.erl index 3930f9ee26..231a4c3108 100644 --- a/lib/observer/src/observer_tv_table.erl +++ b/lib/observer/src/observer_tv_table.erl @@ -218,8 +218,8 @@ search_area(Parent) -> search=TC1,goto=TC2,radio={Nbtn,Pbtn,Cbtn}}. edit(Index, #state{pid=Pid, frame=Frame}) -> - Str = get_row(Pid, Index, all), - case observer_lib:user_term(Frame, "Edit object:", Str) of + Str = get_row(Pid, Index, all_multiline), + case observer_lib:user_term_multiline(Frame, "Edit object:", Str) of cancel -> ok; {ok, Term} -> Pid ! {edit, Index, Term}; Err = {error, _} -> self() ! Err @@ -628,6 +628,8 @@ get_row(From, Row, Col, Table) -> case lists:nth(Row+1, Table) of [Object|_] when Col =:= all -> From ! {self(), format(Object)}; + [Object|_] when Col =:= all_multiline -> + From ! {self(), io_lib:format("~p", [Object])}; [Object|_] when tuple_size(Object) >= Col -> From ! {self(), format(element(Col, Object))}; _ -> |