Author: dazarov
Date: 2008-05-26 11:39:50 -0400 (Mon, 26 May 2008)
New Revision: 8325
Added:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/.classpath
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/.cvsignore
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/.options.template
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/.project
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/about.html
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/bin/
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/build.properties
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/plugin.properties
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/plugin.xml
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/SeamUIPagesMessages.java
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/SeamUiPagesPlugin.java
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/messages.properties
Log:
http://jira.jboss.com/jira/browse/JBIDE-1189
Added: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/.classpath
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/.classpath
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/.classpath 2008-05-26 15:39:50 UTC
(rev 8325)
@@ -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/seam/plugins/org.jboss.tools.seam.ui.pages/.cvsignore
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/.cvsignore
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/.cvsignore 2008-05-26 15:39:50 UTC
(rev 8325)
@@ -0,0 +1,2 @@
+bin
+yguard.log
Added: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/.options.template
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/.options.template
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/.options.template 2008-05-26 15:39:50
UTC (rev 8325)
@@ -0,0 +1 @@
+org.jboss.tools.jsf.ui/debug=false
\ No newline at end of file
Added: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/.project
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/.project (rev
0)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/.project 2008-05-26 15:39:50 UTC (rev
8325)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.seam.ui.pages</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/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/META-INF/MANIFEST.MF 2008-05-26
15:39:50 UTC (rev 8325)
@@ -0,0 +1,35 @@
+Manifest-Version: 1.0
+Eclipse-LazyStart: true
+Bundle-Name: %pluginName
+Bundle-ClassPath: seam-ui-pages.jar
+Bundle-Activator: org.jboss.tools.seam.ui.pages.SeamUiPagesPlugin
+Bundle-Vendor: %providerName
+Provide-Package: org.jboss.tools.seam.ui.pages
+Bundle-SymbolicName: org.jboss.tools.seam.ui.pages;singleton:=true
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.jface.text,
+ org.eclipse.jdt.ui,
+ org.eclipse.wst.sse.ui,
+ org.eclipse.wst.xml.core,
+ org.eclipse.wst.xml.ui,
+ org.eclipse.wst.common.frameworks.ui,
+ org.eclipse.wst.common.ui,
+ org.eclipse.compare,
+ org.eclipse.core.resources,
+ org.eclipse.core.runtime,
+ org.eclipse.jface,
+ org.eclipse.ui,
+ org.eclipse.draw2d,
+ org.eclipse.gef,
+ org.eclipse.ui.ide,
+ org.eclipse.ui.workbench.texteditor,
+ org.eclipse.core.expressions,
+ org.eclipse.ui.views,
+ org.jboss.tools.common.model,
+ org.jboss.tools.common.model.ui,
+ org.jboss.tools.common.text.xml,
+ org.jboss.tools.jst.web,
+ org.jboss.tools.jst.web.ui,
+ org.jboss.tools.seam.xml
+Bundle-Version: 2.0.0
+
Added: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/about.html
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/about.html
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/about.html 2008-05-26 15:39:50 UTC
(rev 8325)
@@ -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/seam/plugins/org.jboss.tools.seam.ui.pages/build.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/build.properties
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/build.properties 2008-05-26 15:39:50
UTC (rev 8325)
@@ -0,0 +1,17 @@
+bin.includes = plugin.xml,\
+ *.jar,\
+ plugin.properties,\
+ images/,\
+ META-INF/,\
+ about.html
+source.seam-xml-ui.jar = src/,\
+ resources/
+jars.compile.order = seam-xml-ui.jar
+src.includes = resources/,\
+ src/,\
+ plugin.xml,\
+ plugin.properties,\
+ images/,\
+ build.properties,\
+ about.html,\
+ META-INF/
Added: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/plugin.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/plugin.properties
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/plugin.properties 2008-05-26 15:39:50
UTC (rev 8325)
@@ -0,0 +1,2 @@
+providerName=Red Hat, Inc.
+pluginName=Seam XML
\ No newline at end of file
Added: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/plugin.xml
(rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/plugin.xml 2008-05-26 15:39:50 UTC
(rev 8325)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.0"?>
+<plugin>
+
+
+
+</plugin>
Added:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/SeamUIPagesMessages.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/SeamUIPagesMessages.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/SeamUIPagesMessages.java 2008-05-26
15:39:50 UTC (rev 8325)
@@ -0,0 +1,22 @@
+package org.jboss.tools.seam.ui.pages;
+
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class SeamUIPagesMessages {
+ private static final String BUNDLE_NAME =
"org.jboss.tools.seam.ui.pages.messages"; //$NON-NLS-1$
+
+ private static final ResourceBundle RESOURCE_BUNDLE = ResourceBundle
+ .getBundle(BUNDLE_NAME);
+
+ private SeamUIPagesMessages() {
+ }
+
+ public static String getString(String key) {
+ try {
+ return RESOURCE_BUNDLE.getString(key);
+ } catch (MissingResourceException e) {
+ return '!' + key + '!';
+ }
+ }
+}
Added:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/SeamUiPagesPlugin.java
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/SeamUiPagesPlugin.java
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/SeamUiPagesPlugin.java 2008-05-26
15:39:50 UTC (rev 8325)
@@ -0,0 +1,58 @@
+/*******************************************************************************
+ * 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.seam.ui.pages;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+public class SeamUiPagesPlugin extends AbstractUIPlugin {
+ public static String PLUGIN_ID = "org.jboss.tools.seam.xml.ui"; //$NON-NLS-1$
+ static SeamUiPagesPlugin INSTANCE = null;
+
+ public SeamUiPagesPlugin() {
+ INSTANCE = this;
+ }
+
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ }
+
+ public static SeamUiPagesPlugin getDefault() {
+ return INSTANCE;
+ }
+
+ public static boolean isDebugEnabled() {
+ return INSTANCE.isDebugging();
+ }
+
+ public static void log(String msg) {
+ if(isDebugEnabled()) INSTANCE.getLog().log(new Status(Status.INFO, PLUGIN_ID,
Status.OK, msg, null));
+ }
+
+ public static void log(IStatus status) {
+ if(isDebugEnabled() || !status.isOK()) INSTANCE.getLog().log(status);
+ }
+
+ public static void log(String message, Throwable exception) {
+ INSTANCE.getLog().log(new Status(Status.ERROR, PLUGIN_ID, Status.OK, message,
exception));
+ }
+
+ public static void log(Throwable ex) {
+ INSTANCE.getLog().log(new Status(Status.ERROR, PLUGIN_ID, Status.OK,
SeamUIPagesMessages.getString("SEAM_XML_UI_PLUGIN_NO_MESSAGES"), ex));
//$NON-NLS-1$
+ }
+
+ public static Shell getShell() {
+ return INSTANCE.getWorkbench().getActiveWorkbenchWindow().getShell();
+ }
+}
Added:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/messages.properties
===================================================================
---
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/messages.properties
(rev 0)
+++
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/messages.properties 2008-05-26
15:39:50 UTC (rev 8325)
@@ -0,0 +1,2 @@
+SEAM_PAGES_EDITOR_SOURCE_TAB=Source
+SEAM_PAGES_EDITOR_DIAGRAM_TAB=Graphical