extensions.st
author Jan Vrany <jan.vrany@fit.cvut.cz>
Tue, 10 Apr 2018 20:23:08 +0100
changeset 73 82e202dec6cb
parent 59 e7d0453109a1
child 83 101ff2210613
permissions -rw-r--r--
UX: added preferences to automatically enable frame filters and pretty printers

"{ Package: 'jv:vdb' }"!

!GDBVariableObject methodsFor:'inspecting'!

inspector2TabVariable
    <inspector2Tab>

    | varObjApp |

    varObjApp := Smalltalk at: #VDBVariableObjectListApplication ifAbsent:[ ^ nil ].
    ^ (self newInspector2Tab)
        label:'Variable';
        priority:95;
        "/ view: [ ... ];
        application: [ varObjApp new debugger: debugger; variableObjectList: (Array with: self); yourself ];
        "/ text: [ ... ];
        yourself

    "Modified: / 03-02-2018 / 09:58:42 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!UserPreferences methodsFor:'accessing-vdb'!

vdbFrameFiltersEnabled
    "Return true, if VDB should enable frame filters by default."

    ^ self at: #vdbFrameFiltersEnabled ifAbsent:[ false ].

    "    
    UserPreferences current vdbFrameFiltersEnabled.
    UserPreferences current vdbFrameFiltersEnabled: true.
    UserPreferences current vdbFrameFiltersEnabled: false.
    "

    "Created: / 10-04-2018 / 11:05:28 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!UserPreferences methodsFor:'accessing-vdb'!

vdbFrameFiltersEnabled: aBoolean
    "Set whether VDB should enable frame filters by default."

    ^ self at: #vdbFrameFiltersEnabled put: aBoolean

    "    
    UserPreferences current vdbFrameFiltersEnabled.
    UserPreferences current vdbFrameFiltersEnabled: true.
    UserPreferences current vdbFrameFiltersEnabled: false.
    "

    "Created: / 10-04-2018 / 11:05:45 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!UserPreferences methodsFor:'accessing-vdb'!

vdbPrettyPrintingEnabled
    "Return true, if VDB should enable pretty printing by default."

    ^ self at: #vdbPrettyPrintingEnabled ifAbsent:[ false ].

    "    
    UserPreferences current vdbPrettyPrintingEnabled.
    UserPreferences current vdbPrettyPrintingEnabled: true.
    UserPreferences current vdbPrettyPrintingEnabled: false.
    "

    "Created: / 10-04-2018 / 11:06:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!UserPreferences methodsFor:'accessing-vdb'!

vdbPrettyPrintingEnabled: aBoolean
    "Set whether VDB should enable pretty printing by default."

    ^ self at: #vdbPrettyPrintingEnabled put: aBoolean

    "    
    UserPreferences current vdbPrettyPrintingEnabled.
    UserPreferences current vdbPrettyPrintingEnabled: true.
    UserPreferences current vdbPrettyPrintingEnabled: false.
    "

    "Created: / 10-04-2018 / 11:06:40 / Jan Vrany <jan.vrany@fit.cvut.cz>"
! !

!jv_vdb class methodsFor:'documentation'!

extensionsVersion_HG

    ^ '$Changeset: <not expanded> $'
! !