\r
public void run()\r
{\r
+ String title = protocol.equals(AppletFormatAdapter.PASTE)\r
+ ? "Copied From Clipboard" : file;\r
+\r
try\r
{\r
if (Desktop.instance != null)\r
AlignFrame.DEFAULT_WIDTH,\r
AlignFrame.DEFAULT_HEIGHT);\r
\r
- alignFrame.statusBar.setText("Successfully loaded file " + file);\r
- alignFrame.setFileName(file, format);\r
+ alignFrame.statusBar.setText("Successfully loaded file " + title);\r
+\r
+ if (!protocol.equals(AppletFormatAdapter.PASTE))\r
+ alignFrame.setFileName(file, format);\r
\r
- Desktop.addInternalFrame(alignFrame, file,\r
+ Desktop.addInternalFrame(alignFrame, title,\r
AlignFrame.DEFAULT_WIDTH,\r
AlignFrame.DEFAULT_HEIGHT);\r
\r
Desktop.instance.stopLoading();\r
}\r
\r
- final String errorMessage = "Couldn't load file " + file + "\n" +\r
+ final String errorMessage = "Couldn't load file " + title + "\n" +\r
error;\r
\r
javax.swing.SwingUtilities.invokeLater(new Runnable()\r