From 1a7eec0d413b8b0a9b1f360aa227b7bcb88eb797 Mon Sep 17 00:00:00 2001 From: Daniel Ratiu <ratiu@fortiss.org> Date: Sun, 13 Jan 2013 13:25:47 +0000 Subject: [PATCH] resolving these issues refs 1148,1149 --- .../tooling/kernel/internal/LibraryPrototypeProvider.java | 6 +++--- .../org/fortiss/tooling/kernel/internal/LibraryService.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/internal/LibraryPrototypeProvider.java b/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/internal/LibraryPrototypeProvider.java index 9a71eeaa3..6e74ac9c8 100644 --- a/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/internal/LibraryPrototypeProvider.java +++ b/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/internal/LibraryPrototypeProvider.java @@ -25,7 +25,7 @@ import org.fortiss.tooling.kernel.extension.base.PrototypeProviderBase; import org.fortiss.tooling.kernel.extension.data.Prototype; import org.fortiss.tooling.kernel.extension.data.PrototypeCategory; import org.fortiss.tooling.kernel.model.ILibraryElement; -import org.fortiss.tooling.kernel.model.ILibraryElementReference; +import org.fortiss.tooling.kernel.model.ILibraryPackage; import org.fortiss.tooling.kernel.service.ILibraryService; /** @@ -34,7 +34,7 @@ import org.fortiss.tooling.kernel.service.ILibraryService; * @author ratiu * @author $Author: hoelzl $ * @version $Rev: 18709 $ - * @ConQAT.Rating YELLOW Hash: A8413CD1A37B7C56922144AB4641F72D + * @ConQAT.Rating YELLOW Hash: C80FA91F50ADA9FFBC25CE927814BF6C */ public class LibraryPrototypeProvider extends PrototypeProviderBase { @@ -63,7 +63,7 @@ public class LibraryPrototypeProvider extends PrototypeProviderBase { prototypes.add(prot); - String categoryName = ((ILibraryElementReference)prot.getPrototype()).getURI(); + String categoryName = ((ILibraryPackage)libElem.eContainer()).getName(); PrototypeCategory current = registerPrototypeCategory(libraryCategory, categoryName); current.add(prot); } diff --git a/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/internal/LibraryService.java b/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/internal/LibraryService.java index 02d3dc550..cbf527055 100644 --- a/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/internal/LibraryService.java +++ b/org.fortiss.tooling.kernel/trunk/src/org/fortiss/tooling/kernel/internal/LibraryService.java @@ -51,7 +51,7 @@ import org.fortiss.tooling.kernel.service.base.EObjectAwareServiceBase; * @author ratiu * @author $Author: ratiu $ * @version $Rev: 5274 $ - * @ConQAT.Rating YELLOW Hash: C87F42DC737D4C418608861E2B0C7586 + * @ConQAT.Rating YELLOW Hash: EDFE0F8D76B0459B1F17338F61184B5B */ public class LibraryService extends EObjectAwareServiceBase<ILibraryElementHandler<EObject>> implements ILibraryService { -- GitLab