Ejemplo n.º 1
0
 internal ActionFactory(String displayName, Type actionType, ICentipedeCore core)
     : base(displayName)
 {
     _actionType = actionType;
     _core       = core;
     ImageKey    = @"Generic";
 }
Ejemplo n.º 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");
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 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";
        }
Ejemplo n.º 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());
        }
Ejemplo n.º 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();
            }
        }
Ejemplo n.º 7
0
 public PythonAction(IDictionary <string, object> variables, ICentipedeCore c)
     : base("Python Action", variables, c)
 {
     _source = "";
 }
Ejemplo n.º 8
0
 public Import(IDictionary <string, object> variables, ICentipedeCore core)
     : base("Import module", variables, core)
 {
 }
Ejemplo n.º 9
0
 public DeleteSwItem(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Delete Item", v, c)
 {
 }
Ejemplo n.º 10
0
 public SubJobExitPoint(IDictionary <string, object> variables, ICentipedeCore core)
     : base("SubJob Exit", variables, core)
 {
 }
Ejemplo n.º 11
0
 protected SubJobEntryExitPoint(string name,
                                IDictionary <string, object> variables,
                                ICentipedeCore core)
     : base(name, variables, core)
 {
 }
Ejemplo n.º 12
0
 public GetXmlNodeAsString(IDictionary <string, object> v, ICentipedeCore c)
     : base("Get Xpath Node as String", v, c)
 {
 }
Ejemplo n.º 13
0
 public OpenXmlFile(IDictionary <string, object> variables, ICentipedeCore c)
     : base("Open XML File", variables, c)
 {
 }
Ejemplo n.º 14
0
 public Quit(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Quit", v, c)
 {
 }
Ejemplo n.º 15
0
 public SwCloseAll(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Close All", v, c)
 {
 }
Ejemplo n.º 16
0
 public CloseActiveSwDoc(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Close Active Document", v, c)
 {
 }
Ejemplo n.º 17
0
 public SolidWorksSaveAs(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Save As", v, c)
 {
 }
Ejemplo n.º 18
0
 public DeleteInactiveSwComponents(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Delete Inactive Components", v, c)
 {
 }
Ejemplo n.º 19
0
 public DeleteInactiveSwConfigurations(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Delete Inactive Configurations", v, c)
 {
 }
Ejemplo n.º 20
0
 protected XmlAction(String name, IDictionary <string, object> variables, ICentipedeCore c)
     : base(name, variables, c)
 {
 }
Ejemplo n.º 21
0
 public CountMatchingXPathNodes(IDictionary <string, object> v, ICentipedeCore c)
     : base("Count Matching nodes", v, c)
 {
 }
Ejemplo n.º 22
0
 public OpenSolidWorksFile(IDictionary <string, object> v, ICentipedeCore c)
     : base("Open SolidWorks File", v, c)
 {
 }
Ejemplo n.º 23
0
 public GetXPathNodeAsNumber(IDictionary <string, object> v, ICentipedeCore c)
     : base("Get Xpath Node as Number", v, c)
 {
 }
Ejemplo n.º 24
0
 public RebuildSolidWorks(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Rebuild", v, c)
 {
 }
Ejemplo n.º 25
0
 public SetSwDimension(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Set Dimension", v, c)
 {
 }
Ejemplo n.º 26
0
 public GetFileNameAction(ICentipedeCore c)
     : base("Ask for Input (File Browser)", c)
 {
     this.Title  = "Choose File";
     this.Prompt = "";
 }
Ejemplo n.º 27
0
 public SubJobEntry(IDictionary <string, object> variables, ICentipedeCore core)
     : base("SubJob Entry", variables, core)
 {
 }
Ejemplo n.º 28
0
 public TestDeserialize(IDictionary <string, object> variables, ICentipedeCore core)
     : base("Test Deserialize", variables, core)
 {
 }
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 30
0
 public SetSwSuppressionState(IDictionary <String, Object> v, ICentipedeCore c)
     : base("Set Suppression State", v, c)
 {
 }