diff options
author | Henrik Rentz-Reichert | 2013-01-25 15:36:47 +0000 |
---|---|---|
committer | Henrik Rentz-Reichert | 2013-01-25 15:36:47 +0000 |
commit | ea206e0ea4cd8b609417b0ab8a40c7587312679a (patch) | |
tree | d376c8b580581f4ff24d9bdb0e0f99221f3f4e6d /plugins/org.eclipse.etrice.core.room | |
parent | f4465ec7d2fbd6a0bd4cbd18e5155fc782d9f338 (diff) | |
download | org.eclipse.etrice-ea206e0ea4cd8b609417b0ab8a40c7587312679a.tar.gz org.eclipse.etrice-ea206e0ea4cd8b609417b0ab8a40c7587312679a.tar.xz org.eclipse.etrice-ea206e0ea4cd8b609417b0ab8a40c7587312679a.zip |
[core.room] improved validation hints for port compatibility
Diffstat (limited to 'plugins/org.eclipse.etrice.core.room')
-rw-r--r-- | plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java b/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java index 6b57788f5..6365fe6bc 100644 --- a/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java +++ b/plugins/org.eclipse.etrice.core.room/src/org/eclipse/etrice/core/validation/RoomJavaValidator.java @@ -71,6 +71,7 @@ public class RoomJavaValidator extends AbstractRoomJavaValidator { public static final String THREAD_MISSING = "RoomJavaValidator.ThreadMissing";
public static final String DUPLICATE_ACTOR_INSTANCE_MAPPING = "RoomJavaValidator.DuplicateActorInstanceMapping";
+ public static final String WRONG_NAMESPACE = "RoomJavaValidator.WrongNamespace";
@Inject ImportUriResolver importUriResolver;
@@ -107,7 +108,7 @@ public class RoomJavaValidator extends AbstractRoomJavaValidator { RoomModel model = (RoomModel) res.getContents().get(0);
if (!imp.getImportedNamespace().equals(model.getName()+".*")) {
- error("the imported namespace should be '"+model.getName()+".*'", RoomPackage.Literals.IMPORT__IMPORTED_NAMESPACE);
+ error("the imported namespace should be '"+model.getName()+".*'", RoomPackage.Literals.IMPORT__IMPORTED_NAMESPACE, WRONG_NAMESPACE, model.getName()+".*");
}
}
catch (RuntimeException re) {
|