adding plug-in provider xdebug.core and xdebug.ui to fix ticket #640
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.quantum.sql / src / com / quantum / view / bookmark / CopyAction.java
index 5978426..d4d97ab 100644 (file)
@@ -11,6 +11,7 @@ import java.util.List;
 
 import javax.xml.parsers.ParserConfigurationException;
 
+import com.quantum.ImageStore;
 import com.quantum.Messages;
 import com.quantum.QuantumPlugin;
 import com.quantum.model.Bookmark;
@@ -30,7 +31,6 @@ import org.w3c.dom.Element;
 
 
 final class CopyAction extends SelectionListenerAction {
-       private IViewPart view;
     private BookmarkClipboard bookmarkClipboard;
     
        /**
@@ -39,8 +39,7 @@ final class CopyAction extends SelectionListenerAction {
        public CopyAction(IViewPart view, BookmarkClipboard bookmarkClipboard, 
         ISelectionProvider selectionProvider) {
         super(Messages.getString(CopyAction.class.getName() + ".text"));
-        setImageDescriptor(QuantumPlugin.getImageDescriptor("copy.gif"));
-               this.view = view;
+        setImageDescriptor(ImageStore.getImageDescriptor(ImageStore.COPY));
         this.bookmarkClipboard = bookmarkClipboard;
         selectionProvider.addSelectionChangedListener(this);
        }
@@ -64,7 +63,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();
                        }