// Let another plugin extend the tree by specifying mapping private FileMapping GetFileMapping(string[] files) { FileMappingRequest request = new FileMappingRequest(files); // Give plugins a chance to respond first if (OnDirectoryNodeMapping != null) { OnDirectoryNodeMapping(this, request); } return(request.Mapping.Count > 0 ? request.Mapping : null); }
// Let another plugin extend the tree by specifying mapping private FileMapping GetFileMapping(string[] files) { // Give plugins a chance to respond first FileMappingRequest request = new FileMappingRequest(files); DataEvent e = new DataEvent(EventType.Command, ProjectManagerEvents.FileMapping, request); EventManager.DispatchEvent(this, e); // No one cares? ok, well we do know one thing: Mxml if (request.Mapping.Count == 0 && Tree.Project is AS3Project && PluginMain.Settings.EnableMxmlMapping) { MxmlFileMapping.AddMxmlMapping(request); } return(request.Mapping); }
// Let another plugin extend the tree by specifying mapping private FileMapping GetFileMapping(string[] files) { FileMappingRequest request = new FileMappingRequest(files); // Give plugins a chance to respond first if (OnDirectoryNodeMapping != null) { OnDirectoryNodeMapping(this, request); } // No one cares? ok, well we do know one thing: Mxml if (request.Mapping.Count == 0 && Tree.Project is AS3Project && PluginMain.Settings.EnableMxmlMapping) { MxmlFileMapping.AddMxmlMapping(request); } return(request.Mapping.Count > 0 ? request.Mapping : null); }