Author: dgeraskov
Date: 2011-11-11 07:44:54 -0500 (Fri, 11 Nov 2011)
New Revision: 36299
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ext/IArtifactCollector.java
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ext/IExporter.java
Modified:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ext/ConsoleExtension.java
Log:
Move exporters call to extenders plugins
Modified:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ext/ConsoleExtension.java
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ext/ConsoleExtension.java 2011-11-11
12:44:47 UTC (rev 36298)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ext/ConsoleExtension.java 2011-11-11
12:44:54 UTC (rev 36299)
@@ -10,6 +10,10 @@
******************************************************************************/
package org.hibernate.eclipse.console.ext;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.debug.core.ILaunch;
+import org.eclipse.debug.core.ILaunchConfiguration;
import org.hibernate.console.ext.HibernateExtension;
/**
@@ -22,7 +26,7 @@
public void setHibernateException(HibernateExtension hibernateExtension);
- /*public void launchExporters(ILaunchConfiguration configuration, String mode,
- ILaunch launch, IProgressMonitor monitor) throws CoreException;*/
+ public void launchExporters(ILaunchConfiguration configuration, String mode,
+ ILaunch launch, IProgressMonitor monitor) throws CoreException;
}
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ext/IArtifactCollector.java
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ext/IArtifactCollector.java
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ext/IArtifactCollector.java 2011-11-11
12:44:54 UTC (rev 36299)
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.hibernate.eclipse.console.ext;
+
+import java.io.File;
+import java.util.Set;
+
+/**
+ * @author Dmitry Geraskov
+ *
+ */
+public interface IArtifactCollector {
+
+ public File[] getFiles(String type);
+
+ public Set getFileTypes();
+
+}
Added:
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ext/IExporter.java
===================================================================
---
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ext/IExporter.java
(rev 0)
+++
branches/dead/hibernatetools-multiversion2/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ext/IExporter.java 2011-11-11
12:44:54 UTC (rev 36299)
@@ -0,0 +1,62 @@
+/*******************************************************************************
+ * Copyright (c) 2011 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.hibernate.eclipse.console.ext;
+
+import java.io.File;
+import java.util.Properties;
+
+/**
+ * @author Dmitry Geraskov
+ *
+ */
+public interface IExporter {
+
+
+ /**
+ * @param file basedirectory to be used for generated files.
+ */
+ public void setOutputDirectory(File file);
+
+ public File getOutputDirectory();
+
+ /**
+ * @param templatePath array of directories used sequentially to lookup templates
+ */
+ public void setTemplatePath(String[] templatePath);
+
+ public String[] getTemplatePath();
+
+ /**
+ *
+ * @param properties set of properties to be used by exporter.
+ */
+ public void setProperties(Properties properties);
+
+ public Properties getProperties();
+
+ /**
+ *
+ * @param collector Instance to be consulted when adding a new file.
+ */
+ public void setArtifactCollector(IArtifactCollector collector);
+
+ /**
+ *
+ * @return artifact collector
+ */
+ public IArtifactCollector getArtifactCollector();
+
+ /**
+ * Called when exporter should start generating its output
+ */
+ public void start();
+
+}