コード例 #1
0
        private static bool onTggSchemaPackageDoubleClicked(SQLRepository sqlRepository, EA.Package doubleClickedPackage)
        {
            NewTGGProjectDialog tggDialog = new NewTGGProjectDialog(sqlRepository, sqlRepository.GetPackageByID(doubleClickedPackage.PackageID));

            tggDialog.ShowDialog();
            return(true);
        }
コード例 #2
0
 public override void doRuleQuickFix(SQLPackage eaPackage, SQLWrapperClasses.SQLRepository repository, int i, String errorMessage)
 {
     if (i == 0)
     {
         NewTGGProjectDialog dialog = new NewTGGProjectDialog(repository, eaPackage);
         dialog.ShowDialog();
     }
 }
コード例 #3
0
        public void EA_OnPostNewDiagram(EA.Repository Repository, EA.EventProperties Info)
        {
            int           diagramID = int.Parse(Info.Get(0).Value.ToString());
            SQLRepository sqlRep    = new SQLRepository(Repository, false);

            EA.Diagram diagram         = Repository.GetDiagramByID(diagramID);
            String     diagramMetatype = diagram.MetaType;

            if (TGGModelingMain.TggSchemaDiagramMetatype.Contains(diagram.MetaType))
            {
                SQLPackage newTGGProject = sqlRep.GetPackageByID(diagram.PackageID);
                if (EAUtil.packageIsModel(newTGGProject, sqlRep) && newTGGProject.Diagrams.Count == 1 && newTGGProject.getRealPackage().StereotypeEx == "")
                {
                    NewTGGProjectDialog tggDialog = new NewTGGProjectDialog(sqlRep, newTGGProject);
                    tggDialog.ShowDialog();
                }
            }
        }