# This patch file was generated by NetBeans IDE # Following Index: paths are relative to: C:\cygwinhome\netbeans_dev\websvc\customization # This patch can be applied using context Tools: Patch action on respective folder. # It uses platform neutral UTF-8 encoding and \n newlines. # Above lines and this line are ignored by the patching process. Index: src/org/netbeans/modules/websvc/customization/core/ui/CustomizationWSEditor.java *** C:\cygwinhome\netbeans_dev\websvc\customization\src\org\netbeans\modules\websvc\customization\core\ui\CustomizationWSEditor.java Base (1.1.2.22.2.1) --- C:\cygwinhome\netbeans_dev\websvc\customization\src\org\netbeans\modules\websvc\customization\core\ui\CustomizationWSEditor.java Locally Modified (Based On 1.1.2.22.2.1) *************** *** 174,183 **** } } ! private void populateAllModels(WSDLModel wsdlModel) throws Exception{ ModelSource ms = wsdlModel.getModelSource(); ! FileObject fo = (FileObject)ms.getLookup().lookup(FileObject.class); ! DataObject dobj = DataObject.find(fo); Definitions definitions = wsdlModel.getDefinitions(); if(definitions.getImports().size() == 0){ wsdlModels.put(wsdlModel, Boolean.valueOf(dobj.isModified())); --- 174,203 ---- } } ! private DataObject getDataObjectOfModel(WSDLModel wsdlModel){ ModelSource ms = wsdlModel.getModelSource(); ! return (DataObject)ms.getLookup().lookup(DataObject.class); ! } ! ! private boolean modelExists(final WSDLModel wsdlModel){ ! if(wsdlModels.size() == 0) return false; ! DataObject modelDobj = getDataObjectOfModel(wsdlModel); ! if(!modelDobj.isValid()) return true; ! Set wsdls = wsdlModels.keySet(); ! for(WSDLModel wsdl : wsdls){ ! DataObject dobj = getDataObjectOfModel(wsdl); ! if(!dobj.isValid()) continue; ! if(modelDobj.equals(dobj)){ ! return true; ! } ! } ! return false; ! } ! ! private void populateAllModels(WSDLModel wsdlModel)throws Exception{ ! if(modelExists(wsdlModel)) return; ! DataObject dobj = getDataObjectOfModel(wsdlModel); ! if(!dobj.isValid()) return; Definitions definitions = wsdlModel.getDefinitions(); if(definitions.getImports().size() == 0){ wsdlModels.put(wsdlModel, Boolean.valueOf(dobj.isModified()));