Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVikas Chandra2019-09-06 05:25:10 -0400
committerVikas Chandra2019-09-20 07:55:51 -0400
commit506cd8cb58c788da85544096e0d087d9f3da563f (patch)
tree3103900a80be9ebfedfa470ba62247b8343af9ea /bundles
parent2a71f0d69eb4548e47c092035e3d7aa6b20595f0 (diff)
downloadrt.equinox.p2-master.tar.gz
rt.equinox.p2-master.tar.xz
rt.equinox.p2-master.zip
Bug 550827 - Add repository location should be resizableHEADI20190922-1800I20190921-1800I20190920-1800master
Change-Id: Ie803a15952df6036077b571c17c109452ca31e63 Signed-off-by: Vikas Chandra <Vikas.Chandra@in.ibm.com>
Diffstat (limited to 'bundles')
-rw-r--r--bundles/org.eclipse.equinox.p2.ui/src/org/eclipse/equinox/internal/p2/ui/dialogs/AddRepositoryDialog.java20
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;
+ }
}

Back to the top