Updating before switching to Pharo 7.
This commit is contained in:
parent
721a59ae65
commit
2fcf5f52da
@ -419,7 +419,7 @@ GrafoscopioDockingBar class >> openFromRecentlyUsed [
|
|||||||
|
|
||||||
self recentNotebooks
|
self recentNotebooks
|
||||||
ifNotEmpty: [
|
ifNotEmpty: [
|
||||||
selection := UIManager default chooseFrom: recentNotebooks title: 'Choose a notebook'.
|
selection := UIManager default chooseFrom: recentNotebooks reversed title: 'Choose a notebook'.
|
||||||
selection > 0
|
selection > 0
|
||||||
ifTrue: [ GrafoscopioNotebook new openFromFile: (recentNotebooks at: selection)]
|
ifTrue: [ GrafoscopioNotebook new openFromFile: (recentNotebooks at: selection)]
|
||||||
ifFalse: [ self inform: 'No notebook selected!' ]
|
ifFalse: [ self inform: 'No notebook selected!' ]
|
||||||
|
@ -559,9 +559,14 @@ GrafoscopioNode >> icon: aSymbol [
|
|||||||
{ #category : #importing }
|
{ #category : #importing }
|
||||||
GrafoscopioNode >> importHtmlLink [
|
GrafoscopioNode >> importHtmlLink [
|
||||||
"I take the last link and import its contents in node body. "
|
"I take the last link and import its contents in node body. "
|
||||||
|
| selectedLink downloadedContent |
|
||||||
self links last asUrl host = 'ws.stfx.eu' ifTrue: [ ^ self ].
|
self links last asUrl host = 'ws.stfx.eu' ifTrue: [ ^ self ].
|
||||||
self
|
selectedLink := self links last.
|
||||||
body: (ZnClient new get: self links last).
|
downloadedContent := (GrafoscopioUtils
|
||||||
|
downloadingFrom: selectedLink
|
||||||
|
withMessage: 'Downloading node contents...'
|
||||||
|
into: FileLocator temp).
|
||||||
|
self uploadBodyFrom: downloadedContent filteredFor: selectedLink.
|
||||||
]
|
]
|
||||||
|
|
||||||
{ #category : #importing }
|
{ #category : #importing }
|
||||||
@ -1056,6 +1061,12 @@ GrafoscopioNode >> toggleCodeText [
|
|||||||
ifTrue: [ ^ self tags replaceAll: 'código' with: 'text' ].
|
ifTrue: [ ^ self tags replaceAll: 'código' with: 'text' ].
|
||||||
]
|
]
|
||||||
|
|
||||||
|
{ #category : #importing }
|
||||||
|
GrafoscopioNode >> uploadBodyFrom: fileLocator filteredFor: selectedLink [
|
||||||
|
(self linksFilters contains: selectedLink)
|
||||||
|
ifFalse: [ self body: fileLocator contents ]
|
||||||
|
]
|
||||||
|
|
||||||
{ #category : #operation }
|
{ #category : #operation }
|
||||||
GrafoscopioNode >> visitLastLink [
|
GrafoscopioNode >> visitLastLink [
|
||||||
self lastLink = ''
|
self lastLink = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user