本文整理汇总了Java中org.netbeans.api.visual.widget.LayerWidget.getChildConstraint方法的典型用法代码示例。如果您正苦于以下问题:Java LayerWidget.getChildConstraint方法的具体用法?Java LayerWidget.getChildConstraint怎么用?Java LayerWidget.getChildConstraint使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.netbeans.api.visual.widget.LayerWidget
的用法示例。
在下文中一共展示了LayerWidget.getChildConstraint方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: deleteConnection
import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
private void deleteConnection() {
LayerWidget connectionLayer = (LayerWidget) connection.getParentWidget();
ConnectionInfo connectionInfo = (ConnectionInfo) connectionLayer.getChildConstraint(connection);
LayerWidget mainLayer = (LayerWidget) connectionInfo.getSourceWidget().getParentWidget();
AbstractCaratteristicheWidgetComposition caratteristicheWidgetCompositionSource = (AbstractCaratteristicheWidgetComposition) mainLayer.getChildConstraint(connectionInfo.getSourceWidget());
AbstractCaratteristicheWidgetComposition caratteristicheWidgetCompositionTarget = (AbstractCaratteristicheWidgetComposition) mainLayer.getChildConstraint(connectionInfo.getTargetWidget());
MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetCompositionSource.getMutableMappingTask();
MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetCompositionTarget.getMutableMappingTask();
mutableMappingTaskSource.getMutableMappingTasks().remove(mutableMappingTaskTarget);
mutableMappingTaskTarget.getMutableMappingTasks().remove(mutableMappingTaskSource);
// if (connectionInfo.getTargetWidget() instanceof ChainWidget) {
caratteristicheWidgetCompositionTarget.removeSourceScenario((ICompositionWidget) connectionInfo.getSourceWidget());
caratteristicheWidgetCompositionSource.getTargetList().remove((ICompositionWidget) connectionInfo.getTargetWidget());
// } else if (connectionInfo.getTargetWidget() instanceof MergeWidget) {
// }
connection.removeFromParent();
StatusDisplayer.getDefault().setStatusText(NbBundle.getMessage(Costanti.class, Costanti.DELETE_CONNECTION));
}
示例2: adjustmentValueChanged
import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
private void adjustmentValueChanged() {
LayerWidget mainLayer = glassPane.getMainLayer();
List<Widget> listaWidget = mainLayer.getChildren();
Iterator iteratore = listaWidget.iterator();
this.jLayeredPane.moveToFront(this.glassPane);
while (iteratore.hasNext()) {
Widget widget = (Widget) iteratore.next();
ICaratteristicheWidget caratteristicheWidget = (ICaratteristicheWidget) mainLayer.getChildConstraint(widget);
Point newPoint = null;
if (caratteristicheWidget.getTreeType().equalsIgnoreCase(Costanti.TREE_SOURCE) || caratteristicheWidget.getTreeType().equalsIgnoreCase(Costanti.TREE_TARGET)) {
newPoint = findNewLocationForTree(caratteristicheWidget, (JTree) connectedComponent);
} else if (caratteristicheWidget.getTreeType().equalsIgnoreCase(Costanti.FOREIGN_KEY) || caratteristicheWidget.getTreeType().equalsIgnoreCase(Costanti.KEY)) {
newPoint = findNewLocationForOther(caratteristicheWidget, widget);
}
if (newPoint != null) {
widget.setPreferredLocation(newPoint);
}
glassPane.getScene().validate();
this.jLayeredPane.moveToFront(this.glassPane);
glassPane.updateUI();
}
glassPane.updateUI();
this.jLayeredPane.moveToFront(this.glassPane);
}
示例3: selezionaConnessione
import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
private void selezionaConnessione(ConnectionWidget connectionWidget) {
ConnectionWidget connectionWidgetOld = (ConnectionWidget) modello.getBean(Costanti.CONNECTION_SELECTED);
connectionWidget.setLineColor(Costanti.COLOR_CONNECTION_CONSTRAINT_SELECTED);
if (connectionWidgetOld == null) {
} else if (!connectionWidget.equals(connectionWidgetOld)) {
LayerWidget connectionLayer = (LayerWidget) connectionWidgetOld.getParentWidget();
if (connectionLayer != null) {
ConnectionInfo connectionInfo = (ConnectionInfo) connectionLayer.getChildConstraint(connectionWidgetOld);
if (connectionInfo.getConfidence() != 1) {
connectionWidgetOld.setLineColor(Costanti.COLOR_CONNECTION_CONSTRAINT_DEFAULT);
} else {
connectionWidgetOld.setLineColor(Costanti.COLOR_CONNECTION_CONSTRAINT_DEFAULT_CORRESPONDENCE);
}
}
}
modello.putBean(Costanti.CONNECTION_SELECTED, connectionWidget);
}
示例4: createCorrespondenceJoinCondition
import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
public JoinCondition createCorrespondenceJoinCondition(LayerWidget mainLayer, Widget sourceWidget, Widget targetWidget, JoinConstraint joinConstraint, JoinCondition joinCondition, List<INode> fromPathNodes, boolean source) {
CaratteristicheWidgetTree caratteristicheWidgetTreeSource = (CaratteristicheWidgetTree) mainLayer.getChildConstraint(sourceWidget);
CaratteristicheWidgetTree caratteristicheWidgetTreeTarget = (CaratteristicheWidgetTree) mainLayer.getChildConstraint(targetWidget);
PathExpression sourcePathExpression = generatePathFromNode.generatePathFromRoot(caratteristicheWidgetTreeSource.getINode());
PathExpression targetPathExpression = generatePathFromNode.generatePathFromRoot(caratteristicheWidgetTreeTarget.getINode());
if (joinCondition != null) {
joinCondition.addPaths(sourcePathExpression, targetPathExpression);
} else {
joinCondition = new JoinCondition(sourcePathExpression, targetPathExpression);
joinConstraint.setJoinCondition(joinCondition);
}
MappingTask mappingTask = (MappingTask) modello.getBean(Costanti.MAPPINGTASK_SHOWED);
IDataSourceProxy dataSource;
if (source) {
dataSource = mappingTask.getSourceProxy();
} else {
dataSource = mappingTask.getTargetProxy();
}
joinConstraint.setDataSource(dataSource);
INode iNode = constraintCreator.createSingleJoin(sourcePathExpression, dataSource, targetPathExpression, source, joinConstraint);
fromPathNodes.add(iNode);
return joinCondition;
}
示例5: creaSourceValue
import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
private void creaSourceValue(VariableCorrespondence variableCorrespondence) {
ISourceValue sourceValue = variableCorrespondence.getSourceValue();
Scene scene = glassPane.getScene();
LayerWidget mainLayer = glassPane.getMainLayer();
LayerWidget connectionLayer = glassPane.getConnectionLayer();
Point point = calculateRandomPoint(glassPane);
Widget sourceWidget = widgetCreator.createConstantWidgetFromSourceValue(scene, mainLayer, connectionLayer, pannelloPrincipale, point, sourceValue, glassPane);
IDataSourceProxy target = mappingTask.getTargetProxy();
// INode targetNode = finder.findNodeInSchema(variableCorrespondence.getTargetPath(), target);
INode targetNode = finder.findNodeInSchema(variableCorrespondence.getTargetPath().getAbsolutePath(), target);
Widget targetWidget = (Widget) targetNode.getAnnotation(Costanti.PIN_WIDGET_TREE_TGD);
CaratteristicheWidgetInterConst caratteristicheWidget = (CaratteristicheWidgetInterConst) mainLayer.getChildConstraint(sourceWidget);
impostaTipo(sourceValue, caratteristicheWidget);
ConnectionInfo connectionInfo = connectionCreator.createConnectionToTarget(sourceWidget, targetWidget, mainLayer, connectionLayer);
connectionInfo.setVariableCorrespondence(variableCorrespondence);
// connectionInfo.setValueCorrespondence(variableCorrespondence.);
// analisiFiltro.creaWidgetEsisteFiltro(connectionInfo.getConnectionWidget(), connectionInfo);
scene.validate();
}
示例6: creaSourceValue
import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
private void creaSourceValue(ValueCorrespondence valueCorrespondence, VariableCorrespondence variableCorrespondence, MappingTask mappingTask) {
ISourceValue sourceValue = valueCorrespondence.getSourceValue();
Scene scene = glassPane.getScene();
LayerWidget mainLayer = glassPane.getMainLayer();
LayerWidget connectionLayer = glassPane.getConnectionLayer();
Point point = calculateRandomPoint(glassPane);
Widget sourceWidget = widgetCreator.createConstantWidgetFromSourceValue(scene, mainLayer, connectionLayer, pannelloPrincipale, point, sourceValue, glassPane);
IDataSourceProxy target = mappingTask.getTargetProxy();
INode targetNode = finder.findNodeInSchema(valueCorrespondence.getTargetPath(), target);
Widget targetWidget = (Widget) targetNode.getAnnotation(Costanti.PIN_WIDGET_TREE);
CaratteristicheWidgetInterConst caratteristicheWidget = (CaratteristicheWidgetInterConst) mainLayer.getChildConstraint(sourceWidget);
impostaTipo(sourceValue, caratteristicheWidget);
ConnectionInfo connectionInfo = connectionCreator.createConnectionToTarget(sourceWidget, targetWidget, mainLayer, connectionLayer);
connectionInfo.setValueCorrespondence(valueCorrespondence);
// analisiFiltro.creaWidgetEsisteFiltro(connectionInfo.getConnectionWidget(), connectionInfo);
scene.validate();
}
示例7: creaFunzione
import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
private void creaFunzione(ValueCorrespondence valueCorrespondence, VariableCorrespondence variableCorrespondence, MappingTask mappingTask) {
Scene scene = glassPane.getScene();
LayerWidget mainLayer = glassPane.getMainLayer();
LayerWidget connectionLayer = glassPane.getConnectionLayer();
Point point = calculateRandomPoint(glassPane);
Widget functionWidget = widgetCreator.createFunctionWidget(scene, mainLayer, connectionLayer, pannelloPrincipale, point, glassPane);
CaratteristicheWidgetInterFunction caratteristicheWidget = (CaratteristicheWidgetInterFunction) mainLayer.getChildConstraint(functionWidget);
caratteristicheWidget.setExpressionFunction(valueCorrespondence.getTransformationFunction().toString());
caratteristicheWidget.setValueCorrespondence(valueCorrespondence);
IDataSourceProxy source = mappingTask.getSourceProxy();
for (PathExpression pathExpression : valueCorrespondence.getSourcePaths()) {
INode sourceNode = finder.findNodeInSchema(pathExpression, source);
Widget sourceWidget = (Widget) sourceNode.getAnnotation(Costanti.PIN_WIDGET_TREE);
connectionCreator.createConnectionToFunction(sourceWidget, functionWidget, mainLayer, connectionLayer);
}
IDataSourceProxy target = mappingTask.getTargetProxy();
INode targetNode = finder.findNodeInSchema(valueCorrespondence.getTargetPath(), target);
Widget targetWidget = (Widget) targetNode.getAnnotation(Costanti.PIN_WIDGET_TREE);
caratteristicheWidget.setTargetWidget((VMDPinWidgetTarget) targetWidget);
ConnectionInfo connectionInfo = connectionCreator.createConnectionFromFunction(functionWidget, targetWidget, mainLayer, connectionLayer);
connectionInfo.setValueCorrespondence(valueCorrespondence);
// analisiFiltro.creaWidgetEsisteFiltro(connectionInfo.getConnectionWidget(), connectionInfo);
scene.validate();
}
示例8: createCorrespondenceFromMerge
import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
public void createCorrespondenceFromMerge(LayerWidget mainLayer, Widget sourceWidget, Widget targetWidget, ConnectionInfo connectionInfo) {
CaratteristicheWidgetMergeComposition caratteristicheWidgetMergeCompositionSource = (CaratteristicheWidgetMergeComposition) mainLayer.getChildConstraint(sourceWidget);
CaratteristicheWidgetChainComposition caratteristicheWidgetChainCompositionTarget = (CaratteristicheWidgetChainComposition) mainLayer.getChildConstraint(targetWidget);
MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetMergeCompositionSource.getMutableMappingTask();
MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetChainCompositionTarget.getMutableMappingTask();
MergeDataSourceProxy dataSource = new MergeDataSourceProxy(mutableMappingTaskSource.getSourceProxies());
caratteristicheWidgetChainCompositionTarget.setSource(dataSource);
// for (IDataSourceProxy iDataSourceProxy : mutableMappingTaskSource.getSourceProxies()) {
// for (INode instance : iDataSourceProxy.getInstances()) {
// dataSource.addInstance(instance);
// }
//
// }
mutableMappingTaskSource.setMappingTask(new MappingTask(null, dataSource, SpicyEngineConstants.LINES_BASED_MAPPING_TASK));
mutableMappingTaskTarget.addSourceProxies(mutableMappingTaskSource.getMappingTask().getTargetProxy());
mutableMappingTaskTarget.addMutableMappingTask(mutableMappingTaskSource);
}
示例9: createConnectionToTargetImpl
import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
private ConnectionInfo createConnectionToTargetImpl(Widget sourceWidget, Widget targetWidget, LayerWidget mainLayer, LayerWidget connectionLayer, Stroke stroke) {
ConnectionWidget connection = new ConnectionWidget(sourceWidget.getScene());
connection.setTargetAnchorShape(AnchorShape.TRIANGLE_FILLED);
connection.setSourceAnchor(AnchorFactory.createRectangularAnchor(sourceWidget));
connection.setTargetAnchor(AnchorFactory.createRectangularAnchor(targetWidget));
connection.setStroke(stroke);
CaratteristicheWidgetInterConst caratteristicheWidget = (CaratteristicheWidgetInterConst) mainLayer.getChildConstraint(sourceWidget);
connection.getActions().addAction(ActionFactory.createPopupMenuAction(new MyPopupProviderConnectionConst(sourceWidget.getScene(), caratteristicheWidget)));
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.setTargetWidget(targetWidget);
connectionInfo.setConnectionWidget(connection);
caratteristicheWidget.addConnectionInfo(connectionInfo);
connectionLayer.addChild(connection, connectionInfo);
return connectionInfo;
}
示例10: createCorrespondence
import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
public void createCorrespondence(LayerWidget mainLayer, Widget sourceWidget, Widget targetWidget, ConnectionInfo connectionInfo) {
CaratteristicheWidgetTree caratteristicheWidgetTreeSource = (CaratteristicheWidgetTree) mainLayer.getChildConstraint(sourceWidget);
CaratteristicheWidgetTree caratteristicheWidgetTreeTarget = (CaratteristicheWidgetTree) mainLayer.getChildConstraint(targetWidget);
PathExpression sourcePathExpression = generatePathFromNode.generatePathFromRoot(caratteristicheWidgetTreeSource.getINode());
PathExpression targetPathExpression = generatePathFromNode.generatePathFromRoot(caratteristicheWidgetTreeTarget.getINode());
ValueCorrespondence valueCorrespondence = new ValueCorrespondence(sourcePathExpression, targetPathExpression);
MappingTask mappingTask = (MappingTask) modello.getBean(Costanti.MAPPINGTASK_SHOWED);
mappingTask.addCorrespondence(valueCorrespondence);
connectionInfo.setValueCorrespondence(valueCorrespondence);
}
示例11: manageTargetWidget
import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
private void manageTargetWidget(ConnectionWidget connectionWidget, CaratteristicheWidgetMergeComposition caratteristicheWidgetMergeComposition, LayerWidget mainLayer) {
AbstractCaratteristicheWidgetComposition caratteristicheWidgetCompositionTarget = (AbstractCaratteristicheWidgetComposition) mainLayer.getChildConstraint(connectionWidget.getTargetAnchor().getRelatedWidget());
MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetMergeComposition.getMutableMappingTask();
MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetCompositionTarget.getMutableMappingTask();
mutableMappingTaskSource.getMutableMappingTasks().remove(mutableMappingTaskTarget);
mutableMappingTaskTarget.getMutableMappingTasks().remove(mutableMappingTaskSource);
caratteristicheWidgetCompositionTarget.removeSourceScenario((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
caratteristicheWidgetMergeComposition.getTargetList().remove((ICompositionWidget) connectionWidget.getTargetAnchor().getRelatedWidget());
connectionWidget.removeFromParent();
}
示例12: createFromConstantToChainCorrespondence
import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
public void createFromConstantToChainCorrespondence(LayerWidget mainLayer, ConstantCompositionWidget sourceWidget, ChainWidget targetWidget, ConnectionInfo connectionInfo) {
CaratteristicheWidgetConstantComposition caratteristicheWidgetCompositionSource = (CaratteristicheWidgetConstantComposition) mainLayer.getChildConstraint(sourceWidget);
CaratteristicheWidgetChainComposition caratteristicheWidgetChainCompositionTarget = (CaratteristicheWidgetChainComposition) mainLayer.getChildConstraint(targetWidget);
// Scenario scenarioSource = caratteristicheWidgetCompositionSource.getScenario();
// Scenario scenarioTarget = caratteristicheWidgetCompositionTarget.getScenario();
// IDataSourceProxy dataSourceProxySource = scenarioSource.getMappingTask().getSourceProxy();
// IDataSourceProxy dataSourceProxyTarget = scenarioTarget.getMappingTask().getSourceProxy();
// MappingTask mappingTaskTarget = scenarioTarget.getMappingTask();
MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetCompositionSource.getMutableMappingTask();
MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetChainCompositionTarget.getMutableMappingTask();
caratteristicheWidgetChainCompositionTarget.setSource(new ChainingDataSourceProxy(mutableMappingTaskSource.getMappingTask()));
mutableMappingTaskTarget.addMutableMappingTask(mutableMappingTaskSource);
mutableMappingTaskTarget.addSourceProxies(mutableMappingTaskSource.getMappingTask().getTargetProxy());
// MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetChainCompositionTarget.getMutableMappingTask();
//
// mutableMappingTaskTarget.addMutableMappingTask(mutableMappingTaskSource);
//
// mutableMappingTaskSource.addTargetProxies(mut);
// mutableMappingTaskTarget.addSourceProxies(null);
// logger.debug("before");
// if (dataSourceProxyTarget.getProviderType().equals(SpicyEngineConstants.PROVIDER_TYPE_CHAINING)) {
// ChainingDataSourceProxy chainingDataSourceProxy = (ChainingDataSourceProxy)dataSourceProxyTarget;
//
//// chainingDataSourceProxy.
// logger.debug("chaining");
// } else if (dataSourceProxyTarget.getProviderType().equals(SpicyEngineConstants.PROVIDER_TYPE_MERGE)) {
// MergeDataSourceProxy mergeDataSourceProxy = (MergeDataSourceProxy)dataSourceProxyTarget;
// logger.debug("merge");
// } else if (dataSourceProxyTarget.getProviderType().equals(SpicyEngineConstants.PROVIDER_TYPE_CONSTANT)) {
// ConstantDataSourceProxy constantDataSourceProxy = (ConstantDataSourceProxy)dataSourceProxyTarget;
//// constantDataSourceProxy.set
// logger.debug("constant");
// }
// logger.debug("after");
//
// MappingTask mappingTask = (MappingTask) modello.getBean(Costanti.MAPPINGTASK_SHOWED);
// mappingTask.addCorrespondence(valueCorrespondence);
// connectionInfo.setValueCorrespondence(valueCorrespondence);
}
示例13: createCorrespondence
import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
public void createCorrespondence(LayerWidget mainLayer, Widget sourceWidget, Widget targetWidget, ConnectionInfo connectionInfo) {
CaratteristicheWidgetTree caratteristicheWidgetTreeSource = (CaratteristicheWidgetTree) mainLayer.getChildConstraint(sourceWidget);
CaratteristicheWidgetTree caratteristicheWidgetTreeTarget = (CaratteristicheWidgetTree) mainLayer.getChildConstraint(targetWidget);
PathExpression sourcePathExpression = generatePathFromNode.generatePathFromRoot(caratteristicheWidgetTreeSource.getINode());
PathExpression targetPathExpression = generatePathFromNode.generatePathFromRoot(caratteristicheWidgetTreeTarget.getINode());
ValueCorrespondence valueCorrespondence = new ValueCorrespondence(sourcePathExpression, targetPathExpression);
MappingTask mappingTask = (MappingTask) modello.getBean(Costanti.MAPPINGTASK_SHOWED);
mappingTask.addCandidateCorrespondence(valueCorrespondence);
connectionInfo.setValueCorrespondence(valueCorrespondence);
}
示例14: createFromChainToMergeCorrespondence
import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
public void createFromChainToMergeCorrespondence(LayerWidget mainLayer, ChainWidget sourceWidget, MergeWidget targetWidget, ConnectionInfo connectionInfo) {
CaratteristicheWidgetChainComposition caratteristicheWidgetChainCompositionSource = (CaratteristicheWidgetChainComposition) mainLayer.getChildConstraint(sourceWidget);
CaratteristicheWidgetMergeComposition caratteristicheWidgetMergeCompositionTarget = (CaratteristicheWidgetMergeComposition) mainLayer.getChildConstraint(targetWidget);
MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetChainCompositionSource.getMutableMappingTask();
MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetMergeCompositionTarget.getMutableMappingTask();
mutableMappingTaskTarget.addSourceProxies(mutableMappingTaskSource.getMappingTask().getTargetProxy());
//
mutableMappingTaskTarget.addMutableMappingTask(mutableMappingTaskSource);
//
// mutableMappingTaskSource.addTargetProxies(mut);
// mutableMappingTaskTarget.addS;
}
示例15: deleteConnection
import org.netbeans.api.visual.widget.LayerWidget; //导入方法依赖的package包/类
private void deleteConnection() {
LayerWidget connectionLayer = (LayerWidget) connection.getParentWidget();
ConnectionInfo connectionInfo = (ConnectionInfo) connectionLayer.getChildConstraint(connection);
LayerWidget mainLayer = (LayerWidget) connectionInfo.getSourceWidget().getParentWidget();
CaratteristicheWidgetConstantComposition caratteristicheWidgetCompositionSource = (CaratteristicheWidgetConstantComposition) mainLayer.getChildConstraint(connectionInfo.getSourceWidget());
CaratteristicheWidgetConstantComposition caratteristicheWidgetCompositionTarget = (CaratteristicheWidgetConstantComposition) mainLayer.getChildConstraint(connectionInfo.getTargetWidget());
MutableMappingTask mutableMappingTaskSource = caratteristicheWidgetCompositionSource.getMutableMappingTask();
MutableMappingTask mutableMappingTaskTarget = caratteristicheWidgetCompositionTarget.getMutableMappingTask();
mutableMappingTaskSource.getMutableMappingTasks().remove(mutableMappingTaskTarget);
mutableMappingTaskTarget.getMutableMappingTasks().remove(mutableMappingTaskSource);
connection.removeFromParent();
StatusDisplayer.getDefault().setStatusText(NbBundle.getMessage(Costanti.class, Costanti.DELETE_CONNECTION));
}