Bug 121949 [Wizards] The width of the button in the dialog of "Exitsting Projects into Workspace" doesn't extend when the dialog font is changed
The width of the button in the dialog of "Exitsting Projects into Workspace" doesn't extend when the dialog font is changed. The problem is included in the source code of the following packages. plug-in org.eclipse.ui.ide package org.eclipse.ui.internal.wizards.datatransfer class WizardProjectsImportPage I corrected it as follows; - The variables in createSelectionButtons method are changed to the field variables. -> private Button selectAllButton; -> private Button deselectAllButton; -> private Button refreshButton; - In createSelectionButtons method, The instances of the button ware stored into the fields. -> selectAllButton = new Button(buttonsComposite, SWT.PUSH); -> deselectAllButton = new Button(buttonsComposite, SWT.PUSH); -> refreshButton = new Button(buttonsComposite, SWT.PUSH); - In createControl method, setButtonLayoutData methods ware called after applyDialogFont method. createProjectsRoot(workArea); createProjectsList(workArea); Dialog.applyDialogFont(workArea); /*Add*/ setButtonLayoutData(selectAllButton); /*Add*/ setButtonLayoutData(deselectAllButton); /*Add*/ setButtonLayoutData(refreshButton);
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/datatransfer/WizardProjectsImportPage.java
/*******************************************************************************
 * Copyright (c) 2004, 2005 IBM Corporation and others.
 * Copyright (c) 2005 Red Hat, Inc.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *     Red Hat, Inc - extensive changes to allow importing of Archive Files
 *     Philippe Ombredanne (pombredanne@nexb.com)
 *     		- Bug 101180 [Import/Export] Import Existing Project into Workspace default widget is back button , should be text field
 *******************************************************************************/
package org.eclipse.ui.internal.wizards.datatransfer;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.InvocationTargetException;
import java.net.URI;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.zip.ZipException;
import java.util.zip.ZipFile;
import org.eclipse.core.resources.IProject;