CharacterArray.st
changeset 18771 2a1931afba4b
parent 18770 2ab18535a427
child 18773 4f6a5cbce3a9
child 18884 6b5030151c08
equal deleted inserted replaced
18770:2ab18535a427 18771:2a1931afba4b
  4407          'abcdeäöüß' asUnicode32String utf8EncodedOn:w
  4407          'abcdeäöüß' asUnicode32String utf8EncodedOn:w
  4408      ].
  4408      ].
  4409     "
  4409     "
  4410 ! !
  4410 ! !
  4411 
  4411 
  4412 !CharacterArray methodsFor:'inspecting'!
       
  4413 
       
  4414 inspector2TabXMLTree
       
  4415     "extra tab to be shown in an inspector2."
       
  4416 
       
  4417     |tabClass tab sub xmlInspectorClass xmlParserClass|
       
  4418 
       
  4419     (self startsWith:'<?xml') ifFalse:[^ nil].
       
  4420     
       
  4421     "return an extra XML-dom tab to be used inside an inspector"
       
  4422 
       
  4423     "/ avoid generating a dependency here
       
  4424     (tabClass := Smalltalk at: #'Tools::Inspector2Tab') isNil ifTrue:[^ nil].
       
  4425     tab := tabClass new.
       
  4426 
       
  4427     "/ to prevent the dependcy walker from adding libtool2 to the package:
       
  4428     (xmlInspectorClass := Smalltalk at:#'XML::XMLInspector') isNil ifTrue:[^ nil ].
       
  4429     (xmlParserClass := Smalltalk at:#'XML::XMLParser') isNil ifTrue:[^ nil ].
       
  4430 
       
  4431     sub := xmlInspectorClass embeddableInspectorApplicationFor:(xmlParserClass parse:self).
       
  4432 
       
  4433     ^ tab
       
  4434         label: 'XML DOM';
       
  4435         priority: 45;
       
  4436         view: sub
       
  4437 ! !
       
  4438 
  4412 
  4439 
  4413 
  4440 
  4414 
  4441 !CharacterArray methodsFor:'matching - glob expressions'!
  4415 !CharacterArray methodsFor:'matching - glob expressions'!
  4442 
  4416