0002-Cleaning-codebase.patch
applications/appgvSIG/src/com/iver/cit/gvsig/project/documents/view/toc/actions/PasteLayersTocMenuEntry.java | ||
---|---|---|
1 | 1 |
package com.iver.cit.gvsig.project.documents.view.toc.actions; |
2 | 2 | |
3 |
import java.awt.MouseInfo; |
|
4 |
import java.awt.PointerInfo; |
|
5 | ||
6 |
import javax.swing.JMenuItem; |
|
7 |
import javax.swing.JPopupMenu; |
|
8 |
import javax.swing.SwingUtilities; |
|
9 | ||
10 | 3 |
import org.exolab.castor.xml.MarshalException; |
11 | 4 |
import org.exolab.castor.xml.ValidationException; |
12 | 5 | |
... | ... | |
44 | 37 |
public boolean isEnabled(ITocItem item, FLayer[] selectedItems) { |
45 | 38 |
if (isTocItemBranch(item)) { |
46 | 39 |
FLayer lyr = getNodeLayer(item); |
47 |
// if (lyr instanceof FLayers) { |
|
48 |
this.xml = this.getCheckedXMLFromClipboard();
|
|
49 |
// return true; |
|
50 |
// } |
|
40 |
// if (lyr instanceof FLayers) {
|
|
41 |
this.xml = this.getCheckedXMLFromClipboard(); |
|
42 |
// return true;
|
|
43 |
// }
|
|
51 | 44 |
return this.xml != null; // Podemos hacer paste en cualquier sitio y nos preguntar? si queremos meter la capa en ese sitio |
52 | 45 | |
53 | 46 |
} else if (!isTocItemLeaf(item)) { |
... | ... | |
63 | 56 |
String sourceString = PluginServices.getFromClipboard(); |
64 | 57 |
if (sourceString == null) return null; |
65 | 58 | |
66 |
// System.out.println(sourceString); |
|
59 |
// System.out.println(sourceString);
|
|
67 | 60 |
XMLEntity xml; |
68 | 61 |
try { |
69 | 62 |
xml = XMLEntity.parse(sourceString); |
70 |
- |