From 84ce2fdee3a6329663f8a6c126df47ac3130ab4d Mon Sep 17 00:00:00 2001 From: David McKnight Date: Wed, 4 Mar 2009 17:42:43 +0000 Subject: [PATCH] [267061] resource dialog/form to allow custom host combo label --- .../ui/view/SystemResourceSelectionForm.java | 11 ++++++++++- .../rse/ui/dialogs/SystemRemoteResourceDialog.java | 13 +++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemResourceSelectionForm.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemResourceSelectionForm.java index b178a665ea2..4a0b06b45f8 100644 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemResourceSelectionForm.java +++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/internal/ui/view/SystemResourceSelectionForm.java @@ -1,5 +1,5 @@ /******************************************************************************** - * Copyright (c) 2006, 2008 IBM Corporation and others. All rights reserved. + * Copyright (c) 2006, 2009 IBM Corporation and others. 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 @@ -19,6 +19,7 @@ * David McKnight (IBM) - [225506] [api][breaking] RSE UI leaks non-API types * David Dykstal (IBM) - [232130] meaningless label provided for filter references * David McKnight (IBM) - [244430] [regression] Incorrect behaviour for SystemSelectRemoteFolderAction + * David McKnight (IBM) - [267061] resource dialog/form to allow custom host combo label ********************************************************************************/ package org.eclipse.rse.internal.ui.view; @@ -642,5 +643,13 @@ public class SystemResourceSelectionForm implements ISelectionChangedListener _systemViewForm.setToolTipText(tip); } + + /** + * Sets the label for the connection combo in the form + */ + public void setConnectionComboLabel(String label) + { + _connectionCombo.setLabel(label); + } } \ No newline at end of file diff --git a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/dialogs/SystemRemoteResourceDialog.java b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/dialogs/SystemRemoteResourceDialog.java index 10d32b7e111..56b99784095 100644 --- a/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/dialogs/SystemRemoteResourceDialog.java +++ b/rse/plugins/org.eclipse.rse.ui/UI/org/eclipse/rse/ui/dialogs/SystemRemoteResourceDialog.java @@ -17,6 +17,7 @@ * Kevin Doyle (IBM) - [198114] Allowed to move file into existing folder/archive on first attempt * Xuan Chen (IBM) - [220999] [api] Need to change class SystemSelectRemoteFileAction to use SystemRemoteFileDialog * David McKnight (IBM) - [225506] [api][breaking] RSE UI leaks non-API types + * David McKnight (IBM) - [267061] resource dialog/form to allow custom host combo label *******************************************************************************/ package org.eclipse.rse.ui.dialogs; @@ -36,7 +37,9 @@ import org.eclipse.swt.widgets.Shell; public abstract class SystemRemoteResourceDialog extends SystemPromptDialog { + private SystemResourceSelectionForm _form; + private ISystemResourceSelectionInputProvider _inputProvider; private Object _preSelection; private IValidatorRemoteSelection _selectionValidator; @@ -304,6 +307,16 @@ public abstract class SystemRemoteResourceDialog extends SystemPromptDialog { return _form.isPageComplete(); } + + /** + * Sets the label for the connection combo in the form + * + * @since 3.1 + */ + public void setConnectionComboLabel(String label){ + _form.setConnectionComboLabel(label); + } + public abstract SystemActionViewerFilter getViewerFilter(); public abstract String getVerbiage();