Author: vyemialyanchyk
Date: 2009-07-06 05:44:08 -0400 (Mon, 06 Jul 2009)
New Revision: 16393
Added:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.classpath
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.cvsignore
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.options
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.project
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.settings/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.settings/org.eclipse.jdt.core.prefs
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-INF/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-INF/MANIFEST.MF
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/about.html
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/build.properties
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/plugin.properties
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/plugin.xml
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/veditor/
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/veditor/ViewPlugin.java
Log:
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.classpath
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.classpath
(rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.classpath 2009-07-06
09:44:08 UTC (rev 16393)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con"
path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con"
path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.cvsignore
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.cvsignore
(rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.cvsignore 2009-07-06
09:44:08 UTC (rev 16393)
@@ -0,0 +1 @@
+bin
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.options
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.options
(rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.options 2009-07-06 09:44:08
UTC (rev 16393)
@@ -0,0 +1,3 @@
+org.jboss.tools.hibernate.view/debug=false
+org.jboss.tools.hibernate.view/debug/view=false
+org.jboss.tools.hibernate.view/debug/view/wizard=false
\ No newline at end of file
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.project
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.project
(rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.project 2009-07-06 09:44:08
UTC (rev 16393)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.hibernate.ui.veditor</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.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ </natures>
+</projectDescription>
Added:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.settings/org.eclipse.jdt.core.prefs
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.settings/org.eclipse.jdt.core.prefs
(rev 0)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/.settings/org.eclipse.jdt.core.prefs 2009-07-06
09:44:08 UTC (rev 16393)
@@ -0,0 +1 @@
+org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=warning
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-INF/MANIFEST.MF
(rev 0)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/META-INF/MANIFEST.MF 2009-07-06
09:44:08 UTC (rev 16393)
@@ -0,0 +1,13 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name.0
+Bundle-SymbolicName: org.jboss.tools.hibernate.ui.veditor;singleton:=true
+Bundle-Version: 2.0.0
+Bundle-ClassPath: view.jar
+Bundle-Activator: org.jboss.tools.hibernate.ui.veditor.ViewPlugin
+Bundle-Vendor: %Bundle-Vendor.0
+Bundle-Localization: plugin
+Export-Package: org.jboss.tools.hibernate.ui.veditor
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime
+Bundle-ActivationPolicy: lazy
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/about.html
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/about.html
(rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/about.html 2009-07-06
09:44:08 UTC (rev 16393)
@@ -0,0 +1,34 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<HTML>
+
+<head>
+<title>About</title>
+<meta http-equiv=Content-Type content="text/html; charset=ISO-8859-1">
+</head>
+
+<BODY lang="EN-US">
+
+<H3>About This Content</H3>
+
+<P>©2007 Red Hat, Inc. All rights reserved</P>
+
+<H3>License</H3>
+
+<P>Red Hat Inc., through its JBoss division, makes available all content in this
plug-in
+("Content"). Unless otherwise indicated below, the Content is provided to you
+under the terms and conditions of the Eclipse Public License Version 1.0
+("EPL"). A copy of the EPL is available at
+<A
href="http://www.eclipse.org/org/documents/epl-v10.php">http...;.
+For purposes of the EPL, "Program" will mean the Content.</P>
+
+<P>If you did not receive this Content directly from Red Hat Inc., the
+Content is being redistributed by another party ("Redistributor") and different
+terms and conditions may apply to your use of any object code in the Content.
+Check the Redistributor's license that was provided with the Content. If no such
+license exists, contact the Redistributor. Unless otherwise indicated below, the
+terms and conditions of the EPL still apply to any source code in the Content
+and such source code may be obtained at
+ <A
href="http://www.jboss.org/tools">http://www.jboss.org/tools...
+
+</BODY>
+</HTML>
\ No newline at end of file
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/build.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/build.properties
(rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/build.properties 2009-07-06
09:44:08 UTC (rev 16393)
@@ -0,0 +1,8 @@
+source.view.jar = src/
+output.view.jar = bin/
+bin.includes = plugin.xml,\
+ META-INF/,\
+ about.html,\
+ view.jar,\
+ images/,\
+ plugin.properties
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/plugin.properties
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/plugin.properties
(rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/plugin.properties 2009-07-06
09:44:08 UTC (rev 16393)
@@ -0,0 +1,10 @@
+actionSets_license.label=ORM Studio License
+actionSets_license.description=ORM Studio License
+actionSets.license.label=&ORM Studio License
+
+popupMenus.action.addOrmNature=Add Hibernate Capabilities...
+popupMenus.action.removeOrmNature=Remove Hibernate Capabilities...
+
+
+Bundle-Vendor.0 = JBoss by Red Hat
+Bundle-Name.0 = Veditor Plug-in
\ No newline at end of file
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/plugin.xml
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/plugin.xml
(rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/plugin.xml 2009-07-06
09:44:08 UTC (rev 16393)
@@ -0,0 +1,3 @@
+<?xml version="1.0" encoding="UTF-8"?><?eclipse
version="3.0"?>
+<plugin>
+</plugin>
Added:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/veditor/ViewPlugin.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/veditor/ViewPlugin.java
(rev 0)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui/src/org/jboss/tools/hibernate/ui/veditor/ViewPlugin.java 2009-07-06
09:44:08 UTC (rev 16393)
@@ -0,0 +1,56 @@
+/*******************************************************************************
+ * Copyright (c) 2007 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.hibernate.ui.veditor;
+
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchWindow;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The main plugin class to be used in the desktop.
+ */
+public class ViewPlugin extends AbstractUIPlugin {
+
+ public static final String ID = "org.jboss.tools.hibernate.ui.veditor";
//$NON-NLS-1$
+
+ private static ViewPlugin plugin;
+
+ public ViewPlugin() {
+ super();
+ setPlugin(this);
+ }
+
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ }
+
+ public void stop(BundleContext context) throws Exception {
+ super.stop(context);
+ setPlugin(null);
+ }
+
+ public static ViewPlugin getDefault() {
+ return plugin;
+ }
+ private static void setPlugin(ViewPlugin plugin) {
+ ViewPlugin.plugin = plugin;
+ }
+
+ public static IWorkbenchPage getPage(){
+ IWorkbench workbench = PlatformUI.getWorkbench();
+ IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
+ return window.getActivePage();
+ }
+
+}
\ No newline at end of file