Exemplo n.º 1
0
        // 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);
        }
Exemplo n.º 2
0
        // 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);
        }