1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-28 19:35:36 +02:00

[267061] resource dialog/form to allow custom host combo label

This commit is contained in:
David McKnight 2009-03-04 17:42:43 +00:00
parent 5ef3cd1a6b
commit 84ce2fdee3
2 changed files with 23 additions and 1 deletions

View file

@ -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);
}
}

View file

@ -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();