X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fde%2Ftodesbaum%2Fjsite%2Fgui%2FProjectPage.java;h=756c450ad8cdbbf9a55c7d6bac3a34bfa0973c38;hb=56b5bbc99fc0179022aba3c7a847b71122963801;hp=c24f7bfcdd0c98ca2ef4f6f8c5edf57cdc90f4bd;hpb=6363a6f5355700aea01514c2558f670470dcda82;p=jSite.git diff --git a/src/de/todesbaum/jsite/gui/ProjectPage.java b/src/de/todesbaum/jsite/gui/ProjectPage.java index c24f7bf..756c450 100644 --- a/src/de/todesbaum/jsite/gui/ProjectPage.java +++ b/src/de/todesbaum/jsite/gui/ProjectPage.java @@ -131,6 +131,9 @@ public class ProjectPage extends TWizardPage implements ListSelectionListener, D /** The project path textfield. */ private JTextField projectPathTextField; + /** Whether the “copy URI to clipboard” action was used. */ + private boolean uriCopied; + /** * Creates a new project page. * @@ -473,6 +476,16 @@ public class ProjectPage extends TWizardPage implements ListSelectionListener, D } /** + * Returns whether the “copy URI to clipboard” button was used. + * + * @return {@code true} if the “copy URI to clipboard” button was used, + * {@code false} otherwise + */ + public boolean wasUriCopied() { + return uriCopied; + } + + /** * Updates the currently selected project with changed information from a * textfield. * @@ -591,6 +604,7 @@ public class ProjectPage extends TWizardPage implements ListSelectionListener, D Project selectedProject = (Project) projectList.getSelectedValue(); Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard(); clipboard.setContents(new StringSelection(selectedProject.getFinalRequestURI(0)), this); + uriCopied = true; } }