Update of /cvsroot/jcommander/plugins/org.jcommander.ui.filepanel/src/org/jcommander/ui/filepanel/dialogs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10682/src/org/jcommander/ui/filepanel/dialogs Modified Files: CopyConfirmDialogComposite.java DeleteConfirmDialogComposite.java CustomConfirmDialogComposite.java Log Message: - made CopyConfirmDialogComposite subclass of CustomConfirmDialogComposite - a lot of refractorings to make variable names more selfexplaining - title text for DeleteConfirmDialog Index: CopyConfirmDialogComposite.java =================================================================== RCS file: /cvsroot/jcommander/plugins/org.jcommander.ui.filepanel/src/org/jcommander/ui/filepanel/dialogs/CopyConfirmDialogComposite.java,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** CopyConfirmDialogComposite.java 1 Jan 2006 22:26:26 -0000 1.12 --- CopyConfirmDialogComposite.java 17 Apr 2006 14:53:59 -0000 1.13 *************** *** 5,11 **** import org.eclipse.jface.preference.IPreferenceStore; - import org.eclipse.swt.*; import org.eclipse.swt.events.*; - import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; import org.eclipse.swt.SWT; --- 5,9 ---- *************** *** 14,20 **** import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.layout.GridLayout; - import org.eclipse.swt.widgets.Text; import org.eclipse.swt.widgets.Button; - import org.eclipse.ui.dialogs.*; import org.jcommander.ui.filepanel.FilePanelPlugin; /** --- 12,16 ---- *************** *** 23,112 **** * @author sky_halud */ ! public class CopyConfirmDialogComposite extends Composite { ! private Composite infoComposite = null; ! private Composite listComposite = null; ! private Label label = null; ! private Text copyTarget = null; ! private Composite buttonsComposite = null; ! private Button removeFileButton = null; ! private Button okButton = null; ! private Button cancelButton = null; ! private List selectionList = null; ! private Label label1 = null; ! private Button keepSelectedCheckBox = null; ! private Button deleteCheckBox = null; public CopyConfirmDialogComposite(Composite parent, int style) { super(parent, style); - initialize(); } public CopyConfirmDialogComposite(Shell parent, int style) { super(parent,style); - initialize(); } ! private void initialize() { ! createInfoComposite(); ! createButtonsComposite(); ! this.setLayout(new GridLayout()); ! setSize(new org.eclipse.swt.graphics.Point(674,285)); } private void createListComposite(Composite info) { ! GridData gridData = new GridData(); ! gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; ! gridData.grabExcessHorizontalSpace = true; ! gridData.verticalAlignment = org.eclipse.swt.layout.GridData.FILL; ! gridData.grabExcessVerticalSpace = true; ! GridData gridData1 = new GridData(); ! GridData gridData2 = new GridData(); ! gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; ! gridData1.grabExcessHorizontalSpace = true; ! gridData1.verticalAlignment = org.eclipse.swt.layout.GridData.FILL; ! gridData1.grabExcessVerticalSpace = true; ! gridData2.horizontalAlignment = org.eclipse.swt.layout.GridData.END; ! gridData2.verticalAlignment = org.eclipse.swt.layout.GridData.BEGINNING; ! GridLayout gridLayout = new GridLayout(); ! gridLayout.numColumns = 2; listComposite = new Composite(info, SWT.NONE); ! listComposite.setLayoutData(gridData); ! listComposite.setLayout(gridLayout); selectionList = new List(listComposite, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); ! selectionList.setLayoutData(gridData1); ! removeFileButton = new Button(listComposite, SWT.NONE); ! removeFileButton.setLayoutData(gridData2); ! removeFileButton.setText("&Remove"); ! ! removeFileButton.addSelectionListener(new SelectionAdapter() { ! public void widgetSelected(SelectionEvent e) { ! int [] indices = selectionList.getSelectionIndices(); ! selectionList.remove(indices); ! ! if(selectionList.getItemCount() == 0) { ! /** Nothing to copy. Disabling the controls. */ ! okButton.setEnabled(false); ! keepSelectedCheckBox.setEnabled(false); ! deleteCheckBox.setEnabled(false); ! selectionList.setEnabled(false); ! removeFileButton.setEnabled(false); ! } ! } ! }); } ! /** ! * This method initializes composi gridData2.grabExcessHorizontalSpace = true; ! te ! * ! */ ! private void createInfoComposite() { ! ! GridData gridData2 = new GridData(); ! GridData gridData1 = new GridData(); ! ! infoComposite = new Composite(this, SWT.NONE); ! createListComposite(infoComposite); ! keepSelectedCheckBox = new Button(infoComposite, SWT.CHECK); keepSelectedCheckBox.setText("&Keep files selected after copying"); keepSelectedCheckBox.setToolTipText("Keeps files selected after they have been copied"); --- 19,91 ---- * @author sky_halud */ ! public class CopyConfirmDialogComposite extends CustomConfirmDialogComposite { ! private Composite listComposite; ! private Label labelConfirmQuestion; ! private List selectionList; ! private Button keepSelectedCheckBox; ! private Button deleteCheckBox; ! private boolean delete; ! public CopyConfirmDialogComposite(Composite parent, int style) { super(parent, style); } public CopyConfirmDialogComposite(Shell parent, int style) { super(parent,style); } ! protected void createMainContent(Composite parent) { ! labelConfirmQuestion = new Label(parent, SWT.NONE); ! labelConfirmQuestion.setText("Copy selected files?"); ! createListComposite(parent); } private void createListComposite(Composite info) { ! GridData listCompositeData = new GridData(); ! listCompositeData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; ! listCompositeData.grabExcessHorizontalSpace = true; ! listCompositeData.verticalAlignment = org.eclipse.swt.layout.GridData.FILL; ! listCompositeData.grabExcessVerticalSpace = true; ! GridData selectionListData = new GridData(); ! //GridData removeButtonData = new GridData(); ! selectionListData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; ! selectionListData.grabExcessHorizontalSpace = true; ! selectionListData.verticalAlignment = org.eclipse.swt.layout.GridData.FILL; ! selectionListData.grabExcessVerticalSpace = true; ! //removeButtonData.horizontalAlignment = org.eclipse.swt.layout.GridData.END; ! //removeButtonData.verticalAlignment = org.eclipse.swt.layout.GridData.BEGINNING; ! GridLayout listCompositeLayout = new GridLayout(); ! listCompositeLayout.numColumns = 1; ! listCompositeLayout.marginWidth=0; listComposite = new Composite(info, SWT.NONE); ! listComposite.setLayoutData(listCompositeData); ! listComposite.setLayout(listCompositeLayout); selectionList = new List(listComposite, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); ! selectionList.setLayoutData(selectionListData); ! // removeFileButton = new Button(listComposite, SWT.NONE); ! // removeFileButton.setLayoutData(gridData2); ! // removeFileButton.setText("&Remove"); ! // ! // removeFileButton.addSelectionListener(new SelectionAdapter() { ! // public void widgetSelected(SelectionEvent e) { ! // int [] indices = selectionList.getSelectionIndices(); ! // selectionList.remove(indices); ! // ! // if(selectionList.getItemCount() == 0) { ! // /** Nothing to copy. Disabling the controls. */ ! // getYesButton().setEnabled(false); ! // keepSelectedCheckBox.setEnabled(false); ! // deleteCheckBox.setEnabled(false); ! // selectionList.setEnabled(false); ! // removeFileButton.setEnabled(false); ! // } ! // } ! // }); } ! protected void createDetailsContent(Composite parent) { ! parent.setLayout(new GridLayout()); ! keepSelectedCheckBox = new Button(parent, SWT.CHECK); keepSelectedCheckBox.setText("&Keep files selected after copying"); keepSelectedCheckBox.setToolTipText("Keeps files selected after they have been copied"); *************** *** 127,137 **** }); ! label = new Label(infoComposite, SWT.NONE); ! label1 = new Label(infoComposite, SWT.NONE); ! label1.setText("to:"); ! copyTarget = new Text(infoComposite, SWT.BORDER); ! deleteCheckBox = new Button(infoComposite, SWT.CHECK); deleteCheckBox.setText("&Move files"); deleteCheckBox.setToolTipText("Removes each source file as the copy progresses"); deleteCheckBox .addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() { --- 106,114 ---- }); ! deleteCheckBox = new Button(parent, SWT.CHECK); deleteCheckBox.setText("&Move files"); deleteCheckBox.setToolTipText("Removes each source file as the copy progresses"); + deleteCheckBox.setSelection(delete); + updateDeleteCheckbox(); deleteCheckBox .addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() { *************** *** 140,185 **** } }); - gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; - gridData1.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER; - gridData1.grabExcessHorizontalSpace = true; - gridData1.grabExcessVerticalSpace = true; - infoComposite.setLayoutData(gridData1); - infoComposite.setLayout(new GridLayout()); - label.setText("Copy selected files:"); - copyTarget.setEditable(false); - copyTarget.setLayoutData(gridData2); - copyTarget.setToolTipText("Not editable yet"); - gridData2.grabExcessHorizontalSpace = true; - gridData2.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; - } - /** - * This method initializes composite - * - */ - private void createButtonsComposite() { - GridLayout gridLayout4 = new GridLayout(); - GridData gridData3 = new GridData(); - buttonsComposite = new Composite(this, SWT.NONE); - okButton = new Button(buttonsComposite, SWT.NONE); - cancelButton = new Button(buttonsComposite, SWT.NONE); - buttonsComposite.setLayoutData(gridData3); - buttonsComposite.setLayout(gridLayout4); - gridData3.horizontalAlignment = org.eclipse.swt.layout.GridData.END; - gridLayout4.numColumns = 2; - okButton.setText("OK"); - cancelButton.setText("Cancel"); } ! public void setCopyTarget(String target) { ! copyTarget.setText(target); ! } ! public Button getOkButton() { ! return okButton; ! } ! public Button getCancelButton() { ! return cancelButton; ! } ! public Text getCopyTarget() { ! return copyTarget; } --- 117,124 ---- } }); } ! public void setCopyTarget(String target) { ! labelConfirmQuestion.setText("Copy selected files to "+target+"?"); } *************** *** 189,194 **** public void selectDeleteCheckBox(boolean newValue) { ! deleteCheckBox.setSelection(newValue); ! updateDeleteCheckbox(); } --- 128,136 ---- public void selectDeleteCheckBox(boolean newValue) { ! delete=newValue; ! if (isDetailsShowing()){ ! deleteCheckBox.setSelection(newValue); ! updateDeleteCheckbox(); ! } } Index: CustomConfirmDialogComposite.java =================================================================== RCS file: /cvsroot/jcommander/plugins/org.jcommander.ui.filepanel/src/org/jcommander/ui/filepanel/dialogs/CustomConfirmDialogComposite.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CustomConfirmDialogComposite.java 17 Apr 2006 08:48:56 -0000 1.2 --- CustomConfirmDialogComposite.java 17 Apr 2006 14:53:59 -0000 1.3 *************** *** 23,27 **** public class CustomConfirmDialogComposite extends Composite { - private Composite mainComposite = null; private Composite buttonsComposite = null; private Composite detailsComposite = null; --- 23,26 ---- *************** *** 34,37 **** --- 33,37 ---- private GridData detailsData = null; private int detailsHeight = 0; + /** *************** *** 55,66 **** detailsData=new GridData(); detailsData.horizontalAlignment=SWT.FILL; ! //detailsData.grabExcessHorizontalSpace=true; GridLayout detailsLayout = new GridLayout(); detailsLayout.marginWidth=0; detailsComposite.setLayout(detailsLayout); - detailsComposite.setLayoutData(detailsData); ! GridLayout gridLayout3 = new GridLayout(); ! GridData gridData2 = new GridData(); buttonsComposite = new Composite(this, SWT.NONE); --- 55,65 ---- detailsData=new GridData(); detailsData.horizontalAlignment=SWT.FILL; ! detailsComposite.setLayoutData(detailsData); GridLayout detailsLayout = new GridLayout(); detailsLayout.marginWidth=0; detailsComposite.setLayout(detailsLayout); ! GridLayout buttonsLayout = new GridLayout(); ! GridData buttonsData = new GridData(); buttonsComposite = new Composite(this, SWT.NONE); *************** *** 73,101 **** yesButton = new Button(buttonsComposite, SWT.NONE); noButton = new Button(buttonsComposite, SWT.NONE); ! gridData2.grabExcessHorizontalSpace = true; ! gridData2.horizontalAlignment = org.eclipse.swt.layout.GridData.END; ! gridData2.verticalAlignment = org.eclipse.swt.layout.GridData.END; ! buttonsComposite.setLayoutData(gridData2); ! buttonsComposite.setLayout(gridLayout3); ! gridLayout3.numColumns = 4; ! gridLayout3.marginHeight = 1; ! gridLayout3.marginWidth = 1; yesButton.setText("&Yes"); // GridLayout buttonLayout1 = new GridLayout(); ! GridData l1 = new GridData(); //l1.horizontalAlignment=SWT.FILL; ! l1.grabExcessHorizontalSpace=true; ! l1.minimumWidth=75; ! yesButton.setLayoutData(l1); ! GridData l2 = new GridData(); ! l2.grabExcessHorizontalSpace=true; //l2.horizontalAlignment=SWT.FILL; ! l2.minimumWidth=75; noButton.setText("&No"); ! noButton.setLayoutData(l2); detailsButton = new Button(buttonsComposite, SWT.NONE); GridData detailsButtonData = new GridData(); detailsButtonData.minimumWidth=75; detailsButton.setText(ProgressMessages.ProgressMonitorJobsDialog_DetailsTitle); detailsButton.addSelectionListener(new SelectionAdapter() { --- 72,102 ---- yesButton = new Button(buttonsComposite, SWT.NONE); noButton = new Button(buttonsComposite, SWT.NONE); ! buttonsData.grabExcessHorizontalSpace = true; ! buttonsData.horizontalAlignment = org.eclipse.swt.layout.GridData.END; ! buttonsData.verticalAlignment = org.eclipse.swt.layout.GridData.END; ! buttonsData.minimumWidth=400; ! buttonsComposite.setLayoutData(buttonsData); ! buttonsComposite.setLayout(buttonsLayout); ! buttonsLayout.numColumns = 4; ! buttonsLayout.marginHeight = 1; ! buttonsLayout.marginWidth = 1; yesButton.setText("&Yes"); // GridLayout buttonLayout1 = new GridLayout(); ! GridData yesButtonData = new GridData(); //l1.horizontalAlignment=SWT.FILL; ! yesButtonData.grabExcessHorizontalSpace=true; ! yesButtonData.minimumWidth=75; ! yesButton.setLayoutData(yesButtonData); ! GridData noButtonData = new GridData(); ! noButtonData.grabExcessHorizontalSpace=true; //l2.horizontalAlignment=SWT.FILL; ! noButtonData.minimumWidth=75; noButton.setText("&No"); ! noButton.setLayoutData(noButtonData); detailsButton = new Button(buttonsComposite, SWT.NONE); GridData detailsButtonData = new GridData(); detailsButtonData.minimumWidth=75; + detailsButton.setLayoutData(detailsButtonData); detailsButton.setText(ProgressMessages.ProgressMonitorJobsDialog_DetailsTitle); detailsButton.addSelectionListener(new SelectionAdapter() { *************** *** 144,162 **** } protected void createDetailsContent(Composite parent){ } protected void createMainContent(Composite parent){ } ! public Button getYesButton() { return yesButton; } public Button getNoButton() { return noButton; } } --- 145,189 ---- } + /** + * Override this method in a subclass to create the details view + * of the dialog. The method is called every time the "Details" button + * is clicked to show the view. Thus dialog elements created in this method + * are available only if the dialogs are currently showing. + * @param parent The parent composite. Make all elements children of this. + */ protected void createDetailsContent(Composite parent){ } + /** + * Override this method in a subclass to create the main + * content of the dialog. The method is called in the constructor. + * @param parent The parent composite. Make all elements children of this. + */ protected void createMainContent(Composite parent){ } ! ! /** ! * Gets the Yes button. ! */ public Button getYesButton() { return yesButton; } + /** + * Gets the no button. + */ public Button getNoButton() { return noButton; } + /** + * + * @return whether the details are currently showing + */ + public boolean isDetailsShowing(){ + return detailsContent!=null; + } + } Index: DeleteConfirmDialogComposite.java =================================================================== RCS file: /cvsroot/jcommander/plugins/org.jcommander.ui.filepanel/src/org/jcommander/ui/filepanel/dialogs/DeleteConfirmDialogComposite.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** DeleteConfirmDialogComposite.java 17 Apr 2006 08:48:56 -0000 1.11 --- DeleteConfirmDialogComposite.java 17 Apr 2006 14:53:59 -0000 1.12 *************** *** 38,53 **** private void createListComposite(Composite info) { ! GridData gridData = new GridData(); ! gridData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; ! gridData.grabExcessHorizontalSpace = true; ! gridData.verticalAlignment = org.eclipse.swt.layout.GridData.FILL; ! gridData.grabExcessVerticalSpace = true; ! GridData gridData1 = new GridData(); GridData gridData2 = new GridData(); ! gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; ! gridData1.grabExcessHorizontalSpace = true; ! gridData1.verticalAlignment = org.eclipse.swt.layout.GridData.FILL; ! gridData1.grabExcessVerticalSpace = true; ! gridData1.heightHint=60; gridData2.horizontalAlignment = org.eclipse.swt.layout.GridData.END; gridData2.verticalAlignment = org.eclipse.swt.layout.GridData.BEGINNING; --- 38,53 ---- private void createListComposite(Composite info) { ! GridData listCompositeData = new GridData(); ! listCompositeData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; ! listCompositeData.grabExcessHorizontalSpace = true; ! listCompositeData.verticalAlignment = org.eclipse.swt.layout.GridData.FILL; ! listCompositeData.grabExcessVerticalSpace = true; ! GridData deleteListData = new GridData(); GridData gridData2 = new GridData(); ! deleteListData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; ! deleteListData.grabExcessHorizontalSpace = true; ! deleteListData.verticalAlignment = org.eclipse.swt.layout.GridData.FILL; ! deleteListData.grabExcessVerticalSpace = true; ! deleteListData.heightHint=60; gridData2.horizontalAlignment = org.eclipse.swt.layout.GridData.END; gridData2.verticalAlignment = org.eclipse.swt.layout.GridData.BEGINNING; *************** *** 56,63 **** gridLayout.marginWidth=0; listComposite = new Composite(info, SWT.NONE); ! listComposite.setLayoutData(gridData); listComposite.setLayout(gridLayout); deleteFileList = new List(listComposite, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); ! deleteFileList.setLayoutData(gridData1); // removeFileButton = new Button(listComposite, SWT.NONE); // removeFileButton.setLayoutData(gridData2); --- 56,63 ---- gridLayout.marginWidth=0; listComposite = new Composite(info, SWT.NONE); ! listComposite.setLayoutData(listCompositeData); listComposite.setLayout(gridLayout); deleteFileList = new List(listComposite, SWT.MULTI | SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER); ! deleteFileList.setLayoutData(deleteListData); // removeFileButton = new Button(listComposite, SWT.NONE); // removeFileButton.setLayoutData(gridData2); *************** *** 81,88 **** // @Override protected void createMainContent(Composite parent) { ! GridLayout gridLayout1 = new GridLayout(); ! gridLayout1.numColumns = 1; ! GridData gridData2 = new GridData(); ! GridData gridData1 = new GridData(); label = new Label(parent, SWT.NONE); --- 81,88 ---- // @Override protected void createMainContent(Composite parent) { ! GridLayout infoCompositeLayout = new GridLayout(); ! infoCompositeLayout.numColumns = 1; ! GridData infoCompositeData = new GridData(); ! GridData labelData = new GridData(); label = new Label(parent, SWT.NONE); *************** *** 90,111 **** infoComposite = new Composite(parent, SWT.NONE); //gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.CENTER; ! gridData1.grabExcessHorizontalSpace = true; ! gridData1.grabExcessVerticalSpace = true; label.setText("Delete selected files?"); ! label.setLayoutData(gridData1); ! createListComposite(infoComposite); moveToRecycle = ((FilePanelPlugin.getDefault().getPreferenceStore()). getBoolean(FilePanelPlugin.MOVE_TO_RECYCLE_KEY)); ! gridData2.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; ! gridData2.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER; ! gridData2.grabExcessHorizontalSpace = true; ! gridData2.grabExcessVerticalSpace = true; ! gridLayout1.marginWidth=0; ! infoComposite.setLayoutData(gridData2); ! infoComposite.setLayout(gridLayout1); } --- 90,111 ---- infoComposite = new Composite(parent, SWT.NONE); //gridData1.horizontalAlignment = org.eclipse.swt.layout.GridData.CENTER; ! labelData.grabExcessHorizontalSpace = true; ! labelData.grabExcessVerticalSpace = true; label.setText("Delete selected files?"); ! label.setLayoutData(labelData); ! createListComposite(parent); moveToRecycle = ((FilePanelPlugin.getDefault().getPreferenceStore()). getBoolean(FilePanelPlugin.MOVE_TO_RECYCLE_KEY)); ! infoCompositeData.horizontalAlignment = org.eclipse.swt.layout.GridData.FILL; ! infoCompositeData.verticalAlignment = org.eclipse.swt.layout.GridData.CENTER; ! infoCompositeData.grabExcessHorizontalSpace = true; ! infoCompositeData.grabExcessVerticalSpace = true; ! infoCompositeLayout.marginWidth=0; ! infoComposite.setLayoutData(infoCompositeData); ! infoComposite.setLayout(infoCompositeLayout); } *************** *** 119,126 **** trashComposite.setLayout(trashLayout); ! GridData trashData1 = new GridData(); ! GridData trashData2 = new GridData(); ! trashData1.verticalAlignment=SWT.CENTER; ! trashData2.verticalAlignment=SWT.CENTER; trashLabel = new Label(trashComposite, SWT.NONE); trashLabel.setText(""); --- 119,126 ---- trashComposite.setLayout(trashLayout); ! GridData trashLabelData = new GridData(); ! GridData moveToRecycleButtonData = new GridData(); ! trashLabelData.verticalAlignment=SWT.CENTER; ! moveToRecycleButtonData.verticalAlignment=SWT.CENTER; trashLabel = new Label(trashComposite, SWT.NONE); trashLabel.setText(""); *************** *** 128,132 **** Image trashImg = imgDesc.createImage(getDisplay()); trashLabel.setImage(trashImg); ! trashLabel.setLayoutData(trashData1); moveToRecycleButton = new Button(trashComposite, SWT.CHECK); --- 128,132 ---- Image trashImg = imgDesc.createImage(getDisplay()); trashLabel.setImage(trashImg); ! trashLabel.setLayoutData(trashLabelData); moveToRecycleButton = new Button(trashComposite, SWT.CHECK); *************** *** 153,157 **** } }); ! moveToRecycleButton.setLayoutData(trashData2); } --- 153,157 ---- } }); ! moveToRecycleButton.setLayoutData(moveToRecycleButtonData); } |