-
-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restructuring contextual menu splitting contents from the Debugging m…
…enu in two: Breakpoints and Advanced Debugging. Placing 'counter' command in the root menu.
- Loading branch information
Showing
21 changed files
with
164 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
src/Calypso-SystemPlugins-Reflectivity-Browser/ClyAdvancedDebuggingCommand.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
" | ||
I am a base class for commands which add/remove metalinks, watchpoints, and counters into given method or source node | ||
" | ||
Class { | ||
#name : #ClyAdvancedDebuggingCommand, | ||
#superclass : #ClyDebuggingCommand, | ||
#category : #'Calypso-SystemPlugins-Reflectivity-Browser-Commands' | ||
} | ||
|
||
{ #category : #testing } | ||
ClyAdvancedDebuggingCommand class >> isAbstract [ | ||
^self == ClyAdvancedDebuggingCommand | ||
] | ||
|
||
{ #category : #activation } | ||
ClyAdvancedDebuggingCommand class >> methodContextMenuActivation [ | ||
|
||
<classAnnotation> | ||
^ CmdContextMenuActivation | ||
byItemOf: ClyAdvancedDebuggingMenuGroup | ||
order: self contextMenuOrder | ||
for: ClyMethod asCalypsoItemContext | ||
] | ||
|
||
{ #category : #activation } | ||
ClyAdvancedDebuggingCommand class >> methodEditorLeftBarMenuActivation [ | ||
|
||
<classAnnotation> | ||
^ CmdTextLeftBarMenuActivation | ||
byItemOf: ClyAdvancedDebuggingMenuGroup | ||
order: self contextMenuOrder | ||
for: ClyMethodSourceCodeContext | ||
] | ||
|
||
{ #category : #activation } | ||
ClyAdvancedDebuggingCommand class >> sourceCodeMenuActivation [ | ||
|
||
<classAnnotation> | ||
^ SycAdvancedDebuggingMenuActivation | ||
byItemOf: ClyAdvancedDebuggingMenuGroup | ||
order: self contextMenuOrder | ||
for: ClyMethodSourceCodeContext | ||
] |
18 changes: 18 additions & 0 deletions
18
src/Calypso-SystemPlugins-Reflectivity-Browser/ClyAdvancedDebuggingMenuGroup.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
" | ||
I am menu group to arrange together metalink and watchpoint commands | ||
" | ||
Class { | ||
#name : #ClyAdvancedDebuggingMenuGroup, | ||
#superclass : #CmdMenuGroup, | ||
#category : #'Calypso-SystemPlugins-Reflectivity-Browser-Commands' | ||
} | ||
|
||
{ #category : #testing } | ||
ClyAdvancedDebuggingMenuGroup >> isInlined [ | ||
^true | ||
] | ||
|
||
{ #category : #accessing } | ||
ClyAdvancedDebuggingMenuGroup >> order [ | ||
^1.8 | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Calypso-SystemPlugins-Reflectivity-Browser/ClyDebuggingCommand.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/Calypso-SystemPlugins-Reflectivity-Browser/ClyDebuggingMenuGroup.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
src/Calypso-SystemTools-Core/SycOpenAdvancedDebuggingMenuCommand.extension.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Extension { #name : #SycOpenAdvancedDebuggingMenuCommand } | ||
|
||
{ #category : #'*Calypso-SystemTools-Core' } | ||
SycOpenAdvancedDebuggingMenuCommand class >> methodEditorShortcutActivation [ | ||
<classAnnotation> | ||
|
||
^CmdShortcutActivation by: $h meta shift for: ClySourceCodeContext | ||
] | ||
|
||
{ #category : #'*Calypso-SystemTools-Core' } | ||
SycOpenAdvancedDebuggingMenuCommand class >> sourceCodeMenuActivation [ | ||
<classAnnotation> | ||
|
||
^CmdContextMenuActivation byRootGroupItemOrder: 8 for: ClySourceCodeContext | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/SystemCommands-SourceCodeCommands/SycAdvancedDebuggingMenuActivation.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
" | ||
I represent an activation of advanced debugging commands using a separate debugging menu. | ||
" | ||
Class { | ||
#name : #SycAdvancedDebuggingMenuActivation, | ||
#superclass : #CmdMenuCommandActivationStrategy, | ||
#category : #'SystemCommands-SourceCodeCommands' | ||
} |
25 changes: 25 additions & 0 deletions
25
src/SystemCommands-SourceCodeCommands/SycOpenAdvancedDebuggingMenuCommand.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
" | ||
I am a command to open the advanced debugging menu after a right click on the source code. | ||
I show in the menu all commands annotated by SycAdvancedDebuggingMenuActivation | ||
" | ||
Class { | ||
#name : #SycOpenAdvancedDebuggingMenuCommand, | ||
#superclass : #SycOpenSourceCodeMenuCommand, | ||
#category : #'SystemCommands-SourceCodeCommands' | ||
} | ||
|
||
{ #category : #execution } | ||
SycOpenAdvancedDebuggingMenuCommand >> activationStrategy [ | ||
^SycAdvancedDebuggingMenuActivation | ||
] | ||
|
||
{ #category : #accessing } | ||
SycOpenAdvancedDebuggingMenuCommand >> defaultMenuIconName [ | ||
^ #smallDebug | ||
] | ||
|
||
{ #category : #accessing } | ||
SycOpenAdvancedDebuggingMenuCommand >> defaultMenuItemName [ | ||
|
||
^ 'Advanced Debugging' | ||
] |
2 changes: 1 addition & 1 deletion
2
src/SystemCommands-SourceCodeCommands/SycOpenDebuggingMenuCommand.class.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters