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 35427 Details for
Bug 124392
Service project type defaults cannot be controlled by preferences
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]
apply to org.eclipse.jst.ws.creation.ui
patch124392_o.e.jst.ws.creation.ui.txt (text/plain), 3.47 KB, created by
Rupam Kuehner
on 2006-02-27 14:15:01 EST
(
hide
)
Description:
apply to org.eclipse.jst.ws.creation.ui
Filename:
MIME Type:
Creator:
Rupam Kuehner
Created:
2006-02-27 14:15:01 EST
Size:
3.47 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jst.ws.creation.ui >Index: src/org/eclipse/jst/ws/internal/creation/ui/widgets/runtime/ServerRuntimeSelectionWidgetDefaultingCommand.java >=================================================================== >RCS file: /cvsroot/webtools/jst/components/ws/plugins/org.eclipse.jst.ws.creation.ui/src/org/eclipse/jst/ws/internal/creation/ui/widgets/runtime/ServerRuntimeSelectionWidgetDefaultingCommand.java,v >retrieving revision 1.42 >diff -u -r1.42 ServerRuntimeSelectionWidgetDefaultingCommand.java >--- src/org/eclipse/jst/ws/internal/creation/ui/widgets/runtime/ServerRuntimeSelectionWidgetDefaultingCommand.java 22 Feb 2006 18:28:20 -0000 1.42 >+++ src/org/eclipse/jst/ws/internal/creation/ui/widgets/runtime/ServerRuntimeSelectionWidgetDefaultingCommand.java 27 Feb 2006 19:14:14 -0000 >@@ -11,6 +11,7 @@ > * -------- -------- ----------------------------------------------------------- > * 20060131 121071 rsinha@ca.ibm.com - Rupam Kuehner > * 20060221 119111 rsinha@ca.ibm.com - Rupam Kuehner >+ * 20060227 124392 rsinha@ca.ibm.com - Rupam Kuehner > *******************************************************************************/ > package org.eclipse.jst.ws.internal.creation.ui.widgets.runtime; > >@@ -363,33 +364,28 @@ > { > String[] templates = WebServiceRuntimeExtensionUtils2.getServiceProjectTemplates(serviceIds_.getTypeId(), serviceIds_.getRuntimeId()); > >- //Pick the Web one if it's there, otherwise pick the first one. >- for (int i=0; i<templates.length; i++) >+ //Walk the list of service project types in the project topology preference >+ ProjectTopologyContext ptc= WebServiceConsumptionUIPlugin.getInstance().getProjectTopologyContext(); >+ String[] preferredTemplateIds = ptc.getServiceTypes(); >+ for (int j = 0; j < preferredTemplateIds.length; j++) > { >- String templateId = templates[i]; >- if (templateId.indexOf("web") != -1) >+ for (int i = 0; i < templates.length; i++) > { >- boolean matches = WebServiceRuntimeExtensionUtils2.doesServiceRuntimeSupportTemplate(serviceRuntimeId_, templateId); >- if (matches) >+ String templateId = templates[i]; >+ if (templateId.equals(preferredTemplateIds[j])) > { >- return templates[i]; >- } >- } >- } >- >- //Didn't find a "web" type. Return the first one that is a match. Calculate the facet matcher for the template >- //so that we know what to create and what to add during module creation. >- for (int j = 0; j < templates.length; j++) >- { >- String templateId = templates[j]; >- boolean matches = WebServiceRuntimeExtensionUtils2.doesServiceRuntimeSupportTemplate(serviceRuntimeId_, templateId); >- if (matches) >- { >- return templates[j]; >+ boolean matches = WebServiceRuntimeExtensionUtils2.doesServiceRuntimeSupportTemplate(serviceRuntimeId_, templateId); >+ if (matches) >+ { >+ return templates[i]; >+ } >+ } > } > } > >- //Still nothing, return the first one if available. >+ //Since the preferredTemplateIds contains the union of all project types for all service runtimes, we are >+ //guaranteed to have returned by now, so the code below will never be executed under normal >+ //circumstances. Just return something to satisfy the compiler. > if (templates.length > 0) > return templates[0]; >
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 124392
:
35425
|
35426
| 35427 |
35504