package jalview.gui;
import jalview.io.*;
-
import java.awt.*;
import java.awt.datatransfer.*;
import java.awt.dnd.*;
public static jalview.ws.Discoverer discoverer;
public static Object [] jalviewClipboard;
+ public static boolean internalCopy = false;
static int fileLoadingCount= 0;
public void internalFrameClosed(
javax.swing.event.InternalFrameEvent evt)
{
+ PaintRefresher.RemoveComponent(frame);
openFrameCount--;
windowMenu.remove(menuItem);
JInternalFrame itf = desktop.getSelectedFrame();
public void lostOwnership(Clipboard clipboard, Transferable contents)
{
- Desktop.jalviewClipboard = null;
+ if (!internalCopy)
+ Desktop.jalviewClipboard = null;
+
+ internalCopy = false;
}
public void dragEnter(DropTargetDragEvent evt)
vamsasStop.setVisible(!b);
}
+ /**
+ * Checks the given url to see if it gives a response indicating that
+ * the user should be informed of a new questionnaire.
+ * @param url
+ */
+ public void checkForQuestionnaire(String url) {
+ UserQuestionnaireCheck jvq = new UserQuestionnaireCheck(url);
+ javax.swing.SwingUtilities.invokeLater(jvq);
+ }
+
}