/** * @return * the original key names of the S3 objects that should be copied or moved * when this dialog is accepted. */ public String[] getSourceObjectKeys() { if (!isCopyActionApproved()) { return null; } return sourceObjectKeys; }
final S3Object[] sourceObjects = getSelectedObjects(); CopyObjectsDialog dialog = new CopyObjectsDialog(ownerFrame, "Copy or Move Objects", skinsFactory, sourceObjects, bucketTableModel.getBuckets()); dialog.setVisible(true); if (dialog.isCopyActionApproved()) { final String currentBucketName = currentSelectedBucket.getName(); final String destinationBucketName = dialog.getDestinationBucketName(); final String[] sourceObjectKeys = dialog.getSourceObjectKeys(); final S3Object[] destinationObjects = dialog.getDestinationObjects(); final boolean isDeleteAfterCopy = dialog.isMoveOptionSelected(); final boolean retainAcls = dialog.isCopyOriginalAccessControlLists(); dialog.dispose(); dialog.dispose();
this.setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); this.getRootPane().setDefaultButton(okButton); this.getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW) .put(KeyStroke.getKeyStroke("ESCAPE"), "ESCAPE"); this.getRootPane().getActionMap().put("ESCAPE", new AbstractAction() { private static final long serialVersionUID = 921962767729511631L; this.getContentPane().add(optionsPanel); this.pack(); this.setSize(450, 400); this.setLocationRelativeTo(this.getOwner()); refreshNamesPreviewTable();
final S3Object[] sourceObjects = getSelectedObjects(); CopyObjectsDialog dialog = new CopyObjectsDialog(ownerFrame, "Copy or Move Objects", skinsFactory, sourceObjects, bucketTableModel.getBuckets()); dialog.setVisible(true); if (dialog.isCopyActionApproved()) { final String currentBucketName = currentSelectedBucket.getName(); final String destinationBucketName = dialog.getDestinationBucketName(); final String[] sourceObjectKeys = dialog.getSourceObjectKeys(); final S3Object[] destinationObjects = dialog.getDestinationObjects(); final boolean isDeleteAfterCopy = dialog.isMoveOptionSelected(); final boolean retainAcls = dialog.isCopyOriginalAccessControlLists(); dialog.dispose(); dialog.dispose();
this.setResizable(true); this.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE); this.getRootPane().setDefaultButton(okButton); this.getRootPane().getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW) .put(KeyStroke.getKeyStroke("ESCAPE"), "ESCAPE"); this.getRootPane().getActionMap().put("ESCAPE", new AbstractAction() { private static final long serialVersionUID = 921962767729511631L; this.getContentPane().add(optionsPanel); this.pack(); this.setSize(450, 400); this.setLocationRelativeTo(this.getOwner()); refreshNamesPreviewTable();
/** * @return * the objects that will be created as the destination of a copy or move * operation. These objects include the metadata changes and Access Control * List setting applied by the user. */ public S3Object[] getDestinationObjects() { if (!isCopyActionApproved()) { return null; } return destinationObjects; }
/** * @return * the original key names of the S3 objects that should be copied or moved * when this dialog is accepted. */ public String[] getSourceObjectKeys() { if (!isCopyActionApproved()) { return null; } return sourceObjectKeys; }
/** * @return * the objects that will be created as the destination of a copy or move * operation. These objects include the metadata changes and Access Control * List setting applied by the user. */ public S3Object[] getDestinationObjects() { if (!isCopyActionApproved()) { return null; } return destinationObjects; }
/** * @return * the name of the bucket to which objects should be copied or moved, as * chosen by the user. */ public String getDestinationBucketName() { if (!isCopyActionApproved()) { return null; } return (String) destinationBucketComboBox.getSelectedItem(); }
/** * @return * the name of the bucket to which objects should be copied or moved, as * chosen by the user. */ public String getDestinationBucketName() { if (!isCopyActionApproved()) { return null; } return (String) destinationBucketComboBox.getSelectedItem(); }