Skip to content

Commit

Permalink
Merge pull request #1452 from CarolinaMelendez/addSpDiffUnified
Browse files Browse the repository at this point in the history
Added new subclass with unified view based on SpDiffPresenter
  • Loading branch information
Ducasse authored Jun 13, 2024
2 parents eec98f3 + 5a9ced2 commit c2683e3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/Spec2-Adapters-Morphic/SpMorphicDiffUnifiedAdapter.class.st
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
]
14 changes: 14 additions & 0 deletions src/Spec2-Core/SpDiffUnifiedPresenter.class.st
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
]

0 comments on commit c2683e3

Please sign in to comment.