diff options
Diffstat (limited to 'hibernate/org.eclipse.emf.teneo.hibernate.eclipse/src/org/eclipse/emf/teneo/hibernate/eclipse/OpenResource.java')
-rwxr-xr-x | hibernate/org.eclipse.emf.teneo.hibernate.eclipse/src/org/eclipse/emf/teneo/hibernate/eclipse/OpenResource.java | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/hibernate/org.eclipse.emf.teneo.hibernate.eclipse/src/org/eclipse/emf/teneo/hibernate/eclipse/OpenResource.java b/hibernate/org.eclipse.emf.teneo.hibernate.eclipse/src/org/eclipse/emf/teneo/hibernate/eclipse/OpenResource.java new file mode 100755 index 000000000..be6f9c91a --- /dev/null +++ b/hibernate/org.eclipse.emf.teneo.hibernate.eclipse/src/org/eclipse/emf/teneo/hibernate/eclipse/OpenResource.java @@ -0,0 +1,35 @@ +/** + * <copyright> + * + * Copyright (c) 2005, 2006, 2007, 2008 Springsite BV (The Netherlands) and others + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Martin Taal + * </copyright> + * + * $Id: OpenResource.java,v 1.3 2008/02/28 07:07:59 mtaal Exp $ + */ + +package org.eclipse.emf.teneo.hibernate.eclipse; + +import java.util.Properties; + +import org.eclipse.emf.teneo.eclipse.resourcehandler.StoreOpenResource; +import org.eclipse.emf.teneo.hibernate.HbUtil; + +/** + * Performs the open resource action based on the information in the .ehb file + * + * @author <a href="mailto:mtaal@elver.org">Martin Taal</a> + * @version $Revision: 1.3 $ + */ +public class OpenResource extends StoreOpenResource { + /** Ensure that the data store is opened */ + protected void openDataStore(Properties props) { + HbUtil.getCreateDataStore(props); + } +}
\ No newline at end of file |