diff options
author | Vikas Chandra | 2019-09-06 09:25:10 +0000 |
---|---|---|
committer | Vikas Chandra | 2019-09-20 11:55:51 +0000 |
commit | 506cd8cb58c788da85544096e0d087d9f3da563f (patch) | |
tree | 3103900a80be9ebfedfa470ba62247b8343af9ea | |
parent | 2a71f0d69eb4548e47c092035e3d7aa6b20595f0 (diff) | |
download | rt.equinox.p2-I20190920-1800.tar.gz rt.equinox.p2-I20190920-1800.tar.xz rt.equinox.p2-I20190920-1800.zip |
Bug 550827 - Add repository location should be resizableI20190923-1800I20190923-0615I20190922-1800I20190921-1800I20190920-1800
Change-Id: Ie803a15952df6036077b571c17c109452ca31e63
Signed-off-by: Vikas Chandra <Vikas.Chandra@in.ibm.com>
-rw-r--r-- | bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/AddRepositoryDialog.java | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/AddRepositoryDialog.java b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/AddRepositoryDialog.java index 5da9e9a3a..3d2832206 100644 --- a/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/AddRepositoryDialog.java +++ b/bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/AddRepositoryDialog.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007, 2018 IBM Corporation and others. + * Copyright (c) 2007, 2019 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -7,7 +7,7 @@ * https://www.eclipse.org/legal/epl-2.0/ * * SPDX-License-Identifier: EPL-2.0 - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -33,16 +33,16 @@ import org.eclipse.ui.PlatformUI; /** * Abstract dialog class for adding repositories of different types. This class - * assumes the user view of a repository is a name and URI. Individual subclasses + * assumes the user view of a repository is a name and URI. Individual subclasses * will dictate what kind of repository and how it's created. - * + * * @since 3.4 - * + * */ public abstract class AddRepositoryDialog extends RepositoryNameAndLocationDialog { URI addedLocation; - static final String[] ARCHIVE_EXTENSIONS = new String[] {"*.jar;*.zip"}; //$NON-NLS-1$ + static final String[] ARCHIVE_EXTENSIONS = new String[] {"*.jar;*.zip"}; //$NON-NLS-1$ static String lastLocalLocation = null; static String lastArchiveLocation = null; Policy policy; @@ -62,7 +62,7 @@ public abstract class AddRepositoryDialog extends RepositoryNameAndLocationDialo layout.marginTop = convertVerticalDLUsToPixels(IDialogConstants.VERTICAL_SPACING); comp.setLayout(layout); - GridData data = new GridData(); + GridData data = new GridData(GridData.FILL_HORIZONTAL); comp.setLayoutData(data); // Name: [] @@ -124,7 +124,7 @@ public abstract class AddRepositoryDialog extends RepositoryNameAndLocationDialo /** * Get the location of the repository that was added by this dialog. Return <code>null</code> * if the dialog has not yet added a repository location. - * + * * @return the location of the repository that has been added by this dialog, or <code>null</code> * if no repository has been added. */ @@ -143,4 +143,8 @@ public abstract class AddRepositoryDialog extends RepositoryNameAndLocationDialo } return status; } + @Override + protected boolean isResizable() { + return true; + } } |