From 8ec310714002ecf514ee520448bb4c7595241455 Mon Sep 17 00:00:00 2001 From: Tuukka Lehtonen Date: Fri, 20 Jan 2017 01:06:09 +0200 Subject: [PATCH] Issues-view menu improvements & Variable-based issue context resolution This adds a new [Resource] valued property for Issue instances that is by default defined to just read the old Issue.HasContexts L0.List property. The property allows for more specific domains to override the issue context resource calculations. To support this calculation a noteworthy change needed to be made to org.simantics.db.layer0.function.All.getStandardChildDomainPropertyVariable. It now performs a new final fallback step that resembles how the standard procedural variables work. If the parent variable has a solver variable node defined, it will use NodeManager.getClassifications as an attempt to read the type Resource of the variable. If this is successful, the asserted properties of the type are searched to find a property matching name of the the requested property. To support this a new request was added: UnescapedAssertedPropertyMapOfResource. This request is also used to optimize the implementation of All.standardGetValue[12]. These changes also add a Help action for Issues view context menu that looks for the "contextHelpId" String property from the Variable describing the issue. refs #6948 Change-Id: I9655ea3647851fa04fb2420686cb13dd0c6719b6 --- .../META-INF/MANIFEST.MF | 3 +- .../org/simantics/db/layer0/function/All.java | 75 +++++++++++++++--- ...nescapedAssertedPropertyMapOfResource.java | 65 +++++++++++++++ .../src/org/simantics/issues/common/All.java | 7 +- .../org.simantics.issues.ontology/graph.tg | Bin 14830 -> 15208 bytes .../graph/Issue.pgraph | 4 + .../issues/ontology/IssueResource.java | 9 +++ .../org.simantics.issues.ui.ontology/graph.tg | Bin 15919 -> 16249 bytes .../graph/IssueUI.pgraph | 6 +- .../issues/ui/ontology/IssueUIResource.java | 3 + bundles/org.simantics.issues.ui/adapters.xml | 4 +- bundles/org.simantics.issues.ui/plugin.xml | 9 --- .../org/simantics/issues/ui/IssueView2.java | 30 +++++++ .../org/simantics/issues/ui/handler/Help.java | 64 +++++++++++++++ .../issues/ui/handler/MenuActions.java | 10 +-- .../diagramEditor/OpenDiagramFromIssue.java | 2 - 16 files changed, 255 insertions(+), 36 deletions(-) create mode 100644 bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/request/UnescapedAssertedPropertyMapOfResource.java create mode 100644 bundles/org.simantics.issues.ui/src/org/simantics/issues/ui/handler/Help.java diff --git a/bundles/org.simantics.db.layer0/META-INF/MANIFEST.MF b/bundles/org.simantics.db.layer0/META-INF/MANIFEST.MF index d6a2b6365..7bf579b69 100644 --- a/bundles/org.simantics.db.layer0/META-INF/MANIFEST.MF +++ b/bundles/org.simantics.db.layer0/META-INF/MANIFEST.MF @@ -32,7 +32,8 @@ Require-Bundle: gnu.trove3;bundle-version="3.0.3", org.simantics.issues.ontology;bundle-version="1.2.0", org.simantics.simulator.variable;bundle-version="1.0.0", org.simantics.scl.osgi;bundle-version="1.0.4", - org.simantics.scl.compiler;bundle-version="0.4.0" + org.simantics.scl.compiler;bundle-version="0.4.0", + org.slf4j.api Export-Package: org.simantics.db.layer0, org.simantics.db.layer0.adapter, org.simantics.db.layer0.adapter.impl, diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/function/All.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/function/All.java index 1c9331069..6a1441652 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/function/All.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/function/All.java @@ -27,10 +27,10 @@ import org.simantics.db.Statement; import org.simantics.db.WriteGraph; import org.simantics.db.common.issue.StandardIssue; import org.simantics.db.common.primitiverequest.PossibleRelatedValueImplied2; +import org.simantics.db.common.primitiverequest.PossibleResource; import org.simantics.db.common.procedure.adapter.TransientCacheAsyncListener; import org.simantics.db.common.procedure.adapter.TransientCacheListener; import org.simantics.db.common.request.IsEnumeratedValue; -import org.simantics.db.common.request.ObjectsWithType; import org.simantics.db.common.uri.UnescapedChildMapOfResource; import org.simantics.db.common.utils.CommonDBUtils; import org.simantics.db.common.utils.Functions; @@ -47,6 +47,7 @@ import org.simantics.db.layer0.exception.VariableException; import org.simantics.db.layer0.request.PossibleURI; import org.simantics.db.layer0.request.PropertyInfo; import org.simantics.db.layer0.request.PropertyInfoRequest; +import org.simantics.db.layer0.request.UnescapedAssertedPropertyMapOfResource; import org.simantics.db.layer0.request.UnescapedPropertyMapOfResource; import org.simantics.db.layer0.scl.CompileResourceValueRequest; import org.simantics.db.layer0.scl.CompileValueRequest; @@ -56,6 +57,7 @@ import org.simantics.db.layer0.variable.AbstractVariable; import org.simantics.db.layer0.variable.ChildVariableMapRequest; import org.simantics.db.layer0.variable.ExternalSetValue; import org.simantics.db.layer0.variable.PropertyVariableMapRequest; +import org.simantics.db.layer0.variable.StandardAssertedGraphPropertyVariable; import org.simantics.db.layer0.variable.StandardComposedProperty; import org.simantics.db.layer0.variable.StandardGraphChildVariable; import org.simantics.db.layer0.variable.StandardGraphPropertyVariable; @@ -118,10 +120,20 @@ public class All { if (variable.isAsserted()) { if (variable.parentResource != null) { - Layer0 L0 = Layer0.getInstance(graph); - for(Resource assertion : graph.syncRequest(new ObjectsWithType(variable.parentResource, L0.Asserts, L0.Assertion))) { - if(variable.property.predicate.equals(graph.getSingleObject(assertion, L0.HasPredicate))) { - return graph.getRelatedValue2(assertion, L0.HasObject, variable); + Map> assertions = graph.syncRequest( + new UnescapedAssertedPropertyMapOfResource(variable.parentResource), + TransientCacheAsyncListener.instance()); + + // NOTE: This optimization assumes the property + // variable's representation is the asserted object. + Resource object = variable.getPossibleRepresents(graph); + if (object != null) { + return graph.getValue2(object, variable); + } else { + for (Pair assertion : assertions.values()) { + if (assertion.first.predicate.equals(variable.property.predicate)) { + return graph.getValue2(assertion.second, variable); + } } } } @@ -156,13 +168,12 @@ public class All { try { - Layer0 L0 = Layer0.getInstance(graph); - if(variable.property.hasEnumerationRange) { Resource object = variable.getRepresents(graph); if(graph.sync(new IsEnumeratedValue(object))) { + Layer0 L0 = Layer0.getInstance(graph); if(graph.isInstanceOf(object, L0.Literal)) { - return graph.getValue(object); + return graph.getValue(object, binding); } else { return graph.getRelatedValue2(variable.getRepresents(graph), L0.HasLabel, binding); } @@ -171,11 +182,22 @@ public class All { if (variable.isAsserted()) { if (variable.parentResource != null) { - for(Resource assertion : graph.syncRequest(new ObjectsWithType(variable.parentResource, L0.Asserts, L0.Assertion))) { - if(variable.property.predicate.equals(graph.getSingleObject(assertion, L0.HasPredicate))) { - return graph.getRelatedValue2(assertion, L0.HasObject, context); - } - } + Map> assertions = graph.syncRequest( + new UnescapedAssertedPropertyMapOfResource(variable.parentResource), + TransientCacheAsyncListener.instance()); + + // NOTE: This optimization assumes the property + // variable's representation is the asserted object. + Resource object = variable.getPossibleRepresents(graph); + if (object != null) { + return graph.getValue2(object, variable, binding); + } else { + for (Pair assertion : assertions.values()) { + if (assertion.first.predicate.equals(variable.property.predicate)) { + return graph.getValue2(assertion.second, variable, binding); + } + } + } } } @@ -450,6 +472,33 @@ public class All { // Fallback: try to ask property resource uri from NodeManager return createStandardGraphPropertyVariable(graph, variable, propertyNode); } + // Final fallback: check types corresponding to + // node classification(s) and look for asserted + // properties from the URIs specified. + if (variable.node != null) { + try { + @SuppressWarnings("unchecked") + Set classifications = variable.node.support.manager.getClassifications(variable.node.node); + if (!classifications.isEmpty()) { + for (String uri : classifications) { + Resource type = graph.syncRequest( + new PossibleResource(uri), + TransientCacheAsyncListener.instance()); + if (type == null) + continue; + Map> pm = graph.syncRequest( + new UnescapedAssertedPropertyMapOfResource(type), + TransientCacheAsyncListener.instance()); + Pair pi = pm.get(name); + if (pi != null) { + return new StandardAssertedGraphPropertyVariable(graph, context, null, type, pi.first.predicate, pi.second); + } + } + } + } catch(NodeManagerException e) { + throw new DatabaseException(e); + } + } return null; } diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/request/UnescapedAssertedPropertyMapOfResource.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/request/UnescapedAssertedPropertyMapOfResource.java new file mode 100644 index 000000000..63413635c --- /dev/null +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/request/UnescapedAssertedPropertyMapOfResource.java @@ -0,0 +1,65 @@ +/******************************************************************************* + * Copyright (c) 2017 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Semantum Oy - initial API and implementation + *******************************************************************************/ +package org.simantics.db.layer0.request; + + import gnu.trove.map.hash.THashMap; + +import java.util.Collection; +import java.util.Map; + +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.Statement; +import org.simantics.db.common.procedure.adapter.TransientCacheAsyncListener; +import org.simantics.db.common.request.ResourceRead; +import org.simantics.db.exception.DatabaseException; +import org.simantics.layer0.Layer0; +import org.simantics.utils.datastructures.Pair; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + +/** + * @author Tuukka Lehtonen + * @since 1.27.0 + */ +public class UnescapedAssertedPropertyMapOfResource extends ResourceRead>> { + + private static final Logger LOGGER = LoggerFactory.getLogger(UnescapedAssertedPropertyMapOfResource.class); + + public UnescapedAssertedPropertyMapOfResource(Resource resource) { + super(resource); + } + + @Override + public Map> perform(ReadGraph graph) throws DatabaseException { + Layer0 L0 = Layer0.getInstance(graph); + Collection assertions = graph.getAssertedStatements(resource, L0.HasProperty); + THashMap> result = new THashMap<>(assertions.size()); + for (Statement stm : assertions) { + PropertyInfo info = graph.syncRequest(new PropertyInfoRequest(stm.getPredicate()), TransientCacheAsyncListener.instance()); + if (info != null && info.isHasProperty) { + String name = info.name; + // Use putIfAbsent because we want to prefer the results that are first, + // i.e. the ones deeper in the type inheritance chain. + if (result.putIfAbsent(name, Pair.make(info, stm.getObject())) != null) { + if (LOGGER.isDebugEnabled()) { + LOGGER.debug(this + ": The database resource $" + resource.getResourceId() + + " asserts the multiple properties with the same name " + name + " (resource=$" + + info.predicate.getResourceId() + ")."); + } + } + } + } + return result; + } + +} diff --git a/bundles/org.simantics.issues.common/src/org/simantics/issues/common/All.java b/bundles/org.simantics.issues.common/src/org/simantics/issues/common/All.java index 6ff625c0b..9173101ee 100644 --- a/bundles/org.simantics.issues.common/src/org/simantics/issues/common/All.java +++ b/bundles/org.simantics.issues.common/src/org/simantics/issues/common/All.java @@ -76,5 +76,10 @@ public class All { return IssueUtils.pathString(uri, modelURI.length()+1); } } - + + @SCLValue(type = "ReadGraph -> Resource -> Variable -> [Resource]") + public static List standardIssueContexts(ReadGraph graph, Resource converter, Variable property) throws DatabaseException { + return IssueUtils.getContextsForProperty(graph, property); + } + } diff --git a/bundles/org.simantics.issues.ontology/graph.tg b/bundles/org.simantics.issues.ontology/graph.tg index d0ad31bf4c0463847af4658c7484b4f053f0fcaf..7ed3dc9244b9666e3f4ee14fddb9d004c6178f4a 100644 GIT binary patch literal 15208 zcmeHOd4C+m5tXf7X?0k#Bpa}C%wRA_Fv1u@3;|-B= zM8c8NkN`P2!VMu1t|T1EN6Pm|-mB@7YDdC=14;hy{(hzHSM|F3uIZg_mFE(_Ip5LI zu@2JF%|Gr_-jD=o+)Ap!fw&cA>#6Py9?XI$4dW>7A@1Uze*WnVYeAHSSs0`hV(V#r zMLp$CYQbz6ff`4Bq`FV3G#STPTfS1{Hv%c6lr1&$ROKM5kVJmHjoH=o6O=FhS8`R3 zHd#u}EmtO@m7L|?H1o5dflPUYC2QA$UvGVO3(7*1cBAtDa1A)EEkS2WZw@UkE{>*Q z!$-$d)6qDY1EbW5KkIrX(zF#^eeLKTpp#UUdaLNwEb+rA13V$R?kO376bhe;6GP)c zGl@gB5#&+M5h*RA?-3 zD!`D1*%AmZQ8{W@yM)!dQY+Z6rf!!ZT`#0cy5i?mYOXhwJvjxFPMh`$HG2$YuTV-& zKVyJ+ooKHyAEBbubvUeHJ|YB6aScr+bm#J1`|SnCQxP@zH`z*9t5#h5;oj8K6jy&O$dWy0$5DCsosf`Wzig)!T={?K!~))e&3k8Imkyi8~+QzjM&GLpcYm^g!a3l?Mas! zjUY?HDpW(F>dbr&)?Wk+PPLjrlF&QWsnn_^hQ29eisr_W#Ag}ji*mzMYo?9cC+hAa z;Y{Ku^?E~<() z02$vG&4}&cl_&Lvo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100644 --- a/bundles/org.simantics.issues.ontology/graph/Issue.pgraph +++ b/bundles/org.simantics.issues.ontology/graph/Issue.pgraph @@ -33,6 +33,7 @@ ISSUE.Issue -- ISSUE.Issue.HasSeverity --> ISSUE.Severity -- ISSUE.Issue.HasContexts --> L0.List -- ISSUE.Issue.contexts ==> "[Resource]" -- ISSUE.Issue.severity ==> "String" -- ISSUE.Issue.resource ==> "String" -- ISSUE.Issue.path ==> "String" yn$ywNYE-P`OT|hnxrzU@^PhA+ z7Zt1dYCfv8kaebp7MIB+$wiy;MMz7wv*?(C%A8Vp5Q;Xs!uHjrTvW&x2WQWlGarUu)7sX$yjC1w zjVqwv(Ddt0RI`}NmUBH(xstC`OJ!Kw$Kju_t-DgGMSa~!F%P^yjqS~geS%#y?BCQ^ z9KzV(^Z?Ej)t-`Xem?!iO zl}6W;%EQ@$v>RO%4$-r(s=?$~x-y@`jP%k$dL}FB(ITBFf+gkBXa&>Um3SO|M|boU zHy2Bz#pR_!E@HRO6LY$|xT)lAOT;#_YYbC0KOot9Wznq6N9AmJU}$Vzt-!umBf_bo zuqAbsOCzSS@SiOHiLQT50XFtj`c6)Ce}TqRRf|?ihVfED_i%PFve9RXeY)6JW&5K- zS2R#6XF1QT;xtiUO$OylXQ=vAr+DSD40ju%CvR06@X1>2Tq ztJ#9@%QM6{bW}%p8=xlyW)?oEP(j}5< zuH7c1bdfD_IR#yb))#49u3CSrq-k4LE|1CLlAQ#`drT7Pf(`j-6s8Ahx~GK;lKVK|WwA6a z$yNur>AymJ8C&W|p;VSR{*(xsI4xxfKTUp0D;^R>swZ1zhI@tDx}wTJIWM~{j1L>5 zl(Mu`s0|lk+>gfg@m$7!sJMvpwC|_7bGHZ&kZ5U*X@7E&-bvZ+$x5+wC>q#oM=mAX zYzI4Hq?9jK?LK=p&8d`~BBuzo>iIqye7<+aSTJe+I%@#d1K={%MD3qnva=*^8VLhK2ao7Ald7DZ58)axcAyc z!QaF`8Gf02^&J>=)0=A5SDAvCW~hm<$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ycEw(ad(OjPw{N9zdy>mwdKFUXZfuZ|1HITPx0H090F}T`P++$ zFMrFiJT|4zq`1km&KJ*fw%6;!v0CO_Sms<==3H9lTwCU~u*_>^nb+Df*NSDXUCZ1{ zmbn)#b1z%w*zq(Dc&Q+6H+`W#gkJ! zBgK2CcxH(@&>e!pJA`Tlu@*LxOxIFPpsHo-fqf z^W^}ro-g!~^?YG}$+~{&??UnUEK z)-rQjzCOh_rFeUaZv*dzqVqN2S@Uzg;E(4^{W@Q~-fXY)H5K(eQ8ZrOvyBIT98di= z9^2b^lTEyS)X6p;IF6@&8;^P$Z=z|>`6cf_j50o7O7W}UP86R{t|#{t_C?6KrH`!r z;eH}(JjS-nzF6j1Epsj{^V(YGSzviQxUEmN!`@^;;qI?U*dA>GAst&#yo4?Y` zYCFCYTNsdUELDMDR_&dDFNq?veDRXCpfB!D{{=BNyKkF8^m%R1E`1Kg{r6cH$^Yc% zGb&<|Pd6m_RDgc^S0c#W9Mk0P&fE&SKl zuW;nQkA9gGCtp{;L=5q_+eaPhx7)Yy-W{C!2mUMnU6e9}v!y}Y{cu)_4@~iXDc(25 zdo^;fQ23T$dAYo~+J*1Zb>)i1uHL@Bb&I?0@9^B0>$?j6yV{Ue%EMi?p{Oe-zdM6x zAllYd!7qTT-Cg+3+(11aRl9Os)d;`r#Scfis`dU_C5pQ6{l~8IrmiTLAL<%#zrpM( z@aF?v?k8`2JUQ+EWv`BtUbX6PKG4r&cCq|XE+bd3yQr-FUR2|9U2{(9O1>ukJF$j2 z2)djAKiusyKa==b9O|cWty7fq@JnR#yJVTYYInWRjW2}Cch0-z_ZaJX_1mau|7{oJ EAB`_q7XSbN diff --git a/bundles/org.simantics.issues.ui.ontology/graph/IssueUI.pgraph b/bundles/org.simantics.issues.ui.ontology/graph/IssueUI.pgraph index abc2da18b..281bec912 100644 --- a/bundles/org.simantics.issues.ui.ontology/graph/IssueUI.pgraph +++ b/bundles/org.simantics.issues.ui.ontology/graph/IssueUI.pgraph @@ -14,7 +14,7 @@ UI = : L0.Ontology L0.HasResourceClass "org.simantics.issues.ui.ontology.IssueUIResource" //-------------------------------------------------------------------------- -// Functions +// Libraries UI.Functions : L0.Library @@ -43,6 +43,7 @@ ACTIONS.SeverityActionCategory : VP.ActionCategory ACTIONS.SetSeverityAction -- ACTIONS.SetSeverityAction.HasSeverity --> ISSUE.Severity - + + diff --git a/bundles/org.simantics.issues.ui/plugin.xml b/bundles/org.simantics.issues.ui/plugin.xml index e67d2e12b..584bd41ae 100644 --- a/bundles/org.simantics.issues.ui/plugin.xml +++ b/bundles/org.simantics.issues.ui/plugin.xml @@ -19,15 +19,6 @@ id="org.simantics.issues.category" name="Issues"> - T getAdapter(Class adapter) { + if (GraphExplorer.class == adapter) + return (T) tryGetExplorer(container); + if (BrowseContext.class == adapter) + return (T) tryGetBrowseContext(container); + return super.getAdapter(adapter); + } + + private BrowseContext tryGetBrowseContext(Control control) { + return SWTUtils.tryGetObject(control, c -> { + return c instanceof IAdaptable + ? (BrowseContext) ((IAdaptable) c).getAdapter(BrowseContext.class) + : null; + }); + } + + private GraphExplorer tryGetExplorer(Control control) { + return SWTUtils.tryGetObject(control, c -> { + return c.isDisposed() ? null + : (GraphExplorer) c.getData(GraphExplorer.KEY_GRAPH_EXPLORER); + }); + } + } diff --git a/bundles/org.simantics.issues.ui/src/org/simantics/issues/ui/handler/Help.java b/bundles/org.simantics.issues.ui/src/org/simantics/issues/ui/handler/Help.java new file mode 100644 index 000000000..ebdb5a4b2 --- /dev/null +++ b/bundles/org.simantics.issues.ui/src/org/simantics/issues/ui/handler/Help.java @@ -0,0 +1,64 @@ +/******************************************************************************* + * Copyright (c) 2017 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Semantum Oy - initial API and implementation + *******************************************************************************/ +package org.simantics.issues.ui.handler; + +import org.eclipse.ui.PlatformUI; +import org.simantics.Simantics; +import org.simantics.databoard.Bindings; +import org.simantics.databoard.binding.Binding; +import org.simantics.db.ReadGraph; +import org.simantics.db.common.request.TernaryRead; +import org.simantics.db.common.utils.Logger; +import org.simantics.db.exception.DatabaseException; +import org.simantics.db.layer0.adapter.ActionFactory; +import org.simantics.db.layer0.variable.Variable; + +/** + * @author Tuukka Lehtonen + * @since 1.27.0 + */ +public class Help implements ActionFactory { + + @Override + public Runnable create(Object target) { + if (target instanceof Variable) { + return () -> { + try { + String id = Simantics.sync(new PossibleVariablePropertyValue((Variable) target, "contextualHelpId", Bindings.STRING)); + if (id == null) { + PlatformUI.getWorkbench().getHelpSystem().displayDynamicHelp(); + return; + } + PlatformUI.getWorkbench().getHelpSystem().displayHelp(id); + } catch (DatabaseException e) { + Logger.defaultLogError(e); + } + }; + } + + return null; + } + + static class PossibleVariablePropertyValue extends TernaryRead { + + public PossibleVariablePropertyValue(Variable variable, String property, Binding binding) { + super(variable, property, binding); + } + + @Override + public T perform(ReadGraph graph) throws DatabaseException { + return parameter.getPossiblePropertyValue(graph, parameter2, parameter3); + } + + } + +} diff --git a/bundles/org.simantics.issues.ui/src/org/simantics/issues/ui/handler/MenuActions.java b/bundles/org.simantics.issues.ui/src/org/simantics/issues/ui/handler/MenuActions.java index 032359731..b607eb7e1 100644 --- a/bundles/org.simantics.issues.ui/src/org/simantics/issues/ui/handler/MenuActions.java +++ b/bundles/org.simantics.issues.ui/src/org/simantics/issues/ui/handler/MenuActions.java @@ -39,7 +39,6 @@ import org.simantics.issues.common.IssueUtils; import org.simantics.issues.ontology.IssueResource; import org.simantics.issues.ui.internal.Activator; import org.simantics.ui.contribution.DynamicMenuContribution; -import org.simantics.utils.datastructures.Callback; import org.simantics.utils.ui.ErrorLogger; import org.simantics.utils.ui.ISelectionUtils; @@ -181,12 +180,9 @@ public class MenuActions extends DynamicMenuContribution { graph.deny(issue, ISSUE.Issue_HasSeverity); } } - }, new Callback() { - @Override - public void run(DatabaseException e) { - if (e != null) - ErrorLogger.defaultLogError(e); - } + }, e -> { + if (e != null) + ErrorLogger.defaultLogError(e); }); } diff --git a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/OpenDiagramFromIssue.java b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/OpenDiagramFromIssue.java index 8595d7374..6af1ff84b 100644 --- a/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/OpenDiagramFromIssue.java +++ b/bundles/org.simantics.modeling.ui/src/org/simantics/modeling/ui/diagramEditor/OpenDiagramFromIssue.java @@ -27,10 +27,8 @@ import org.simantics.issues.ontology.IssueResource; import org.simantics.layer0.Layer0; import org.simantics.modeling.ModelingResources; import org.simantics.modeling.ui.Activator; -import org.simantics.structural.stubs.StructuralResource2; import org.simantics.ui.SimanticsUI; import org.simantics.ui.workbench.editor.AbstractResourceEditorAdapter; -import org.simantics.utils.datastructures.Pair; /** * @author Tuukka Lehtonen -- 2.43.2