Author: mdryakhlenkov
Date: 2007-07-30 11:33:42 -0400 (Mon, 30 Jul 2007)
New Revision: 2717
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/META-INF/MANIFEST.MF
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/ObjectEditorInput.java
Log:
EXIN-369: Saving positions and states (visible/hidden) of diagram elements.
Creating file for saving.
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/META-INF/MANIFEST.MF
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/META-INF/MANIFEST.MF 2007-07-30
13:41:57 UTC (rev 2716)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/META-INF/MANIFEST.MF 2007-07-30
15:33:42 UTC (rev 2717)
@@ -22,5 +22,7 @@
org.eclipse.jface.text,
org.jboss.tools.common,
org.jboss.tools.common.model,
- org.hibernate.eclipse
+ org.hibernate.eclipse,
+ org.hibernate.eclipse.console,
+ org.eclipse.debug.core
Eclipse-LazyStart: true
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/ObjectEditorInput.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/ObjectEditorInput.java 2007-07-30
13:41:57 UTC (rev 2716)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.view/src/org/jboss/tools/hibernate/ui/view/views/ObjectEditorInput.java 2007-07-30
15:33:42 UTC (rev 2717)
@@ -10,24 +10,28 @@
******************************************************************************/
package org.jboss.tools.hibernate.ui.view.views;
+import org.eclipse.jdt.core.IJavaProject;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IPersistableElement;
import org.hibernate.cfg.Configuration;
+import org.hibernate.console.ConsoleConfiguration;
public class ObjectEditorInput implements IEditorInput{
protected Object fObject;
- protected Configuration configuration;
+ protected ConsoleConfiguration configuration;
+ protected IJavaProject javaProject;
public ObjectEditorInput(Object object) {
fObject = object;
}
- public ObjectEditorInput(Configuration configuration, Object object) {
+ public ObjectEditorInput(ConsoleConfiguration configuration, Object object, IJavaProject
proj) {
fObject = object;
this.configuration = configuration;
+ javaProject = proj;
}
public Object getObject() {
@@ -64,8 +68,12 @@
return null;
}
- public Configuration getConfiguration() {
+ public ConsoleConfiguration getConfiguration() {
return configuration;
}
+ public IJavaProject getJavaProject() {
+ return javaProject;
+ }
+
}