Révision 3691

TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/handlers/results/CopyTXMResultTree.java (revision 3691)
66 66
		}
67 67

  
68 68
		return copy(selection);
69
		
70 69
	}
71 70

  
72 71
	public static Object copy(IStructuredSelection selection) {
TXM/trunk/bundles/org.txm.rcp/src/main/java/org/txm/rcp/handlers/results/PasteTXMResultTree.java (revision 3691)
74 74
		TXMResult srcNode =  CopyTXMResultTree.srcNode;
75 75
		
76 76
		if (srcNode == null) {
77
			Log.info("Nothing to paste");
77
			Log.fine("Nothing to paste");
78 78
			return null;
79 79
		}
80 80
		
81
		if (srcNode.getParent() == null) {
82
			Log.fine("Error: result parent is null");
83
			return null;
84
		}
85
		
81 86
		if (newParent == srcNode) { // to duplicate the object
82 87
			newParent = srcNode.getParent();
83 88
		}
......
95 100
			Log.info(TXMUIMessages.WarningOnlyParametersAreClonedManualChangesAreNotTransfered);
96 101
		}
97 102
		
98
		Log.info(NLS.bind("Paste {0} to {1}...", srcNode, newParent));
103
		Log.info(NLS.bind("Pasting {0} to {1}...", srcNode, newParent));
99 104
		
100 105
		TXMResult result = srcNode.clone(newParent, CopyTXMResultTree.all);
106
		if (result == null) {
107
			Log.warning("Error: The result was not cloned.");
108
		}
101 109
		
102 110
		if (CopyTXMResultTree.cut) {
103 111
			srcNode.delete();

Formats disponibles : Unified diff