Enhancement #5489

Remove product-specific hacks from ConnectionRoutingMenuContribution

Added by Tuukka Lehtonen about 3 years ago. Updated about 1 year ago.

Status:On holdStart date:
Priority:4Due date:
Assignee:Marko Luukkainen% Done:

100%

Category:DiagramSpent time:-
Target version:-
Release notes:
Story points-
Velocity based estimate-

Description

source:2d/trunk/org.simantics.diagram/src/org/simantics/diagram/handler/ConnectionRoutingMenuContribution.java contains these two hacks at the moment, that need to be removed somehow.

        // HACK
        Resource ReferenceProvider = graph.getPossibleResource("http://www.apros.fi/Apros-6.1/ReferenceProvider");
        // Just continuing to do stupid things as above ;)
        Resource connectionType = graph.getPossibleResource("http://www.simantics.org/Kcleco-5.0/FlowConnection");
                // FIXME HACK
                if(ReferenceProvider != null && !graph.isInstanceOf(connectionRelation, ReferenceProvider))
                    continue;
                Resource connector = stat.getObject();

                Resource connection = ConnectionUtil.tryGetConnection(graph, connector);
                if (connection != null) {
                    if (graph.isInstanceOf(connection, dr.RouteGraphConnection)) {
                        if (connectionType != null && graph.isInstanceOf(connection, connectionType))    
                            continue;

Related issues

Copied from Platform - Enhancement #5443: Allow hiding Connection Routing menu in Sulca 5.0 Closed 2014-10-27 2014-11-07

History

#1 Updated by Tuukka Lehtonen about 3 years ago

  • Description updated (diff)

#2 Updated by Tuukka Lehtonen about 3 years ago

  • Description updated (diff)

#3 Updated by Tuukka Lehtonen over 2 years ago

  • Release changed from 17 to 25

#4 Updated by Tuukka Lehtonen over 2 years ago

  • Release changed from 25 to 29

#5 Updated by Tuukka Lehtonen about 2 years ago

  • Release changed from 29 to 31

#6 Updated by Tuukka Lehtonen over 1 year ago

  • Release changed from 31 to 39

#7 Updated by Tuukka Lehtonen about 1 year ago

  • Release deleted (39)

#8 Updated by Tuukka Lehtonen about 1 year ago

  • Status changed from New to On hold

Also available in: Atom PDF