-
Notifications
You must be signed in to change notification settings - Fork 66
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 #1452 from CarolinaMelendez/addSpDiffUnified
Added new subclass with unified view based on SpDiffPresenter
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/Spec2-Adapters-Morphic/SpMorphicDiffUnifiedAdapter.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,22 @@ | ||
Class { | ||
#name : #SpMorphicDiffUnifiedAdapter, | ||
#superclass : #SpMorphicDiffAdapter, | ||
#category : #'Spec2-Adapters-Morphic-Base' | ||
} | ||
|
||
{ #category : #factory } | ||
SpMorphicDiffUnifiedAdapter >> buildWidget [ | ||
|
||
^ StUnifiedDiffChangesMorph new | ||
on: self; | ||
from: self leftText | ||
to: self rightText | ||
contextClass: self contextClass; | ||
hResizing: #spaceFill; | ||
vResizing: #spaceFill; | ||
setBalloonText: self help; | ||
showOptions: self showOptions; | ||
leftLabel: self leftLabel rightLabel: self rightLabel; | ||
showOnlyDestination: self showOnlyDestination; | ||
yourself | ||
] |
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,14 @@ | ||
" | ||
I display an unified view | ||
" | ||
Class { | ||
#name : #SpDiffUnifiedPresenter, | ||
#superclass : #SpDiffPresenter, | ||
#category : #'Spec2-Core-Widgets' | ||
} | ||
|
||
{ #category : #specs } | ||
SpDiffUnifiedPresenter class >> adapterName [ | ||
|
||
^ #DiffUnifiedAdapter | ||
] |