This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Reproduce in build070207. Steps to reproduce: - create "XSLModule" project; - create Xsl Service; - invoke context menu for .xsl file. Missing 'XSL Transformation' in XSL Module in context menu.
No easy way to fix this one. Fix rquires either copying of big piece os code from NB xsl editor module or adding implementation dependency for this module.
There were no objections in 48 hours since the waiver was requested. EP551_WAIVER_APPROVED
Removed Beta EP551_WAIVER_APPROVED keyword - we are going forward to FCS.
Perhaps this is because XSLTDataObject is not adding TransformerSupport to its cookie set (why are these lines commented?). I do not see what API is missing so I do not agree with waiver without better justification.
TransformerSupport designed in a way, allowing to use it only with org.netbeans.modules.xml.core.XMLDataObject: public class TransformUtil { [...] public static boolean isXSLTransformation (DataObject dataObject) { return ( dataObject instanceof XSLDataObject ); // return dataObject.getPrimaryFile().getMIMEType().equals (XSLDataObject.MIME_TYPE); } [...] } I played with adding this cookie before 5.5.1 release, but found that once this "XSL Transformation" is invoked for xsl file in our project, file name is placed into "XML Source" field in "XSL Transformation" dialog and this field is disabled, so user cant put a proper xml sile name in it. So, i switched off support for this feature.
Switched to another way to test DataObject to have a XSL content in TransformUtil. Added support for TransformationCookie in XSLDataObject
So we do not need waiver anymore :-) http://xml.netbeans.org/source/browse/xml/xsl/src/org/netbeans/modules/xsl/utils/TransformUtil.java?r1=1.7&r2=1.8 http://enterprise.netbeans.org/source/browse/enterprise/xslt/core/src/org/netbeans/modules/xslt/core/XSLTDataObject.java?r1=1.9&r2=1.10
Verified in build070815.