Skip to content

Commit

Permalink
Adds print-wrap to args and ret panes
Browse files Browse the repository at this point in the history
  • Loading branch information
MayaBrito authored and jpmonettas committed Dec 22, 2023
1 parent b0bfc3a commit d473b93
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src-dbg/flow_storm/debugger/ui/flows/components.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns flow-storm.debugger.ui.flows.components
(:require [flow-storm.debugger.ui.utils :as ui-utils :refer [event-handler label h-box v-box button text-area]]
(:require [flow-storm.debugger.ui.utils :as ui-utils :refer [event-handler label h-box v-box button text-area check-box]]
[flow-storm.debugger.ui.value-inspector :as value-inspector]
[flow-storm.debugger.state :refer [store-obj obj-lookup]]
[flow-storm.debugger.runtime-api :as runtime-api :refer [rt-api]])
Expand All @@ -22,6 +22,8 @@
print-level-txt (doto (TextField. "5")
(.setPrefWidth 50)
(.setAlignment Pos/CENTER))
print-wrap-chk (doto (check-box {:on-change (fn [selected?] (.setWrapText result-txt selected?))})
(.setSelected false))
def-btn (button :label "def"
:classes ["def-btn" "btn-sm"]
:tooltip "Define a reference to this value so it can be used from the repl.")
Expand All @@ -33,6 +35,7 @@
:tooltip "Tap this value as with tap>. Useful to send it to other inspectors like portal, REBL, Reveal, etc")
tools-box (doto (h-box [(label "*print-level*") print-level-txt
(label "*print-meta*") print-meta-chk
(label "*print-wrap*") print-wrap-chk
def-btn
inspect-btn
tap-btn])
Expand Down
15 changes: 15 additions & 0 deletions src-dev/dev_tester.clj
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,18 @@
add
sub
(+ c d j e (hinted a c d j)))))

(defn lorem-ipsum [arg1 arg2 arg3]
(str "Lorem ipsum dolor sit amet, consectetur adipiscing elit. "
"Proin vehicula euismod ligula, eu consectetur tortor facilisis vel."
"Pellentesque " arg1 " elit nec, " arg2 " sagittis turpis. "
"Duis fermentum mi et eros vehicula, id fringilla justo tincidunt."
"Integer " arg3 " ut justo in dignissim. "
"Proin ac ex eu sem sollicitudin hendrerit."))

(defn generate-lorem-ipsum []
(let [long-arg1 (apply str (repeat 120 "a"))
long-arg2 (apply str (repeat 120 "b"))
long-arg3 (apply str (repeat 120 "c"))]

(lorem-ipsum long-arg1 long-arg2 long-arg3)))

0 comments on commit d473b93

Please sign in to comment.