@@ -527,6 +527,24 @@ GtPhlowElementContext >> selectObject: anObject [
527527 self selectTool: anObject gtDefaultInspectorTool
528528]
529529
530+ { #category : #' api - events' }
531+ GtPhlowElementContext >> selectObject: anObject viewName: aViewName [
532+ " Select an object and request to select its view called aViewName.
533+ aViewName is kind of String object."
534+
535+ self selectTool: anObject gtDefaultInspectorTool viewName: aViewName
536+ ]
537+
538+ { #category : #' api - events' }
539+ GtPhlowElementContext >> selectObject: anObject withSelectionState: aSelectionStateOrNil [
540+ " Select a tool and request to display specific part of its tool using aSelectionStateOrNil.
541+ aSelectionStateOrNil is kind of GtPhlowToolSelectionState object or nil."
542+
543+ self
544+ selectTool: anObject gtDefaultInspectorTool
545+ withSelectionState: aSelectionStateOrNil
546+ ]
547+
530548{ #category : #' api - events' }
531549GtPhlowElementContext >> selectPreviousEvent: aPreviousSelectEvent [
532550 | aNewEvent |
@@ -550,6 +568,32 @@ GtPhlowElementContext >> selectTool: aTool [
550568 sourceElement: self element)
551569]
552570
571+ { #category : #' api - events' }
572+ GtPhlowElementContext >> selectTool: aTool viewName: aViewName [
573+ " Select a tool and request to select its view called aViewName.
574+ aTool is kind of GtPhlowTool object.
575+ aViewName is kind of String object."
576+
577+ self element
578+ fireEvent: (GtPhlowObjectToSelect new
579+ tool: aTool;
580+ toolTabIdentifier: aTool toolTabIdentifier viewName: aViewName;
581+ sourceElement: self element)
582+ ]
583+
584+ { #category : #' api - events' }
585+ GtPhlowElementContext >> selectTool: aTool withSelectionState: aSelectionStateOrNil [
586+ " Select a tool and request to display specific part of the tool using aSelectionStateOrNil.
587+ aTool is kind of GtPhlowTool object.
588+ aSelectionStateOrNil is kind of GtPhlowToolSelectionState object or nil."
589+
590+ self element
591+ fireEvent: (GtPhlowObjectToSelect new
592+ tool: aTool;
593+ selectionState: aSelectionStateOrNil;
594+ sourceElement: self element)
595+ ]
596+
553597{ #category : #' api - space' }
554598GtPhlowElementContext >> showObject: anObject [
555599 ^ BlSpace new
@@ -589,13 +633,55 @@ GtPhlowElementContext >> spawnObject: anObject [
589633 ^ self spawnTool: anObject gtDefaultInspectorTool
590634]
591635
636+ { #category : #' api - events' }
637+ GtPhlowElementContext >> spawnObject: anObject viewName: aViewName [
638+ " Spawn an object and request to select its view called aViewName.
639+ aViewName is kind of String object."
640+
641+ ^ self spawnTool: anObject gtDefaultInspectorTool viewName: aViewName
642+ ]
643+
592644{ #category : #' api - events' }
593645GtPhlowElementContext >> spawnObject: anObject withDestination: aPhlowDestination [
594646 self
595647 spawnTool: anObject gtDefaultInspectorTool
596648 withDestination: aPhlowDestination
597649]
598650
651+ { #category : #' api - events' }
652+ GtPhlowElementContext >> spawnObject: anObject withDestination: aPhlowDestination viewName: aViewName [
653+ " Spawn an object and request to select its view called aViewName.
654+ aPhlowDestination is kind of GtPhlowSpawnDesiredDestination object.
655+ aViewName is kind of String object."
656+
657+ self
658+ spawnTool: anObject gtDefaultInspectorTool
659+ withDestination: aPhlowDestination
660+ viewName: aViewName
661+ ]
662+
663+ { #category : #' api - events' }
664+ GtPhlowElementContext >> spawnObject: anObject withDestination: aPhlowDestination withSelectionState: aSelectionStateOrNil [
665+ " Spawn a tool at a destination and request to display specific part of the tool using aSelectionStateOrNil.
666+ aPhlowDestination is kind of GtPhlowSpawnDesiredDestination object.
667+ aSelectionStateOrNil is kind of GtPhlowToolSelectionState object or nil."
668+
669+ self
670+ spawnTool: anObject gtDefaultInspectorTool
671+ withDestination: aPhlowDestination
672+ withSelectionState: aSelectionStateOrNil
673+ ]
674+
675+ { #category : #' api - events' }
676+ GtPhlowElementContext >> spawnObject: anObject withSelectionState: aSelectionStateOrNil [
677+ " Spawn a tool at a destination and request to display specific part of the tool using aSelectionStateOrNil.
678+ aSelectionStateOrNil is kind of GtPhlowToolSelectionState object or nil."
679+
680+ ^ self
681+ spawnTool: anObject gtDefaultInspectorTool
682+ withSelectionState: aSelectionStateOrNil
683+ ]
684+
599685{ #category : #' api - space' }
600686GtPhlowElementContext >> spawnOrShowObject: anObject [
601687 < return: #BlSpace or : nil >
@@ -621,17 +707,71 @@ GtPhlowElementContext >> spawnTool: aTool [
621707 withDestination: GtPhlowSpawnDesiredDestination defaultDestination
622708]
623709
710+ { #category : #' api - events' }
711+ GtPhlowElementContext >> spawnTool: aTool viewName: aViewName [
712+ " Spawn a tool and request to select its view called aViewName.
713+ aViewName is kind of String object."
714+
715+ ^ self
716+ spawnTool: aTool
717+ withDestination: GtPhlowSpawnDesiredDestination defaultDestination
718+ viewName: aViewName
719+ ]
720+
624721{ #category : #' api - events' }
625722GtPhlowElementContext >> spawnTool: aTool withDestination: aPhlowDestination [
723+ ^ self
724+ spawnTool: aTool
725+ withDestination: aPhlowDestination
726+ withSelectionState: nil
727+ ]
728+
729+ { #category : #' api - events' }
730+ GtPhlowElementContext >> spawnTool: aTool withDestination: aPhlowDestination viewName: aViewName [
731+ " Spawn a tool and request to select its view called aViewName.
732+ aTool is kind of GtPhlowTool object.
733+ aPhlowDestination is kind of GtPhlowSpawnDesiredDestination object.
734+ aViewName is kind of String object."
735+
626736 | anEvent |
627737 anEvent := GtPhlowObjectToSpawn new
628738 tool: aTool;
629739 spawnDestination: aPhlowDestination;
740+ toolTabIdentifier: aTool toolTabIdentifier viewName: aViewName;
630741 sourceElement: self element.
631742 self element fireEvent: anEvent.
632743 ^ anEvent
633744]
634745
746+ { #category : #' api - events' }
747+ GtPhlowElementContext >> spawnTool: aTool withDestination: aPhlowDestination withSelectionState: aSelectionStateOrNil [
748+ " Spawn a tool at a destination and request to display specific part of the tool using aSelectionStateOrNil.
749+ aTool is kind of GtPhlowTool object.
750+ aPhlowDestination is kind of GtPhlowSpawnDesiredDestination object.
751+ aSelectionStateOrNil is kind of GtPhlowToolSelectionState object or nil."
752+
753+ | anEvent |
754+ anEvent := GtPhlowObjectToSpawn new
755+ tool: aTool;
756+ spawnDestination: aPhlowDestination;
757+ selectionState: aSelectionStateOrNil;
758+ sourceElement: self element.
759+ self element fireEvent: anEvent.
760+ ^ anEvent
761+ ]
762+
763+ { #category : #' api - events' }
764+ GtPhlowElementContext >> spawnTool: aTool withSelectionState: aSelectionStateOrNil [
765+ " Spawn a tool and request to display specific part of the tool using aSelectionStateOrNil.
766+ aTool is kind of GtPhlowTool object.
767+ aSelectionStateOrNil is kind of GtPhlowToolSelectionState object or nil."
768+
769+ ^ self
770+ spawnTool: aTool
771+ withDestination: GtPhlowSpawnDesiredDestination defaultDestination
772+ withSelectionState: aSelectionStateOrNil
773+ ]
774+
635775{ #category : #' api - updating' }
636776GtPhlowElementContext >> syncUpdate [
637777 self entity updateContent: self element.
0 commit comments