Example #1
0
 internal ActionFactory(String displayName, Type actionType, ICentipedeCore core)
     : base(displayName)
 {
     _actionType = actionType;
     _core       = core;
     ImageKey    = @"Generic";
 }
Example #2
0
 public SubJobAction(IDictionary <string, object> variables, ICentipedeCore c)
     : base("Run Sub-job", variables, c)
 {
     if (GetCurrentCore().Job.Actions.OfType <SubJobEntry>().Any())
     {
         throw new ApplicationException("Cannot nest subjobs more than one layer deep");
     }
 }
Example #3
0
 protected UIAction(string name, string verb, ICentipedeCore core)
     : base(name, core)
 {
     if (!String.IsNullOrEmpty(verb))
     {
         this.Prompt = String.Format("Please {0} the following values", verb);
     }
 }
Example #4
0
        public ActionFactory(ActionCategoryAttribute catAttribute, Type pluginType, ICentipedeCore core)
        {
            string displayName = !String.IsNullOrEmpty(catAttribute.DisplayName)
                                     ? catAttribute.DisplayName
                                     : pluginType.Name;

            Text        = displayName;
            ToolTipText = catAttribute.Usage;
            _actionType = pluginType;
            _core       = core;
            ImageKey    = @"Generic";
        }
Example #5
0
        public static List <IAction> FromClipboard(ICentipedeCore core)
        {
            var data = (string)Clipboard.GetData(DataFormats.Text);
            var doc  = new XmlDocument();

            doc.LoadXml(data);
            var clipBoardElement = doc.GetFirstElementByName(ElementName);

            if (clipBoardElement == null)
            {
                throw new ApplicationException();
            }
            return(clipBoardElement.ChildNodes.OfType <XmlElement>()
                   .Select(element => (IAction)Action.FromXml(element, core))
                   .ToList());
        }
Example #6
0
        private void PopulateComboBox()
        {
            ICentipedeCore core = ThisAction.GetCurrentCore();

            lock (core.Job)
            {
                var actionIter = from Action a in core.Job.Actions
                                 where a != ThisAction
                                 select new
                {
                    Text = String.Format("{0}: {1}",
                                         a.Name, a.Comment),
                    Action = a
                };
                _actionCombo.DataSource = actionIter.ToList();
            }
        }
Example #7
0
 public PythonAction(IDictionary <string, object> variables, ICentipedeCore c)
     : base("Python Action", variables, c)
 {
     _source = "";
 }
Example #8
0
 public Import(IDictionary <string, object> variables, ICentipedeCore core)
     : base("Import module", variables, core)
 {
 }
Example #9
0
 public DeleteSwItem(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Delete Item", v, c)
 {
 }
Example #10
0
 public SubJobExitPoint(IDictionary <string, object> variables, ICentipedeCore core)
     : base("SubJob Exit", variables, core)
 {
 }
Example #11
0
 protected SubJobEntryExitPoint(string name,
                                IDictionary <string, object> variables,
                                ICentipedeCore core)
     : base(name, variables, core)
 {
 }
Example #12
0
 public GetXmlNodeAsString(IDictionary <string, object> v, ICentipedeCore c)
     : base("Get Xpath Node as String", v, c)
 {
 }
Example #13
0
 public OpenXmlFile(IDictionary <string, object> variables, ICentipedeCore c)
     : base("Open XML File", variables, c)
 {
 }
Example #14
0
 public Quit(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Quit", v, c)
 {
 }
Example #15
0
 public SwCloseAll(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Close All", v, c)
 {
 }
Example #16
0
 public CloseActiveSwDoc(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Close Active Document", v, c)
 {
 }
Example #17
0
 public SolidWorksSaveAs(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Save As", v, c)
 {
 }
Example #18
0
 public DeleteInactiveSwComponents(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Delete Inactive Components", v, c)
 {
 }
Example #19
0
 public DeleteInactiveSwConfigurations(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Delete Inactive Configurations", v, c)
 {
 }
Example #20
0
 protected XmlAction(String name, IDictionary <string, object> variables, ICentipedeCore c)
     : base(name, variables, c)
 {
 }
Example #21
0
 public CountMatchingXPathNodes(IDictionary <string, object> v, ICentipedeCore c)
     : base("Count Matching nodes", v, c)
 {
 }
Example #22
0
 public OpenSolidWorksFile(IDictionary <string, object> v, ICentipedeCore c)
     : base("Open SolidWorks File", v, c)
 {
 }
Example #23
0
 public GetXPathNodeAsNumber(IDictionary <string, object> v, ICentipedeCore c)
     : base("Get Xpath Node as Number", v, c)
 {
 }
Example #24
0
 public RebuildSolidWorks(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Rebuild", v, c)
 {
 }
Example #25
0
 public SetSwDimension(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Set Dimension", v, c)
 {
 }
Example #26
0
 public GetFileNameAction(ICentipedeCore c)
     : base("Ask for Input (File Browser)", c)
 {
     this.Title  = "Choose File";
     this.Prompt = "";
 }
Example #27
0
 public SubJobEntry(IDictionary <string, object> variables, ICentipedeCore core)
     : base("SubJob Entry", variables, core)
 {
 }
Example #28
0
 public TestDeserialize(IDictionary <string, object> variables, ICentipedeCore core)
     : base("Test Deserialize", variables, core)
 {
 }
Example #29
0
 /// <summary>
 /// create a new Branch action
 /// </summary>
 /// <param name="variables"></param>
 /// <param name="c"></param>
 public BranchAction(IDictionary <string, object> variables, ICentipedeCore c)
     : base(Resources.BranchAction_BranchAction_Branch, variables, c)
 {
 }
Example #30
0
 public SetSwSuppressionState(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Set Suppression State", v, c)
 {
 }