/** * Searches for an input port within the given plugin with the given name. * * @param mPlugin * The plugin which will be searched through. * @param name * The name of the searched input port. * @return The searched port or null, if it is not available. */ public static final MIInputPort findInputPort(final MIFilter mPlugin, final String name) { for (final MIInputPort port : mPlugin.getInputPorts()) { if (port.getName().equals(name)) { return port; } } return null; }
final mxCell outputPluginCell = mapPlugin2Graph.get(outputPlugin); final mxCell outputPortCell = mapOutputPorts2Graph.get(outputPort.getName()); final MIPlugin inputPlugin = inputPort.getParent(); final mxCell inputPluginCell = mapPlugin2Graph.get(inputPlugin); final String inputPortName = inputPort.getName(); final mxCell inputPortCell = mapPluginInputPorts2Graph.get(inputPlugin).get(inputPortName); this.graph.setCellStyles(mxConstants.STYLE_NOLABEL, "0", new Object[] { inputPortCell, outputPortCell });
final mxCell outputPluginCell = mapPlugin2Graph.get(outputPlugin); final mxCell outputPortCell = mapOutputPorts2Graph.get(outputPort.getName()); final MIPlugin inputPlugin = inputPort.getParent(); final mxCell inputPluginCell = mapPlugin2Graph.get(inputPlugin); final String inputPortName = inputPort.getName(); final mxCell inputPortCell = mapPluginInputPorts2Graph.get(inputPlugin).get(inputPortName); this.graph.setCellStyles(mxConstants.STYLE_NOLABEL, "0", new Object[] { inputPortCell, outputPortCell });
/** * Searches for an input port within the given plugin with the given name. * * @param mPlugin * The plugin which will be searched through. * @param name * The name of the searched input port. * @return The searched port or null, if it is not available. */ public static final MIInputPort findInputPort(final MIFilter mPlugin, final String name) { for (final MIInputPort port : mPlugin.getInputPorts()) { if (port.getName().equals(name)) { return port; } } return null; }