338
|
1 |
"{ Package: 'stx:goodies/petitparser/gui' }"
|
|
2 |
|
|
3 |
RBRemoveClassRefactoring subclass:#PPRemoveParserRefactoring
|
|
4 |
instanceVariableNames:'class'
|
|
5 |
classVariableNames:''
|
|
6 |
poolDictionaries:''
|
|
7 |
category:'PetitGui-Refactoring'
|
|
8 |
!
|
|
9 |
|
|
10 |
|
|
11 |
!PPRemoveParserRefactoring class methodsFor:'instance creation'!
|
|
12 |
|
|
13 |
onClass: aClass
|
|
14 |
^ self new
|
|
15 |
setClass: aClass;
|
|
16 |
yourself
|
|
17 |
! !
|
|
18 |
|
|
19 |
!PPRemoveParserRefactoring methodsFor:'initialization'!
|
|
20 |
|
|
21 |
setClass: aClass
|
|
22 |
class := self classObjectFor: aClass
|
|
23 |
! !
|
|
24 |
|
|
25 |
!PPRemoveParserRefactoring methodsFor:'preconditions'!
|
|
26 |
|
|
27 |
preconditions
|
|
28 |
^ (self checkCompositeParser: class) & (RBCondition hasSubclasses: class) not
|
|
29 |
! !
|
|
30 |
|
|
31 |
!PPRemoveParserRefactoring methodsFor:'transforming'!
|
|
32 |
|
|
33 |
transform
|
|
34 |
model removeClass: class
|
|
35 |
! !
|
|
36 |
|
|
37 |
!PPRemoveParserRefactoring class methodsFor:'documentation'!
|
|
38 |
|
|
39 |
version
|
|
40 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/gui/PPRemoveParserRefactoring.st,v 1.1 2014-03-04 21:15:41 cg Exp $'
|
|
41 |
!
|
|
42 |
|
|
43 |
version_CVS
|
|
44 |
^ '$Header: /cvs/stx/stx/goodies/petitparser/gui/PPRemoveParserRefactoring.st,v 1.1 2014-03-04 21:15:41 cg Exp $'
|
|
45 |
! !
|
|
46 |
|