Author: mdryakhlenkov
Date: 2007-07-30 11:41:31 -0400 (Mon, 30 Jul 2007)
New Revision: 2719
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/META-INF/MANIFEST.MF
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/VisualEditor.java
Log:
EXIN-369: Saving positions and states (visible/hidden) of diagram elements
Creating file for save.
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/META-INF/MANIFEST.MF
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/META-INF/MANIFEST.MF 2007-07-30
15:40:23 UTC (rev 2718)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/META-INF/MANIFEST.MF 2007-07-30
15:41:31 UTC (rev 2719)
@@ -15,7 +15,8 @@
org.eclipse.core.resources,
org.hibernate.eclipse,
org.jboss.tools.hibernate.ui.view,
- org.jboss.tools.common
+ org.jboss.tools.common,
+ org.eclipse.jdt.core
Bundle-Version: 2.0.0
Export-Package: org.jboss.tools.hibernate.ui.veditor,
org.jboss.tools.hibernate.ui.veditor.editors,
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/VisualEditor.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/VisualEditor.java 2007-07-30
15:40:23 UTC (rev 2718)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/VisualEditor.java 2007-07-30
15:41:31 UTC (rev 2719)
@@ -27,6 +27,7 @@
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.actions.ActionFactory;
import org.hibernate.cfg.Configuration;
+import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.mapping.RootClass;
import org.jboss.tools.hibernate.ui.veditor.editors.model.OrmDiagram;
import org.jboss.tools.hibernate.ui.veditor.editors.parts.OrmEditPartFactory;
@@ -100,9 +101,9 @@
protected void setInput(IEditorInput input) {
super.setInput(input);
ObjectEditorInput objectEditorInput = (ObjectEditorInput)input;
- Configuration configuration = objectEditorInput.getConfiguration();
+ ConsoleConfiguration configuration = objectEditorInput.getConfiguration();
RootClass rootClass = (RootClass)(objectEditorInput).getObject();
setPartName("Diagram for " + rootClass.getEntityName());
- ormDiagram = new OrmDiagram(configuration, rootClass);
+ ormDiagram = new OrmDiagram(configuration, rootClass,
objectEditorInput.getJavaProject());
}
}
Show replies by date