Fixing a bug on cut & paste between notebooks.
This commit is contained in:
parent
6016a1f90c
commit
85e5bf1e1d
@ -42,8 +42,8 @@ GrafoscopioNode class >> cleanTreeRootReferences [
|
|||||||
clipboard preorderTraversal allButFirstDo: [ :n |
|
clipboard preorderTraversal allButFirstDo: [ :n |
|
||||||
ref := n.
|
ref := n.
|
||||||
n level - 1 timesRepeat: [ ref := ref parent ].
|
n level - 1 timesRepeat: [ ref := ref parent ].
|
||||||
ref ifNotNil: [ ref parent: nil ]
|
ref parent = clipboard parent ifTrue: [ ref parent: nil ]].
|
||||||
]
|
clipboard parent: nil.
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #accessing }
|
{ #category : #accessing }
|
||||||
|
@ -127,8 +127,8 @@ GrafoscopioNotebook >> exportAsMarkdown [
|
|||||||
workingFile
|
workingFile
|
||||||
ifNil: [ self inform: 'File NOT exported. Please save the notebook on hard drive first' ]
|
ifNil: [ self inform: 'File NOT exported. Please save the notebook on hard drive first' ]
|
||||||
ifNotNil: [
|
ifNotNil: [
|
||||||
|
self markdownFile exists ifTrue: [ self markdownFile delete ].
|
||||||
self markdownFile
|
self markdownFile
|
||||||
exists ifTrue: [ self markdownFile delete ];
|
|
||||||
ensureCreateFile;
|
ensureCreateFile;
|
||||||
writeStreamDo: [:stream | stream nextPutAll: self notebook asMarkdown].
|
writeStreamDo: [:stream | stream nextPutAll: self notebook asMarkdown].
|
||||||
self inform: ('File exported as: ', String cr, self markdownFile fullName)]
|
self inform: ('File exported as: ', String cr, self markdownFile fullName)]
|
||||||
|
@ -12,6 +12,11 @@ ManifestGrafoscopio class >> ruleRBAssignmentInIfTrueRuleV1FalsePositive [
|
|||||||
^ #(#(#(#RGMethodDefinition #(#GrafoscopioNode #embedNodes #false)) #'2017-02-16T20:07:02.600781-05:00') )
|
^ #(#(#(#RGMethodDefinition #(#GrafoscopioNode #embedNodes #false)) #'2017-02-16T20:07:02.600781-05:00') )
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{ #category : #'code-critics' }
|
||||||
|
ManifestGrafoscopio class >> ruleRBBooleanPrecedenceRuleV1FalsePositive [
|
||||||
|
^ #(#(#(#RGMethodDefinition #(#'GrafoscopioNode class' #cleanTreeRootReferences #true)) #'2017-03-27T22:18:17.447627-05:00') )
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #'code-critics' }
|
{ #category : #'code-critics' }
|
||||||
ManifestGrafoscopio class >> ruleRBClassNameInSelectorRuleV1FalsePositive [
|
ManifestGrafoscopio class >> ruleRBClassNameInSelectorRuleV1FalsePositive [
|
||||||
^ #(#(#(#RGMethodDefinition #(#'Documentation class' #current #true)) #'2016-10-07T19:39:23.013722-05:00') )
|
^ #(#(#(#RGMethodDefinition #(#'Documentation class' #current #true)) #'2016-10-07T19:39:23.013722-05:00') )
|
||||||
|
Loading…
Reference in New Issue
Block a user