|
Class: ResourceSpecEditor
Object
|
+--Model
|
+--ApplicationModel
|
+--ToolApplicationModel
|
+--ResourceSpecEditor
- Package:
- stx:libview2
- Category:
- Interface-Framework
- Version:
- rev:
1.63
date: 2023/06/28 15:28:55
- user: cg
- file: ResourceSpecEditor.st directory: libview2
- module: stx stc-classLibrary: libview2
Abstract super class for the MenuEditor, HierarchicalListEditor,
and the TabListEditor.
It provides common behavior for initializing, loading, saving, and
asking for modifications of the resource specs (#menu, #hierarchicalList,
#tabList) for the concrete subclasses.
[instance variables:]
specClass <Symbol> class implementing the resource spec
specSelector <Symbol> selector returning the resource spec
aspects <IdentityDictionary> dictionary with the attributes of the resource spec
modified <Boolean> flag whether the resource spec was modified
hasSaved <Boolean> flag whether the resource spec was saved
tabSelection <Integer> index of the tab selection
copyrightCOPYRIGHT (c) 1997-1998 by eXept Software AG
All Rights Reserved
This software is furnished under a license and may be used
only in accordance with the terms of that license and with the
inclusion of the above copyright notice. This software may not
be provided or otherwise made available to, or used by, any
other person. No title to or ownership of the software is
hereby transferred.
accessing
-
codeGenerationComment
-
returns a comment for the method code generated by myself
-
codeGenerationCommentForClass: generatingClass
-
returns a comment for the method code generated by generatingClass
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
resourceType
-
returns the type of resource of the method generated by the Resource Spec Editor;
concrete subclasses has to reimplement this method
** This method must be redefined in concrete classes (subclassResponsibility) **
aspects
-
aspects
-
returns the aspects for the attributes of the resource spec components;
concrete subclasses might reimplement this method in order to return an array
help specs
-
helpSpec
-
This resource specification was automatically generated
by the UIHelpTool of ST/X.
instance creation
-
openModalOnClass: aClass andSelector: aSelector
-
opens modal the Resource Spec Editor on aClass and aSelector
-
openOnClass: aClass andSelector: aSelector
-
opens the Resource Spec Editor on aClass and aSelector
queries
-
isAbstract
-
Return if this class is an abstract class.
True is returned here for myself only; false for subclasses.
Abstract subclasses must redefine this again.
-
isVisualStartable
-
return true, if this application can be started via #open.
(to allow start of a change browser via double-click in the browser)
-
resourcePackage
-
startup & release
-
preSnapshot
-
before a snapshot; updates the channels,
because the clipboard has removed
accessing
-
alternativeSpecSelectors
-
returns an alternative method selector of the resource spec
-
clearModified
-
-
isEmbeddedInBrowser
-
-
isEmbeddedInBrowser: something
-
-
modified
-
returns whether the resource spec was modified
-
modified: aBoolean
-
sets the resource spec modified as aBoolean
-
setModified
-
-
specClass
-
return the class where the resource spec is implemented
-
specClass: aClassOrClassName
-
sets the class (or name) where the resource spec is (or should be) implemented
-
specClassName
-
return the classes name where the resource spec is implemented
-
specSelector
-
returns the method selector of the resource spec
-
specSelector: aSelector
-
sets the method selector of the resource spec.
That is the spec method being edited (i.e. #helpSpec, #windowSpec, #menuSpec, etc.)
aspects
-
aspectAt: aKey put: aValueHolder
-
-
aspectFor: aKey
-
returns the aspect for a aKey or nil
-
autoAcceptOnSelectionChange
-
-
canPasteHolder
-
returns whether the application can paste; as value holder
-
enableMovingInAboveHolder
-
returns whether the selected item can move into the previous item as child;
as a value holder
-
enableMovingInHolder
-
returns whether the selected item can move into next item as child; as value holder
-
enableMovingOutHolder
-
returns whether the selected item can move out from its parent item; as value holder
-
enableMovingUpOrDownHolder
-
returns whether the selected item can move up or down; as value holder
-
tabModel
-
returns the value holder for the tab selection
-
valueOfEnableMovingIn
-
returns whether the selected item can move into next item as child; as value holder
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
valueOfEnableMovingInAbove
-
returns whether the selected item can move into the previous item as child;
as a value holder
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
valueOfEnableMovingOut
-
returns whether the selected item can move out from its parent item; as value holder
** This is an obsolete interface - do not use it (it may vanish in future versions) **
-
valueOfEnableMovingUpOrDown
-
returns whether the selected item can move up or down; as value holder
** This is an obsolete interface - do not use it (it may vanish in future versions) **
building
-
buildFromClass: aClass andSelector: aSelector
-
-
buildFromResourceSpec: aResourceSpec
-
concrete subclass has to reimplement this method
in order to build its resource spec from aResourceSpec
-
loadFromClass: aClass andSelector: aSelector
-
** This method must be redefined in concrete classes (subclassResponsibility) **
-
loadFromResourceSpec: aResourceSpec
-
concrete subclass has to reimplement this method
in order to build its resource spec from aResourceSpec
** This method must be redefined in concrete classes (subclassResponsibility) **
change & update
-
update: something with: aParameter from: changedObject
-
one of my aspects has changed; update modified channel for the commit buttons
-
updateAllToolInstances
-
updates the channels of all other instances of my class
-
updateChannels
-
updates my channels
help
-
defaultInfoLabel
-
returns the default label for the info bar
initialization
-
initialize
-
initialize the flags and the aspects
private
-
askForItemModification
-
asks for resource item modification
-
askForListModification
-
asks for resource modification
-
askForModification
-
asks first for item and then for resource modification
-
extractClassAndSelectorFrom: aString
-
extracts class and selector from a resource string. On success
an association with the key a class and the selector as value
is returned. Otherwise nil is returned
-
updateHistory
-
updates the history, if there was loaded a resource spec
-
xxresourceMessage: aString
-
extracts the specClass and the specSelector from aString
queries
-
hasSaved
-
returns true if the resource spec was saved
-
isModified
-
-
isNotStandAlone
-
returns true if the editor was NOT started from or in another tool;
i.e. is embedded in another tool, such as the inspector
-
isStandAlone
-
returns true if the editor was started from or in another tool;
i.e. is not embedded in another tool such as the inspector
selection
-
selectionChangeAllowed: newSelection
-
-
tabSelection
-
returns selected tab index or 0
startup & release
-
closeRequest
-
asks for permission before closing
-
loadFromMessage: classAndSelector
-
builds by evaluating aString the resource spec for editing
-
openModalOnClass: aClass andSelector: aSelector
-
sets the specClass and specSelector and opens modal the interface
-
openModalOnResourceSpec: aListSpec
-
builds first from specClass and specSelector the resource spec for editing,
then opens modal the interface
-
openOnClass: aClass andSelector: aSelector
-
sets the specClass and specSelector and opens the interface
-
postBuildWith: aBuilder
-
after creating the views and before opening,
adds myself to the instances dictionary in the settings
-
postOpenWith: aBuilder
-
after opening, builds from specClass and specSelector the resource spec for editing
-
uninitialize
-
uninitializes; removes myself from the instances dictionary in the settings
user actions
-
accept
-
invoked by the OK button; disables the commit buttons and sets myself modified
Usage example(s):
toggle to force inputFields to accept
|
-
askForUnsavedModifications
-
-
cancel
-
remove all changes and reload selected column values
-
doBrowseClass
-
opens a System Browser on the specClass and specSelector
-
doEditImage
-
opens a Image Editor on the resource retriever and the icon selector
-
doLoad
-
opens a Resource Selection Browser in order to get a resource message
-
doNew
-
first ask for modification; then clean specClass and specSelector,
but only, if the editor is opened as stand alone;
finally make a build of a resource spec containing no items
-
doSave
-
before saving ask for modification; if no specClass and specSelector
is defined, do save as
-
doSaveAs
-
first ask for modification;
then open a ResourceSelectionBrowser;
after that extract the resource message;
finally do save and make a new build
|