[jboss-cvs] jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console ...
Max Rydahl Andersen
mandersen at jboss.com
Fri Nov 17 14:57:32 EST 2006
User: mandersen
Date: 06/11/17 14:57:32
Modified: hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console
HibernateConsoleSaveParticipant.java
Log:
HBX-827 + JBIDE-391 New projects given a console configuration don't persist before the workbench exits (or crashes)
+ dot.executable property in doc exporter
Revision Changes Path
1.7 +7 -5 jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleSaveParticipant.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: HibernateConsoleSaveParticipant.java
===================================================================
RCS file: /cvsroot/jboss/jbosside/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleSaveParticipant.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- HibernateConsoleSaveParticipant.java 25 Aug 2006 11:39:38 -0000 1.6
+++ HibernateConsoleSaveParticipant.java 17 Nov 2006 19:57:32 -0000 1.7
@@ -47,6 +47,8 @@
public void saving(ISaveContext context) throws CoreException {
switch (context.getKind() ) {
case ISaveContext.FULL_SAVE:
+ case ISaveContext.PROJECT_SAVE:
+ case ISaveContext.SNAPSHOT:
// save the plug-in state
int saveNumber = context.getSaveNumber();
String saveFileName = SAVENAME + "-" + Integer.toString(saveNumber);
@@ -60,16 +62,16 @@
context.map(new Path(SAVENAME), new Path(saveFileName) );
context.needSaveNumber();
break;
- case ISaveContext.PROJECT_SAVE:
+ //case ISaveContext.PROJECT_SAVE:
// get the project related to this save operation
- IProject project = context.getProject();
+ //IProject project = context.getProject();
// save its information, if necessary
- break;
- case ISaveContext.SNAPSHOT:
+ //break;
+ //case ISaveContext.SNAPSHOT:
// This operation needs to be really fast because
// snapshots can be requested frequently by the
// workspace.
- break;
+ //break;
}
}
More information about the jboss-cvs-commits
mailing list