Skip to content
Snippets Groups Projects
Commit f7b3863d authored by Sebastian Bergemann's avatar Sebastian Bergemann
Browse files

YELLOW

Issue-Ref: 4221
Issue-Url: af3#4221




Signed-off-by: default avatarSebastian Bergemann <bergemann@fortiss.org>
parent ca10634b
No related branches found
No related tags found
1 merge request!2024221: Add priority system to prototype categories including sorting
Pipeline #38349 failed
PrototypeProvider.java dba8d68be859ccc673d5f0389849573cebfe8bce YELLOW
PrototypeProvider.java 211a74ae6a54cdc703fe293f839889ad01967453 YELLOW
......@@ -15,8 +15,11 @@
+--------------------------------------------------------------------------*/
package org.fortiss.tooling.ext.reuse.ui.prototypes;
import static org.fortiss.tooling.ext.reuse.ui.ToolingReuseUIActivator.getDefault;
import static org.fortiss.tooling.ext.reuse.utils.ReuseLibraryUtilsBasics.getAllLocalReuseLibraries;
import static org.fortiss.tooling.ext.reuse.utils.ReuseLibraryUtilsBasics.getReuseElementName;
import static org.fortiss.tooling.kernel.utils.LoggingUtils.error;
import static org.fortiss.tooling.kernel.utils.LoggingUtils.showError;
import java.util.List;
......@@ -60,7 +63,10 @@ public final class PrototypeProvider extends PrototypeProviderBase {
try {
setPrototypeCategory(categoryName, -10);
} catch (IllegalArgumentException e) {
e.printStackTrace();
// only in case someone changes registerPrimaryPrototype()
error(getDefault(),
"Error during setting the category priority for the reuse library '" + categoryName + "'", e);
showError("Cannot set category priortiy for '" + categoryName + "'");
}
EList<EObject> reuseElementList = library.getReuseElementList();
......
......@@ -3,6 +3,6 @@ ConstraintViolationBase.java ec66973ab2183623f0cd4a85c59c886dddad6cf6 GREEN
DialogMessage.java 8420640e999e4fb15fa644333e5d71e1d16c2559 GREEN
ElementCompositorBase.java 7a445e5adde11878fe0515baca8b915287149b28 GREEN
MultiViolationConstraintCheckerBase.java 30886a94c99cf8948f64401b1db821abe06e1e6c GREEN
PrototypeProviderBase.java 44ee1c15242c2ca0bc2b3f003308bfdb8c57fe59 YELLOW
PrototypeProviderBase.java 8052145154f8b3b15f45dc84d31afdea5560c716 YELLOW
TransformationContextChainBase.java 1ef37880ab275778c563928e80ba378fec964cb6 GREEN
TransformationProviderBase.java 9e91100cc1f2c8fbd8d41af55aedfea34e02ff71 GREEN
......@@ -125,8 +125,8 @@ public abstract class PrototypeProviderBase implements IPrototypeProvider {
/**
* Sets the priority of the given prototype category. If the category does not exist, a
* {@link NullPointerException} is thrown. Only needed if the category should be sorted based on
* the new priority and not by name.
* {@link IllegalArgumentException} is thrown. Only needed if the category should be sorted
* based on the new priority and not by name.
*/
protected void setPrototypeCategory(String category, int priority)
throws IllegalArgumentException {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment