/[cashew-s-editor]/cashews/src/nongnu/cashews/eclipse/composer/ui/DiagramEditor.java
ViewVC logotype

Diff of /cashews/src/nongnu/cashews/eclipse/composer/ui/DiagramEditor.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by gnu_andrew, Thu Mar 31 17:35:21 2005 UTC revision 1.2 by gnu_andrew, Thu May 5 23:47:59 2005 UTC
# Line 89  public class DiagramEditor extends Graph Line 89  public class DiagramEditor extends Graph
89    
90    private boolean savePreviouslyNeeded;    private boolean savePreviouslyNeeded;
91    
92    private Diagram diagram = new Diagram();    private Diagram diagram;
93    
94    public DiagramEditor()    public DiagramEditor()
95    {    {
96        diagram = new Diagram();
97      // an EditDomain is a "session" of editing which contains things      // an EditDomain is a "session" of editing which contains things
98      // like the CommandStack      // like the CommandStack
99      setEditDomain(new DefaultEditDomain(this));      setEditDomain(new DefaultEditDomain(this));
100        System.out.println("Diagram Editor created");
101    }    }
102    
103    public Diagram getDiagram()    public Diagram getDiagram()
# Line 211  public class DiagramEditor extends Graph Line 213  public class DiagramEditor extends Graph
213      try      try
214        {        {
215          IFile file = ((IFileEditorInput) getEditorInput()).getFile();          IFile file = ((IFileEditorInput) getEditorInput()).getFile();
216            //file.setContents(this.diagram.getAsStream(), true, false, monitor);
217          file.setContents(this.diagram.getAsStream(), true, false, monitor);          file.setContents(this.diagram.getAsStream(), true, false, monitor);
218          getCommandStack().markSaveLocation();          getCommandStack().markSaveLocation();
219        }        }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26