mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-14 20:45:22 +02:00
[189426] System File/Folder Dialogs - New Connection Not Added to Drop Down
This commit is contained in:
parent
895b68e389
commit
6670d4e1e6
3 changed files with 6 additions and 10 deletions
|
@ -14,6 +14,7 @@
|
||||||
* Uwe Stieber (Wind River) - Set action id for identification from plugin.xml menu extensions.
|
* Uwe Stieber (Wind River) - Set action id for identification from plugin.xml menu extensions.
|
||||||
* Martin Oberhuber (Wind River) - [184095] Replace systemTypeName by IRSESystemType
|
* Martin Oberhuber (Wind River) - [184095] Replace systemTypeName by IRSESystemType
|
||||||
* Uwe Stieber (Wind River) - [192202] Default RSE new connection wizard does not allow to query created host instance anymore
|
* Uwe Stieber (Wind River) - [192202] Default RSE new connection wizard does not allow to query created host instance anymore
|
||||||
|
* Uwe Stieber (Wind River) - [189426] System File/Folder Dialogs - New Connection Not Added to Drop Down
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.ui.actions;
|
package org.eclipse.rse.ui.actions;
|
||||||
|
@ -169,6 +170,7 @@ public class SystemNewConnectionAction extends SystemBaseWizardAction {
|
||||||
* @see org.eclipse.rse.ui.actions.SystemBaseWizardAction#postProcessWizard(org.eclipse.jface.wizard.IWizard)
|
* @see org.eclipse.rse.ui.actions.SystemBaseWizardAction#postProcessWizard(org.eclipse.jface.wizard.IWizard)
|
||||||
*/
|
*/
|
||||||
protected void postProcessWizard(IWizard wizard) {
|
protected void postProcessWizard(IWizard wizard) {
|
||||||
|
if (wizard instanceof RSEMainNewConnectionWizard) wizard = ((RSEMainNewConnectionWizard)wizard).getSelectedWizard();
|
||||||
if (wizard instanceof RSEDefaultNewConnectionWizard) {
|
if (wizard instanceof RSEDefaultNewConnectionWizard) {
|
||||||
setValue(((RSEDefaultNewConnectionWizard)wizard).getCreatedHost());
|
setValue(((RSEDefaultNewConnectionWizard)wizard).getCreatedHost());
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,6 @@
|
||||||
* Martin Oberhuber (Wind River) - [184095] Replace systemTypeName by IRSESystemType
|
* Martin Oberhuber (Wind River) - [184095] Replace systemTypeName by IRSESystemType
|
||||||
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
* Martin Oberhuber (Wind River) - [186773] split ISystemRegistryUI from ISystemRegistry
|
||||||
* Martin Oberhuber (Wind River) - [175680] Deprecate obsolete ISystemRegistry methods
|
* Martin Oberhuber (Wind River) - [175680] Deprecate obsolete ISystemRegistry methods
|
||||||
* Rupen Mardirossian (IBM) - [189426] modify addOurButtonSelectionListener to return proper IHost added to populate ComboBox
|
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.ui.widgets;
|
package org.eclipse.rse.ui.widgets;
|
||||||
|
@ -984,15 +983,9 @@ public class SystemHostCombo extends Composite implements ISelectionProvider,
|
||||||
public void widgetSelected(SelectionEvent event)
|
public void widgetSelected(SelectionEvent event)
|
||||||
{
|
{
|
||||||
setBusyCursor(true);
|
setBusyCursor(true);
|
||||||
IHost[] hostlist = RSECorePlugin.getTheSystemRegistry().getHosts();
|
newConnectionAction.run();
|
||||||
newConnectionAction.run();
|
|
||||||
setBusyCursor(false);
|
setBusyCursor(false);
|
||||||
IHost[] hostlist2 = RSECorePlugin.getTheSystemRegistry().getHosts();
|
IHost newConnection = (IHost)newConnectionAction.getValue();
|
||||||
IHost newConnection=null;
|
|
||||||
if(hostlist2.length>hostlist.length)
|
|
||||||
{
|
|
||||||
newConnection = hostlist2[hostlist2.length-1];
|
|
||||||
}
|
|
||||||
//System.out.println("newConnection == " + newConnection);
|
//System.out.println("newConnection == " + newConnection);
|
||||||
if (newConnection != null )
|
if (newConnection != null )
|
||||||
{
|
{
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
* Uwe Stieber (Wind River) - Reworked new connection wizard extension point.
|
* Uwe Stieber (Wind River) - Reworked new connection wizard extension point.
|
||||||
* Martin Oberhuber (Wind River) - [175262] IHost.getSystemType() should return IRSESystemType
|
* Martin Oberhuber (Wind River) - [175262] IHost.getSystemType() should return IRSESystemType
|
||||||
* Martin Oberhuber (Wind River) - [177523] Unify singleton getter methods
|
* Martin Oberhuber (Wind River) - [177523] Unify singleton getter methods
|
||||||
|
* Uwe Stieber (Wind River) - [189426] System File/Folder Dialogs - New Connection Not Added to Drop Down
|
||||||
********************************************************************************/
|
********************************************************************************/
|
||||||
|
|
||||||
package org.eclipse.rse.ui.wizards.newconnection;
|
package org.eclipse.rse.ui.wizards.newconnection;
|
||||||
|
@ -86,6 +87,7 @@ public class RSEMainNewConnectionWizard extends Wizard implements INewWizard, IS
|
||||||
setDialogSettings(settings.getSection(sectionName));
|
setDialogSettings(settings.getSection(sectionName));
|
||||||
|
|
||||||
selectedContext = null;
|
selectedContext = null;
|
||||||
|
selectedWizard = null;
|
||||||
mainPage = new RSENewConnectionWizardSelectionPage();
|
mainPage = new RSENewConnectionWizardSelectionPage();
|
||||||
initializedWizards.clear();
|
initializedWizards.clear();
|
||||||
selectionChangedListener.clear();
|
selectionChangedListener.clear();
|
||||||
|
@ -98,7 +100,6 @@ public class RSEMainNewConnectionWizard extends Wizard implements INewWizard, IS
|
||||||
super.dispose();
|
super.dispose();
|
||||||
|
|
||||||
selectedContext = null;
|
selectedContext = null;
|
||||||
selectedWizard = null;
|
|
||||||
selectedSystemType = null;
|
selectedSystemType = null;
|
||||||
selectedWizardCanFinishEarly = false;
|
selectedWizardCanFinishEarly = false;
|
||||||
mainPage = null;
|
mainPage = null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue