-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #96 from hpi-swa-teaching/83-selection-actions-in-…
…context-menu Add context menu and several selection actions for the history list
- Loading branch information
Showing
18 changed files
with
83 additions
and
25 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
4 changes: 4 additions & 0 deletions
4
packages/ChangesReloaded-Core.package/CRBrowser.class/instance/ignoreAllOfHistoryList.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,4 @@ | ||
actions | ||
ignoreAllOfHistoryList | ||
|
||
self historyList do: [:each | each ignore] |
6 changes: 6 additions & 0 deletions
6
...hangesReloaded-Core.package/CRBrowser.class/instance/ignoreAllOfHistoryListAndUpdateUI.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,6 @@ | ||
menu-actions | ||
ignoreAllOfHistoryListAndUpdateUI | ||
|
||
self | ||
ignoreAllOfHistoryList; | ||
updateAfterMenuAction |
6 changes: 6 additions & 0 deletions
6
...gesReloaded-Core.package/CRBrowser.class/instance/ignoreAllOfHistoryListExceptSelected.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,6 @@ | ||
actions | ||
ignoreAllOfHistoryListExceptSelected | ||
|
||
(self historyList | ||
reject: [:each | each = self selectedHistoryListItem]) | ||
do: [:each | each ignore] |
6 changes: 6 additions & 0 deletions
6
...-Core.package/CRBrowser.class/instance/ignoreAllOfHistoryListExceptSelectedAndUpdateUI.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,6 @@ | ||
menu-actions | ||
ignoreAllOfHistoryListExceptSelectedAndUpdateUI | ||
|
||
self | ||
ignoreAllOfHistoryListExceptSelected; | ||
updateAfterMenuAction |
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
7 changes: 0 additions & 7 deletions
7
packages/ChangesReloaded-Core.package/CRBrowser.class/instance/invertSelection.st
This file was deleted.
Oops, something went wrong.
4 changes: 4 additions & 0 deletions
4
...ngesReloaded-Core.package/CRBrowser.class/instance/selectAllLatestChangesOfHistoryList.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,4 @@ | ||
actions | ||
selectAllLatestChangesOfHistoryList | ||
|
||
self historyList do: [:each | each selectLatest] |
6 changes: 6 additions & 0 deletions
6
...d-Core.package/CRBrowser.class/instance/selectAllLatestChangesOfHistoryListAndUpdateUI.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,6 @@ | ||
menu-actions | ||
selectAllLatestChangesOfHistoryListAndUpdateUI | ||
|
||
self | ||
selectAllLatestChangesOfHistoryList; | ||
updateAfterMenuAction |
8 changes: 8 additions & 0 deletions
8
packages/ChangesReloaded-Core.package/CRBrowser.class/instance/setUpHistoryListMenuMorph..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 @@ | ||
building | ||
setUpHistoryListMenuMorph: aMenuMorph | ||
|
||
aMenuMorph addList: #( | ||
('Ignore all' ignoreAllOfHistoryListAndUpdateUI) | ||
('All latest changes' selectAllLatestChangesOfHistoryListAndUpdateUI) | ||
('Ingore all except this one' ignoreAllOfHistoryListExceptSelectedAndUpdateUI)). | ||
^ aMenuMorph |
9 changes: 5 additions & 4 deletions
9
packages/ChangesReloaded-Core.package/CRBrowser.class/instance/updateAfterChangeSelection.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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
updating | ||
updateAfterChangeSelection | ||
|
||
self repaintChangeListSelection. | ||
self refreshHistoryList. | ||
self repaintHistoryListSelection. | ||
self updateCodePane | ||
self | ||
repaintChangeListSelection; | ||
refreshHistoryList; | ||
repaintHistoryListSelection; | ||
updateCodePane |
7 changes: 4 additions & 3 deletions
7
...ages/ChangesReloaded-Core.package/CRBrowser.class/instance/updateAfterHistorySelection.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 |
---|---|---|
@@ -1,6 +1,7 @@ | ||
updating | ||
updateAfterHistorySelection | ||
|
||
self refreshChangeList. | ||
self repaintChangeListSelection. | ||
self repaintHistoryListSelection | ||
self | ||
refreshChangeList; | ||
repaintChangeListSelection; | ||
repaintHistoryListSelection |
6 changes: 6 additions & 0 deletions
6
packages/ChangesReloaded-Core.package/CRBrowser.class/instance/updateAfterMenuAction.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,6 @@ | ||
updating | ||
updateAfterMenuAction | ||
|
||
self | ||
refreshHistoryList; | ||
refreshChangeList |
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
4 changes: 4 additions & 0 deletions
4
packages/ChangesReloaded-Core.package/CRHistoryListItem.class/instance/ignore.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,4 @@ | ||
selecting | ||
ignore | ||
|
||
self history do: [:change | change isSelected: false] |
5 changes: 5 additions & 0 deletions
5
packages/ChangesReloaded-Core.package/CRHistoryListItem.class/instance/selectLatest.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,5 @@ | ||
selecting | ||
selectLatest | ||
|
||
self ignore. | ||
self history first isSelected: true |
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