[jbosstools-commits] JBoss Tools SVN: r43477 - in workspace/akazakov/db/org.jboss.tools.cdi.db: META-INF and 6 other directories.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Thu Sep 6 15:33:53 EDT 2012


Author: akazakov
Date: 2012-09-06 15:33:52 -0400 (Thu, 06 Sep 2012)
New Revision: 43477

Added:
   workspace/akazakov/db/org.jboss.tools.cdi.db/.classpath
   workspace/akazakov/db/org.jboss.tools.cdi.db/.project
   workspace/akazakov/db/org.jboss.tools.cdi.db/META-INF/
   workspace/akazakov/db/org.jboss.tools.cdi.db/META-INF/MANIFEST.MF
   workspace/akazakov/db/org.jboss.tools.cdi.db/build.properties
   workspace/akazakov/db/org.jboss.tools.cdi.db/src/
   workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/
   workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/
   workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/
   workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/cdi/
   workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/cdi/db/
   workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/cdi/db/CDIDbPlugin.java
   workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/cdi/db/DBCDIProject.java
Log:
Share project "org.jboss.tools.cdi.db" into "https://svn.jboss.org/repos/jbosstools"
https://issues.jboss.org/browse/JBIDE-12446

Added: workspace/akazakov/db/org.jboss.tools.cdi.db/.classpath
===================================================================
--- workspace/akazakov/db/org.jboss.tools.cdi.db/.classpath	                        (rev 0)
+++ workspace/akazakov/db/org.jboss.tools.cdi.db/.classpath	2012-09-06 19:33:52 UTC (rev 43477)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+	<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+	<classpathentry kind="src" path="src"/>
+	<classpathentry kind="output" path="bin"/>
+</classpath>


Property changes on: workspace/akazakov/db/org.jboss.tools.cdi.db/.classpath
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: workspace/akazakov/db/org.jboss.tools.cdi.db/.project
===================================================================
--- workspace/akazakov/db/org.jboss.tools.cdi.db/.project	                        (rev 0)
+++ workspace/akazakov/db/org.jboss.tools.cdi.db/.project	2012-09-06 19:33:52 UTC (rev 43477)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.jboss.tools.cdi.db</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.ManifestBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+		<buildCommand>
+			<name>org.eclipse.pde.SchemaBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.pde.PluginNature</nature>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>


Property changes on: workspace/akazakov/db/org.jboss.tools.cdi.db/.project
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: workspace/akazakov/db/org.jboss.tools.cdi.db/META-INF/MANIFEST.MF
===================================================================
--- workspace/akazakov/db/org.jboss.tools.cdi.db/META-INF/MANIFEST.MF	                        (rev 0)
+++ workspace/akazakov/db/org.jboss.tools.cdi.db/META-INF/MANIFEST.MF	2012-09-06 19:33:52 UTC (rev 43477)
@@ -0,0 +1,12 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Db
+Bundle-SymbolicName: org.jboss.tools.cdi.db;singleton:=true
+Bundle-Version: 1.4.0.qualifier
+Bundle-Activator: org.jboss.tools.cdi.db.CDIDbPlugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.jboss.tools.common.db,
+ org.jboss.tools.cdi.core
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6


Property changes on: workspace/akazakov/db/org.jboss.tools.cdi.db/META-INF/MANIFEST.MF
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: workspace/akazakov/db/org.jboss.tools.cdi.db/build.properties
===================================================================
--- workspace/akazakov/db/org.jboss.tools.cdi.db/build.properties	                        (rev 0)
+++ workspace/akazakov/db/org.jboss.tools.cdi.db/build.properties	2012-09-06 19:33:52 UTC (rev 43477)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+               .


Property changes on: workspace/akazakov/db/org.jboss.tools.cdi.db/build.properties
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/cdi/db/CDIDbPlugin.java
===================================================================
--- workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/cdi/db/CDIDbPlugin.java	                        (rev 0)
+++ workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/cdi/db/CDIDbPlugin.java	2012-09-06 19:33:52 UTC (rev 43477)
@@ -0,0 +1,49 @@
+package org.jboss.tools.cdi.db;
+
+import org.jboss.tools.common.log.BaseUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class CDIDbPlugin extends BaseUIPlugin {
+
+	// The plug-in ID
+	public static final String PLUGIN_ID = "org.jboss.tools.cdi.db"; //$NON-NLS-1$
+
+	// The shared instance
+	private static CDIDbPlugin plugin;
+	
+	/**
+	 * The constructor
+	 */
+	public CDIDbPlugin() {
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+	 */
+	public void start(BundleContext context) throws Exception {
+		super.start(context);
+		plugin = this;
+	}
+
+	/*
+	 * (non-Javadoc)
+	 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+	 */
+	public void stop(BundleContext context) throws Exception {
+		plugin = null;
+		super.stop(context);
+	}
+
+	/**
+	 * Returns the shared instance
+	 *
+	 * @return the shared instance
+	 */
+	public static CDIDbPlugin getDefault() {
+		return plugin;
+	}
+}
\ No newline at end of file


Property changes on: workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/cdi/db/CDIDbPlugin.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain

Added: workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/cdi/db/DBCDIProject.java
===================================================================
--- workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/cdi/db/DBCDIProject.java	                        (rev 0)
+++ workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/cdi/db/DBCDIProject.java	2012-09-06 19:33:52 UTC (rev 43477)
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2012 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
+ *
+ * Contributors:
+ *     Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.cdi.db;
+
+import java.util.Collection;
+
+import org.jboss.tools.cdi.core.IBean;
+import org.jboss.tools.cdi.core.IInjectionPoint;
+import org.jboss.tools.cdi.internal.core.impl.CDIProject;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class DBCDIProject extends CDIProject {
+
+	/* (non-Javadoc)
+	 * @see org.jboss.tools.cdi.internal.core.impl.CDIProject#getBeans(boolean, org.jboss.tools.cdi.core.IInjectionPoint)
+	 */
+	@Override
+	public Collection<IBean> getBeans(
+			boolean attemptToResolveAmbiguousDependency,
+			IInjectionPoint injectionPoint) {
+		return super.getBeans(attemptToResolveAmbiguousDependency, injectionPoint);
+	}
+}
\ No newline at end of file


Property changes on: workspace/akazakov/db/org.jboss.tools.cdi.db/src/org/jboss/tools/cdi/db/DBCDIProject.java
___________________________________________________________________
Added: svn:mime-type
   + text/plain



More information about the jbosstools-commits mailing list