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 221647 Details for
Bug 390692
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.0
file_390692.txt (text/plain), 3.54 KB, created by
Elson Yuen
on 2012-09-28 10:48:40 EDT
(
hide
)
Description:
v1.0
Filename:
MIME Type:
Creator:
Elson Yuen
Created:
2012-09-28 10:48:40 EDT
Size:
3.54 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.wst.server.ui >Index: serverui/org/eclipse/wst/server/ui/internal/wizard/fragment/NewRuntimeWizardFragment.java >=================================================================== >RCS file: /cvsroot/webtools/servertools/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/wizard/fragment/NewRuntimeWizardFragment.java,v >retrieving revision 1.16 >diff -u -r1.16 NewRuntimeWizardFragment.java >--- serverui/org/eclipse/wst/server/ui/internal/wizard/fragment/NewRuntimeWizardFragment.java 17 Sep 2007 13:17:17 -0000 1.16 >+++ serverui/org/eclipse/wst/server/ui/internal/wizard/fragment/NewRuntimeWizardFragment.java 6 Jun 2012 17:52:03 -0000 >@@ -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 >Index: serverui/org/eclipse/wst/server/ui/internal/wizard/page/NewRuntimeComposite.java >=================================================================== >RCS file: /cvsroot/webtools/servertools/plugins/org.eclipse.wst.server.ui/serverui/org/eclipse/wst/server/ui/internal/wizard/page/NewRuntimeComposite.java,v >retrieving revision 1.16 >diff -u -r1.16 NewRuntimeComposite.java >--- serverui/org/eclipse/wst/server/ui/internal/wizard/page/NewRuntimeComposite.java 19 Apr 2011 17:30:40 -0000 1.16 >+++ serverui/org/eclipse/wst/server/ui/internal/wizard/page/NewRuntimeComposite.java 6 Jun 2012 17:52:03 -0000 >@@ -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 390692
: 221647