Beispiel #1
0
 public ProgectReader(String path)
 {
     utiliti             = UtilitiManager.GetInstance();
     currentProgect      = new Progect();
     currentProgect.path = path;
     currentProgect.name = utiliti.dm.GetDirectoryName(path);
 }
Beispiel #2
0
        public Package CreatePackage(string parentPath, string name)
        {
            Package pkg = new Package();

            pkg.name = name;
            pkg.path = UtilitiManager.GetInstance().ConbinePaths(parentPath, name);
            UtilitiManager.GetInstance().dm.CreateDirectory(pkg.path);
            return(pkg);
        }
Beispiel #3
0
        public Progect CreateProgect(String newName, String newPath)
        {
            Progect newProgect = new Progect();

            newProgect.name = newName;
            newProgect.path = UtilitiManager.GetInstance().ConbinePaths(newPath, newName);
            UtilitiManager.GetInstance().dm.CreateDirectory(newProgect.path);
            return(newProgect);
        }
 public Diagram CreateDiagram(string path)
 {
     if (UtilitiManager.GetInstance().fm.GetFileExtension(path).Equals(".sd"))
     {
         return(new SequenceDiagramDao().ReadDiagram(path));
     }
     else
     {
         throw new UnSuportedOperationException();
     }
 }
        public Diagram CreateDiagram(string path, String name)
        {
            SequenceDiagram sd = new SequenceDiagram();

            path    = UtilitiManager.GetInstance().ConbinePaths(path, name);
            path   += ".sd";
            sd.path = path;
            sd.name = name;
            new SequenceDiagramDao().WriteDiagram(sd);
            return(sd);
        }
 public ClassDiagramCreationStrategi()
 {
     fileSistem = UtilitiManager.GetInstance();
     diagramDao = new ClassDiagramDao();
 }
Beispiel #7
0
        public IdiagramCreationStrategi SelectStrategi(string path)
        {
            string extension = UtilitiManager.GetInstance().fm.GetFileExtension(path);

            return(null);
        }
Beispiel #8
0
 public ClassDiagram()
 {
     fileSistem = UtilitiManager.GetInstance();
 }