From 36a73519f37b3b842423ff505e575a85b4bc74b0 Mon Sep 17 00:00:00 2001 From: Uwe Stieber Date: Tue, 6 Feb 2007 16:37:59 +0000 Subject: [PATCH] [fix] label and children calculation --- .../SystemNewConnectionPromptObject.java | 96 +++++++++---------- 1 file changed, 43 insertions(+), 53 deletions(-) diff --git a/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/internal/model/SystemNewConnectionPromptObject.java b/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/internal/model/SystemNewConnectionPromptObject.java index cef44303554..3d54703bbf5 100644 --- a/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/internal/model/SystemNewConnectionPromptObject.java +++ b/rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/internal/model/SystemNewConnectionPromptObject.java @@ -115,34 +115,28 @@ public class SystemNewConnectionPromptObject * If this returns null, then SystemViewPromptableAdapter will subsequently * call {@link #run(Shell)}. */ - public ISystemPromptableObject[] getChildren() - { - if (!hasChildren()) - return null; - - - else if (children == null) - { - children = new ISystemPromptableObject[systemTypes.length]; - for (int idx=0; idx 0) { + newConnText = systemTypes[0] + " ..."; //$NON-NLS-1$ + } } + return newConnText; } + /** * Return the type label for this object */ @@ -208,7 +198,7 @@ public class SystemNewConnectionPromptObject /** * Run this prompt. This should return an appropriate ISystemMessageObject to show - * as the child, reflecting if it ran successfully, was cancelled or failed. + * as the child, reflecting if it ran successfully, was cancelled or failed. */ public Object[] run(Shell shell) {