This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 214228 - [xslt] [launcher] [debugging] XSLT Launching Configurations only look for *.xml extensions
Summary: [xslt] [launcher] [debugging] XSLT Launching Configurations only look for *.x...
Status: RESOLVED FIXED
Alias: None
Product: WTP Source Editing
Classification: WebTools
Component: wst.xsl (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.1   Edit
Assignee: David Carver CLA
QA Contact: David Williams CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-03 09:10 EST by David Carver CLA
Modified: 2009-04-30 14:25 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Carver CLA 2008-01-03 09:10:06 EST
The XSLT launcher configuration only looks for .xml files.   This should look based on Content-Type, and allow for editing that appears either directly or indirectly under the XML Content type.

To reproduce:

1. Create an XSD file.
2. Create a new launch configuration for an XSL debug/launching configuration.
3. Select Workspace for the XML Input.
4. The XSD file that was created is not one of the available options.

Again, we should be going off of Content-Type or not have filtering.  The reason being is that XSLT 2.0 can work with Text files as input without having to have XML files be the drivers.

We should also allow for the input to come from a URI.  As input could be driven off an XQuery database that publishes it is accessible from the web as well.
Comment 1 David Carver CLA 2008-01-20 11:37:21 EST
I'll take a shot at this, for 0.5M5
Comment 2 David Carver CLA 2008-02-02 18:52:52 EST
The issue.  The XSL launch configuration only looked for xml or xhtml for the input files.

The solution.  Use the Platform.getContentTypeManager() to retrieve a contentTypeManager, and then get the content Type file extensions that are under the main org.eclipse.wst.xml.core.xmlsource for the content type.  This correctly allows xml, xhtml, wsdl, xsd, xsl, etc.  Basically any extension that falls under the XML Content type can be used as input for a launch configuration.

Comment 3 David Carver CLA 2008-06-05 09:35:37 EDT
Mass Migration to wtp.inc.xsl
Comment 4 David Carver CLA 2008-12-25 12:45:52 EST
This is only showing XML content types, and not any sub content types.
Comment 5 David Carver CLA 2008-12-25 13:31:43 EST
Somehow it was only looking at the org.eclipse.runtime.core.xml content type, instead of the xmlsource content type.   The later is the one that is needed so that it correctly picks up all sub type extensions.

I've added a unit test so that it tests for this and makes sure that we get at least the xml, xsl, and xslt extensions returned.
Comment 6 David Carver CLA 2009-04-30 14:25:32 EDT
mass update to 3.1 target due to movement from wtp incubator to wtp source editing lost the original milestones.