Ignore:
Timestamp:
Jun 20, 2010, 10:25:18 PM (11 years ago)
Author:
kopal
Message:

some bug fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/WorkspaceManager/Model/PluginModel.cs

    r1680 r1681  
    3636    [Serializable]
    3737    public class PluginModel : VisualElementModel
    38     {       
     38    {
     39        #region privates
    3940        [NonSerialized]
    40         private IPlugin plugin;
    41        
    42         /// <summary>
    43         /// This is the current index of the image which should be shown
    44         /// on the plugins view
    45         /// </summary>
     41        private PluginProtocol pluginProtocol;
     42        [NonSerialized]
     43        private IPlugin plugin;         
    4644        private int imageIndex = 0;
    47        
     45
     46        #endregion privates
     47
    4848        /// <summary>
    4949        /// All ingoing connectors of this PluginModel
     
    114114        /// <summary>
    115115        /// Generates all Connectors of this Plugin.
    116         /// Warning: Before generation all "old" Connectors will be deleted
    117116        /// </summary>
    118117        public void generateConnectors()
     
    235234        }
    236235
    237 
    238236        /// <summary>
    239237        /// Checks wether this PluginModel is executable or not and sets the isExecutable bool
     
    251249            foreach (ConnectorModel connectorModel in this.InputConnectors)
    252250            {
    253                 if (connectorModel.IsMandatory && !connectorModel.HasData)
     251                if ((connectorModel.IsMandatory || connectorModel.InputConnection != null) && !connectorModel.HasData)
    254252                {
    255253                    return;
     
    261259            }
    262260
    263             if (AtLeastOneInputSet || this.InputConnectors.Count == 0)
     261            if (AtLeastOneInputSet)
    264262            {
    265263                MessageExecution msg = new MessageExecution();
     
    319317        /// The pluginProtocol of the current ExecutionEngine run to set/get
    320318        /// </summary>
    321         public PluginProtocol PluginProtocol { get; set; }
     319        public PluginProtocol PluginProtocol {
     320            get { return pluginProtocol; }
     321            set { pluginProtocol = value;}
     322        }
    322323    }
    323324}
Note: See TracChangeset for help on using the changeset viewer.