Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.emf.eef.runtime.extended/.classpath7
-rw-r--r--plugins/org.eclipse.emf.eef.runtime.extended/.project28
-rw-r--r--plugins/org.eclipse.emf.eef.runtime.extended/.settings/org.eclipse.jdt.core.prefs8
-rw-r--r--plugins/org.eclipse.emf.eef.runtime.extended/META-INF/MANIFEST.MF11
-rw-r--r--plugins/org.eclipse.emf.eef.runtime.extended/build.properties4
-rw-r--r--plugins/org.eclipse.emf.eef.runtime.extended/src/org/eclipse/emf/eef/runtime/ui/widgets/richtext/EEFRichText.java46
-rw-r--r--plugins/org.eclipse.emf.eef.runtime.extended/std/Extended.toolkits4
7 files changed, 108 insertions, 0 deletions
diff --git a/plugins/org.eclipse.emf.eef.runtime.extended/.classpath b/plugins/org.eclipse.emf.eef.runtime.extended/.classpath
new file mode 100644
index 000000000..64c5e31b7
--- /dev/null
+++ b/plugins/org.eclipse.emf.eef.runtime.extended/.classpath
@@ -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/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
diff --git a/plugins/org.eclipse.emf.eef.runtime.extended/.project b/plugins/org.eclipse.emf.eef.runtime.extended/.project
new file mode 100644
index 000000000..784cd69c3
--- /dev/null
+++ b/plugins/org.eclipse.emf.eef.runtime.extended/.project
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.emf.eef.runtime.extended</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/plugins/org.eclipse.emf.eef.runtime.extended/.settings/org.eclipse.jdt.core.prefs b/plugins/org.eclipse.emf.eef.runtime.extended/.settings/org.eclipse.jdt.core.prefs
new file mode 100644
index 000000000..6a6b6e697
--- /dev/null
+++ b/plugins/org.eclipse.emf.eef.runtime.extended/.settings/org.eclipse.jdt.core.prefs
@@ -0,0 +1,8 @@
+#Tue Nov 16 09:51:02 CET 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
diff --git a/plugins/org.eclipse.emf.eef.runtime.extended/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.eef.runtime.extended/META-INF/MANIFEST.MF
new file mode 100644
index 000000000..07742d294
--- /dev/null
+++ b/plugins/org.eclipse.emf.eef.runtime.extended/META-INF/MANIFEST.MF
@@ -0,0 +1,11 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: EEF Extended Runtime
+Bundle-SymbolicName: org.eclipse.emf.eef.runtime.extended
+Bundle-Version: 0.9.0.qualifier
+Bundle-Vendor: Eclipse Modeling Project
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Require-Bundle: org.eclipse.epf.common;bundle-version="1.2.0",
+ org.eclipse.epf.richtext;bundle-version="1.2.0",
+ org.eclipse.epf.ui;bundle-version="1.2.0"
+Export-Package: org.eclipse.emf.eef.runtime.ui.widgets.richtext
diff --git a/plugins/org.eclipse.emf.eef.runtime.extended/build.properties b/plugins/org.eclipse.emf.eef.runtime.extended/build.properties
new file mode 100644
index 000000000..34d2e4d2d
--- /dev/null
+++ b/plugins/org.eclipse.emf.eef.runtime.extended/build.properties
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
diff --git a/plugins/org.eclipse.emf.eef.runtime.extended/src/org/eclipse/emf/eef/runtime/ui/widgets/richtext/EEFRichText.java b/plugins/org.eclipse.emf.eef.runtime.extended/src/org/eclipse/emf/eef/runtime/ui/widgets/richtext/EEFRichText.java
new file mode 100644
index 000000000..0e2c91e46
--- /dev/null
+++ b/plugins/org.eclipse.emf.eef.runtime.extended/src/org/eclipse/emf/eef/runtime/ui/widgets/richtext/EEFRichText.java
@@ -0,0 +1,46 @@
+package org.eclipse.emf.eef.runtime.ui.widgets.richtext;
+
+import org.eclipse.epf.common.utils.XMLUtil;
+import org.eclipse.epf.richtext.RichText;
+import org.eclipse.epf.richtext.RichTextPlugin;
+import org.eclipse.epf.richtext.actions.FindReplaceAction;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.browser.Browser;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.widgets.Composite;
+
+public class EEFRichText extends RichText {
+
+ public EEFRichText(Composite parent, int style) {
+ super(parent, style);
+ debug = RichTextPlugin.getDefault().isDebugging();
+ logger = RichTextPlugin.getDefault().getLogger();
+ findReplaceAction = new FindReplaceAction(this);
+ rteFolder = RichTextPlugin.getDefault().getInstallPath() + "rte/"; //$NON-NLS-1$
+ rteURL = XMLUtil.escape("file://" + rteFolder); //$NON-NLS-1$
+ setBasePath(basePath);
+
+ try {
+ editor = new Browser(parent, SWT.BORDER);
+ if (debug) {
+ printDebugMessage("RichText", "basePath=" + basePath); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+ editor.setLayoutData(new GridData(GridData.FILL_BOTH));
+ editor.setData(PROPERTY_NAME, this);
+ init(parent, style);
+ } catch (Exception e) {
+ editor = null;
+ String msg = "Failed to create RichText with basePath=" + basePath; //$NON-NLS-1$
+ logger.logError(msg, e);
+ if (debug) {
+ System.out.println(msg);
+ e.printStackTrace();
+ }
+ }
+ }
+
+ public EEFRichText(Composite parent, int style, String basePath) {
+ super(parent, style, basePath);
+ }
+
+}
diff --git a/plugins/org.eclipse.emf.eef.runtime.extended/std/Extended.toolkits b/plugins/org.eclipse.emf.eef.runtime.extended/std/Extended.toolkits
new file mode 100644
index 000000000..6e10e5b94
--- /dev/null
+++ b/plugins/org.eclipse.emf.eef.runtime.extended/std/Extended.toolkits
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<eef-views:Toolkit xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:eef-views="http://www.eclipse.org/emf/eef/views/toolkits/1.0.0">
+ <widgets name="RichText"/>
+</eef-views:Toolkit> \ No newline at end of file

Back to the top