Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 221806 Details for
Bug 390693
Finish button not disabled when no entries selected
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
v1.1
390693patch.txt (text/plain), 3.00 KB, created by
Elson Yuen
on 2012-10-02 16:29:49 EDT
(
hide
)
Description:
v1.1
Filename:
MIME Type:
Creator:
Elson Yuen
Created:
2012-10-02 16:29:49 EDT
Size:
3.00 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.wst.server.ui >diff --git serverui/org/eclipse/wst/server/ui/internal/wizard/fragment/NewRuntimeWizardFragment.java serverui/org/eclipse/wst/server/ui/internal/wizard/fragment/NewRuntimeWizardFragment.java >index 273d1ed..2aaa32f 100644 >--- serverui/org/eclipse/wst/server/ui/internal/wizard/fragment/NewRuntimeWizardFragment.java >+++ serverui/org/eclipse/wst/server/ui/internal/wizard/fragment/NewRuntimeWizardFragment.java >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2003, 2007 IBM Corporation and others. >+ * Copyright (c) 2003, 2012 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 >@@ -40,6 +40,10 @@ > > protected Map<String, WizardFragment> fragmentMap = new HashMap<String, WizardFragment>(); > >+ // Storing the NewRuntimeComposite is required to determine if the selected item >+ // by the user is a valid server runtime >+ protected NewRuntimeComposite comp; >+ > public NewRuntimeWizardFragment() { > // do nothing > } >@@ -58,7 +62,8 @@ > * @see org.eclipse.wst.server.ui.internal.task.WizardTask#getWizardPage() > */ > public Composite createComposite(Composite parent, IWizardHandle wizard) { >- return new NewRuntimeComposite(parent, wizard, getTaskModel(), type, version, runtimeTypeId); >+ comp = new NewRuntimeComposite(parent, wizard, getTaskModel(), type, version, runtimeTypeId); >+ return comp; > } > > public List getChildFragments() { >@@ -121,4 +126,13 @@ > fragmentMap.put(typeId, fragment); > return fragment; > } >+ >+ public boolean isComplete(){ >+ // If the selected runtime is invalid, the wizard >+ // should not allow the user to press Finish >+ if (comp.hasValidSelectedRuntime()){ >+ return true; >+ } >+ return false; >+ } > } >\ No newline at end of file >diff --git serverui/org/eclipse/wst/server/ui/internal/wizard/page/NewRuntimeComposite.java serverui/org/eclipse/wst/server/ui/internal/wizard/page/NewRuntimeComposite.java >index 5962e97..c8d69d0 100644 >--- serverui/org/eclipse/wst/server/ui/internal/wizard/page/NewRuntimeComposite.java >+++ serverui/org/eclipse/wst/server/ui/internal/wizard/page/NewRuntimeComposite.java >@@ -1,5 +1,5 @@ > /******************************************************************************* >- * Copyright (c) 2003, 2011 IBM Corporation and others. >+ * Copyright (c) 2003, 2012 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 >@@ -202,4 +202,17 @@ > c[i].setVisible(visible); > } > } >+ >+ /** >+ * >+ * Determines if the selected runtime is a >+ * valid. >+ * >+ */ >+ public boolean hasValidSelectedRuntime(){ >+ if (runtime == null){ >+ return false; >+ } >+ return true; >+ } > } >\ No newline at end of file
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 390693
:
221648
| 221806