misc
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / view / bookmark / CopyAction.java
index 5978426..4166947 100644 (file)
@@ -30,7 +30,6 @@ import org.w3c.dom.Element;
 
 
 final class CopyAction extends SelectionListenerAction {
-       private IViewPart view;
     private BookmarkClipboard bookmarkClipboard;
     
        /**
@@ -40,7 +39,6 @@ final class CopyAction extends SelectionListenerAction {
         ISelectionProvider selectionProvider) {
         super(Messages.getString(CopyAction.class.getName() + ".text"));
         setImageDescriptor(QuantumPlugin.getImageDescriptor("copy.gif"));
-               this.view = view;
         this.bookmarkClipboard = bookmarkClipboard;
         selectionProvider.addSelectionChangedListener(this);
        }
@@ -64,7 +62,7 @@ final class CopyAction extends SelectionListenerAction {
                        ModelToXMLConverter.getInstance().convert(root, ((EntityNode) selection).getEntity());
                        StringWriter text = new StringWriter();
                        try {
-                    XMLHelper.createDOMSerializer(text).serialize(doc);
+                    XMLHelper.write(text, doc);
                        } catch (IOException e) {
                                e.printStackTrace();
                        }