diff options
Diffstat (limited to 'Domains/hu.bme.mit.inf.dslreasoner.domains.alloyexamples/src/hu/bme/mit/inf/dslreasoner/domains/alloyexamples/Filesystem/impl/FileSystemImpl.java')
-rw-r--r-- | Domains/hu.bme.mit.inf.dslreasoner.domains.alloyexamples/src/hu/bme/mit/inf/dslreasoner/domains/alloyexamples/Filesystem/impl/FileSystemImpl.java | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/Domains/hu.bme.mit.inf.dslreasoner.domains.alloyexamples/src/hu/bme/mit/inf/dslreasoner/domains/alloyexamples/Filesystem/impl/FileSystemImpl.java b/Domains/hu.bme.mit.inf.dslreasoner.domains.alloyexamples/src/hu/bme/mit/inf/dslreasoner/domains/alloyexamples/Filesystem/impl/FileSystemImpl.java index e6859cab..adf30f3a 100644 --- a/Domains/hu.bme.mit.inf.dslreasoner.domains.alloyexamples/src/hu/bme/mit/inf/dslreasoner/domains/alloyexamples/Filesystem/impl/FileSystemImpl.java +++ b/Domains/hu.bme.mit.inf.dslreasoner.domains.alloyexamples/src/hu/bme/mit/inf/dslreasoner/domains/alloyexamples/Filesystem/impl/FileSystemImpl.java | |||
@@ -2,6 +2,7 @@ | |||
2 | */ | 2 | */ |
3 | package hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem.impl; | 3 | package hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem.impl; |
4 | 4 | ||
5 | import hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem.Dir; | ||
5 | import hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem.FSObject; | 6 | import hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem.FSObject; |
6 | import hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem.FileSystem; | 7 | import hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem.FileSystem; |
7 | import hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem.FilesystemPackage; | 8 | import hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem.FilesystemPackage; |
@@ -41,7 +42,7 @@ public class FileSystemImpl extends MinimalEObjectImpl.Container implements File | |||
41 | * @generated | 42 | * @generated |
42 | * @ordered | 43 | * @ordered |
43 | */ | 44 | */ |
44 | protected FSObject root; | 45 | protected Dir root; |
45 | 46 | ||
46 | /** | 47 | /** |
47 | * The cached setting delegate for the '{@link #getLive() <em>Live</em>}' reference list. | 48 | * The cached setting delegate for the '{@link #getLive() <em>Live</em>}' reference list. |
@@ -77,8 +78,7 @@ public class FileSystemImpl extends MinimalEObjectImpl.Container implements File | |||
77 | * <!-- end-user-doc --> | 78 | * <!-- end-user-doc --> |
78 | * @generated | 79 | * @generated |
79 | */ | 80 | */ |
80 | @Override | 81 | public Dir getRoot() { |
81 | public FSObject getRoot() { | ||
82 | return root; | 82 | return root; |
83 | } | 83 | } |
84 | 84 | ||
@@ -87,8 +87,8 @@ public class FileSystemImpl extends MinimalEObjectImpl.Container implements File | |||
87 | * <!-- end-user-doc --> | 87 | * <!-- end-user-doc --> |
88 | * @generated | 88 | * @generated |
89 | */ | 89 | */ |
90 | public NotificationChain basicSetRoot(FSObject newRoot, NotificationChain msgs) { | 90 | public NotificationChain basicSetRoot(Dir newRoot, NotificationChain msgs) { |
91 | FSObject oldRoot = root; | 91 | Dir oldRoot = root; |
92 | root = newRoot; | 92 | root = newRoot; |
93 | if (eNotificationRequired()) { | 93 | if (eNotificationRequired()) { |
94 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FilesystemPackage.FILE_SYSTEM__ROOT, oldRoot, newRoot); | 94 | ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, FilesystemPackage.FILE_SYSTEM__ROOT, oldRoot, newRoot); |
@@ -102,8 +102,7 @@ public class FileSystemImpl extends MinimalEObjectImpl.Container implements File | |||
102 | * <!-- end-user-doc --> | 102 | * <!-- end-user-doc --> |
103 | * @generated | 103 | * @generated |
104 | */ | 104 | */ |
105 | @Override | 105 | public void setRoot(Dir newRoot) { |
106 | public void setRoot(FSObject newRoot) { | ||
107 | if (newRoot != root) { | 106 | if (newRoot != root) { |
108 | NotificationChain msgs = null; | 107 | NotificationChain msgs = null; |
109 | if (root != null) | 108 | if (root != null) |
@@ -123,7 +122,6 @@ public class FileSystemImpl extends MinimalEObjectImpl.Container implements File | |||
123 | * @generated | 122 | * @generated |
124 | */ | 123 | */ |
125 | @SuppressWarnings("unchecked") | 124 | @SuppressWarnings("unchecked") |
126 | @Override | ||
127 | public EList<FSObject> getLive() { | 125 | public EList<FSObject> getLive() { |
128 | return (EList<FSObject>)LIVE__ESETTING_DELEGATE.dynamicGet(this, null, 0, true, false); | 126 | return (EList<FSObject>)LIVE__ESETTING_DELEGATE.dynamicGet(this, null, 0, true, false); |
129 | } | 127 | } |
@@ -167,7 +165,7 @@ public class FileSystemImpl extends MinimalEObjectImpl.Container implements File | |||
167 | public void eSet(int featureID, Object newValue) { | 165 | public void eSet(int featureID, Object newValue) { |
168 | switch (featureID) { | 166 | switch (featureID) { |
169 | case FilesystemPackage.FILE_SYSTEM__ROOT: | 167 | case FilesystemPackage.FILE_SYSTEM__ROOT: |
170 | setRoot((FSObject)newValue); | 168 | setRoot((Dir)newValue); |
171 | return; | 169 | return; |
172 | } | 170 | } |
173 | super.eSet(featureID, newValue); | 171 | super.eSet(featureID, newValue); |
@@ -182,7 +180,7 @@ public class FileSystemImpl extends MinimalEObjectImpl.Container implements File | |||
182 | public void eUnset(int featureID) { | 180 | public void eUnset(int featureID) { |
183 | switch (featureID) { | 181 | switch (featureID) { |
184 | case FilesystemPackage.FILE_SYSTEM__ROOT: | 182 | case FilesystemPackage.FILE_SYSTEM__ROOT: |
185 | setRoot((FSObject)null); | 183 | setRoot((Dir)null); |
186 | return; | 184 | return; |
187 | } | 185 | } |
188 | super.eUnset(featureID); | 186 | super.eUnset(featureID); |