diff options
author | 2019-08-15 15:36:05 +0200 | |
---|---|---|
committer | 2019-08-15 15:36:05 +0200 | |
commit | 110268c8e8937df8d67075caebd6d31460d0f81a (patch) | |
tree | f52bd65d0cc8516e5fb1f68c5cdf1e89d6390ebd /Domains/hu.bme.mit.inf.dslreasoner.domains.alloyexamples/src/hu/bme/mit/inf/dslreasoner/domains/alloyexamples/Filesystem/impl/FileSystemImpl.java | |
parent | Measurements WIP (diff) | |
download | VIATRA-Generator-110268c8e8937df8d67075caebd6d31460d0f81a.tar.gz VIATRA-Generator-110268c8e8937df8d67075caebd6d31460d0f81a.tar.zst VIATRA-Generator-110268c8e8937df8d67075caebd6d31460d0f81a.zip |
Measurements WIP
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, 10 insertions, 8 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 adf30f3a..e6859cab 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,7 +2,6 @@ | |||
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; | ||
6 | import hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem.FSObject; | 5 | import hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem.FSObject; |
7 | import hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem.FileSystem; | 6 | import hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem.FileSystem; |
8 | import hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem.FilesystemPackage; | 7 | import hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem.FilesystemPackage; |
@@ -42,7 +41,7 @@ public class FileSystemImpl extends MinimalEObjectImpl.Container implements File | |||
42 | * @generated | 41 | * @generated |
43 | * @ordered | 42 | * @ordered |
44 | */ | 43 | */ |
45 | protected Dir root; | 44 | protected FSObject root; |
46 | 45 | ||
47 | /** | 46 | /** |
48 | * The cached setting delegate for the '{@link #getLive() <em>Live</em>}' reference list. | 47 | * The cached setting delegate for the '{@link #getLive() <em>Live</em>}' reference list. |
@@ -78,7 +77,8 @@ public class FileSystemImpl extends MinimalEObjectImpl.Container implements File | |||
78 | * <!-- end-user-doc --> | 77 | * <!-- end-user-doc --> |
79 | * @generated | 78 | * @generated |
80 | */ | 79 | */ |
81 | public Dir getRoot() { | 80 | @Override |
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(Dir newRoot, NotificationChain msgs) { | 90 | public NotificationChain basicSetRoot(FSObject newRoot, NotificationChain msgs) { |
91 | Dir oldRoot = root; | 91 | FSObject 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,7 +102,8 @@ public class FileSystemImpl extends MinimalEObjectImpl.Container implements File | |||
102 | * <!-- end-user-doc --> | 102 | * <!-- end-user-doc --> |
103 | * @generated | 103 | * @generated |
104 | */ | 104 | */ |
105 | public void setRoot(Dir newRoot) { | 105 | @Override |
106 | public void setRoot(FSObject newRoot) { | ||
106 | if (newRoot != root) { | 107 | if (newRoot != root) { |
107 | NotificationChain msgs = null; | 108 | NotificationChain msgs = null; |
108 | if (root != null) | 109 | if (root != null) |
@@ -122,6 +123,7 @@ public class FileSystemImpl extends MinimalEObjectImpl.Container implements File | |||
122 | * @generated | 123 | * @generated |
123 | */ | 124 | */ |
124 | @SuppressWarnings("unchecked") | 125 | @SuppressWarnings("unchecked") |
126 | @Override | ||
125 | public EList<FSObject> getLive() { | 127 | public EList<FSObject> getLive() { |
126 | return (EList<FSObject>)LIVE__ESETTING_DELEGATE.dynamicGet(this, null, 0, true, false); | 128 | return (EList<FSObject>)LIVE__ESETTING_DELEGATE.dynamicGet(this, null, 0, true, false); |
127 | } | 129 | } |
@@ -165,7 +167,7 @@ public class FileSystemImpl extends MinimalEObjectImpl.Container implements File | |||
165 | public void eSet(int featureID, Object newValue) { | 167 | public void eSet(int featureID, Object newValue) { |
166 | switch (featureID) { | 168 | switch (featureID) { |
167 | case FilesystemPackage.FILE_SYSTEM__ROOT: | 169 | case FilesystemPackage.FILE_SYSTEM__ROOT: |
168 | setRoot((Dir)newValue); | 170 | setRoot((FSObject)newValue); |
169 | return; | 171 | return; |
170 | } | 172 | } |
171 | super.eSet(featureID, newValue); | 173 | super.eSet(featureID, newValue); |
@@ -180,7 +182,7 @@ public class FileSystemImpl extends MinimalEObjectImpl.Container implements File | |||
180 | public void eUnset(int featureID) { | 182 | public void eUnset(int featureID) { |
181 | switch (featureID) { | 183 | switch (featureID) { |
182 | case FilesystemPackage.FILE_SYSTEM__ROOT: | 184 | case FilesystemPackage.FILE_SYSTEM__ROOT: |
183 | setRoot((Dir)null); | 185 | setRoot((FSObject)null); |
184 | return; | 186 | return; |
185 | } | 187 | } |
186 | super.eUnset(featureID); | 188 | super.eUnset(featureID); |