Migration: Solving empty tags default value.
This commit is contained in:
parent
ff5c021cd3
commit
44519496a0
@ -580,6 +580,7 @@ GrafoscopioNode >> isEmpty [
|
|||||||
|
|
||||||
{ #category : #operation }
|
{ #category : #operation }
|
||||||
GrafoscopioNode >> isTaggedAs: aString [
|
GrafoscopioNode >> isTaggedAs: aString [
|
||||||
|
self tags ifEmpty: [ self tagAs: 'text' ].
|
||||||
^ self tags includes: aString
|
^ self tags includes: aString
|
||||||
]
|
]
|
||||||
|
|
||||||
@ -955,7 +956,7 @@ GrafoscopioNode >> tagAs: aTag [
|
|||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
GrafoscopioNode >> tags [
|
GrafoscopioNode >> tags [
|
||||||
"Returns the receiver tags. For the moment is just one... yes silly, but will be extended properly"
|
"I returns the receiver tags."
|
||||||
| migration |
|
| migration |
|
||||||
tags isString
|
tags isString
|
||||||
ifTrue: [
|
ifTrue: [
|
||||||
|
@ -67,8 +67,7 @@ GrafoscopioNotebook >> addCommandFrom: dictionary into: stream [
|
|||||||
|
|
||||||
{ #category : #'editing nodes' }
|
{ #category : #'editing nodes' }
|
||||||
GrafoscopioNotebook >> addNode [
|
GrafoscopioNotebook >> addNode [
|
||||||
| addedNode |
|
self currentNodeContent addNodeAfterMe.
|
||||||
addedNode := tree highlightedItem content addNodeAfterMe.
|
|
||||||
self notebookContent: notebook.
|
self notebookContent: notebook.
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user