Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsrinivasan2005-12-03 01:14:37 +0000
committerrsrinivasan2005-12-03 01:14:37 +0000
commit3d909dd05e39cd3cdf1a19d8f9f73c2674b0e61e (patch)
tree7313678bf8187f2cf23dcdf4152964575a5fc442
downloadwebtools.jsf-3d909dd05e39cd3cdf1a19d8f9f73c2674b0e61e.tar.gz
webtools.jsf-3d909dd05e39cd3cdf1a19d8f9f73c2674b0e61e.tar.xz
webtools.jsf-3d909dd05e39cd3cdf1a19d8f9f73c2674b0e61e.zip
Build related changes, Top-level plugin to hold branding related file.
-rw-r--r--assembly/plugins/org.eclipse.jsf.branding/.classpath7
-rw-r--r--assembly/plugins/org.eclipse.jsf.branding/.cvsignore3
-rw-r--r--assembly/plugins/org.eclipse.jsf.branding/.project28
-rw-r--r--assembly/plugins/org.eclipse.jsf.branding/META-INF/MANIFEST.MF11
-rw-r--r--assembly/plugins/org.eclipse.jsf.branding/about.html22
-rw-r--r--assembly/plugins/org.eclipse.jsf.branding/about.ini29
-rw-r--r--assembly/plugins/org.eclipse.jsf.branding/about.mappings6
-rw-r--r--assembly/plugins/org.eclipse.jsf.branding/about.properties24
-rw-r--r--assembly/plugins/org.eclipse.jsf.branding/build.properties21
-rw-r--r--assembly/plugins/org.eclipse.jsf.branding/eclipse32.gifbin0 -> 1706 bytes
-rw-r--r--assembly/plugins/org.eclipse.jsf.branding/eclipse32.pngbin0 -> 4594 bytes
-rw-r--r--assembly/plugins/org.eclipse.jsf.branding/plugin.properties2
-rw-r--r--assembly/plugins/org.eclipse.jsf.branding/src/org/eclipse/jsf/main/MainPlugin.java54
13 files changed, 207 insertions, 0 deletions
diff --git a/assembly/plugins/org.eclipse.jsf.branding/.classpath b/assembly/plugins/org.eclipse.jsf.branding/.classpath
new file mode 100644
index 000000000..751c8f2e5
--- /dev/null
+++ b/assembly/plugins/org.eclipse.jsf.branding/.classpath
@@ -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>
diff --git a/assembly/plugins/org.eclipse.jsf.branding/.cvsignore b/assembly/plugins/org.eclipse.jsf.branding/.cvsignore
new file mode 100644
index 000000000..3bc67e449
--- /dev/null
+++ b/assembly/plugins/org.eclipse.jsf.branding/.cvsignore
@@ -0,0 +1,3 @@
+@dot*
+temp.folder
+build.xml
diff --git a/assembly/plugins/org.eclipse.jsf.branding/.project b/assembly/plugins/org.eclipse.jsf.branding/.project
new file mode 100644
index 000000000..bd5000449
--- /dev/null
+++ b/assembly/plugins/org.eclipse.jsf.branding/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.jsf.branding</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>
diff --git a/assembly/plugins/org.eclipse.jsf.branding/META-INF/MANIFEST.MF b/assembly/plugins/org.eclipse.jsf.branding/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..8dba601e4
--- /dev/null
+++ b/assembly/plugins/org.eclipse.jsf.branding/META-INF/MANIFEST.MF
@@ -0,0 +1,11 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %plugin.Name
+Bundle-SymbolicName: org.eclipse.jsf
+Bundle-Version: 1.0.0
+Bundle-Activator: org.eclipse.jsf.main.MainPlugin
+Bundle-Localization: plugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime
+Eclipse-AutoStart: true
+Bundle-Vendor: %plugin.Provider
diff --git a/assembly/plugins/org.eclipse.jsf.branding/about.html b/assembly/plugins/org.eclipse.jsf.branding/about.html
new file mode 100644
index 000000000..6f6b96c4c
--- /dev/null
+++ b/assembly/plugins/org.eclipse.jsf.branding/about.html
@@ -0,0 +1,22 @@
+<!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">
+<h2>About This Content</h2>
+
+<p>February 24, 2005</p>
+<h3>License</h3>
+
+<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise indicated below, the Content is provided to you under the terms and conditions of the
+Eclipse Public License Version 1.0 (&quot;EPL&quot;). A copy of the EPL is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a>.
+For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>
+
+<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is being redistributed by another party (&quot;Redistributor&quot;) 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.</p>
+
+</body>
+</html> \ No newline at end of file
diff --git a/assembly/plugins/org.eclipse.jsf.branding/about.ini b/assembly/plugins/org.eclipse.jsf.branding/about.ini
new file mode 100644
index 000000000..a21a3ecea
--- /dev/null
+++ b/assembly/plugins/org.eclipse.jsf.branding/about.ini
@@ -0,0 +1,29 @@
+# about.ini
+# contains information about a feature
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# "%key" are externalized strings defined in about.properties
+# This file does not need to be translated.
+
+# Property "aboutText" contains blurb for "About" dialog (translated)
+aboutText=%blurb
+
+# Property "windowImage" contains path to window icon (16x16)
+# needed for primary features only
+
+# Property "featureImage" contains path to feature image (32x32)
+featureImage=eclipse32.gif
+
+# Property "aboutImage" contains path to product image (500x330 or 115x164)
+# needed for primary features only
+
+# Property "appName" contains name of the application (translated)
+# needed for primary features only
+
+# Property "welcomePage" contains path to welcome page (special XML-based format)
+# optional
+
+# Property "welcomePerspective" contains the id of the perspective in which the
+# welcome page is to be opened.
+# optional
+
+
diff --git a/assembly/plugins/org.eclipse.jsf.branding/about.mappings b/assembly/plugins/org.eclipse.jsf.branding/about.mappings
new file mode 100644
index 000000000..bddaab431
--- /dev/null
+++ b/assembly/plugins/org.eclipse.jsf.branding/about.mappings
@@ -0,0 +1,6 @@
+# about.mappings
+# contains fill-ins for about.properties
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file does not need to be translated.
+
+0=@build@ \ No newline at end of file
diff --git a/assembly/plugins/org.eclipse.jsf.branding/about.properties b/assembly/plugins/org.eclipse.jsf.branding/about.properties
new file mode 100644
index 000000000..c62b076f8
--- /dev/null
+++ b/assembly/plugins/org.eclipse.jsf.branding/about.properties
@@ -0,0 +1,24 @@
+###############################################################################
+# Copyright (c) 2005 Oracle Corporation 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:
+# Oracle Corporation - initial API and implementation
+###############################################################################
+
+# about.properties
+# contains externalized strings for about.ini
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# fill-ins are supplied by about.mappings
+# This file should be translated.
+
+blurb=JavaServer Faces Tools\n\
+\n\
+Version: {featureVersion}\n\
+Build id: {0}\n\
+\n\
+(c) Copyright Eclipse contributors and others 2005. All rights reserved.\n\
+Visit http://www.eclipse.org/webtools
diff --git a/assembly/plugins/org.eclipse.jsf.branding/build.properties b/assembly/plugins/org.eclipse.jsf.branding/build.properties
new file mode 100644
index 000000000..bbae2447b
--- /dev/null
+++ b/assembly/plugins/org.eclipse.jsf.branding/build.properties
@@ -0,0 +1,21 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ eclipse32.png,\
+ eclipse32.gif,\
+ about.properties,\
+ about.mappings,\
+ about.ini,\
+ about.html,\
+ plugin.properties,\
+ bin/
+src.includes = src/,\
+ eclipse32.png,\
+ eclipse32.gif,\
+ build.properties,\
+ about.properties,\
+ about.mappings,\
+ about.ini,\
+ about.html,\
+ META-INF/,\
+ plugin.properties
diff --git a/assembly/plugins/org.eclipse.jsf.branding/eclipse32.gif b/assembly/plugins/org.eclipse.jsf.branding/eclipse32.gif
new file mode 100644
index 000000000..e6ad7ccd7
--- /dev/null
+++ b/assembly/plugins/org.eclipse.jsf.branding/eclipse32.gif
Binary files differ
diff --git a/assembly/plugins/org.eclipse.jsf.branding/eclipse32.png b/assembly/plugins/org.eclipse.jsf.branding/eclipse32.png
new file mode 100644
index 000000000..568fac1d0
--- /dev/null
+++ b/assembly/plugins/org.eclipse.jsf.branding/eclipse32.png
Binary files differ
diff --git a/assembly/plugins/org.eclipse.jsf.branding/plugin.properties b/assembly/plugins/org.eclipse.jsf.branding/plugin.properties
new file mode 100644
index 000000000..fe471d244
--- /dev/null
+++ b/assembly/plugins/org.eclipse.jsf.branding/plugin.properties
@@ -0,0 +1,2 @@
+plugin.Name=JavaServer Faces Tools
+plugin.Provider=Eclipse.org \ No newline at end of file
diff --git a/assembly/plugins/org.eclipse.jsf.branding/src/org/eclipse/jsf/main/MainPlugin.java b/assembly/plugins/org.eclipse.jsf.branding/src/org/eclipse/jsf/main/MainPlugin.java
new file mode 100644
index 000000000..a8b13fe75
--- /dev/null
+++ b/assembly/plugins/org.eclipse.jsf.branding/src/org/eclipse/jsf/main/MainPlugin.java
@@ -0,0 +1,54 @@
+package org.eclipse.jsf.main;
+
+import org.eclipse.ui.plugin.*;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The main plugin class to be used in the desktop.
+ */
+public class MainPlugin extends AbstractUIPlugin {
+
+ //The shared instance.
+ private static MainPlugin plugin;
+
+ /**
+ * The constructor.
+ */
+ public MainPlugin() {
+ plugin = this;
+ }
+
+ /**
+ * This method is called upon plug-in activation
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ }
+
+ /**
+ * This method is called when the plug-in is stopped
+ */
+ public void stop(BundleContext context) throws Exception {
+ super.stop(context);
+ plugin = null;
+ }
+
+ /**
+ * Returns the shared instance.
+ */
+ public static MainPlugin getDefault() {
+ return plugin;
+ }
+
+ /**
+ * Returns an image descriptor for the image file at the given
+ * plug-in relative path.
+ *
+ * @param path the path
+ * @return the image descriptor
+ */
+ public static ImageDescriptor getImageDescriptor(String path) {
+ return AbstractUIPlugin.imageDescriptorFromPlugin("org.eclipse.jsf.main", path);
+ }
+}

Back to the top