/** The number of inserted blocks. */
private volatile int insertedBlocks;
+ /** Whether the “copy URI to clipboard” button was used. */
+ private boolean uriCopied;
+
/**
* Creates a new progress insert wizard page.
*
projectInserter.setTempDirectory(tempDirectory);
}
+ /**
+ * Returns whether the “copy URI to clipboard” button was used.
+ *
+ * @return {@code true} if an URI was copied to clipboard, {@code false}
+ * otherwise
+ */
+ public boolean wasUriCopied() {
+ return uriCopied;
+ }
+
//
// INTERFACE InsertListener
//
* Copies the request URI of the project to the clipboard.
*/
private void actionCopyURI() {
+ uriCopied = true;
Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
clipboard.setContents(new StringSelection(requestURITextField.getText()), this);
}