Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2016-04-27 11:24:25 -0400
committerGerrit Code Review @ Eclipse.org2016-05-02 08:01:15 -0400
commitbf80a8cb11fd449f9d57094e6330491fd2456988 (patch)
tree27f53469564f21402f59a3191e8e31f2c9e98783
parentdbfc46bf0d3bfcc3a8a4a7eb09093ad0bc223996 (diff)
downloadorg.eclipse.papyrus-bf80a8cb11fd449f9d57094e6330491fd2456988.tar.gz
org.eclipse.papyrus-bf80a8cb11fd449f9d57094e6330491fd2456988.tar.xz
org.eclipse.papyrus-bf80a8cb11fd449f9d57094e6330491fd2456988.zip
Bug 469382 - [Rich Text] Nebula rich text editor integration
- Nebula rich text editor has replaced the old EPF rich text editor - Add buttons to new editor: insert reference, update references and spell check button - Reference displayed as its name in editor - Extension framework for HTML renderer (in uml.diagram.common) - Rename org.eclipse.papyrus.infra.widgets.epf.richtext.extension to org.eclipse.papyrus.infra.widgets.richtext.extesion (folder, project, package) - Releng work: rename widgets.epf.richtext.extension to widgets.richtext.extension and update feature.xml and pom.xml files Bug 458020: [Table] The table must include the Papyrus richtext editor https://bugs.eclipse.org/bugs/show_bug.cgi?id=458020 Change-Id: Ia3d8db3600f1b23cc419e09c43dfa6cd09565deb Signed-off-by: Shuai Li <shuai.li@cea.fr> Signed-off-by: Vincent Lorenzo <vincent.lorenzo@cea.fr>
-rw-r--r--extraplugins/epf-richtext/.project11
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/.project28
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/.settings/org.eclipse.jdt.core.prefs7
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/META-INF/MANIFEST.MF38
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/Model/UML/RichText.ctx3252
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/Model/UML/ui/RichTextSingleComment.xwt13
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/Model/UML/uml.querySet2
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/Model/environment.xmi93
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/build.properties14
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddImage.gifbin576 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddLine.gifbin73 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddLink.gifbin225 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddOrderedList.gifbin106 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddTable.gifbin348 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddUnorderedList.gifbin103 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Bold.gifbin104 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/ClearContent.gifbin328 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Copy.gifbin364 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Cut.gifbin138 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/FindReplace.gifbin332 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Indent.gifbin135 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Italic.gifbin79 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/JustifyCenter.gifbin67 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/JustifyFull.gifbin67 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/JustifyLeft.gifbin67 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/JustifyRight.gifbin67 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Outdent.gifbin137 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Paste.gifbin361 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/PastePlainText.gifbin560 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/StrikeThrough.gifbin76 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Subscript.gifbin85 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Superscript.gifbin83 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/TidyHTML.gifbin352 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Underline.gifbin88 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddImage.gifbin1024 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddLine.gifbin73 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddLink.gifbin942 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddOrderedList.gifbin152 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddTable.gifbin982 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddUnorderedList.gifbin139 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Bold.gifbin132 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/ClearContent.gifbin162 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Copy.gifbin994 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Cut.gifbin913 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/FindReplace.gifbin947 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Indent.gifbin905 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Italic.gifbin123 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/JustifyCenter.gifbin67 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/JustifyFull.gifbin67 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/JustifyLeft.gifbin67 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/JustifyRight.gifbin67 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Outdent.gifbin905 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Paste.gifbin1005 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/PastePlainText.gifbin588 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/SpellCheck.gifbin588 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/StrikeThrough.gifbin76 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Subscript.gifbin130 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Superscript.gifbin133 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/TidyHTML.gifbin971 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Underline.gifbin138 -> 0 bytes
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/plugin.properties23
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/plugin.xml12
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/pom.xml21
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/blank.htm9
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/rte.css457
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/rte.html20
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/rte.js1426
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/rte.xsl32
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/DebugRichText.java1187
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/IRichTextEditor.java53
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/IRichTextToolBar.java61
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/Resources.properties154
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichPlugin.java74
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichText.java184
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextCommand.java268
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextEditor.java1820
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextImages.java350
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextResources.java246
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextToolBar.java213
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/ToolbarCommand.java22
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/BackgroundColorAction.java64
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/ComboContributionItem.java126
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/FontNameAction.java109
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/FontSizeAction.java103
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/FontStyleAction.java88
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/ForegroundColorAction.java64
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/PasteAction.java206
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/PasteTextOnlyAction.java95
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/RemoveFormatAction.java63
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/RichTextButtonAction.java133
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/RichTextComboAction.java93
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/SetupTestAction.java56
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/SpellCheckAction.java61
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/StrikeThroughAction.java60
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/UnderlineAction.java59
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/dialogs/FindReplaceDialog.java312
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/dialogs/package.html5
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/package.html5
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/properties/RichTextEditorWithReferences.java207
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/properties/RichTextWithReferences.java108
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/properties/uml/CommentBodyRichTextEditor.java83
-rw-r--r--extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/ui/ButtonContributionItem.java218
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/pom.xml2
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/.project (renamed from features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/.project)34
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/about.html (renamed from extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/about.html)56
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/build.properties (renamed from features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/build.properties)0
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/epl-v10.html (renamed from features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/epl-v10.html)0
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/feature.properties (renamed from features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/feature.properties)2
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/feature.xml33
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/license.html (renamed from features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/license.html)214
-rw-r--r--features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/pom.xml (renamed from extraplugins/epf-richtext/pom.xml)10
-rw-r--r--features/papyrus-main-features/org.eclipse.papyrus.uml.nattable.feature/feature.xml72
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/META-INF/MANIFEST.MF4
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/build.properties3
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/files/dictionary.txt (renamed from extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/files/dictionary.txt)276220
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/icons/SpellCheck.gif (renamed from extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/SpellCheck.gif)bin588 -> 588 bytes
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/Activator.java43
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/editors/richtext/AbstractToolbarButton.java74
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/editors/richtext/BaseDialog.java (renamed from extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/dialogs/BaseDialog.java)12
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/editors/richtext/CheckSpellDialog.java (renamed from extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/dialogs/CheckSpellDialog.java)861
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/editors/richtext/GenericRichTextEditor.java156
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/editors/richtext/GenericToolbarConfiguration.java265
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/editors/richtext/RichTextUtils.java218
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/editors/richtext/SpellCheckToolbarButton.java87
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/editors/richtext/SpellChecker.java (renamed from extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/dialogs/SpellChecker.java)216
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/messages/Messages.java25
-rw-r--r--plugins/infra/ui/org.eclipse.papyrus.infra.widgets/src/org/eclipse/papyrus/infra/widgets/messages/messages.properties11
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/META-INF/MANIFEST.MF3
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/plugin.xml10
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/schema/htmlRendererContributor.exsd125
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/node/HTMLCornerBentFigure.java148
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/node/HTMLRenderer.java45
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/node/RichTextRenderer.java147
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.richtext/.classpath (renamed from extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/.classpath)14
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.richtext/.project52
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.richtext/.settings/org.eclipse.jdt.core.prefs291
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.richtext/.settings/org.eclipse.jdt.ui.prefs68
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.richtext/.settings/org.eclipse.pde.api.tools.prefs98
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.richtext/META-INF/MANIFEST.MF19
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.richtext/about.html (renamed from features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/about.html)56
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.richtext/build.properties8
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.richtext/plugin.properties4
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.richtext/plugin.xml12
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.richtext/pom.xml12
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.richtext/src/org/eclipse/papyrus/uml/nattable/richtext/Activator.java71
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.richtext/src/org/eclipse/papyrus/uml/nattable/richtext/celleditor/RichTextCellEditorWithUMLReferences.java170
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.richtext/src/org/eclipse/papyrus/uml/nattable/richtext/celleditor/config/RichTextCellEditorConfiguration.java89
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.richtext/src/org/eclipse/papyrus/uml/nattable/richtext/celleditor/config/messages/Messages.java32
-rw-r--r--plugins/uml/nattable/org.eclipse.papyrus.uml.nattable.richtext/src/org/eclipse/papyrus/uml/nattable/richtext/celleditor/config/messages/messages.properties1
-rwxr-xr-xplugins/uml/nattable/pom.xml7
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.ui/META-INF/MANIFEST.MF8
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.ui/src/org/eclipse/papyrus/uml/ui/Activator.java67
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.ui/src/org/eclipse/papyrus/uml/ui/editors/InsertReferenceToolbarButton.java126
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.ui/src/org/eclipse/papyrus/uml/ui/editors/UMLRichtextEditorWithReferences.java331
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.ui/src/org/eclipse/papyrus/uml/ui/editors/UMLSpellCheckDialog.java49
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.ui/src/org/eclipse/papyrus/uml/ui/editors/UMLSpellCheckToolbarButton.java46
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.ui/src/org/eclipse/papyrus/uml/ui/editors/UMLToolbarConfiguration.java58
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.ui/src/org/eclipse/papyrus/uml/ui/messages/Messages.java32
-rw-r--r--plugins/uml/org.eclipse.papyrus.uml.ui/src/org/eclipse/papyrus/uml/ui/messages/messages.properties1
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/META-INF/MANIFEST.MF5
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/Model/UML/ui/SingleComment.xwt4
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/editors/RichTextValueEditor.java (renamed from extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextValueEditor.java)328
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/CommentBodyRichTextEditor.java63
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/RichTextEditorCompositeWrapper.java363
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/RichTextEditorWithReferencesCompositeWrapper.java63
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/RichTextEditorWithReferencesValueEditor.java81
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/RichTextObservableValue.java (renamed from extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextObservableValue.java)346
-rw-r--r--plugins/uml/properties/org.eclipse.papyrus.uml.properties/src/org/eclipse/papyrus/uml/properties/widgets/RichTextWithReferencesPropertyEditor.java85
-rw-r--r--releng/dev/targetPlatform/eclipse/org.eclipse.papyrus.dev.eclipse.target.target18
-rw-r--r--releng/dev/targetPlatform/portable/org.eclipse.papyrus.dev.portable.target.target18
-rw-r--r--releng/extra-tests/targetPlatform/eclipse/org.eclipse.papyrus.extra.tests.eclipse.target.target18
-rw-r--r--releng/extra-tests/targetPlatform/portable/org.eclipse.papyrus.extra.tests.portable.target.target18
-rw-r--r--releng/extra/pom.xml3
-rw-r--r--releng/extra/targetPlatform/eclipse/org.eclipse.papyrus.extra.eclipse.target.target18
-rw-r--r--releng/extra/targetPlatform/portable/org.eclipse.papyrus.extra.portable.target.target18
-rw-r--r--releng/main-tests/targetPlatform/eclipse/org.eclipse.papyrus.main.tests.eclipse.target.target18
-rw-r--r--releng/main-tests/targetPlatform/portable/org.eclipse.papyrus.main.tests.portable.target.target18
-rw-r--r--releng/main/targetPlatform/eclipse/org.eclipse.papyrus.main.eclipse.target.target18
-rw-r--r--releng/main/targetPlatform/portable/org.eclipse.papyrus.main.portable.target.target18
-rw-r--r--releng/main/targetPlatform/portable/org.eclipse.papyrus.main.portable.target.tpd11
-rw-r--r--releng/org.eclipse.papyrus.oomph/setups/papyrus.setup2
-rw-r--r--releng/rcp/targetPlatform/eclipse/org.eclipse.papyrus.rcp.eclipse.target.target18
-rw-r--r--releng/rcp/targetPlatform/portable/org.eclipse.papyrus.rcp.portable.target.target18
183 files changed, 143102 insertions, 151694 deletions
diff --git a/extraplugins/epf-richtext/.project b/extraplugins/epf-richtext/.project
deleted file mode 100644
index 0880421ed78..00000000000
--- a/extraplugins/epf-richtext/.project
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>epf-richtext</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- </buildSpec>
- <natures>
- </natures>
-</projectDescription>
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/.project b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/.project
deleted file mode 100644
index 33bbcde5cfa..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/.project
+++ /dev/null
@@ -1,28 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.infra.widgets.epf.richtext.extension</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/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/.settings/org.eclipse.jdt.core.prefs b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index f287d53cf45..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,7 +0,0 @@
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/META-INF/MANIFEST.MF b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/META-INF/MANIFEST.MF
deleted file mode 100644
index f3ac472a9f1..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1,38 +0,0 @@
-Manifest-Version: 1.0
-Require-Bundle: org.eclipse.epf.common,
- org.eclipse.core.runtime,
- org.eclipse.ui,
- org.eclipse.ui.forms,
- org.eclipse.ui.workbench.texteditor,
- org.eclipse.ui.editors;bundle-version="3.8.0",
- org.eclipse.epf.richtext;bundle-version="1.6.0",
- org.eclipse.epf.common.html;bundle-version="1.5.0",
- org.eclipse.papyrus.infra.core.log;bundle-version="1.2.0",
- org.eclipse.pde.runtime,
- org.eclipse.papyrus.infra.widgets;bundle-version="1.2.0",
- org.eclipse.core.databinding;bundle-version="1.4.2",
- org.eclipse.papyrus.infra.tools;bundle-version="1.2.0",
- org.eclipse.emf;bundle-version="2.6.0",
- org.eclipse.emf.ecore,
- org.eclipse.papyrus.infra.emf;bundle-version="1.2.0",
- org.eclipse.papyrus.views.properties;bundle-version="1.2.0",
- org.eclipse.papyrus.uml.tools;bundle-version="1.2.0",
- org.eclipse.emf.transaction;bundle-version="1.8.0",
- org.eclipse.papyrus.emf.facet.custom.ui;bundle-version="1.2.0"
-Export-Package: org.eclipse.papyrus.infra.widgets.epf.richtext,
- org.eclipse.papyrus.infra.widgets.epf.richtext.extension,
- org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions,
- org.eclipse.papyrus.infra.widgets.epf.richtext.extension.dialogs,
- org.eclipse.papyrus.infra.widgets.epf.richtext.extension.properties,
- org.eclipse.papyrus.infra.widgets.epf.richtext.extension.properties.uml,
- org.eclipse.papyrus.infra.widgets.epf.richtext.extension.ui
-Bundle-Vendor: %providerName
-Bundle-ActivationPolicy: lazy
-Bundle-Version: 1.2.0.qualifier
-Eclipse-BundleShape: dir
-Bundle-Localization: plugin
-Bundle-Name: %pluginName
-Bundle-Activator: org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichPlugin
-Bundle-ManifestVersion: 2
-Bundle-SymbolicName: org.eclipse.papyrus.infra.widgets.epf.richtext.extension;singleton:=true
-Bundle-RequiredExecutionEnvironment: JavaSE-1.6
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/Model/UML/RichText.ctx b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/Model/UML/RichText.ctx
deleted file mode 100644
index 508914b5b50..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/Model/UML/RichText.ctx
+++ /dev/null
@@ -1,3252 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<contexts:Context
- xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:constraints="http://www.eclipse.org/papyrus/constraints/0.9"
- xmlns:contexts="http://www.eclipse.org/papyrus/properties/contexts/0.9"
- name="RichText">
- <tabs label="UML"
- id="uml"
- category="org.eclipse.papyrus"
- image=""
- priority="10">
- <sections
- name="RichTextSingleComment"
- sectionFile="ui/RichTextSingleComment.xwt">
- <widget
- href="ui/RichTextSingleComment.xwt#/"/>
- </sections>
- </tabs>
- <views name="RichTextSingleComment"
- sections="//@tabs.0/@sections.0">
- <constraints
- xsi:type="constraints:SimpleConstraint"
- name="isRichTextSingleComment">
- <overriddenConstraints href="../../../org.eclipse.papyrus.uml.properties/Model/UML/UML.ctx#//@views.447/@constraints.0"/>
- <constraintType
- href="ppe:/environment/org.eclipse.papyrus.uml.properties/Model/Environment.xmi#//@constraintTypes.0"/>
- <properties
- xsi:type="constraints:ValueProperty"
- name="umlClassName"
- value="Comment"/>
- </constraints>
- </views>
- <dataContexts
- name="UML"
- label="UML">
- <elements
- name="Comment"
- supertypes="//@dataContexts.0/@elements.1">
- <properties
- name="body"
- description="Specifies a string that is the comment."/>
- <properties
- name="annotatedElement"
- type="Reference"
- description="References the Element(s) being commented."/>
- </elements>
- <elements
- name="Element"
- supertypes="//@dataContexts.0/@elements.241">
- <properties
- name="ownedElement"
- type="Reference"
- description="The Elements owned by this element."/>
- <properties
- name="owner"
- type="Reference"
- description="The Element that owns this element."/>
- <properties
- name="ownedComment"
- type="Reference"
- multiplicity="-1"
- description="The Comment owned by this element."/>
- </elements>
- <elements
- name="Package"
- supertypes="//@dataContexts.0/@elements.8 //@dataContexts.0/@elements.3 //@dataContexts.0/@elements.18">
- <properties
- name="ownedType"
- type="Reference"
- description="References the packaged elements that are Types."/>
- <properties
- name="packageMerge"
- type="Reference"
- description="References the PackageMerges that are owned by this Package."/>
- <properties
- name="packagedElement"
- type="Reference"
- description="Specifies the packageable elements that are owned by this Package."/>
- <properties
- name="nestedPackage"
- type="Reference"
- description="References the packaged elements that are Packages."/>
- <properties
- name="nestingPackage"
- type="Reference"
- description="References the Package that owns this Package."/>
- <properties
- name="profileApplication"
- type="Reference"
- description="References the ProfileApplications that indicate which profiles have been applied to the Package."/>
- <properties
- name="ownedStereotype"
- type="Reference"
- multiplicity="-1"
- description=""/>
- <properties
- name="URI"
- description="Provides an identifier for the package that can be used for many purposes. A URI is the universally unique identification of the package following the IETF URI specification, RFC 2396 http://www.ietf.org/rfc/rfc2396.txt and it must comply with those syntax rules."/>
- </elements>
- <elements
- name="PackageableElement"
- supertypes="//@dataContexts.0/@elements.4 //@dataContexts.0/@elements.22"/>
- <elements
- name="NamedElement"
- supertypes="//@dataContexts.0/@elements.1">
- <properties
- name="name"
- description="The name of the NamedElement."/>
- <properties
- name="visibility"
- type="Enumeration"
- description="Determines where the NamedElement appears within different Namespaces within the overall model, and its accessibility."/>
- <properties
- name="qualifiedName"
- description="A name which allows the NamedElement to be identified within a hierarchy of nested Namespaces. It is constructed from the names of the containing namespaces starting at the root of the hierarchy and ending with the name of the NamedElement itself."/>
- <properties
- name="clientDependency"
- type="Reference"
- description="Indicates the dependencies that reference the client."/>
- <properties
- name="namespace"
- type="Reference"
- description="Specifies the namespace that owns the NamedElement."/>
- <properties
- name="nameExpression"
- type="Reference"
- description="The string expression used to define the name of this named element."/>
- </elements>
- <elements
- name="Dependency"
- supertypes="//@dataContexts.0/@elements.3 //@dataContexts.0/@elements.6">
- <properties
- name="supplier"
- type="Reference"
- description="The element(s) independent of the client element(s), in the same respect and the same dependency relationship. In some directed dependency relationships (such as Refinement Abstractions), a common convention in the domain of class-based OO software is to put the more abstract element in this role. Despite this convention, users of UML may stipulate a sense of dependency suitable for their domain, which makes a more abstract element dependent on that which is more specific."/>
- <properties
- name="client"
- type="Reference"
- description="The element(s) dependent on the supplier element(s). In some cases (such as a Trace Abstraction) the assignment of direction (that is, the designation of the client element) is at the discretion of the modeler, and is a stipulation."/>
- </elements>
- <elements
- name="DirectedRelationship"
- supertypes="//@dataContexts.0/@elements.7">
- <properties
- name="source"
- type="Reference"
- description="Specifies the sources of the DirectedRelationship."/>
- <properties
- name="target"
- type="Reference"
- description="Specifies the targets of the DirectedRelationship."/>
- </elements>
- <elements
- name="Relationship"
- supertypes="//@dataContexts.0/@elements.1">
- <properties
- name="relatedElement"
- type="Reference"
- description="Specifies the elements related by the Relationship."/>
- </elements>
- <elements
- name="Namespace"
- supertypes="//@dataContexts.0/@elements.4">
- <properties
- name="elementImport"
- type="Reference"
- description="References the ElementImports owned by the Namespace."/>
- <properties
- name="packageImport"
- type="Reference"
- description="References the PackageImports owned by the Namespace."/>
- <properties
- name="ownedRule"
- type="Reference"
- description="Specifies a set of Constraints owned by this Namespace."/>
- <properties
- name="member"
- type="Reference"
- description="A collection of NamedElements identifiable within the Namespace, either by being owned or by being introduced by importing or inheritance."/>
- <properties
- name="importedMember"
- type="Reference"
- description="References the PackageableElements that are members of this Namespace as a result of either PackageImports or ElementImports."/>
- <properties
- name="ownedMember"
- type="Reference"
- description="A collection of NamedElements owned by the Namespace."/>
- </elements>
- <elements
- name="ElementImport"
- supertypes="//@dataContexts.0/@elements.6">
- <properties
- name="visibility"
- type="Enumeration"
- description="Specifies the visibility of the imported PackageableElement within the importing Package. The default visibility is the same as that of the imported element. If the imported element does not have a visibility, it is possible to add visibility to the element import."/>
- <properties
- name="alias"
- description="Specifies the name that should be added to the namespace of the importing package in lieu of the name of the imported packagable element. The aliased name must not clash with any other member name in the importing package. By default, no alias is used."/>
- <properties
- name="importedElement"
- type="Reference"
- description="Specifies the PackageableElement whose name is to be added to a Namespace."/>
- <properties
- name="importingNamespace"
- type="Reference"
- description="Specifies the Namespace that imports a PackageableElement from another Package."/>
- </elements>
- <elements
- name="PackageImport"
- supertypes="//@dataContexts.0/@elements.6">
- <properties
- name="visibility"
- type="Enumeration"
- description="Specifies the visibility of the imported PackageableElements within the importing Namespace, i.e., whether imported elements will in turn be visible to other packages that use that importingPackage as an importedPackage. If the PackageImport is public, the imported elements will be visible outside the package, while if it is private they will not."/>
- <properties
- name="importedPackage"
- type="Reference"
- description="Specifies the Package whose members are imported into a Namespace."/>
- <properties
- name="importingNamespace"
- type="Reference"
- description="Specifies the Namespace that imports the members from a Package."/>
- </elements>
- <elements
- name="Constraint"
- supertypes="//@dataContexts.0/@elements.3">
- <properties
- name="constrainedElement"
- type="Reference"
- description="The ordered set of Elements referenced by this Constraint."/>
- <properties
- name="specification"
- type="Reference"
- description="A condition that must be true when evaluated in order for the constraint to be satisfied."/>
- <properties
- name="context"
- type="Reference"
- description="Specifies the namespace that owns the NamedElement."/>
- </elements>
- <elements
- name="ValueSpecification"
- supertypes="//@dataContexts.0/@elements.3 //@dataContexts.0/@elements.13"/>
- <elements
- name="TypedElement"
- supertypes="//@dataContexts.0/@elements.4">
- <properties
- name="type"
- type="Reference"
- description="This information is derived from the return result for this Operation.&#xD;&#xA;The type of the TypedElement."/>
- </elements>
- <elements
- name="Type"
- supertypes="//@dataContexts.0/@elements.3">
- <properties
- name="package"
- type="Reference"
- description="Specifies the owning package of this classifier, if any."/>
- </elements>
- <elements
- name="Association"
- supertypes="//@dataContexts.0/@elements.16 //@dataContexts.0/@elements.7">
- <properties
- name="ownedEnd"
- type="Reference"
- description="The ends that are owned by the association itself."/>
- <properties
- name="memberEnd"
- type="Reference"
- description="Each end represents participation of instances of the classifier connected to the end in links of the association."/>
- <properties
- name="isDerived"
- description="Specifies whether the association is derived from other model elements such as other associations or constraints."/>
- <properties
- name="endType"
- type="Reference"
- description="References the classifiers that are used as types of the ends of the association."/>
- <properties
- name="navigableOwnedEnd"
- type="Reference"
- description="The navigable ends that are owned by the association itself."/>
- </elements>
- <elements
- name="Classifier"
- supertypes="//@dataContexts.0/@elements.8 //@dataContexts.0/@elements.17 //@dataContexts.0/@elements.14 //@dataContexts.0/@elements.18">
- <properties
- name="isAbstract"
- type="Boolean"
- description="If true, the Classifier does not provide a complete declaration and can typically not be instantiated. An abstract classifier is intended to be used by other classifiers e.g. as the target of general metarelationships or generalization relationships.&#xD;&#xA;"/>
- <properties
- name="generalization"
- type="Reference"
- description="Specifies the Generalization relationships for this Classifier. These Generalizations navigaten to more general classifiers in the generalization hierarchy."/>
- <properties
- name="powertypeExtent"
- type="Reference"
- description="Designates the GeneralizationSet of which the associated Classifier is a power type."/>
- <properties
- name="feature"
- type="Reference"
- description="Note that there may be members of the Classifier that are of the type Feature but are not included in this association, e.g. inherited features.&#xD;&#xA;Specifies each feature defined in the classifier."/>
- <properties
- name="inheritedMember"
- type="Reference"
- description="Specifies all elements inherited by this classifier from the general classifiers."/>
- <properties
- name="redefinedClassifier"
- type="Reference"
- description="References the Classifiers that are redefined by this Classifier."/>
- <properties
- name="general"
- type="Reference"
- description="References the general classifier in the Generalization relationship.&#xD;&#xA;Specifies the general Classifiers for this Classifier."/>
- <properties
- name="substitution"
- type="Reference"
- description="References the substitutions that are owned by this Classifier."/>
- <properties
- name="attribute"
- type="Reference"
- description="Refers to all of the Properties that are direct (i.e. not inherited or imported) attributes of the classifier."/>
- <properties
- name="representation"
- type="Reference"
- description="References a collaboration use which indicates the collaboration that represents this classifier."/>
- <properties
- name="collaborationUse"
- type="Reference"
- description="References the collaboration uses owned by the classifier."/>
- <properties
- name="ownedUseCase"
- type="Reference"
- description="References the use cases owned by this classifier."/>
- <properties
- name="useCase"
- type="Reference"
- description="The set of use cases for which this Classifier is the subject."/>
- <properties
- name="isFinalSpecialization"
- type="Boolean"
- description="If true, the Classifier cannot be specialized by generalization. Note that this property is preserved through package merge operations; that is, the capability to specialize a Classifier (i.e., isFinalSpecialization =false) must be preserved in the resulting Classifier of a package merge operation where a Classifier with isFinalSpecialization =false is merged with a matching Classifier with isFinalSpecialization =true: the resulting Classifier will have isFinalSpecialization=false. Default is false."/>
- </elements>
- <elements
- name="RedefinableElement"
- supertypes="//@dataContexts.0/@elements.4">
- <properties
- name="isLeaf"
- description="Indicates whether it is possible to further specialize a RedefinableElement. If the value is true, then it is not possible to further specialize the RedefinableElement."/>
- <properties
- name="redefinedElement"
- type="Reference"
- description="The redefinable element that is being redefined by this element."/>
- <properties
- name="redefinitionContext"
- type="Reference"
- description="References the contexts that this element may be redefined from."/>
- </elements>
- <elements
- name="TemplateableElement"
- supertypes="//@dataContexts.0/@elements.1">
- <properties
- name="templateBinding"
- type="Reference"
- description="The optional bindings from this element to templates."/>
- <properties
- name="ownedTemplateSignature"
- type="Reference"
- description="The optional template signature specifying the formal template parameters."/>
- </elements>
- <elements
- name="TemplateBinding"
- supertypes="//@dataContexts.0/@elements.6">
- <properties
- name="signature"
- type="Reference"
- description="The template signature for the template that is the target of the binding."/>
- <properties
- name="parameterSubstitution"
- type="Reference"
- description="The parameter substitutions owned by this template binding."/>
- <properties
- name="boundElement"
- type="Reference"
- description="The element that is bound by this binding."/>
- </elements>
- <elements
- name="TemplateSignature"
- supertypes="//@dataContexts.0/@elements.1">
- <properties
- name="parameter"
- type="Reference"
- description="The ordered set of all formal template parameters for this template signature."/>
- <properties
- name="ownedParameter"
- type="Reference"
- description="The formal template parameters that are owned by this template signature."/>
- <properties
- name="template"
- type="Reference"
- description="The element that owns this template signature."/>
- </elements>
- <elements
- name="TemplateParameter"
- supertypes="//@dataContexts.0/@elements.1">
- <properties
- name="signature"
- type="Reference"
- description="The template signature that owns this template parameter."/>
- <properties
- name="parameteredElement"
- type="Reference"
- description="The element exposed by this template parameter."/>
- <properties
- name="ownedParameteredElement"
- type="Reference"
- description="The element that is owned by this template parameter."/>
- <properties
- name="default"
- type="Reference"
- description="The element that is the default for this formal template parameter."/>
- <properties
- name="ownedDefault"
- type="Reference"
- description="The element that is owned by this template parameter for the purpose of providing a default."/>
- </elements>
- <elements
- name="ParameterableElement"
- supertypes="//@dataContexts.0/@elements.1">
- <properties
- name="owningTemplateParameter"
- type="Reference"
- description="The formal template parameter that owns this element."/>
- <properties
- name="templateParameter"
- type="Reference"
- description="The template parameter that exposes this element as a formal parameter."/>
- </elements>
- <elements
- name="TemplateParameterSubstitution"
- supertypes="//@dataContexts.0/@elements.1">
- <properties
- name="formal"
- type="Reference"
- description="The formal template parameter that is associated with this substitution."/>
- <properties
- name="actual"
- type="Reference"
- description="The element that is the actual parameter for this substitution."/>
- <properties
- name="ownedActual"
- type="Reference"
- description="The actual parameter that is owned by this substitution."/>
- <properties
- name="templateBinding"
- type="Reference"
- description="The optional bindings from this element to templates."/>
- </elements>
- <elements
- name="Generalization"
- supertypes="//@dataContexts.0/@elements.6">
- <properties
- name="isSubstitutable"
- description="Indicates whether the specific classifier can be used wherever the general classifier can be used. If true, the execution traces of the specific classifier will be a superset of the execution traces of the general classifier."/>
- <properties
- name="general"
- type="Reference"
- description="References the general classifier in the Generalization relationship."/>
- <properties
- name="generalizationSet"
- type="Reference"
- description="Designates a set in which instances of Generalization is considered members."/>
- <properties
- name="specific"
- type="Reference"
- description="References the specializing classifier in the Generalization relationship."/>
- </elements>
- <elements
- name="GeneralizationSet"
- supertypes="//@dataContexts.0/@elements.3">
- <properties
- name="isCovering"
- description="Indicates (via the associated Generalizations) whether or not the set of specific Classifiers are covering for a particular general classifier. When isCovering is true, every instance of a particular general Classifier is also an instance of at least one of its specific Classifiers for the GeneralizationSet. When isCovering is false, there are one or more instances of the particular general Classifier that are not instances of at least one of its specific Classifiers defined for the GeneralizationSet."/>
- <properties
- name="isDisjoint"
- description="Indicates whether or not the set of specific Classifiers in a Generalization relationship have instance in common. If isDisjoint is true, the specific Classifiers for a particular GeneralizationSet have no members in common; that is, their intersection is empty. If isDisjoint is false, the specific Classifiers in a particular GeneralizationSet have one or more members in common; that is, their intersection is not empty. For example, Person could have two Generalization relationships, each with the different specific Classifier: Manager or Staff. This would be disjoint because every instance of Person must either be a Manager or Staff. In contrast, Person could have two Generalization relationships involving two specific (and non-covering) Classifiers: Sales Person and Manager. This GeneralizationSet would not be disjoint because there are instances of Person which can be a Sales Person and a Manager."/>
- <properties
- name="powertype"
- type="Reference"
- description="Designates the Classifier that is defined as the power type for the associated GeneralizationSet."/>
- <properties
- name="generalization"
- type="Reference"
- description="Designates the instances of Generalization which are members of a given GeneralizationSet."/>
- </elements>
- <elements
- name="Feature"
- supertypes="//@dataContexts.0/@elements.17">
- <properties
- name="isStatic"
- description="Specifies whether this feature characterizes individual instances classified by the classifier (false) or the classifier itself (true)."/>
- <properties
- name="featuringClassifier"
- type="Reference"
- description="The Classifiers that have this Feature as a feature."/>
- </elements>
- <elements
- name="Substitution"
- supertypes="//@dataContexts.0/@elements.28">
- <properties
- name="contract"
- type="Reference"
- description="The contract with which the substituting classifier complies."/>
- <properties
- name="substitutingClassifier"
- type="Reference"
- description="Instances of the substituting classifier are runtime substitutable where instances of the contract classifier are expected."/>
- </elements>
- <elements
- name="Realization"
- supertypes="//@dataContexts.0/@elements.29"/>
- <elements
- name="Abstraction"
- supertypes="//@dataContexts.0/@elements.5">
- <properties
- name="mapping"
- type="Reference"
- description="An composition of an Expression that states the abstraction relationship between the supplier and the client. In some cases, such as Derivation, it is usually formal and unidirectional; in other cases, such as Trace, it is usually informal and bidirectional. The mapping expression is optional and may be omitted if the precise relationship between the elements is not specified."/>
- </elements>
- <elements
- name="OpaqueExpression"
- supertypes="//@dataContexts.0/@elements.12">
- <properties
- name="body"
- description="The text of the expression, possibly in multiple languages."/>
- <properties
- name="language"
- description="Specifies the languages in which the expression is stated. The interpretation of the expression body depends on the languages. If the languages are unspecified, they might be implicit from the expression body or the context. Languages are matched to body strings by order."/>
- <properties
- name="result"
- type="Reference"
- description="Restricts an opaque expression to return exactly one return result. When the invocation of the opaque expression completes, a single set of values is returned to its owner. This association is derived from the single return result parameter of the associated behavior."/>
- <properties
- name="behavior"
- type="Reference"
- description="Specifies the behavior of the opaque expression."/>
- </elements>
- <elements
- name="Parameter"
- supertypes="//@dataContexts.0/@elements.33 //@dataContexts.0/@elements.32">
- <properties
- name="parameterSet"
- type="Reference"
- description="The parameter sets containing the parameter. See ParameterSet."/>
- <properties
- name="operation"
- type="Reference"
- description="References the Operation owning this parameter."/>
- <properties
- name="direction"
- type="Enumeration"
- description="Indicates whether a parameter is being sent into or out of a behavioral element."/>
- <properties
- name="default"
- description="Specifies a String that represents a value to be used when no argument is supplied for the Parameter."/>
- <properties
- name="defaultValue"
- type="Reference"
- description="Specifies a ValueSpecification that represents a value to be used when no argument is supplied for the Parameter."/>
- <properties
- name="isException"
- description="Tells whether an output parameter may emit a value to the exclusion of the other outputs."/>
- <properties
- name="isStream"
- description="Tells whether an input parameter may accept values while its behavior is executing, or whether an output parameter post values while the behavior is executing."/>
- <properties
- name="effect"
- type="Enumeration"
- description="Specifies the effect that the owner of the parameter has on values passed in or out of the parameter."/>
- </elements>
- <elements
- name="MultiplicityElement"
- supertypes="//@dataContexts.0/@elements.1">
- <properties
- name="isOrdered"
- description="For a multivalued multiplicity, this attribute specifies whether the values in an instantiation of this element are sequentially ordered."/>
- <properties
- name="isUnique"
- description="For a multivalued multiplicity, this attributes specifies whether the values in an instantiation of this element are unique."/>
- <properties
- name="upper"
- description="Specifies the upper bound of the multiplicity interval."/>
- <properties
- name="lower"
- description="Specifies the lower bound of the multiplicity interval."/>
- <properties
- name="upperValue"
- type="Reference"
- description="The specification of the upper bound for this multiplicity."/>
- <properties
- name="lowerValue"
- type="Reference"
- description="The specification of the lower bound for this multiplicity."/>
- </elements>
- <elements
- name="ConnectableElement"
- supertypes="//@dataContexts.0/@elements.13 //@dataContexts.0/@elements.22">
- <properties
- name="end"
- type="Reference"
- description="Denotes a connector that attaches to this connectable element."/>
- </elements>
- <elements
- name="ConnectorEnd"
- supertypes="//@dataContexts.0/@elements.32">
- <properties
- name="definingEnd"
- type="Reference"
- description="A derived association referencing the corresponding association end on the association which types the connector owing this connector end. This association is derived by selecting the association end at the same place in the ordering of association ends as this connector end.&#xD;&#xA;"/>
- <properties
- name="role"
- type="Reference"
- description="The connectable element attached at this connector end. When an instance of the containing classifier is created, a link may (depending on the multiplicities) be created to an instance of the classifier that types this connectable element.&#xD;&#xA;"/>
- <properties
- name="partWithPort"
- type="Reference"
- description="Indicates the role of the internal structure of a classifier with the port to which the connector end is attached."/>
- </elements>
- <elements
- name="Property"
- supertypes="//@dataContexts.0/@elements.75 //@dataContexts.0/@elements.33 //@dataContexts.0/@elements.36">
- <properties
- name="class"
- type="Reference"
- description="References the Class that owns the Property."/>
- <properties
- name="datatype"
- type="Reference"
- description="The DataType that owns this Property."/>
- <properties
- name="isDerived"
- description="If isDerived is true, the value of the attribute is derived from information elsewhere.&#xD;&#xA;Specifies whether the Property is derived, i.e., whether its value or values can be computed from other information."/>
- <properties
- name="isDerivedUnion"
- description="Specifies whether the property is derived as the union of all of the properties that are constrained to subset it."/>
- <properties
- name="aggregation"
- type="Enumeration"
- description="Specifies the kind of aggregation that applies to the Property."/>
- <properties
- name="isComposite"
- description="If isComposite is true, the object containing the attribute is a container for the object or value contained in the attribute.&#xD;&#xA;This is a derived value, indicating whether the aggregation of the Property is composite or not."/>
- <properties
- name="redefinedProperty"
- type="Reference"
- description="References the properties that are redefined by this property."/>
- <properties
- name="owningAssociation"
- type="Reference"
- description="References the owning association of this property, if any."/>
- <properties
- name="defaultValue"
- type="Reference"
- description="A ValueSpecification that is evaluated to give a default value for the Property when an object of the owning Classifier is instantiated."/>
- <properties
- name="opposite"
- type="Reference"
- description="In the case where the property is one navigable end of a binary association with both ends navigable, this gives the other end."/>
- <properties
- name="subsettedProperty"
- type="Reference"
- description="References the properties of which this property is constrained to be a subset."/>
- <properties
- name="association"
- type="Reference"
- description="References the association of which this property is a member, if any."/>
- <properties
- name="qualifier"
- type="Reference"
- description="An optional list of ordered qualifier attributes for the end. If the list is empty, then the Association is not qualified."/>
- <properties
- name="associationEnd"
- type="Reference"
- description="Designates the optional association end that owns a qualifier attribute."/>
- <properties
- name="interface"
- type="Reference"/>
- <properties
- name="isID"
- type="Boolean"/>
- </elements>
- <elements
- name="DeploymentTarget"
- supertypes="//@dataContexts.0/@elements.4">
- <properties
- name="deployment"
- type="Reference"
- description="The set of Deployments for a DeploymentTarget."/>
- <properties
- name="deployedElement"
- type="Reference"
- description="The set of elements that are manifested in an Artifact that is involved in Deployment to a DeploymentTarget."/>
- </elements>
- <elements
- name="Deployment"
- supertypes="//@dataContexts.0/@elements.5">
- <properties
- name="deployedArtifact"
- type="Reference"
- description="The Artifacts that are deployed onto a Node. This association specializes the supplier association."/>
- <properties
- name="configuration"
- type="Reference"
- description="The specification of properties that parameterize the deployment and execution of one or more Artifacts."/>
- <properties
- name="location"
- type="Reference"
- description="The DeployedTarget which is the target of a Deployment."/>
- </elements>
- <elements
- name="DeployedArtifact"
- supertypes="//@dataContexts.0/@elements.4"/>
- <elements
- name="DeploymentSpecification"
- supertypes="//@dataContexts.0/@elements.40">
- <properties
- name="deploymentLocation"
- description="The location where an Artifact is deployed onto a Node. This is typically a 'directory' or 'memory address'."/>
- <properties
- name="executionLocation"
- description="The location where a component Artifact executes. This may be a local or remote location."/>
- <properties
- name="deployment"
- type="Reference"
- description="The deployment with which the DeploymentSpecification is associated."/>
- </elements>
- <elements
- name="Artifact"
- supertypes="//@dataContexts.0/@elements.16 //@dataContexts.0/@elements.38">
- <properties
- name="fileName"
- description="A concrete name that is used to refer to the Artifact in a physical context. Example: file system name, universal resource locator."/>
- <properties
- name="nestedArtifact"
- type="Reference"
- description="The Artifacts that are defined (nested) within the Artifact.&#xD;&#xA;The association is a specialization of the ownedMember association from Namespace to NamedElement.&#xD;&#xA;"/>
- <properties
- name="manifestation"
- type="Reference"
- description="The set of model elements that are manifested in the Artifact. That is, these model elements are utilized in the construction (or generation) of the artifact."/>
- <properties
- name="ownedOperation"
- type="Reference"
- description="The Operations defined for the Artifact. The association is a specialization of the ownedMember association."/>
- <properties
- name="ownedAttribute"
- type="Reference"
- description="The attributes or association ends defined for the Artifact.&#xD;&#xA;The association is a specialization of the ownedMember association.&#xD;&#xA;"/>
- </elements>
- <elements
- name="Manifestation"
- supertypes="//@dataContexts.0/@elements.29">
- <properties
- name="utilizedElement"
- type="Reference"
- description="The model element that is utilized in the manifestation in an Artifact."/>
- </elements>
- <elements
- name="Operation"
- supertypes="//@dataContexts.0/@elements.43 //@dataContexts.0/@elements.22 //@dataContexts.0/@elements.18">
- <properties
- name="interface"
- type="Reference"
- description="The Interface that owns this Operation."/>
- <properties
- name="class"
- type="Reference"
- description="The class that owns the operation."/>
- <properties
- name="isQuery"
- description="Specifies whether an execution of the BehavioralFeature leaves the state of the system unchanged (isQuery=true) or whether side effects may occur (isQuery=false)."/>
- <properties
- name="isOrdered"
- description="This information is derived from the return result for this Operation.&#xD;&#xA;Specifies whether the return parameter is ordered or not, if present."/>
- <properties
- name="isUnique"
- description="This information is derived from the return result for this Operation.&#xD;&#xA;Specifies whether the return parameter is unique or not, if present."/>
- <properties
- name="lower"
- description="This information is derived from the return result for this Operation.&#xD;&#xA;Specifies the lower multiplicity of the return parameter, if present."/>
- <properties
- name="upper"
- description="This information is derived from the return result for this Operation.&#xD;&#xA;Specifies the upper multiplicity of the return parameter, if present."/>
- <properties
- name="precondition"
- type="Reference"
- description="An optional set of Constraints on the state of the system when the Operation is invoked."/>
- <properties
- name="postcondition"
- type="Reference"
- description="An optional set of Constraints specifying the state of the system when the Operation is completed."/>
- <properties
- name="redefinedOperation"
- type="Reference"
- description="References the Operations that are redefined by this Operation."/>
- <properties
- name="datatype"
- type="Reference"
- description="The DataType that owns this Operation."/>
- <properties
- name="bodyCondition"
- type="Reference"
- description="An optional Constraint on the result values of an invocation of this Operation."/>
- <properties
- name="type"
- type="Reference"
- description="This information is derived from the return result for this Operation.&#xD;&#xA;Specifies the return result of the operation, if present."/>
- </elements>
- <elements
- name="BehavioralFeature"
- supertypes="//@dataContexts.0/@elements.8 //@dataContexts.0/@elements.26">
- <properties
- name="ownedParameter"
- type="Reference"
- description="Specifies the ordered set of formal parameters of this BehavioralFeature."/>
- <properties
- name="isAbstract"
- description="If true, then the behavioral feature does not have an implementation, and one must be supplied by a more specific element. If false, the behavioral feature must have an implementation in the classifier or one must be inherited from a more general element."/>
- <properties
- name="method"
- type="Reference"
- description="A behavioral description that implements the behavioral feature. There may be at most one behavior for a particular pairing of a classifier (as owner of the behavior) and a behavioral feature (as specification of the behavior)."/>
- <properties
- name="concurrency"
- type="Enumeration"
- description="Specifies the semantics of concurrent calls to the same passive instance (i.e., an instance originating from a class with isActive being false). Active instances control access to their own behavioral features."/>
- <properties
- name="raisedException"
- type="Reference"
- description="References the Types representing exceptions that may be raised during an invocation of this feature.&#xD;&#xA;The signals that the behavioral feature raises as exceptions."/>
- <properties
- name="ownedParameterSet"
- type="Reference"
- description="The ParameterSets owned by this BehavioralFeature."/>
- </elements>
- <elements
- name="Behavior"
- supertypes="//@dataContexts.0/@elements.45">
- <properties
- name="isReentrant"
- description="Tells whether the behavior can be invoked while it is still executing from a previous invocation."/>
- <properties
- name="redefinedBehavior"
- type="Reference"
- description="References a behavior that this behavior redefines. A subtype of Behavior may redefine any other subtype of Behavior. If the behavior implements a behavioral feature, it replaces the redefined behavior. If the behavior is a classifier behavior, it extends the redefined behavior."/>
- <properties
- name="ownedParameter"
- type="Reference"
- description="References a list of parameters to the behavior which describes the order and type of arguments that can be given when the behavior is invoked and of the values which will be returned when the behavior completes its execution.&#xD;&#xA;"/>
- <properties
- name="context"
- type="Reference"
- description="The classifier that is the context for the execution of the behavior. If the behavior is owned by a BehavioredClassifier, that classifier is the context. Otherwise, the context is the first BehavioredClassifier reached by following the chain of owner relationships. For example, following this algorithm, the context of an entry action in a state machine is the classifier that owns the state machine. The features of the context classifier as well as the elements visible to the context classifier are visible to the behavior."/>
- <properties
- name="precondition"
- type="Reference"
- description="An optional set of Constraints specifying what must be fulfilled when the behavior is invoked."/>
- <properties
- name="postcondition"
- type="Reference"
- description="An optional set of Constraints specifying what is fulfilled after the execution of the behavior is completed, if its precondition was fulfilled before its invocation."/>
- <properties
- name="ownedParameterSet"
- type="Reference"
- description="The ParameterSets owned by this Behavior."/>
- <properties
- name="specification"
- type="Reference"
- description="Designates a behavioral feature that the behavior implements. The behavioral feature must be owned by the classifier that owns the behavior or be inherited by it. The parameters of the behavioral feature and the implementing behavior must match. A behavior does not need to have a specification, in which case it either is the classifer behavior of a BehavioredClassifier or it can only be invoked by another behavior of the classifier."/>
- </elements>
- <elements
- name="Class"
- supertypes="//@dataContexts.0/@elements.63 //@dataContexts.0/@elements.46">
- <properties
- name="nestedClassifier"
- type="Reference"
- description="References all the Classifiers that are defined (nested) within the Class."/>
- <properties
- name="ownedOperation"
- type="Reference"
- description="The operations owned by the class."/>
- <properties
- name="superClass"
- type="Reference"
- description="This gives the superclasses of a class."/>
- <properties
- name="isActive"
- description="Determines whether an object specified by this class is active or not. If true, then the owning class is referred to as an active class. If false, then such a class is referred to as a passive class."/>
- <properties
- name="ownedReception"
- type="Reference"
- description="Receptions that objects of this class are willing to accept."/>
- <properties
- name="extension"
- type="Reference"
- description="References the Extensions that specify additional properties of the metaclass. The property is derived from the extensions whose memberEnds are typed by the Class."/>
- </elements>
- <elements
- name="BehavioredClassifier"
- supertypes="//@dataContexts.0/@elements.16">
- <properties
- name="ownedBehavior"
- type="Reference"
- description="References behavior specifications owned by a classifier."/>
- <properties
- name="classifierBehavior"
- type="Reference"
- description="A behavior specification that specifies the behavior of the classifier itself."/>
- <properties
- name="interfaceRealization"
- type="Reference"
- description="The set of InterfaceRealizations owned by the BehavioredClassifier. Interface realizations reference the Interfaces of which the BehavioredClassifier is an implementation."/>
- </elements>
- <elements
- name="InterfaceRealization"
- supertypes="//@dataContexts.0/@elements.28">
- <properties
- name="contract"
- type="Reference"
- description="References the Interface specifying the conformance contract."/>
- <properties
- name="implementingClassifier"
- type="Reference"
- description="References the BehavioredClassifier that owns this Interfacerealization (i.e., the classifier that realizes the Interface to which it points)."/>
- </elements>
- <elements
- name="Interface"
- supertypes="//@dataContexts.0/@elements.16">
- <properties
- name="ownedAttribute"
- type="Reference"
- description="The attributes (i.e. the properties) owned by the class."/>
- <properties
- name="ownedOperation"
- type="Reference"
- description="The operations owned by the class."/>
- <properties
- name="nestedClassifier"
- type="Reference"
- description="References all the Classifiers that are defined (nested) within the Class."/>
- <properties
- name="redefinedInterface"
- type="Reference"
- description="References all the Interfaces redefined by this Interface."/>
- <properties
- name="ownedReception"
- type="Reference"
- description="Receptions that objects providing this interface are willing to accept."/>
- <properties
- name="protocol"
- type="Reference"
- description="References a protocol state machine specifying the legal sequences of the invocation of the behavioral features described in the interface."/>
- </elements>
- <elements
- name="Reception"
- supertypes="//@dataContexts.0/@elements.43">
- <properties
- name="signal"
- type="Reference"
- description="The signal that this reception handles."/>
- </elements>
- <elements
- name="Signal"
- supertypes="//@dataContexts.0/@elements.16">
- <properties
- name="ownedAttribute"
- type="Reference"
- description="The attributes owned by the signal."/>
- </elements>
- <elements
- name="ProtocolStateMachine"
- supertypes="//@dataContexts.0/@elements.52">
- <properties
- name="conformance"
- type="Reference"
- description="Conformance between protocol state machines."/>
- </elements>
- <elements
- name="StateMachine"
- supertypes="//@dataContexts.0/@elements.44">
- <properties
- name="region"
- type="Reference"
- description="The regions owned directly by the state machine."/>
- <properties
- name="submachineState"
- type="Reference"
- description="References the submachine(s) in case of a submachine state. Multiple machines are referenced in case of a concurrent state."/>
- <properties
- name="connectionPoint"
- type="Reference"
- description="The connection points defined for this state machine. They represent the interface of the state machine when used as part of submachine state."/>
- <properties
- name="extendedStateMachine"
- type="Reference"
- description="The state machines of which this is an extension."/>
- </elements>
- <elements
- name="Region"
- supertypes="//@dataContexts.0/@elements.8 //@dataContexts.0/@elements.17">
- <properties
- name="subvertex"
- type="Reference"
- description="The set of vertices that are owned by this region."/>
- <properties
- name="transition"
- type="Reference"
- description="The set of transitions owned by the region. Note that internal transitions are owned by a region, but applies to the source state."/>
- <properties
- name="state"
- type="Reference"
- description="The State that owns the Region. If a Region is owned by a State, then it cannot also be owned by a StateMachine."/>
- <properties
- name="extendedRegion"
- type="Reference"
- description="The region of which this region is an extension."/>
- <properties
- name="stateMachine"
- type="Reference"
- description="The StateMachine that owns the Region. If a Region is owned by a StateMachine, then it cannot also be owned by a State."/>
- </elements>
- <elements
- name="Vertex"
- supertypes="//@dataContexts.0/@elements.4">
- <properties
- name="outgoing"
- type="Reference"
- description="Specifies the transitions departing from this vertex."/>
- <properties
- name="incoming"
- type="Reference"
- description="Specifies the transitions entering this vertex."/>
- <properties
- name="container"
- type="Reference"
- description="The region that contains this vertex."/>
- </elements>
- <elements
- name="Transition"
- supertypes="//@dataContexts.0/@elements.8 //@dataContexts.0/@elements.17">
- <properties
- name="kind"
- type="Enumeration"
- description="Indicates the precise type of the transition."/>
- <properties
- name="container"
- type="Reference"
- description="Designates the region that owns this transition."/>
- <properties
- name="source"
- type="Reference"
- description="Designates the originating vertex (state or pseudostate) of the transition."/>
- <properties
- name="target"
- type="Reference"
- description="Designates the target vertex that is reached when the transition is taken."/>
- <properties
- name="redefinedTransition"
- type="Reference"
- description="The transition that is redefined by this transition."/>
- <properties
- name="guard"
- type="Reference"
- description="A guard is a constraint that provides a fine-grained control over the firing of the transition. The guard is evaluated when an event occurrence is dispatched by the state machine. If the guard is true at that time, the transition may be enabled, otherwise, it is disabled. Guards should be pure expressions without side effects. Guard expressions with side effects are ill formed."/>
- <properties
- name="effect"
- type="Reference"
- description="Specifies an optional behavior to be performed when the transition fires."/>
- <properties
- name="trigger"
- type="Reference"
- description="Specifies the triggers that may fire the transition."/>
- </elements>
- <elements
- name="Trigger"
- supertypes="//@dataContexts.0/@elements.4">
- <properties
- name="event"
- type="Reference"
- description="The event that causes the trigger."/>
- <properties
- name="port"
- type="Reference"
- multiplicity="-1"
- description="A optional port of the receiver object on which the behavioral feature is invoked."/>
- </elements>
- <elements
- name="Event"
- supertypes="//@dataContexts.0/@elements.3"/>
- <elements
- name="Port"
- supertypes="//@dataContexts.0/@elements.35">
- <properties
- name="isBehavior"
- description="Specifies whether requests arriving at this port are sent to the classifier behavior of this classifier. Such ports are referred to as behavior port. Any invocation of a behavioral feature targeted at a behavior port will be handled by the instance of the owning classifier itself, rather than by any instances that this classifier may contain."/>
- <properties
- name="isService"
- description="If true indicates that this port is used to provide the published functionality of a classifier; if false, this port is used to implement the classifier but is not part of the essential externally-visible functionality of the classifier and can, therefore, be altered or deleted along with the internal implementation of the classifier and other properties that are considered part of its implementation."/>
- <properties
- name="required"
- type="Reference"
- description="References the interfaces specifying the set of operations and receptions which the classifier expects its environment to handle. This association is derived as the set of interfaces required by the type of the port or its supertypes."/>
- <properties
- name="redefinedPort"
- type="Reference"
- description="A port may be redefined when its containing classifier is specialized. The redefining port may have additional interfaces to those that are associated with the redefined port or it may replace an interface by one of its subtypes."/>
- <properties
- name="provided"
- type="Reference"
- description="References the interfaces specifying the set of operations and receptions which the classifier offers to its environment, and which it will handle either directly or by forwarding it to a part of its internal structure. This association is derived from the interfaces realized by the type of the port or by the type of the port, if the port was typed by an interface.&#xD;&#xA;"/>
- <properties
- name="protocol"
- type="Reference"
- description="References an optional protocol state machine which describes valid interactions at this interaction point."/>
- <properties
- name="isConjugated"
- type="Boolean"/>
- </elements>
- <elements
- name="State"
- supertypes="//@dataContexts.0/@elements.8 //@dataContexts.0/@elements.17 //@dataContexts.0/@elements.54">
- <properties
- name="isComposite"
- description="A state with isComposite=true is said to be a composite state. A composite state is a state that contains at least one region."/>
- <properties
- name="isOrthogonal"
- description="A state with isOrthogonal=true is said to be an orthogonal composite state. An orthogonal composite state contains two or more regions."/>
- <properties
- name="isSimple"
- description="A state with isSimple=true is said to be a simple state. A simple state does not have any regions and it does not refer to any submachine state machine."/>
- <properties
- name="isSubmachineState"
- description="A state with isSubmachineState=true is said to be a submachine state. Such a state refers to a state machine (submachine)."/>
- <properties
- name="submachine"
- type="Reference"
- description="The state machine that is to be inserted in place of the (submachine) state."/>
- <properties
- name="connection"
- type="Reference"
- description="The entry and exit connection points used in conjunction with this (submachine) state, i.e. as targets and sources, respectively, in the region with the submachine state. A connection point reference references the corresponding definition of a connection point pseudostate in the statemachine referenced by the submachinestate."/>
- <properties
- name="connectionPoint"
- type="Reference"
- description="The entry and exit pseudostates of a composite state. These can only be entry or exit Pseudostates, and they must have different names. They can only be defined for composite states."/>
- <properties
- name="redefinedState"
- type="Reference"
- description="The state of which this state is a redefinition."/>
- <properties
- name="stateInvariant"
- type="Reference"
- description="Specifies conditions that are always true when this state is the current state. In protocol state machines, state invariants are additional conditions to the preconditions of the outgoing transitions, and to the postcondition of the incoming transitions.&#xD;&#xA;"/>
- <properties
- name="entry"
- type="Reference"
- description="An optional behavior that is executed whenever this state is entered regardless of the transition taken to reach the state. If defined, entry actions are always executed to completion prior to any internal behavior or transitions performed within the state.&#xD;&#xA;"/>
- <properties
- name="exit"
- type="Reference"
- description="An optional behavior that is executed whenever this state is exited regardless of which transition was taken out of the state. If defined, exit actions are always executed to completion only after all internal activities and transition actions have completed execution."/>
- <properties
- name="doActivity"
- type="Reference"
- description="An optional behavior that is executed while being in the state. The execution starts when this state is entered, and stops either by itself, or when the state is exited, whichever comes first."/>
- <properties
- name="deferrableTrigger"
- type="Reference"
- description="A list of triggers that are candidates to be retained by the state machine if they trigger no transitions out of the state (not consumed). A deferred trigger is retained until the state machine reaches a state configuration where it is no longer deferred.&#xD;&#xA;"/>
- <properties
- name="region"
- type="Reference"
- description="The regions owned directly by the state."/>
- </elements>
- <elements
- name="ConnectionPointReference"
- supertypes="//@dataContexts.0/@elements.54">
- <properties
- name="entry"
- type="Reference"
- description="The entryPoint kind pseudo states corresponding to this connection point."/>
- <properties
- name="exit"
- type="Reference"
- description="The exitPoints kind pseudo states corresponding to this connection point."/>
- <properties
- name="state"
- type="Reference"
- description="The State in which the connection point refreshens are defined."/>
- </elements>
- <elements
- name="Pseudostate"
- supertypes="//@dataContexts.0/@elements.54">
- <properties
- name="kind"
- type="Enumeration"
- description="Determines the precise type of the Pseudostate and can be one of: entryPoint, exitPoint, initial, deepHistory, shallowHistory, join, fork, junction, terminate or choice."/>
- <properties
- name="stateMachine"
- type="Reference"
- description="The StateMachine in which this Pseudostate is defined. This only applies to Pseudostates of the kind entryPoint or exitPoint."/>
- <properties
- name="state"
- type="Reference"
- description="The State that owns this pseudostate and in which it appears."/>
- </elements>
- <elements
- name="ProtocolConformance"
- supertypes="//@dataContexts.0/@elements.6">
- <properties
- name="generalMachine"
- type="Reference"
- description="Specifies the protocol state machine to which the specific state machine conforms."/>
- <properties
- name="specificMachine"
- type="Reference"
- description="Specifies the state machine which conforms to the general state machine."/>
- </elements>
- <elements
- name="EncapsulatedClassifier"
- supertypes="//@dataContexts.0/@elements.64">
- <properties
- name="ownedPort"
- type="Reference"
- description="References a set of ports that an encapsulated classifier owns."/>
- </elements>
- <elements
- name="StructuredClassifier"
- supertypes="//@dataContexts.0/@elements.16">
- <properties
- name="ownedAttribute"
- type="Reference"
- description="References the properties owned by the classifier."/>
- <properties
- name="part"
- type="Reference"
- description="References the properties specifying instances that the classifier owns by composition. This association is derived, selecting those owned properties where isComposite is true."/>
- <properties
- name="role"
- type="Reference"
- description="References the roles that instances may play in this classifier."/>
- <properties
- name="ownedConnector"
- type="Reference"
- description="References the connectors owned by the classifier."/>
- </elements>
- <elements
- name="Connector"
- supertypes="//@dataContexts.0/@elements.26">
- <properties
- name="type"
- type="Reference"
- description="An optional association that specifies the link corresponding to this connector."/>
- <properties
- name="redefinedConnector"
- type="Reference"
- description="A connector may be redefined when its containing classifier is specialized. The redefining connector may have a type that specializes the type of the redefined connector. The types of the connector ends of the redefining connector may specialize the types of the connector ends of the redefined connector. The properties of the connector ends of the redefining connector may be replaced."/>
- <properties
- name="end"
- type="Reference"
- description="A connector consists of at least two connector ends, each representing the participation of instances of the classifiers typing the connectable elements attached to this end. The set of connector ends is ordered."/>
- <properties
- name="kind"
- type="Enumeration"
- description="Indicates the kind of connector."/>
- <properties
- name="contract"
- type="Reference"
- description="The set of Behaviors that specify the valid interaction patterns across the connector."/>
- </elements>
- <elements
- name="Extension"
- supertypes="//@dataContexts.0/@elements.15">
- <properties
- name="isRequired"
- description="Indicates whether an instance of the extending stereotype must be created when an instance of the extended class is created. The attribute value is derived from the multiplicity of the Property referenced by Extension::ownedEnd; a multiplicity of 1 means that isRequired is true, but otherwise it is false. Since the default multiplicity of an ExtensionEnd is 0..1, the default value of isRequired is false."/>
- <properties
- name="metaclass"
- type="Reference"
- description="References the Class that is extended through an Extension. The property is derived from the type of the memberEnd that is not the ownedEnd."/>
- </elements>
- <elements
- name="ExtensionEnd"
- supertypes="//@dataContexts.0/@elements.35"/>
- <elements
- name="Stereotype"
- supertypes="//@dataContexts.0/@elements.45">
- <properties
- name="icon"
- type="Reference"
- description="Stereotype can change the graphical appearance of the extended model element by using attached icons. When this association is not null, it references the location of the icon content to be displayed within diagrams presenting the extended model elements."/>
- </elements>
- <elements
- name="Image"
- supertypes="//@dataContexts.0/@elements.1">
- <properties
- name="content"
- description="This contains the serialization of the image according to the format. The value could represent a bitmap, image such as a GIF file, or drawing 'instructions' using a standard such as Scalable Vector Graphic (SVG) (which is XML based)."/>
- <properties
- name="location"
- description="This contains a location that can be used by a tool to locate the image as an alternative to embedding it in the stereotype."/>
- <properties
- name="format"
- description="This indicates the format of the content - which is how the string content should be interpreted. The following values are reserved: SVG, GIF, PNG, JPG, WMF, EMF, BMP.&#xD;&#xA;&#xD;&#xA;In addition the prefix 'MIME: ' is also reserved. This option can be used as an alternative to express the reserved values above, for example &quot;SVG&quot; could instead be expressed as &quot;MIME: image/svg+xml&quot;."/>
- </elements>
- <elements
- name="Profile"
- supertypes="//@dataContexts.0/@elements.2">
- <properties
- name="metaclassReference"
- type="Reference"
- description="References a metaclass that may be extended."/>
- <properties
- name="metamodelReference"
- type="Reference"
- description="References a package containing (directly or indirectly) metaclasses that may be extended."/>
- </elements>
- <elements
- name="Model"
- supertypes="//@dataContexts.0/@elements.2">
- <properties
- name="viewpoint"
- description="The name of the viewpoint that is expressed by a model (This name may refer to a profile definition)."/>
- </elements>
- <elements
- name="ParameterSet"
- supertypes="//@dataContexts.0/@elements.4">
- <properties
- name="parameter"
- type="Reference"
- description="Parameters in the parameter set."/>
- <properties
- name="condition"
- type="Reference"
- description="Constraint that should be satisfied for the owner of the parameters in an input parameter set to start execution using the values provided for those parameters, or the owner of the parameters in an output parameter set to end execution providing the values for those parameters, if all preconditions and conditions on input parameter sets were satisfied."/>
- </elements>
- <elements
- name="DataType"
- supertypes="//@dataContexts.0/@elements.16">
- <properties
- name="ownedAttribute"
- type="Reference"
- description="The Attributes owned by the DataType."/>
- <properties
- name="ownedOperation"
- type="Reference"
- description="The Operations owned by the DataType."/>
- </elements>
- <elements
- name="OperationTemplateParameter"
- supertypes="//@dataContexts.0/@elements.21"/>
- <elements
- name="StructuralFeature"
- supertypes="//@dataContexts.0/@elements.26 //@dataContexts.0/@elements.13 //@dataContexts.0/@elements.32">
- <properties
- name="isReadOnly"
- description="States whether the feature's value may be modified by a client."/>
- </elements>
- <elements
- name="ConnectableElementTemplateParameter"
- supertypes="//@dataContexts.0/@elements.21"/>
- <elements
- name="CollaborationUse"
- supertypes="//@dataContexts.0/@elements.4">
- <properties
- name="type"
- type="Reference"
- description="The collaboration which is used in this occurrence. The collaboration defines the cooperation between its roles which are mapped to properties of the classifier owning the collaboration use."/>
- <properties
- name="roleBinding"
- type="Reference"
- description="A mapping between features of the collaboration type and features of the classifier or operation. This mapping indicates which connectable element of the classifier or operation plays which role(s) in the collaboration. A connectable element may be bound to multiple roles in the same collaboration use (that is, it may play multiple roles).&#xD;&#xA;"/>
- </elements>
- <elements
- name="Collaboration"
- supertypes="//@dataContexts.0/@elements.46 //@dataContexts.0/@elements.64">
- <properties
- name="collaborationRole"
- type="Reference"
- description="References connectable elements (possibly owned by other classifiers) which represent roles that instances may play in this collaboration."/>
- </elements>
- <elements
- name="UseCase"
- supertypes="//@dataContexts.0/@elements.46">
- <properties
- name="include"
- type="Reference"
- description="References the Include relationships owned by this use case."/>
- <properties
- name="extend"
- type="Reference"
- description="References the Extend relationships owned by this use case."/>
- <properties
- name="extensionPoint"
- type="Reference"
- description="References the ExtensionPoints owned by the use case."/>
- <properties
- name="subject"
- type="Reference"
- description="References the subjects to which this use case applies. The subject or its parts realize all the use cases that apply to this subject. Use cases need not be attached to any specific subject, however. The subject may, but need not, own the use cases that apply to it."/>
- </elements>
- <elements
- name="Include"
- supertypes="//@dataContexts.0/@elements.4 //@dataContexts.0/@elements.6">
- <properties
- name="addition"
- type="Reference"
- description="References the use case that is to be included.&#xD;&#xA;"/>
- <properties
- name="includingCase"
- type="Reference"
- description="References the use case which will include the addition and owns the include relationship."/>
- </elements>
- <elements
- name="Extend"
- supertypes="//@dataContexts.0/@elements.4 //@dataContexts.0/@elements.6">
- <properties
- name="extendedCase"
- type="Reference"
- description="References the use case that is being extended."/>
- <properties
- name="condition"
- type="Reference"
- description="References the condition that must hold when the first extension point is reached for the extension to take place. If no constraint is associated with the extend relationship, the extension is unconditional.&#xD;&#xA;"/>
- <properties
- name="extensionLocation"
- type="Reference"
- description="An ordered list of extension points belonging to the extended use case, specifying where the respective behavioral fragments of the extending use case are to be inserted. The first fragment in the extending use case is associated with the first extension point in the list, the second fragment with the second point, and so on. (Note that, in most practical cases, the extending use case has just a single behavior fragment, so that the list of extension points is trivial.)&#xD;&#xA;"/>
- <properties
- name="extension"
- type="Reference"
- description="References the use case that represents the extension and owns the extend relationship."/>
- </elements>
- <elements
- name="ExtensionPoint"
- supertypes="//@dataContexts.0/@elements.17">
- <properties
- name="useCase"
- type="Reference"
- description="References the use case that owns this extension point."/>
- </elements>
- <elements
- name="RedefinableTemplateSignature"
- supertypes="//@dataContexts.0/@elements.17 //@dataContexts.0/@elements.20">
- <properties
- name="extendedSignature"
- type="Reference"
- description="The template signature that is extended by this template signature."/>
- <properties
- name="inheritedParameter"
- type="Reference"
- description="The formal template parameters of the extendedSignature."/>
- <properties
- name="classifier"
- type="Reference"
- description="The classifier that owns this template signature."/>
- </elements>
- <elements
- name="ClassifierTemplateParameter"
- supertypes="//@dataContexts.0/@elements.21">
- <properties
- name="allowSubstitutable"
- description="Constrains the required relationship between an actual parameter and the parameteredElement for this formal parameter."/>
- <properties
- name="constrainingClassifier"
- type="Reference"
- description="The classifiers that constrain the argument that can be used for the parameter. If the allowSubstitutable attribute is true, then any classifier that is compatible with this constraining classifier can be substituted; otherwise, it must be either this classifier or one of its subclasses. If this property is empty, there are no constraints on the classifier that can be used as an argument."/>
- </elements>
- <elements
- name="StringExpression"
- supertypes="//@dataContexts.0/@elements.86 //@dataContexts.0/@elements.18">
- <properties
- name="subExpression"
- type="Reference"
- description="The StringExpressions that constitute this StringExpression."/>
- <properties
- name="owningExpression"
- type="Reference"
- description="The string expression of which this expression is a substring."/>
- </elements>
- <elements
- name="Expression"
- supertypes="//@dataContexts.0/@elements.12">
- <properties
- name="symbol"
- description="The symbol associated with the node in the expression tree."/>
- <properties
- name="operand"
- type="Reference"
- description="Specifies a sequence of operands."/>
- </elements>
- <elements
- name="Usage"
- supertypes="//@dataContexts.0/@elements.5"/>
- <elements
- name="PackageMerge"
- supertypes="//@dataContexts.0/@elements.6">
- <properties
- name="mergedPackage"
- type="Reference"
- description="References the Package that is to be merged with the receiving package of the PackageMerge."/>
- <properties
- name="receivingPackage"
- type="Reference"
- description="References the Package that is being extended with the contents of the merged package of the PackageMerge."/>
- </elements>
- <elements
- name="ProfileApplication"
- supertypes="//@dataContexts.0/@elements.6">
- <properties
- name="appliedProfile"
- type="Reference"
- description="References the Profiles that are applied to a Package through this ProfileApplication."/>
- <properties
- name="isStrict"
- description="Specifies that the Profile filtering rules for the metaclasses of the referenced metamodel shall be strictly applied."/>
- <properties
- name="applyingPackage"
- type="Reference"
- description="The package that owns the profile application."/>
- </elements>
- <elements
- name="Enumeration"
- supertypes="//@dataContexts.0/@elements.73">
- <properties
- name="ownedLiteral"
- type="Reference"
- description="The ordered set of literals for this Enumeration."/>
- </elements>
- <elements
- name="EnumerationLiteral"
- supertypes="//@dataContexts.0/@elements.92">
- <properties
- name="enumeration"
- type="Reference"
- description="The Enumeration that this EnumerationLiteral is a member of."/>
- <properties
- name="classifier"
- type="Reference"
- description="The classifier of this EnumerationLiteral is derived to be equal to its enumeration. Redefines InstanceSpecification::classifier."/>
- </elements>
- <elements
- name="InstanceSpecification"
- supertypes="//@dataContexts.0/@elements.36 //@dataContexts.0/@elements.3 //@dataContexts.0/@elements.38">
- <properties
- name="classifier"
- type="Reference"
- description="The classifier or classifiers of the represented instance. If multiple classifiers are specified, the instance is classified by all of them."/>
- <properties
- name="slot"
- type="Reference"
- description="A slot giving the value or values of a structural feature of the instance. An instance specification can have one slot per structural feature of its classifiers, including inherited features. It is not necessary to model a slot for each structural feature, in which case the instance specification is a partial description."/>
- <properties
- name="specification"
- type="Reference"
- description="A specification of how to compute, derive, or construct the instance."/>
- </elements>
- <elements
- name="Slot"
- supertypes="//@dataContexts.0/@elements.1">
- <properties
- name="definingFeature"
- type="Reference"
- description="The structural feature that specifies the values that may be held by the slot."/>
- <properties
- name="value"
- type="Reference"
- description="The value or values corresponding to the defining feature for the owning instance specification."/>
- <properties
- name="owningInstance"
- type="Reference"
- description="The instance specification that owns this slot."/>
- </elements>
- <elements
- name="PrimitiveType"
- supertypes="//@dataContexts.0/@elements.73"/>
- <elements
- name="LiteralSpecification"
- supertypes="//@dataContexts.0/@elements.12"/>
- <elements
- name="LiteralInteger"
- supertypes="//@dataContexts.0/@elements.95">
- <properties
- name="value"
- description="The specified Integer value."/>
- </elements>
- <elements
- name="LiteralString"
- supertypes="//@dataContexts.0/@elements.95">
- <properties
- name="value"
- description="The specified String value."/>
- </elements>
- <elements
- name="LiteralBoolean"
- supertypes="//@dataContexts.0/@elements.95">
- <properties
- name="value"
- description="The specified Boolean value."/>
- </elements>
- <elements
- name="LiteralNull"
- supertypes="//@dataContexts.0/@elements.95"/>
- <elements
- name="InstanceValue"
- supertypes="//@dataContexts.0/@elements.12">
- <properties
- name="instance"
- type="Reference"
- description="The instance that is the specified value."/>
- </elements>
- <elements
- name="LiteralUnlimitedNatural"
- supertypes="//@dataContexts.0/@elements.95">
- <properties
- name="value"
- description="The specified UnlimitedNatural value."/>
- </elements>
- <elements
- name="OpaqueBehavior"
- supertypes="//@dataContexts.0/@elements.44">
- <properties
- name="body"
- description="Specifies the behavior in one or more languages."/>
- <properties
- name="language"
- description="Languages the body strings use in the same order as the body strings."/>
- </elements>
- <elements
- name="FunctionBehavior"
- supertypes="//@dataContexts.0/@elements.102"/>
- <elements
- name="OpaqueAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="body"
- description="Specifies the action in one or more languages."/>
- <properties
- name="language"
- description="Languages the body strings use, in the same order as the body strings"/>
- <properties
- name="inputValue"
- type="Reference"
- description="Provides input to the action."/>
- <properties
- name="outputValue"
- type="Reference"
- description="Takes output from the action."/>
- </elements>
- <elements
- name="Action"
- supertypes="//@dataContexts.0/@elements.106">
- <properties
- name="output"
- type="Reference"
- description="The ordered set of output pins connected to the Action. The action places its results onto pins in this set."/>
- <properties
- name="input"
- type="Reference"
- description="The ordered set of input pins connected to the Action. These are among the total set of inputs."/>
- <properties
- name="context"
- type="Reference"
- description="The classifier that owns the behavior of which this action is a part."/>
- <properties
- name="localPrecondition"
- type="Reference"
- description="Constraint that must be satisfied when execution is started."/>
- <properties
- name="localPostcondition"
- type="Reference"
- description="Constraint that must be satisfied when executed is completed."/>
- <properties
- name="isLocallyReentrant"
- type="Boolean"
- description="If true, the action can begin a new, concurrent execution, even if there is already another execution of the action ongoing. If false, the action cannot begin a new execution until any previous execution has completed. The default is false."/>
- </elements>
- <elements
- name="ExecutableNode"
- supertypes="//@dataContexts.0/@elements.107">
- <properties
- name="handler"
- type="Reference"
- description="A set of exception handlers that are examined if an uncaught exception propagates to the outer level of the executable node."/>
- </elements>
- <elements
- name="ActivityNode"
- supertypes="//@dataContexts.0/@elements.17">
- <properties
- name="inStructuredNode"
- type="Reference"
- description="Structured activity node containing the node."/>
- <properties
- name="activity"
- type="Reference"
- description="Activity containing the node."/>
- <properties
- name="outgoing"
- type="Reference"
- description="Edges that have the node as source."/>
- <properties
- name="incoming"
- type="Reference"
- description="Edges that have the node as target."/>
- <properties
- name="inPartition"
- type="Reference"
- description="Partitions containing the node."/>
- <properties
- name="inInterruptibleRegion"
- type="Reference"
- description="Interruptible regions containing the node."/>
- <properties
- name="inGroup"
- type="Reference"
- description="Groups containing the node."/>
- <properties
- name="redefinedNode"
- type="Reference"
- description="Inherited nodes replaced by this node in a specialization of the activity."/>
- </elements>
- <elements
- name="StructuredActivityNode"
- supertypes="//@dataContexts.0/@elements.105 //@dataContexts.0/@elements.8 //@dataContexts.0/@elements.109">
- <properties
- name="variable"
- type="Reference"
- description="A variable defined in the scope of the structured activity node. It has no value and may not be accessed"/>
- <properties
- name="edge"
- type="Reference"
- description="Edges immediately contained in the structured node."/>
- <properties
- name="mustIsolate"
- description="If true, then the actions in the node execute in isolation from actions outside the node."/>
- <properties
- name="node"
- type="Reference"
- description="Nodes immediately contained in the group."/>
- <properties
- name="structuredNodeInput"
- type="Reference"
- multiplicity="-1"/>
- <properties
- name="structuredNodeOutput"
- type="Reference"
- multiplicity="-1"/>
- </elements>
- <elements
- name="ActivityGroup"
- supertypes="//@dataContexts.0/@elements.1">
- <properties
- name="subgroup"
- type="Reference"
- description="Groups immediately contained in the group."/>
- <properties
- name="superGroup"
- type="Reference"
- description="Group immediately containing the group."/>
- <properties
- name="inActivity"
- type="Reference"
- description="Activity containing the group."/>
- <properties
- name="containedEdge"
- type="Reference"
- description="Edges immediately contained in the group."/>
- <properties
- name="containedNode"
- type="Reference"
- description="Nodes immediately contained in the group."/>
- </elements>
- <elements
- name="Activity"
- supertypes="//@dataContexts.0/@elements.44">
- <properties
- name="structuredNode"
- type="Reference"
- description="Top-level structured nodes in the activity."/>
- <properties
- name="variable"
- type="Reference"
- description="Top-level variables in the activity."/>
- <properties
- name="node"
- type="Reference"
- description="Nodes coordinated by the activity."/>
- <properties
- name="isReadOnly"
- description="If true, this activity must not make any changes to variables outside the activity or to objects. (This is an assertion, not an executable property. It may be used by an execution engine to optimize model execution. If the assertion is violated by the action, then the model is ill-formed.) The default is false (an activity may make nonlocal changes)."/>
- <properties
- name="edge"
- type="Reference"
- description="Edges expressing flow between nodes of the activity."/>
- <properties
- name="partition"
- type="Reference"
- description="Top-level partitions in the activity."/>
- <properties
- name="isSingleExecution"
- description="If true, all invocations of the activity are handled by the same execution."/>
- <properties
- name="group"
- type="Reference"
- description="Top-level groups in the activity."/>
- </elements>
- <elements
- name="Variable"
- supertypes="//@dataContexts.0/@elements.33 //@dataContexts.0/@elements.32">
- <properties
- name="scope"
- type="Reference"
- description="A structured activity node that owns the variable."/>
- <properties
- name="activityScope"
- type="Reference"
- description="An activity that owns the variable."/>
- </elements>
- <elements
- name="ActivityEdge"
- supertypes="//@dataContexts.0/@elements.17">
- <properties
- name="source"
- type="Reference"
- description="Node from which tokens are taken when they traverse the edge."/>
- <properties
- name="target"
- type="Reference"
- description="Node to which tokens are put when they traverse the edge."/>
- <properties
- name="redefinedEdge"
- type="Reference"
- description="Inherited edges replaced by this edge in a specialization of the activity."/>
- <properties
- name="inPartition"
- type="Reference"
- description="Partitions containing the edge."/>
- <properties
- name="guard"
- type="Reference"
- description="Specification evaluated at runtime to determine if the edge can be traversed."/>
- <properties
- name="weight"
- type="Reference"
- description="The minimum number of tokens that must traverse the edge at the same time."/>
- <properties
- name="interrupts"
- type="Reference"
- description="Region that the edge can interrupt."/>
- <properties
- name="inStructuredNode"
- type="Reference"
- description="Structured activity node containing the edge."/>
- <properties
- name="inGroup"
- type="Reference"
- description="Groups containing the edge."/>
- <properties
- name="activity"
- type="Reference"
- description="Activity containing the edge."/>
- </elements>
- <elements
- name="ActivityPartition"
- supertypes="//@dataContexts.0/@elements.4 //@dataContexts.0/@elements.109">
- <properties
- name="isDimension"
- description="Tells whether the partition groups other partitions along a dimension."/>
- <properties
- name="isExternal"
- description="Tells whether the partition represents an entity to which the partitioning structure does not apply."/>
- <properties
- name="node"
- type="Reference"
- description="Nodes immediately contained in the group."/>
- <properties
- name="subpartition"
- type="Reference"
- description="Partitions immediately contained in the partition."/>
- <properties
- name="superPartition"
- type="Reference"
- description="Partition immediately containing the partition."/>
- <properties
- name="represents"
- type="Reference"
- description="An element constraining behaviors invoked by nodes in the partition."/>
- <properties
- name="edge"
- type="Reference"
- description="Edges immediately contained in the group."/>
- </elements>
- <elements
- name="InterruptibleActivityRegion"
- supertypes="//@dataContexts.0/@elements.109">
- <properties
- name="node"
- type="Reference"
- description="Nodes immediately contained in the group."/>
- <properties
- name="interruptingEdge"
- type="Reference"
- description="The edges leaving the region that will abort other tokens flowing in the region."/>
- </elements>
- <elements
- name="ExceptionHandler"
- supertypes="//@dataContexts.0/@elements.1">
- <properties
- name="handlerBody"
- type="Reference"
- description="A node that is executed if the handler satisfies an uncaught exception."/>
- <properties
- name="exceptionInput"
- type="Reference"
- description="An object node within the handler body. When the handler catches an exception, the exception token is placed in this node, causing the body to execute."/>
- <properties
- name="exceptionType"
- type="Reference"
- description="The kind of instances that the handler catches. If an exception occurs whose type is any of the classifiers in the set, the handler catches the exception and executes its body."/>
- <properties
- name="protectedNode"
- type="Reference"
- description="The node protected by the handler. The handler is examined if an exception propagates to the outside of the node."/>
- </elements>
- <elements
- name="ObjectNode"
- supertypes="//@dataContexts.0/@elements.107 //@dataContexts.0/@elements.13">
- <properties
- name="ordering"
- type="Enumeration"
- description="Tells whether and how the tokens in the object node are ordered for selection to traverse edges outgoing from the object node."/>
- <properties
- name="isControlType"
- description="Tells whether the type of the object node is to be treated as control."/>
- <properties
- name="upperBound"
- type="Reference"
- description="The maximum number of tokens allowed in the node. Objects cannot flow into the node if the upper bound is reached."/>
- <properties
- name="inState"
- type="Reference"
- description="The required states of the object available at this point in the activity."/>
- <properties
- name="selection"
- type="Reference"
- description="Selects tokens for outgoing edges."/>
- </elements>
- <elements
- name="OutputPin"
- supertypes="//@dataContexts.0/@elements.118"/>
- <elements
- name="Pin"
- supertypes="//@dataContexts.0/@elements.116 //@dataContexts.0/@elements.32">
- <properties
- name="isControl"
- description="Tells whether the pins provide data to the actions, or just controls when it executes it."/>
- </elements>
- <elements
- name="InputPin"
- supertypes="//@dataContexts.0/@elements.118"/>
- <elements
- name="CallAction"
- supertypes="//@dataContexts.0/@elements.121">
- <properties
- name="isSynchronous"
- description="If true, the call is synchronous and the caller waits for completion of the invoked behavior.&#xD;&#xA;If false, the call is asynchronous and the caller proceeds immediately and does not expect a return values.&#xD;&#xA;"/>
- <properties
- name="result"
- type="Reference"
- description="A list of output pins where the results of performing the invocation are placed."/>
- </elements>
- <elements
- name="InvocationAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="argument"
- type="Reference"
- description="Specification of the ordered set of argument values that appears during execution."/>
- <properties
- name="onPort"
- type="Reference"
- description="A optional port of the receiver object on which the behavioral feature is invoked."/>
- </elements>
- <elements
- name="SendSignalAction"
- supertypes="//@dataContexts.0/@elements.121">
- <properties
- name="target"
- type="Reference"
- description="The target object to which the signal is sent."/>
- <properties
- name="signal"
- type="Reference"
- description="The type of signal transmitted to the target object."/>
- </elements>
- <elements
- name="CallOperationAction"
- supertypes="//@dataContexts.0/@elements.120">
- <properties
- name="operation"
- type="Reference"
- description="The operation to be invoked by the action execution."/>
- <properties
- name="target"
- type="Reference"
- description="The target object to which the request is sent. The classifier of the target object is used to dynamically determine a behavior to invoke. This object constitutes the context of the execution of the operation."/>
- </elements>
- <elements
- name="CallBehaviorAction"
- supertypes="//@dataContexts.0/@elements.120">
- <properties
- name="behavior"
- type="Reference"
- description="The invoked behavior. It must be capable of accepting and returning control."/>
- </elements>
- <elements
- name="SequenceNode"
- supertypes="//@dataContexts.0/@elements.108">
- <properties
- name="executableNode"
- type="Reference"
- description="An ordered set of executable nodes."/>
- </elements>
- <elements
- name="ControlNode"
- supertypes="//@dataContexts.0/@elements.107"/>
- <elements
- name="ControlFlow"
- supertypes="//@dataContexts.0/@elements.112"/>
- <elements
- name="InitialNode"
- supertypes="//@dataContexts.0/@elements.126"/>
- <elements
- name="ActivityParameterNode"
- supertypes="//@dataContexts.0/@elements.116">
- <properties
- name="parameter"
- type="Reference"
- description="The parameter the object node will be accepting or providing values for."/>
- </elements>
- <elements
- name="ValuePin"
- supertypes="//@dataContexts.0/@elements.119">
- <properties
- name="value"
- type="Reference"
- description="Value that the pin will provide."/>
- </elements>
- <elements
- name="Message"
- supertypes="//@dataContexts.0/@elements.4">
- <properties
- name="messageKind"
- type="Enumeration"
- description="The derived kind of the Message (complete, lost, found or unknown)"/>
- <properties
- name="messageSort"
- type="Enumeration"
- description="The sort of communication reflected by the Message"/>
- <properties
- name="receiveEvent"
- type="Reference"
- description="References the Receiving of the Message"/>
- <properties
- name="sendEvent"
- type="Reference"
- description="References the Sending of the Message."/>
- <properties
- name="connector"
- type="Reference"
- description="The Connector on which this Message is sent."/>
- <properties
- name="interaction"
- type="Reference"
- description="The enclosing Interaction owning the Message"/>
- <properties
- name="argument"
- type="Reference"
- description="The arguments of the Message"/>
- <properties
- name="signature"
- type="Reference"
- description="The definition of the type or signature of the Message (depending on its kind). The associated named element is derived from the message end that constitutes the sending or receiving message event. If both a sending event and a receiving message event are present, the signature is obtained from the sending event."/>
- </elements>
- <elements
- name="MessageEnd"
- supertypes="//@dataContexts.0/@elements.4">
- <properties
- name="message"
- type="Reference"
- description="References a Message."/>
- </elements>
- <elements
- name="Interaction"
- supertypes="//@dataContexts.0/@elements.44 //@dataContexts.0/@elements.134">
- <properties
- name="lifeline"
- type="Reference"
- description="Specifies the participants in this Interaction."/>
- <properties
- name="fragment"
- type="Reference"
- description="The ordered set of fragments in the Interaction."/>
- <properties
- name="action"
- type="Reference"
- description="Actions owned by the Interaction."/>
- <properties
- name="formalGate"
- type="Reference"
- description="Specifies the gates that form the message interface between this Interaction and any InteractionUses which reference it.&#xD;&#xA;"/>
- <properties
- name="message"
- type="Reference"
- description="The Messages contained in this Interaction."/>
- </elements>
- <elements
- name="InteractionFragment"
- supertypes="//@dataContexts.0/@elements.4">
- <properties
- name="covered"
- type="Reference"
- description="References the Lifelines that the InteractionFragment involves."/>
- <properties
- name="generalOrdering"
- type="Reference"
- description="The general ordering relationships contained in this fragment."/>
- <properties
- name="enclosingInteraction"
- type="Reference"
- description="The Interaction enclosing this InteractionFragment."/>
- <properties
- name="enclosingOperand"
- type="Reference"
- description="The operand enclosing this InteractionFragment (they may nest recursively)"/>
- </elements>
- <elements
- name="Lifeline"
- supertypes="//@dataContexts.0/@elements.4">
- <properties
- name="represents"
- type="Reference"
- description="References the ConnectableElement within the classifier that contains the enclosing interaction."/>
- <properties
- name="interaction"
- type="Reference"
- description="References the Interaction enclosing this Lifeline."/>
- <properties
- name="selector"
- type="Reference"
- description="If the referenced ConnectableElement is multivalued, then this specifies the specific individual part within that set."/>
- <properties
- name="decomposedAs"
- type="Reference"
- description="References the Interaction that represents the decomposition."/>
- <properties
- name="coveredBy"
- type="Reference"
- description="References the InteractionFragments in which this Lifeline takes part."/>
- </elements>
- <elements
- name="PartDecomposition"
- supertypes="//@dataContexts.0/@elements.137"/>
- <elements
- name="InteractionUse"
- supertypes="//@dataContexts.0/@elements.134">
- <properties
- name="refersTo"
- type="Reference"
- description="Refers to the Interaction that defines its meaning"/>
- <properties
- name="actualGate"
- type="Reference"
- description="The actual gates of the InteractionUse"/>
- <properties
- name="argument"
- type="Reference"
- description="The actual arguments of the Interaction"/>
- <properties
- name="returnValue"
- type="Reference"
- description="The value of the executed Interaction."/>
- <properties
- name="returnValueRecipient"
- type="Reference"
- description="The recipient of the return value."/>
- </elements>
- <elements
- name="Gate"
- supertypes="//@dataContexts.0/@elements.132"/>
- <elements
- name="GeneralOrdering"
- supertypes="//@dataContexts.0/@elements.4">
- <properties
- name="before"
- type="Reference"
- description="The OccurrenceSpecification referenced comes before the OccurrenceSpecification referenced by after."/>
- <properties
- name="after"
- type="Reference"
- description="The OccurrenceSpecification referenced comes after the OccurrenceSpecification referenced by before."/>
- </elements>
- <elements
- name="OccurrenceSpecification"
- supertypes="//@dataContexts.0/@elements.134">
- <properties
- name="toBefore"
- type="Reference"
- description="References the GeneralOrderings that specify EventOcurrences that must occur before this OccurrenceSpecification&#xD;&#xA;"/>
- <properties
- name="toAfter"
- type="Reference"
- description="References the GeneralOrderings that specify EventOcurrences that must occur after this OccurrenceSpecification&#xD;&#xA;"/>
- </elements>
- <elements
- name="InteractionOperand"
- supertypes="//@dataContexts.0/@elements.8 //@dataContexts.0/@elements.134">
- <properties
- name="guard"
- type="Reference"
- description="Constraint of the operand."/>
- <properties
- name="fragment"
- type="Reference"
- description="The fragments of the operand."/>
- </elements>
- <elements
- name="InteractionConstraint"
- supertypes="//@dataContexts.0/@elements.11">
- <properties
- name="minint"
- type="Reference"
- description="The minimum number of iterations of a loop"/>
- <properties
- name="maxint"
- type="Reference"
- description="The maximum number of iterations of a loop"/>
- </elements>
- <elements
- name="ExecutionSpecification"
- supertypes="//@dataContexts.0/@elements.134">
- <properties
- name="start"
- type="Reference"
- description="References the OccurrenceSpecification that designates the start of the Action or Behavior"/>
- <properties
- name="finish"
- type="Reference"
- description="References the OccurrenceSpecification that designates the finish of the Action or Behavior."/>
- </elements>
- <elements
- name="StateInvariant"
- supertypes="//@dataContexts.0/@elements.134">
- <properties
- name="invariant"
- type="Reference"
- description="A Constraint that should hold at runtime for this StateInvariant"/>
- </elements>
- <elements
- name="ActionExecutionSpecification"
- supertypes="//@dataContexts.0/@elements.143">
- <properties
- name="action"
- type="Reference"
- description="Action whose execution is occurring."/>
- </elements>
- <elements
- name="BehaviorExecutionSpecification"
- supertypes="//@dataContexts.0/@elements.143">
- <properties
- name="behavior"
- type="Reference"
- description="Behavior whose execution is occurring."/>
- </elements>
- <elements
- name="CreationEvent"
- supertypes="//@dataContexts.0/@elements.57"/>
- <elements
- name="MessageEvent"
- supertypes="//@dataContexts.0/@elements.57"/>
- <elements
- name="MessageOccurrenceSpecification"
- supertypes="//@dataContexts.0/@elements.140 //@dataContexts.0/@elements.132"/>
- <elements
- name="ExecutionOccurrenceSpecification"
- supertypes="//@dataContexts.0/@elements.140">
- <properties
- name="execution"
- type="Reference"
- multiplicity="2"
- description="References the execution specification describing the execution that is started or finished at this execution event."/>
- </elements>
- <elements
- name="Actor"
- supertypes="//@dataContexts.0/@elements.46"/>
- <elements
- name="CallEvent"
- supertypes="//@dataContexts.0/@elements.148">
- <properties
- name="operation"
- type="Reference"
- description="Designates the operation whose invocation raised the call event."/>
- </elements>
- <elements
- name="ChangeEvent"
- supertypes="//@dataContexts.0/@elements.57">
- <properties
- name="changeExpression"
- type="Reference"
- description="A Boolean-valued expression that will result in a change event whenever its value changes from false to true."/>
- </elements>
- <elements
- name="SignalEvent"
- supertypes="//@dataContexts.0/@elements.148">
- <properties
- name="signal"
- type="Reference"
- description="The specific signal that is associated with this event."/>
- </elements>
- <elements
- name="AnyReceiveEvent"
- supertypes="//@dataContexts.0/@elements.148"/>
- <elements
- name="ForkNode"
- supertypes="//@dataContexts.0/@elements.126"/>
- <elements
- name="FlowFinalNode"
- supertypes="//@dataContexts.0/@elements.158"/>
- <elements
- name="FinalNode"
- supertypes="//@dataContexts.0/@elements.126"/>
- <elements
- name="CentralBufferNode"
- supertypes="//@dataContexts.0/@elements.116"/>
- <elements
- name="MergeNode"
- supertypes="//@dataContexts.0/@elements.126"/>
- <elements
- name="DecisionNode"
- supertypes="//@dataContexts.0/@elements.126">
- <properties
- name="decisionInput"
- type="Reference"
- description="Provides input to guard specifications on edges outgoing from the decision node."/>
- <properties
- name="decisionInputFlow"
- type="Reference"
- description="An additional edge incoming to the decision node that provides a decision input value."/>
- </elements>
- <elements
- name="ObjectFlow"
- supertypes="//@dataContexts.0/@elements.112">
- <properties
- name="isMulticast"
- description="Tells whether the objects in the flow are passed by multicasting."/>
- <properties
- name="isMultireceive"
- description="Tells whether the objects in the flow are gathered from respondents to multicasting."/>
- <properties
- name="transformation"
- type="Reference"
- description="Changes or replaces data tokens flowing along edge."/>
- <properties
- name="selection"
- type="Reference"
- description="Selects tokens from a source object node."/>
- </elements>
- <elements
- name="ActivityFinalNode"
- supertypes="//@dataContexts.0/@elements.158"/>
- <elements
- name="ComponentRealization"
- supertypes="//@dataContexts.0/@elements.28">
- <properties
- name="abstraction"
- type="Reference"
- description="The Component that owns this ComponentRealization and which is implemented by its realizing classifiers."/>
- <properties
- name="realizingClassifier"
- type="Reference"
- description="The classifiers that are involved in the implementation of the Component that owns this Realization."/>
- </elements>
- <elements
- name="Component"
- supertypes="//@dataContexts.0/@elements.45">
- <properties
- name="isIndirectlyInstantiated"
- description="The kind of instantiation that applies to a Component. If false, the component is instantiated as an addressable object. If true, the Component is defined at design-time, but at runtime (or execution-time) an object specified by the Component does not exist, that is, the component is instantiated indirectly, through the instantiation of its realizing classifiers or parts. Several standard stereotypes use this meta attribute, e.g. &lt;&lt;specification>>, &lt;&lt;focus>>, &lt;&lt;subsystem>>."/>
- <properties
- name="required"
- type="Reference"
- description="The interfaces that the component requires from other components in its environment in order to be able to offer its full set of provided functionality. These interfaces may be used by the Component or any of its realizingClassifiers, or they may be the Interfaces that are required by its public Ports."/>
- <properties
- name="provided"
- type="Reference"
- description="The interfaces that the component exposes to its environment. These interfaces may be Realized by the Component or any of its realizingClassifiers, or they may be the Interfaces that are provided by its public Ports."/>
- <properties
- name="packagedElement"
- type="Reference"
- description="The set of PackageableElements that a Component owns. In the namespace of a component, all model elements that are involved in or related to its definition may be owned or imported explicitly. These may include e.g. Classes, Interfaces, Components, Packages, Use cases, Dependencies (e.g. mappings), and Artifacts."/>
- <properties
- name="realization"
- type="Reference"
- description="The set of Realizations owned by the Component. Realizations reference the Classifiers of which the Component is an abstraction; i.e., that realize its behavior."/>
- </elements>
- <elements
- name="Node"
- supertypes="//@dataContexts.0/@elements.45 //@dataContexts.0/@elements.36">
- <properties
- name="nestedNode"
- type="Reference"
- description="The Nodes that are defined (nested) within the Node."/>
- </elements>
- <elements
- name="CommunicationPath"
- supertypes="//@dataContexts.0/@elements.15"/>
- <elements
- name="Device"
- supertypes="//@dataContexts.0/@elements.166"/>
- <elements
- name="ExecutionEnvironment"
- supertypes="//@dataContexts.0/@elements.166"/>
- <elements
- name="CombinedFragment"
- supertypes="//@dataContexts.0/@elements.134">
- <properties
- name="interactionOperator"
- type="Enumeration"
- description="Specifies the operation which defines the semantics of this combination of InteractionFragments."/>
- <properties
- name="operand"
- type="Reference"
- description="The set of operands of the combined fragment."/>
- <properties
- name="cfragmentGate"
- type="Reference"
- description="Specifies the gates that form the interface between this CombinedFragment and its surroundings"/>
- </elements>
- <elements
- name="Continuation"
- supertypes="//@dataContexts.0/@elements.134">
- <properties
- name="setting"
- description="True: when the Continuation is at the end of the enclosing InteractionFragment and False when it is in the beginning."/>
- </elements>
- <elements
- name="ConsiderIgnoreFragment"
- supertypes="//@dataContexts.0/@elements.170">
- <properties
- name="message"
- type="Reference"
- description="The set of messages that apply to this fragment"/>
- </elements>
- <elements
- name="CreateObjectAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="classifier"
- type="Reference"
- description="Classifier to be instantiated."/>
- <properties
- name="result"
- type="Reference"
- description="Gives the output pin on which the result is put."/>
- </elements>
- <elements
- name="DestroyObjectAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="isDestroyLinks"
- description="Specifies whether links in which the object participates are destroyed along with the object."/>
- <properties
- name="isDestroyOwnedObjects"
- description="Specifies whether objects owned by the object are destroyed along with the object."/>
- <properties
- name="target"
- type="Reference"
- description="The input pin providing the object to be destroyed."/>
- </elements>
- <elements
- name="TestIdentityAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="first"
- type="Reference"
- description="Gives the pin on which an object is placed."/>
- <properties
- name="second"
- type="Reference"
- description="Gives the pin on which an object is placed."/>
- <properties
- name="result"
- type="Reference"
- description="Tells whether the two input objects are identical."/>
- </elements>
- <elements
- name="ReadSelfAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="result"
- type="Reference"
- description="Gives the output pin on which the hosting object is placed."/>
- </elements>
- <elements
- name="StructuralFeatureAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="structuralFeature"
- type="Reference"
- description="Structural feature to be read."/>
- <properties
- name="object"
- type="Reference"
- description="Gives the input pin from which the object whose structural feature is to be read or written is obtained.&#xD;&#xA;"/>
- </elements>
- <elements
- name="ReadStructuralFeatureAction"
- supertypes="//@dataContexts.0/@elements.177">
- <properties
- name="result"
- type="Reference"
- description="Gives the output pin on which the result is put."/>
- </elements>
- <elements
- name="WriteStructuralFeatureAction"
- supertypes="//@dataContexts.0/@elements.177">
- <properties
- name="value"
- type="Reference"
- description="Value to be added or removed from the structural feature."/>
- <properties
- name="result"
- type="Reference"
- description="Gives the output pin on which the result is put."/>
- </elements>
- <elements
- name="ClearStructuralFeatureAction"
- supertypes="//@dataContexts.0/@elements.177">
- <properties
- name="result"
- type="Reference"
- description="Gives the output pin on which the result is put."/>
- </elements>
- <elements
- name="RemoveStructuralFeatureValueAction"
- supertypes="//@dataContexts.0/@elements.179">
- <properties
- name="isRemoveDuplicates"
- description="Specifies whether to remove duplicates of the value in nonunique structural features."/>
- <properties
- name="removeAt"
- type="Reference"
- description="Specifies the position of an existing value to remove in ordered nonunique structural features. The type of the pin is UnlimitedNatural, but the value cannot be zero or unlimited."/>
- </elements>
- <elements
- name="AddStructuralFeatureValueAction"
- supertypes="//@dataContexts.0/@elements.179">
- <properties
- name="isReplaceAll"
- description="Specifies whether existing values of the structural feature of the object should be removed before adding the new value."/>
- <properties
- name="insertAt"
- type="Reference"
- description="Gives the position at which to insert a new value or move an existing value in ordered structural features. The type of the pin is UnlimitedNatural, but the value cannot be zero. This pin is omitted for unordered structural features."/>
- </elements>
- <elements
- name="LinkAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="endData"
- type="Reference"
- description="Data identifying one end of a link by the objects on its ends and qualifiers."/>
- <properties
- name="inputValue"
- type="Reference"
- description="Pins taking end objects and qualifier values as input."/>
- </elements>
- <elements
- name="LinkEndData"
- supertypes="//@dataContexts.0/@elements.1">
- <properties
- name="value"
- type="Reference"
- description="Input pin that provides the specified object for the given end. This pin is omitted if the link-end data specifies an 'open' end for reading."/>
- <properties
- name="end"
- type="Reference"
- description="Association end for which this link-end data specifies values."/>
- <properties
- name="qualifier"
- type="Reference"
- description="List of qualifier values"/>
- </elements>
- <elements
- name="QualifierValue"
- supertypes="//@dataContexts.0/@elements.1">
- <properties
- name="qualifier"
- type="Reference"
- description="Attribute representing the qualifier for which the value is to be specified."/>
- <properties
- name="value"
- type="Reference"
- description="Input pin from which the specified value for the qualifier is taken."/>
- </elements>
- <elements
- name="ReadLinkAction"
- supertypes="//@dataContexts.0/@elements.183">
- <properties
- name="result"
- type="Reference"
- description="The pin on which are put the objects participating in the association at the end not specified by the inputs.&#xD;&#xA;"/>
- </elements>
- <elements
- name="LinkEndCreationData"
- supertypes="//@dataContexts.0/@elements.184">
- <properties
- name="isReplaceAll"
- description="Specifies whether the existing links emanating from the object on this end should be destroyed before creating a new link."/>
- <properties
- name="insertAt"
- type="Reference"
- description="Specifies where the new link should be inserted for ordered association ends, or where an existing link should be moved to. The type of the input is UnlimitedNatural, but the input cannot be zero. This pin is omitted for association ends that are not ordered."/>
- </elements>
- <elements
- name="CreateLinkAction"
- supertypes="//@dataContexts.0/@elements.189"/>
- <elements
- name="WriteLinkAction"
- supertypes="//@dataContexts.0/@elements.183"/>
- <elements
- name="DestroyLinkAction"
- supertypes="//@dataContexts.0/@elements.189"/>
- <elements
- name="LinkEndDestructionData"
- supertypes="//@dataContexts.0/@elements.184">
- <properties
- name="isDestroyDuplicates"
- description="Specifies whether to destroy duplicates of the value in nonunique association ends."/>
- <properties
- name="destroyAt"
- type="Reference"
- description="Specifies the position of an existing link to be destroyed in ordered nonunique association ends. The type of the pin is UnlimitedNatural, but the value cannot be zero or unlimited."/>
- </elements>
- <elements
- name="ClearAssociationAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="object"
- type="Reference"
- description="Gives the input pin from which is obtained the object whose participation in the association is to be cleared."/>
- <properties
- name="association"
- type="Reference"
- description="Association to be cleared."/>
- </elements>
- <elements
- name="BroadcastSignalAction"
- supertypes="//@dataContexts.0/@elements.121">
- <properties
- name="signal"
- type="Reference"
- description="The specification of signal object transmitted to the target objects."/>
- </elements>
- <elements
- name="SendObjectAction"
- supertypes="//@dataContexts.0/@elements.121">
- <properties
- name="target"
- type="Reference"
- description="The target object to which the object is sent."/>
- <properties
- name="request"
- type="Reference"
- description="The request object, which is transmitted to the target object. The object may be copied in transmission, so identity might not be preserved."/>
- </elements>
- <elements
- name="ValueSpecificationAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="value"
- type="Reference"
- description="Value specification to be evaluated."/>
- <properties
- name="result"
- type="Reference"
- description="Gives the output pin on which the result is put."/>
- </elements>
- <elements
- name="TimeExpression"
- supertypes="//@dataContexts.0/@elements.12">
- <properties
- name="expr"
- type="Reference"
- description="The value of the time expression."/>
- <properties
- name="observation"
- type="Reference"
- description="Refers to the time and duration observations that are involved in expr."/>
- </elements>
- <elements
- name="Observation"
- supertypes="//@dataContexts.0/@elements.3"/>
- <elements
- name="Duration"
- supertypes="//@dataContexts.0/@elements.12">
- <properties
- name="expr"
- type="Reference"
- description="The value of the Duration."/>
- <properties
- name="observation"
- type="Reference"
- description="Refers to the time and duration observations that are involved in expr."/>
- </elements>
- <elements
- name="DurationInterval"
- supertypes="//@dataContexts.0/@elements.200"/>
- <elements
- name="Interval"
- supertypes="//@dataContexts.0/@elements.12">
- <properties
- name="min"
- type="Reference"
- description="Refers to the ValueSpecification denoting the minimum value of the range."/>
- <properties
- name="max"
- type="Reference"
- description="Refers to the ValueSpecification denoting the maximum value of the range."/>
- </elements>
- <elements
- name="TimeConstraint"
- supertypes="//@dataContexts.0/@elements.202">
- <properties
- name="firstEvent"
- description="The value of firstEvent is related to constrainedElement. If firstEvent is true, then the corresponding observation event is the first time instant the execution enters constrainedElement. If firstEvent is false, then the corresponding observation event is the last time instant the execution is within constrainedElement."/>
- </elements>
- <elements
- name="IntervalConstraint"
- supertypes="//@dataContexts.0/@elements.11"/>
- <elements
- name="TimeInterval"
- supertypes="//@dataContexts.0/@elements.200"/>
- <elements
- name="DurationConstraint"
- supertypes="//@dataContexts.0/@elements.202">
- <properties
- name="firstEvent"
- description="The value of firstEvent[i] is related to constrainedElement[i] (where i is 1 or 2). If firstEvent[i] is true, then the corresponding observation event is the first time instant the execution enters constrainedElement[i]. If firstEvent[i] is false, then the corresponding observation event is the last time instant the execution is within constrainedElement[i]. Default value is true applied when constrainedElement[i] refers an element that represents only one time instant."/>
- </elements>
- <elements
- name="TimeObservation"
- supertypes="//@dataContexts.0/@elements.197">
- <properties
- name="event"
- type="Reference"
- description="The observation is determined by the entering or exiting of the event element during execution."/>
- <properties
- name="firstEvent"
- description="The value of firstEvent is related to event. If firstEvent is true, then the corresponding observation event is the first time instant the execution enters event. If firstEvent is false, then the corresponding observation event is the time instant the execution exits event."/>
- </elements>
- <elements
- name="DurationObservation"
- supertypes="//@dataContexts.0/@elements.197">
- <properties
- name="event"
- type="Reference"
- description="The observation is determined by the entering or exiting of the event element during execution."/>
- <properties
- name="firstEvent"
- description="The value of firstEvent[i] is related to event[i] (where i is 1 or 2). If firstEvent[i] is true, then the corresponding observation event is the first time instant the execution enters event[i]. If firstEvent[i] is false, then the corresponding observation event is the time instant the execution exits event[i]. Default value is true applied when event[i] refers an element that represents only one time instant."/>
- </elements>
- <elements
- name="FinalState"
- supertypes="//@dataContexts.0/@elements.59"/>
- <elements
- name="TimeEvent"
- supertypes="//@dataContexts.0/@elements.57">
- <properties
- name="isRelative"
- description="Specifies whether it is relative or absolute time."/>
- <properties
- name="when"
- type="Reference"
- description="Specifies the corresponding time deadline."/>
- </elements>
- <elements
- name="VariableAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="variable"
- type="Reference"
- description="Variable to be read."/>
- </elements>
- <elements
- name="ReadVariableAction"
- supertypes="//@dataContexts.0/@elements.209">
- <properties
- name="result"
- type="Reference"
- description="Gives the output pin on which the result is put."/>
- </elements>
- <elements
- name="WriteVariableAction"
- supertypes="//@dataContexts.0/@elements.209">
- <properties
- name="value"
- type="Reference"
- description="Value to be added or removed from the variable."/>
- </elements>
- <elements
- name="ClearVariableAction"
- supertypes="//@dataContexts.0/@elements.209"/>
- <elements
- name="AddVariableValueAction"
- supertypes="//@dataContexts.0/@elements.211">
- <properties
- name="isReplaceAll"
- description="Specifies whether existing values of the variable should be removed before adding the new value."/>
- <properties
- name="insertAt"
- type="Reference"
- description="Gives the position at which to insert a new value or move an existing value in ordered variables. The types is UnlimitedINatural, but the value cannot be zero. This pin is omitted for unordered variables."/>
- </elements>
- <elements
- name="RemoveVariableValueAction"
- supertypes="//@dataContexts.0/@elements.211">
- <properties
- name="isRemoveDuplicates"
- description="Specifies whether to remove duplicates of the value in nonunique variables."/>
- <properties
- name="removeAt"
- type="Reference"
- description="Specifies the position of an existing value to remove in ordered nonunique variables. The type of the pin is UnlimitedNatural, but the value cannot be zero or unlimited."/>
- </elements>
- <elements
- name="RaiseExceptionAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="exception"
- type="Reference"
- description="An input pin whose value becomes an exception object."/>
- </elements>
- <elements
- name="ActionInputPin"
- supertypes="//@dataContexts.0/@elements.119">
- <properties
- name="fromAction"
- type="Reference"
- description="The action used to provide values."/>
- </elements>
- <elements
- name="InformationItem"
- supertypes="//@dataContexts.0/@elements.16">
- <properties
- name="represented"
- type="Reference"
- description="Determines the classifiers that will specify the structure and nature of the information. An information item represents all its represented classifiers."/>
- </elements>
- <elements
- name="InformationFlow"
- supertypes="//@dataContexts.0/@elements.3 //@dataContexts.0/@elements.6">
- <properties
- name="realization"
- type="Reference"
- description="Determines which Relationship will realize the specified flow"/>
- <properties
- name="conveyed"
- type="Reference"
- description="Specifies the information items that may circulate on this information flow."/>
- <properties
- name="informationSource"
- type="Reference"
- description="Defines from which source the conveyed InformationItems are initiated."/>
- <properties
- name="informationTarget"
- type="Reference"
- description="Defines to which target the conveyed InformationItems are directed."/>
- <properties
- name="realizingActivityEdge"
- type="Reference"
- description="Determines which ActivityEdges will realize the specified flow."/>
- <properties
- name="realizingConnector"
- type="Reference"
- description="Determines which Connectors will realize the specified flow."/>
- <properties
- name="realizingMessage"
- type="Reference"
- description="Determines which Messages will realize the specified flow."/>
- </elements>
- <elements
- name="ReadExtentAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="result"
- type="Reference"
- description="The runtime instances of the classifier."/>
- <properties
- name="classifier"
- type="Reference"
- description="The classifier whose instances are to be retrieved."/>
- </elements>
- <elements
- name="ReclassifyObjectAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="isReplaceAll"
- description="Specifies whether existing classifiers should be removed before adding the new classifiers."/>
- <properties
- name="oldClassifier"
- type="Reference"
- description="A set of classifiers to be removed from the classifiers of the object."/>
- <properties
- name="newClassifier"
- type="Reference"
- description="A set of classifiers to be added to the classifiers of the object."/>
- <properties
- name="object"
- type="Reference"
- description="Holds the object to be reclassified."/>
- </elements>
- <elements
- name="ReadIsClassifiedObjectAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="isDirect"
- description="Indicates whether the classifier must directly classify the input object."/>
- <properties
- name="classifier"
- type="Reference"
- description="The classifier against which the classification of the input object is tested."/>
- <properties
- name="result"
- type="Reference"
- description="After termination of the action, will hold the result of the test."/>
- <properties
- name="object"
- type="Reference"
- description="Holds the object whose classification is to be tested."/>
- </elements>
- <elements
- name="StartClassifierBehaviorAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="object"
- type="Reference"
- description="Holds the object on which to start the owned behavior."/>
- </elements>
- <elements
- name="ReadLinkObjectEndAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="object"
- type="Reference"
- description="Gives the input pin from which the link object is obtained."/>
- <properties
- name="end"
- type="Reference"
- description="Link end to be read."/>
- <properties
- name="result"
- type="Reference"
- description="Pin where the result value is placed."/>
- </elements>
- <elements
- name="ReadLinkObjectEndQualifierAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="object"
- type="Reference"
- description="Gives the input pin from which the link object is obtained."/>
- <properties
- name="result"
- type="Reference"
- description="Pin where the result value is placed."/>
- <properties
- name="qualifier"
- type="Reference"
- description="The attribute representing the qualifier to be read."/>
- </elements>
- <elements
- name="CreateLinkObjectAction"
- supertypes="//@dataContexts.0/@elements.188">
- <properties
- name="result"
- type="Reference"
- description="Gives the output pin on which the result is put."/>
- </elements>
- <elements
- name="AcceptEventAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="isUnmarshall"
- description="Indicates whether there is a single output pin for the event, or multiple output pins for attributes of the event."/>
- <properties
- name="result"
- type="Reference"
- description="Pins holding the received event objects or their attributes. Event objects may be copied in transmission, so identity might not be preserved."/>
- <properties
- name="trigger"
- type="Reference"
- description="The type of events accepted by the action, as specified by triggers. For triggers with signal events, a signal of the specified type or any subtype of the specified signal type is accepted."/>
- </elements>
- <elements
- name="AcceptCallAction"
- supertypes="//@dataContexts.0/@elements.226">
- <properties
- name="returnInformation"
- type="Reference"
- description="Pin where a value is placed containing sufficient information to perform a subsequent reply and return control to the caller. The contents of this value are opaque. It can be passed and copied but it cannot be manipulated by the model."/>
- </elements>
- <elements
- name="ReplyAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="replyToCall"
- type="Reference"
- description="The trigger specifying the operation whose call is being replied to."/>
- <properties
- name="returnInformation"
- type="Reference"
- description="A pin containing the return information value produced by an earlier AcceptCallAction."/>
- <properties
- name="replyValue"
- type="Reference"
- description="A list of pins containing the reply values of the operation. These values are returned to the caller."/>
- </elements>
- <elements
- name="UnmarshallAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="result"
- type="Reference"
- description="The values of the structural features of the input object."/>
- <properties
- name="unmarshallType"
- type="Reference"
- description="The type of the object to be unmarshalled."/>
- <properties
- name="object"
- type="Reference"
- description="The object to be unmarshalled."/>
- </elements>
- <elements
- name="ReduceAction"
- supertypes="//@dataContexts.0/@elements.105">
- <properties
- name="reducer"
- type="Reference"
- description="Behavior that is applied to two elements of the input collection to produce a value that is the same type as elements of the collection."/>
- <properties
- name="result"
- type="Reference"
- description="Gives the output pin on which the result is put."/>
- <properties
- name="collection"
- type="Reference"
- description="The collection to be reduced."/>
- <properties
- name="isOrdered"
- description="Tells whether the order of the input collection should determine the order in which the behavior is applied to its elements."/>
- </elements>
- <elements
- name="StartObjectBehaviorAction"
- supertypes="//@dataContexts.0/@elements.120">
- <properties
- name="object"
- type="Reference"
- description="Holds the object which is either a behavior to be started or has a classifier behavior to be started."/>
- </elements>
- <elements
- name="JoinNode"
- supertypes="//@dataContexts.0/@elements.126">
- <properties
- name="isCombineDuplicate"
- description="Tells whether tokens having objects with the same identity are combined into one by the join."/>
- <properties
- name="joinSpec"
- type="Reference"
- description="A specification giving the conditions under which the join with emit a token. Default is &quot;and&quot;."/>
- </elements>
- <elements
- name="DataStoreNode"
- supertypes="//@dataContexts.0/@elements.159"/>
- <elements
- name="ConditionalNode"
- supertypes="//@dataContexts.0/@elements.108">
- <properties
- name="isDeterminate"
- description="If true, the modeler asserts that at most one test will succeed."/>
- <properties
- name="isAssured"
- description="If true, the modeler asserts that at least one test will succeed."/>
- <properties
- name="clause"
- type="Reference"
- description="Set of clauses composing the conditional."/>
- <properties
- name="result"
- type="Reference"
- description="A list of output pins that constitute the data flow outputs of the conditional."/>
- </elements>
- <elements
- name="Clause"
- supertypes="//@dataContexts.0/@elements.1">
- <properties
- name="test"
- type="Reference"
- multiplicity="-1"
- description="A nested activity fragment with a designated output pin that specifies the result of the test."/>
- <properties
- name="body"
- type="Reference"
- description="A nested activity fragment that is executed if the test evaluates to true and the clause is chosen over any concurrent clauses that also evaluate to true."/>
- <properties
- name="predecessorClause"
- type="Reference"
- description="A set of clauses whose tests must all evaluate false before the current clause can be tested."/>
- <properties
- name="successorClause"
- type="Reference"
- description="A set of clauses which may not be tested unless the current clause tests false."/>
- <properties
- name="decider"
- type="Reference"
- description="An output pin within the test fragment the value of which is examined after execution of the test to determine whether the body should be executed."/>
- <properties
- name="bodyOutput"
- type="Reference"
- description="A list of output pins within the body fragment whose values are moved to the result pins of the containing conditional node after execution of the clause body."/>
- </elements>
- <elements
- name="LoopNode"
- supertypes="//@dataContexts.0/@elements.108">
- <properties
- name="isTestedFirst"
- description="If true, the test is performed before the first execution of the body.&#xA;If false, the body is executed once before the test is performed.&#xA;"/>
- <properties
- name="bodyPart"
- type="Reference"
- description="The set of nodes and edges that perform the repetitive computations of the loop. The body section is executed as long as the test section produces a true value."/>
- <properties
- name="setupPart"
- type="Reference"
- description="The set of nodes and edges that initialize values or perform other setup computations for the loop."/>
- <properties
- name="decider"
- type="Reference"
- description="An output pin within the test fragment the value of which is examined after execution of the test to determine whether to execute the loop body."/>
- <properties
- name="test"
- type="Reference"
- multiplicity="-1"
- description="The set of nodes, edges, and designated value that compute a Boolean value to determine if another execution of the body will be performed."/>
- <properties
- name="result"
- type="Reference"
- description="A list of output pins that constitute the data flow output of the entire loop."/>
- <properties
- name="loopVariable"
- type="Reference"
- description="A list of output pins that hold the values of the loop variables during an execution of the loop. When the test fails, the values are movied to the result pins of the loop."/>
- <properties
- name="bodyOutput"
- type="Reference"
- description="A list of output pins within the body fragment the values of which are moved to the loop variable pins after completion of execution of the body, before the next iteration of the loop begins or before the loop exits."/>
- <properties
- name="loopVariableInput"
- type="Reference"
- description="A list of values that are moved into the loop variable pins before the first iteration of the loop."/>
- </elements>
- <elements
- name="ExpansionNode"
- supertypes="//@dataContexts.0/@elements.116">
- <properties
- name="regionAsOutput"
- type="Reference"
- description="The expansion region for which the node is an output."/>
- <properties
- name="regionAsInput"
- type="Reference"
- description="The expansion region for which the node is an input."/>
- </elements>
- <elements
- name="ExpansionRegion"
- supertypes="//@dataContexts.0/@elements.108">
- <properties
- name="mode"
- type="Enumeration"
- description="The way in which the executions interact:&#xD;&#xA;parallel: all interactions are independent&#xD;&#xA;iterative: the interactions occur in order of the elements&#xD;&#xA;stream: a stream of values flows into a single execution&#xD;&#xA;"/>
- <properties
- name="inputElement"
- type="Reference"
- description="An object node that holds a separate element of the input collection during each of the multiple executions of the region."/>
- <properties
- name="outputElement"
- type="Reference"
- description="An object node that accepts a separate element of the output collection during each of the multiple executions of the region. The values are formed into a collection that is available when the execution of the region is complete."/>
- </elements>
- <elements
- name="ProtocolTransition"
- supertypes="//@dataContexts.0/@elements.55">
- <properties
- name="postCondition"
- type="Reference"
- description="Specifies the post condition of the transition which is the condition that should be obtained once the transition is triggered. This post condition is part of the post condition of the operation connected to the transition.&#xD;&#xA;"/>
- <properties
- name="referred"
- type="Reference"
- description="This association refers to the associated operation. It is derived from the operation of the call trigger when applicable."/>
- <properties
- name="preCondition"
- type="Reference"
- description="Specifies the precondition of the transition. It specifies the condition that should be verified before triggering the transition. This guard condition added to the source state will be evaluated as part of the precondition of the operation referred by the transition if any."/>
- </elements>
- <elements
- name="AssociationClass"
- supertypes="//@dataContexts.0/@elements.45 //@dataContexts.0/@elements.15"/>
- <elements
- name="EModelElement">
- <properties
- name="eAnnotations"
- type="Reference"/>
- </elements>
- <elements
- name="LiteralReal"
- supertypes="//@dataContexts.0/@elements.95">
- <properties
- name="value"
- label=""
- description="The specified Real value."/>
- </elements>
- <elements
- name="DestructionOccurrenceSpecification"
- supertypes="//@dataContexts.0/@elements.149"/>
- <modelElementFactory
- href="ppe:/environment/org.eclipse.papyrus.uml.properties/Model/Environment.xmi#//@modelElementFactories.1"/>
- </dataContexts>
- <prototype
- href="ppe:/context/org.eclipse.papyrus.uml.properties/Model/UML/UML.ctx#/"/>
-</contexts:Context>
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/Model/UML/ui/RichTextSingleComment.xwt b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/Model/UML/ui/RichTextSingleComment.xwt
deleted file mode 100644
index a4d438ee24c..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/Model/UML/ui/RichTextSingleComment.xwt
+++ /dev/null
@@ -1,13 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Composite xmlns:x="http://www.eclipse.org/xwt"
- xmlns:richtext="clr-namespace:org.eclipse.papyrus.infra.widgets.epf.richtext.extension.properties.uml"
- xmlns:ppel="clr-namespace:org.eclipse.papyrus.views.properties.widgets.layout"
- xmlns="http://www.eclipse.org/xwt/presentation" xmlns:ppe="clr-namespace:org.eclipse.papyrus.views.properties.widgets">
- <Composite.layout>
- <ppel:PropertiesLayout></ppel:PropertiesLayout>
- </Composite.layout>
- <richtext:CommentBodyRichTextEditor
- input="{Binding}" property="UML:Comment:body"></richtext:CommentBodyRichTextEditor>
- <ppe:MultiReference input="{Binding}"
- property="UML:Comment:annotatedElement"></ppe:MultiReference>
-</Composite> \ No newline at end of file
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/Model/UML/uml.querySet b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/Model/UML/uml.querySet
deleted file mode 100644
index a1702cb58bb..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/Model/UML/uml.querySet
+++ /dev/null
@@ -1,2 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"/>
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/Model/environment.xmi b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/Model/environment.xmi
deleted file mode 100644
index daf76117c48..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/Model/environment.xmi
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="ASCII"?>
-<environment:Environment
- xmi:version="2.0"
- xmlns:xmi="http://www.omg.org/XMI"
- xmlns:environment="http://www.eclipse.org/papyrus/properties/environment/0.9">
- <constraintTypes
- label="UML Instance Of"
- constraintClass="org.eclipse.papyrus.uml.properties.constraints.UmlInstanceOfConstraint"/>
- <constraintTypes
- label="Has Stereotype"
- constraintClass="org.eclipse.papyrus.uml.properties.constraints.HasStereotypeConstraint"/>
- <constraintTypes
- label="IsDataType"
- constraintClass="org.eclipse.papyrus.uml.properties.datatype.IsDataTypeConstraint"/>
- <constraintTypes
- label="Is UML Datatype Instance"
- constraintClass="org.eclipse.papyrus.uml.properties.constraints.IsUMLDatatypeInstance"/>
- <modelElementFactories
- name="UML Specific Factory"
- factoryClass="org.eclipse.papyrus.uml.properties.modelelement.UMLEditorFactory"/>
- <modelElementFactories
- name="UML Factory"
- factoryClass="org.eclipse.papyrus.uml.properties.modelelement.UMLModelElementFactory"/>
- <modelElementFactories
- name="Stereotype Factory"
- factoryClass="org.eclipse.papyrus.uml.properties.modelelement.StereotypeModelElementFactory"/>
- <modelElementFactories
- name="Stereotype Application Factory"
- factoryClass="org.eclipse.papyrus.uml.properties.modelelement.StereotypeApplicationFactory"/>
- <modelElementFactories
- name="UML Notation Factory"
- factoryClass="org.eclipse.papyrus.uml.properties.modelelement.UMLNotationFactory"/>
- <modelElementFactories
- name="Custom Image Factory"
- factoryClass="org.eclipse.papyrus.uml.properties.modelelement.CustomImageModelElementFactory"/>
- <modelElementFactories
- name="Stereotype Appearance Factory"
- factoryClass="org.eclipse.papyrus.uml.properties.modelelement.StereotypeAppearanceFactory"/>
- <modelElementFactories
- name="Comments Model Element Factory"
- factoryClass="org.eclipse.papyrus.uml.properties.modelelement.CommentModelElementFactory"/>
- <modelElementFactories
- name="Profile definitions"
- factoryClass="org.eclipse.papyrus.uml.properties.modelelement.ProfileDefinitionModelElementFactory"/>
- <propertyEditorTypes
- label="ExpressionEditor"
- widgetClass="ExpressionEditor"
- namespace="//@namespaces.0"
- multiplicity="-1"/>
- <propertyEditorTypes
- label="Profile Application Editor"
- widgetClass="ProfileApplicationPropertyEditor"
- namespace="//@namespaces.0"
- type="Reference"
- multiplicity="-1"/>
- <propertyEditorTypes
- label="StereotypeDisplayEditor"
- widgetClass="StereotypeDisplay"
- namespace="//@namespaces.0"
- type="Reference"/>
- <propertyEditorTypes
- label="Stereotype Application Editor"
- widgetClass="StereotypeApplication"
- namespace="//@namespaces.0"
- type="Reference"
- multiplicity="-1"/>
- <propertyEditorTypes
- label="Image content Editor"
- widgetClass="StereotypeImageEditor"
- namespace="//@namespaces.0"/>
- <propertyEditorTypes
- label="Comment Editor"
- widgetClass="CommentPropertyEditor"
- namespace="//@namespaces.0"
- type="Reference"
- multiplicity="-1"/>
- <propertyEditorTypes
- label="Comment Body Editor"
- widgetClass="CommentBodyEditor"
- namespace="//@namespaces.0"/>
- <propertyEditorTypes
- label="Generic UML DataType Editor (No preview)"
- widgetClass="GenericUMLDatatypeEditor"
- namespace="//@namespaces.0"
- type="Reference"/>
- <propertyEditorTypes
- label="String Rich Text Editor"
- widgetClass="CommentBodyRichTextEditor"
- namespace="//@namespaces.0"/>
- <namespaces
- name="richtext"
- value="org.eclipse.papyrus.infra.widgets.epf.richtext.extension.properties.uml"/>
-</environment:Environment>
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/build.properties b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/build.properties
deleted file mode 100644
index 367a556143a..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/build.properties
+++ /dev/null
@@ -1,14 +0,0 @@
-bin.includes = icons/,\
- META-INF/,\
- rte/,\
- plugin.properties,\
- about.html,\
- files/,\
- .,\
- plugin.xml,\
- Model/
-src.includes = about.html
-source.. = src/
-output.. = bin/
-jars.compile.order = .
-
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddImage.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddImage.gif
deleted file mode 100644
index 4308a8a2ec7..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddImage.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddLine.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddLine.gif
deleted file mode 100644
index 7f08dcf651e..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddLine.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddLink.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddLink.gif
deleted file mode 100644
index 7b111960867..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddLink.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddOrderedList.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddOrderedList.gif
deleted file mode 100644
index f9ae4154b12..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddOrderedList.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddTable.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddTable.gif
deleted file mode 100644
index 20884628895..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddTable.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddUnorderedList.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddUnorderedList.gif
deleted file mode 100644
index 9c44ec645ae..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/AddUnorderedList.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Bold.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Bold.gif
deleted file mode 100644
index 2dc59878356..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Bold.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/ClearContent.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/ClearContent.gif
deleted file mode 100644
index 9ff6416063d..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/ClearContent.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Copy.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Copy.gif
deleted file mode 100644
index e9bc65e32a0..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Copy.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Cut.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Cut.gif
deleted file mode 100644
index bd43144729a..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Cut.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/FindReplace.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/FindReplace.gif
deleted file mode 100644
index c8f88716c46..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/FindReplace.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Indent.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Indent.gif
deleted file mode 100644
index 436e15369b7..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Indent.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Italic.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Italic.gif
deleted file mode 100644
index c9b5a4483a7..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Italic.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/JustifyCenter.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/JustifyCenter.gif
deleted file mode 100644
index eeabf0513de..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/JustifyCenter.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/JustifyFull.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/JustifyFull.gif
deleted file mode 100644
index a90a3b8b141..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/JustifyFull.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/JustifyLeft.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/JustifyLeft.gif
deleted file mode 100644
index e85469b5d7a..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/JustifyLeft.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/JustifyRight.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/JustifyRight.gif
deleted file mode 100644
index 0005af11ea1..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/JustifyRight.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Outdent.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Outdent.gif
deleted file mode 100644
index edcda3eea36..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Outdent.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Paste.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Paste.gif
deleted file mode 100644
index 1c7668db98e..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Paste.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/PastePlainText.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/PastePlainText.gif
deleted file mode 100644
index d01a2297af7..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/PastePlainText.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/StrikeThrough.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/StrikeThrough.gif
deleted file mode 100644
index a1035459470..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/StrikeThrough.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Subscript.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Subscript.gif
deleted file mode 100644
index a7b31aa064e..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Subscript.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Superscript.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Superscript.gif
deleted file mode 100644
index e4b266c5e53..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Superscript.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/TidyHTML.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/TidyHTML.gif
deleted file mode 100644
index 36bc9df8e50..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/TidyHTML.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Underline.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Underline.gif
deleted file mode 100644
index e2a96469cee..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/dtool16/Underline.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddImage.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddImage.gif
deleted file mode 100644
index 0545213fbaa..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddImage.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddLine.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddLine.gif
deleted file mode 100644
index 7f08dcf651e..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddLine.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddLink.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddLink.gif
deleted file mode 100644
index e99194adefd..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddLink.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddOrderedList.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddOrderedList.gif
deleted file mode 100644
index b6814c10a08..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddOrderedList.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddTable.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddTable.gif
deleted file mode 100644
index d368859b9e6..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddTable.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddUnorderedList.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddUnorderedList.gif
deleted file mode 100644
index a4fdfc9e461..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/AddUnorderedList.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Bold.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Bold.gif
deleted file mode 100644
index 00df9e553e5..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Bold.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/ClearContent.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/ClearContent.gif
deleted file mode 100644
index 255832653fd..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/ClearContent.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Copy.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Copy.gif
deleted file mode 100644
index f32aceebb3e..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Copy.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Cut.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Cut.gif
deleted file mode 100644
index 7e8635c8ab4..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Cut.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/FindReplace.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/FindReplace.gif
deleted file mode 100644
index 11257ecd23b..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/FindReplace.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Indent.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Indent.gif
deleted file mode 100644
index 78195d0743e..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Indent.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Italic.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Italic.gif
deleted file mode 100644
index ad0cd11add5..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Italic.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/JustifyCenter.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/JustifyCenter.gif
deleted file mode 100644
index eeabf0513de..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/JustifyCenter.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/JustifyFull.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/JustifyFull.gif
deleted file mode 100644
index a90a3b8b141..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/JustifyFull.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/JustifyLeft.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/JustifyLeft.gif
deleted file mode 100644
index e85469b5d7a..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/JustifyLeft.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/JustifyRight.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/JustifyRight.gif
deleted file mode 100644
index 0005af11ea1..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/JustifyRight.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Outdent.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Outdent.gif
deleted file mode 100644
index 406b94f2840..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Outdent.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Paste.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Paste.gif
deleted file mode 100644
index 94d39a1af5c..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Paste.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/PastePlainText.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/PastePlainText.gif
deleted file mode 100644
index d8f9895833e..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/PastePlainText.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/SpellCheck.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/SpellCheck.gif
deleted file mode 100644
index 7262e81fc68..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/SpellCheck.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/StrikeThrough.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/StrikeThrough.gif
deleted file mode 100644
index a1035459470..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/StrikeThrough.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Subscript.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Subscript.gif
deleted file mode 100644
index 1c0f7133c7d..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Subscript.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Superscript.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Superscript.gif
deleted file mode 100644
index 32866349b8f..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Superscript.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/TidyHTML.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/TidyHTML.gif
deleted file mode 100644
index adf2410fa60..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/TidyHTML.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Underline.gif b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Underline.gif
deleted file mode 100644
index e6476d6f45b..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/icons/full/etool16/Underline.gif
+++ /dev/null
Binary files differ
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/plugin.properties b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/plugin.properties
deleted file mode 100644
index 6ac9873f7e5..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/plugin.properties
+++ /dev/null
@@ -1,23 +0,0 @@
-#################################################################################
-# Copyright (c) 2014 CEA LIST.
-# 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:
-# Patrick Tessier (CEA LIST) Patrick.tessier@cea.fr - initial API and implementation
-##################################################################################
-
-# Plug-in
-pluginName=EPF Rich Text for papyrus
-providerName=Eclipse Modeling Project
-
-################################################################################
-# THE FOLLOWING PROPERTIES SHOULD NOT BE TRANSLATED!!!
-################################################################################
-
-# The HTML file used to render the Rich Text Editor.
-RichText.editorHTML=rte.htm
-
-
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/plugin.xml b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/plugin.xml
deleted file mode 100644
index 8575a22afdb..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/plugin.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<?eclipse version="3.4"?>
-<plugin>
- <extension point="org.eclipse.papyrus.infra.properties.environments">
- <environment environmentModel="Model/environment.xmi">
- </environment>
- </extension>
- <extension point="org.eclipse.papyrus.infra.properties.ui.context">
- <context contextModel="Model/UML/RichText.ctx">
- </context>
- </extension>
-</plugin>
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/pom.xml b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/pom.xml
deleted file mode 100644
index 5e29b84b3c5..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/pom.xml
+++ /dev/null
@@ -1,21 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project>
- <modelVersion>4.0.0</modelVersion>
- <parent>
- <groupId>org.eclipse.papyrus</groupId>
- <artifactId>org.eclipse.papyrus.infra.widgets.epf</artifactId>
- <version>1.2.0-SNAPSHOT</version>
- <relativePath>../pom.xml</relativePath>
- </parent>
- <artifactId>org.eclipse.papyrus.infra.widgets.epf.richtext.extension</artifactId>
- <groupId>org.eclipse.papyrus</groupId>
- <version>1.2.0-SNAPSHOT</version>
- <packaging>eclipse-plugin</packaging>
- <repositories>
- <repository>
- <id>org.eclipse.epf.richtext_1.5.1.6-update-site</id>
- <layout>p2</layout>
- <url>http://download.eclipse.org/modeling/mdt/papyrus/updates/epf/main</url>
- </repository>
- </repositories>
-</project> \ No newline at end of file
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/blank.htm b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/blank.htm
deleted file mode 100644
index 7d9727a5d1b..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/blank.htm
+++ /dev/null
@@ -1,9 +0,0 @@
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
-
-<html>
-<head>
- <title></title>
-</head>
-<body>
-</body>
-</html>
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/rte.css b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/rte.css
deleted file mode 100644
index 7dc6c9e6d7b..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/rte.css
+++ /dev/null
@@ -1,457 +0,0 @@
-/*
- * Copyright (c) 2005, 2006 IBM 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:
- * IBM Corporation - initial implementation
- */
-
-body {
- background-image: none;
- background-color: #ffffff;
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- margin: 3px;
- padding: 0px;
-}
-
-p {
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
-}
-
-h1 {
- font-family: arial, helvetica, sans-serif;
- font-size: large;
-}
-
-h2 {
- font-family: arial, helvetica, sans-serif;
- font-size: 150%;
-}
-
-h3 {
- font-family: arial, helvetica, sans-serif;
-}
-
-h4, h5, h6 {
- font-family: arial, helvetica, sans-serif;
-}
-
-a:link {
- color: #003399;
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- text-decoration: none;
-}
-
-a:active {
- color: #003399;
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- text-decoration: underline;
-}
-
-a:visited {
- color: #003399;
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- text-decoration: none;
-}
-
-a:hover {
- color: #ff0000;
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- text-decoration: underline;
-}
-
-ol {
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- list-style-type: decimal;
- margin-left: 30px;
-}
-
-ol li {
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- text-align: left
-}
-
-ul {
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- list-style-type: disc;
- margin-left: 30px;
- margin-top: 0px;
-}
-
-ul li {
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- text-align: left;
-}
-
-table {
- background-image: none;
- background: #ffffff;
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
-}
-
-tbody {
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- valign: baseline;
-}
-
-th {
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- text-align: left;
-}
-
-td {
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
-}
-
-td ul {
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- margin-bottom: 0px;
- margin-left: 30px;
-}
-
-.pageTitle {
- background: #9999cc;
- color: #ffffff;
- font-size: 12pt;
- font-weight: bold;
- padding-bottom: 5px;
- padding-left: 10px;
- padding-right: 10px;
- padding-top: 5px;
- text-align: left;
-}
-
-.pageTitleSeparator {
- background-color: #000000;
- padding: 0px;
-}
-
-.tab {
- background-color: #5c81a7;
- color: #ffffff;
- font-family: verdana, arial, sans-serif;
- font-size: 11px;
- font-weight: bold;
-}
-
-.activeTab {
- background-color: #c8d7e3;
- color: #293d6b;
- font-family: verdana, arial, sans-serif;
- font-size: 11px;
- font-weight: bold;
-}
-
-a.tab:link, a.tab:active, a.tab:visited {
- color: #ffffff;
- font-family: verdana, arial, sans-serif;
- font-size: 11px;
- font-weight: bold;
-}
-
-a.tab:hover {
- text-decoration: underline;
-}
-
-.overview {
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- font-weight: normal;
- padding-bottom: 10px;
- padding-left: 20px;
- padding-right: 0px;
- padding-top: 10px;
-}
-
-.overviewTable {
- background: #ffffff;
- width: 100%;
-}
-
-.overviewTable td {
- padding-bottom: 5px;
- padding-left: 5px;
- padding-right: 5px;
- padding-top: 5px;
-}
-
-.overviewSeparator {
- background-color: #000000;
- padding: 0px;
-}
-
-.expandCollapseText {
- font-family: verdana, arial, sans-serif;
- font-size: 8pt;
- padding-left: 5px;
- padding-right: 5px;
-}
-
-.expandCollapseLink {
- color: #333333;
- padding-bottom: 5px;
- text-decoration: none;
-}
-
-.expandCollapseLink:hover {
- color: #0000ff;
- text-decoration: underline;
-}
-
-.expandCollapseLink:visited {
- color: #333333;
-}
-
-.sectionHeading {
- background-color: #98b1c4;
- color: #ffffff;
- cursor: hand;
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- font-weight: bold;
- padding-bottom: 2px;
- padding-left: 2px;
- padding-top: 2px;
- text-decoration: none;
-}
-
-.sectionContent {
- padding-bottom: 0px;
- padding-left: 0px;
- padding-right: 0px;
- padding-top: 0px;
- text-align: right;
-}
-
-.sectionTable {
- border-bottom: #ccc solid 0px;
- border-left: #ccc solid 1px;
- border-right: #ccc solid 0px;
- border-top: #ccc solid 1px;
- padding-bottom: 10px;
- padding-left: 10px;
- padding-right: 10px;
- padding-top: 10px;
- width: 100%;
-}
-
-.sectionTableHeading {
- background: #eee;
- border-bottom: #ccc solid 1px;
- border-left: #ccc solid 0px;
- border-right: #ccc solid 1px;
- border-top: #ccc solid 0px;
- color: #333333;
- height: 20;
- text-align: left;
- width: 20%;
-}
-
-.sectionTableCell {
- border-bottom: #ccc solid 1px;
- border-left: #ccc solid 0px;
- border-right: #ccc solid 1px;
- border-top: #ccc solid 0px;
-}
-
-.breakdownTable {
- border-bottom: #ccc solid 0px;
- border-left: #ccc solid 1px;
- border-right: #ccc solid 0px;
- border-top: #ccc solid 1px;
- padding-bottom: 0px;
- padding-left: 0px;
- padding-right: 0px;
- padding-top: 0px;
- width: 100%;
-}
-
-.breakdownTable th {
- background: #eee;
- border-bottom: #ccc solid 1px;
- border-left: #ccc solid 0px;
- border-right: #ccc solid 1px;
- border-top: #ccc solid 0px;
- color: #333333;
- height: 20;
- text-align: left;
-}
-
-.breakdownTable td {
- border-bottom: #ccc solid 1px;
- border-left: #ccc solid 0px;
- border-right: #ccc solid 1px;
- border-top: #ccc solid 0px;
-}
-
-.defaultTable {
- border-bottom: #ccc solid 0px;
- border-left: #ccc solid 0px;
- border-right: #ccc solid 0px;
- border-top: #ccc solid 0px;
- padding-bottom: 0px;
- padding-left: 0px;
- padding-right: 0px;
- padding-top: 0px;
- width: 100%;
-}
-
-.defaultTable td {
- border-bottom: #ccc solid 0px;
- border-left: #ccc solid 0px;
- border-right: #ccc solid 0px;
- border-top: #ccc solid 0px;
- text-align: left;
-}
-
-.subSectionHeading {
- color: #333333;
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- font-weight: bold;
- text-decoration: none;
-}
-
-.subSectionContent {
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- text-decoration: none;
-}
-
-.stepHeading {
- background-color: #ffffff;
- color: #293d6b;
- cursor: hand;
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- font-weight: bold;
- padding-bottom: 2px;
- padding-left: 2px;
- padding-top: 2px;
- text-decoration: none;
-}
-
-.stepContent {
- border-bottom: #ccc solid 0px;
- border-left: #ccc solid 0px;
- border-right: #ccc solid 0px;
- border-top: #ccc solid 0px;
- padding-bottom: 5px;
- padding-left: 0px;
- padding-right: 0px;
- padding-top: 0px;
- text-align: right;
-}
-
-.stepTable {
- border-bottom: #999999 solid 1px;
- border-left: #999999 solid 0px;
- border-right: #999999 solid 0px;
- border-top: #999999 solid 0px;
- padding-bottom: 20px;
- padding-left: 10px;
- padding-right: 10px;
- padding-top: 10px;
- width: 100%;
-}
-
-.stepTable td {
- border: #ccc solid 0px;
-}
-
-.stepSeparator {
- background-color: #cccccc;
- padding: 0px;
-}
-
-.backToTopLink {
- color: #fffff;
- font-family: verdana, arial, sans-serif;
- font-size: 8pt;
- font-weight: normal;
- margin: 0px;
- padding-bottom: 10px;
- text-align: middle;
- text-decoration: none;
-}
-
-.backToTopLink:hover {
- color: #969;
- text-decoration: underline;
-}
-
-.backToTopLink:visited {
- color: #5c81a7;
- text-decoration: none;
-}
-
-.copyright {
- color: #7080b0;
- font-family: verdana, arial, sans-serif;
- font-size: 8pt;
- font-weight: normal;
- padding-left: 0px;
- padding-right: 10px;
- padding-top: 25px;
- text-align: left;
- width: 100%;
-}
-
-.versionInfo {
- color: #7080b0;
- font-family: verdana, arial, sans-serif;
- font-size: 8pt;
- font-weight: normal;
- padding-left: 10px;
- padding-right: 0px;
- padding-top: 25px;
- text-align: right;
-}
-
-.quote {
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- font-style: italic;
-}
-
-.codeSample {
- font-family: courier;
- font-size: 10pt;
-}
-
-.elementLink {
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- color: #0000ff;
-}
-
-.elementLinkWithType {
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- color: #0000ff;
-}
-
-.elementLinkWithUserText {
- font-family: arial, helvetica, sans-serif;
- font-size: 10pt;
- color: #0000ff;
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/rte.html b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/rte.html
deleted file mode 100644
index 6451cb73aab..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/rte.html
+++ /dev/null
@@ -1,20 +0,0 @@
-<html>
-<!--
- Copyright (c) 2005, 2006 IBM 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:
- IBM Corporation - initial implementation
--->
- <head>
- <script language="JavaScript" type="text/javascript" src="rte.js"></script>
- </head>
- <body leftMargin="0" topMargin="0" marginheight="0" marginwidth="0" scroll="no" style="overflow: hidden">
- <iframe id="rte" name="rte" style="border: none;" frameborder="0" scrolling="auto" width="100%" height="100%"></iframe>
- <script type="text/javascript">
- initEditor('rte', 'rte.css', null);
- </script>
- </body>
-</html>
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/rte.js b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/rte.js
deleted file mode 100644
index d00044c27f7..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/rte.js
+++ /dev/null
@@ -1,1426 +0,0 @@
-//------------------------------------------------------------------------------
-// Copyright (c) 2005, 2006 IBM 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
-//------------------------------------------------------------------------------
-// @author Kelvin Low
-// @since 1.0
-//------------------------------------------------------------------------------
-// Note: Mozilla/Firefox does not allow unprivileged scripts to invoke the cut,
-// copy and paste commands. The Javascript must either be signed
-// (see http://www.mozilla.org/projects/security/components/signed-scripts.html),
-// or the users must change their preferences
-// (see http://www.mozilla.org/editor/midasdemo/securityprefs.html).
-// Alternatively, the users can use the ctrl-x, ctrl-c and ctrl-v keys.
-//------------------------------------------------------------------------------
-
-var STATUS_NOP = 0;
-var STATUS_INITIALIZED = 1;
-var STATUS_MODIFIED = 2;
-var STATUS_GET_TEXT = 3;
-var STATUS_KEY_DOWN = 4;
-var STATUS_KEY_UP = 5;
-var STATUS_SELECT_TEXT = 6;
-var STATUS_SELECT_CONTROL = 7;
-var STATUS_SELECT_NONE = 8;
-var STATUS_EXEC_CMD = 9;
-var STATUS_REFORMAT_LINKS = 10;
-
-var KEY_ARROW_DOWN = 40;
-var KEY_ARROW_LEFT = 37;
-var KEY_ARROW_RIGHT = 39;
-var KEY_ARROW_UP = 38;
-var KEY_BACKSPACE = 8;
-var KEY_END = 35;
-var KEY_HOME = 36;
-var KEY_PAGE_DOWN = 34;
-var KEY_PAGE_UP = 33;
-var KEY_TAB = 9;
-var KEY_C = 67;
-var KEY_F = 70;
-var KEY_S = 83;
-var KEY_V = 86;
-var KEY_X = 88;
-var KEY_Z = 90;
-
-var CMD_COPY = "copy";
-var CMD_CUT = "cut";
-var CMD_FIND_TEXT = "findText";
-var CMD_PASTE = "paste";
-var CMD_SAVE = "save";
-var CMD_SAVE_ALL = "saveAll";
-
-var TABLE_HEADERS_NONE = 0;
-var TABLE_HEADERS_COLS = 1;
-var TABLE_HEADERS_ROWS = 2;
-var TABLE_HEADERS_BOTH = 3;
-
-var BOLD = 1;
-var ITALIC = BOLD << 1;
-var UNDERLINE = ITALIC << 1;
-var SUBSCRIPT = UNDERLINE << 1;
-var SUPERSCRIPT = SUBSCRIPT << 1;
-
-
-var editorId;
-var editorCSS;
-var baseHREF;
-var supportRichTextEditing = true;
-var editorDoc;
-var selection;
-var selectionRange;
-var readOnly = false;
-var initialized = false;
-var modified = false;
-var checkResizeElement;
-
-// Initializes the editor.
-function initEditor(id, css, baseURL) {
- editorId = id;
- editorCSS = css;
- baseHREF = baseURL;
- try {
- enableRichTextEditing('');
- initialized = true;
- setStatus(STATUS_INITIALIZED, null);
- }
- catch (e) {
- supportRichTextEditing = false;
- }
-}
-
-// Handles the key events.
-function keyPressed(event) {
- var keyCode = event.keyCode;
- if (keyCode == 0 && !document.all) {
- keyCode = event.charCode;
- switch (keyCode) {
- case 99:
- keyCode = KEY_C;
- break;
- case 102:
- keyCode = KEY_F;
- break;
- case 115:
- keyCode = KEY_S;
- break;
- case 118:
- keyCode = KEY_V;
- break;
- case 120:
- keyCode = KEY_X;
- break;
- case 122:
- keyCode = KEY_Z;
- break;
- }
- }
- var ctrlKey = event.ctrlKey;
- var shiftKey = event.shiftKey;
-
- switch(keyCode) {
- case KEY_ARROW_DOWN:
- case KEY_ARROW_LEFT:
- case KEY_ARROW_RIGHT:
- case KEY_ARROW_UP:
- case KEY_END:
- case KEY_HOME:
- case KEY_PAGE_DOWN:
- case KEY_PAGE_UP:
- case KEY_TAB:
- break;
- case KEY_BACKSPACE:
- if (!readOnly) {
- setTimeout("setStatus(STATUS_MODIFIED, null);", 10);
- }
- break;
- case KEY_C:
- if (ctrlKey) {
- setStatus(STATUS_KEY_DOWN, CMD_COPY);
- }
- else if (!document.all && readOnly) {
- event.preventDefault();
- }
- break;
- case KEY_F:
- if (ctrlKey) {
- if (document.all) {
- event.keyCode = -1;
- event.returnValue = false;
- }
- else {
- event.preventDefault();
- }
- setStatus(STATUS_KEY_DOWN, CMD_FIND_TEXT);
- }
- else if (!document.all && readOnly) {
- event.preventDefault();
- }
- break;
- case KEY_S:
- if (!readOnly && ctrlKey) {
- if (document.all) {
- event.keyCode = -1;
- event.returnValue = false;
- }
- else {
- event.preventDefault();
- }
- if (shiftKey) {
- setStatus(STATUS_KEY_DOWN, CMD_SAVE_ALL);
- }
- else {
- setStatus(STATUS_KEY_DOWN, CMD_SAVE);
- }
- }
- else if (!document.all && readOnly) {
- event.preventDefault();
- }
- break;
- case KEY_V:
- if (ctrlKey) {
- if (document.all) {
- event.keyCode = -1;
- event.returnValue = false;
- if (!readOnly) {
- setStatus(STATUS_KEY_DOWN, CMD_PASTE);
- }
- }
- else {
- if (!readOnly) {
- // Workaround Mozilla/Firefox paste issues.
- setTimeout("setStatus(STATUS_KEY_DOWN, CMD_PASTE);", 10);
- }
- else {
- event.preventDefault();
- }
- }
- }
- else if (!document.all && readOnly) {
- event.preventDefault();
- }
- break;
- case KEY_X:
- if (ctrlKey) {
- setStatus(STATUS_KEY_DOWN, CMD_CUT);
- }
- else if (!document.all && readOnly) {
- event.preventDefault();
- }
- break;
- case KEY_Z:
- if (!readOnly && ctrlKey) {
- setTimeout("setStatus(STATUS_MODIFIED, null);", 10);
- }
- else if (!document.all && readOnly) {
- event.preventDefault();
- }
- break;
- default:
- if (!document.all && readOnly) {
- event.preventDefault();
- }
- }
-}
-
-function selChanged(event) {
- updateSelection();
-}
-
-function enableRichTextEditing(html) {
- var doc = document.getElementById(editorId).contentWindow.document;
- doc.designMode = "on";
-
- var htmlSrc = '<html><head><title></title>';
-
- if (editorCSS != null && editorCSS != '') {
- htmlSrc += '<link rel="StyleSheet" href="' + editorCSS + '" type="text/css"/>';
- }
-
- if (baseHREF != null && baseHREF != '') {
- htmlSrc += '<base href="' + baseHREF + '"/>';
- }
-
- if (!document.all && html == '') {
- // Mozilla/Firefox will only display the caret if <br/> is added to the HTML body.
- // Adding <br/> also enables the backspace and delete key by default. Otherwise, the
- // user need to enter some text before these 2 keys start to function.
- html = "<br />";
- }
-
- htmlSrc += '</head><body>' + html + '</body></html>';
-
- doc.open();
- doc.write(htmlSrc);
- doc.close();
-
- modified = false;
-
- if ("attachEvent" in doc) {
- doc.attachEvent("onkeydown", keyPressed);
- doc.attachEvent("onselectionchange", selChanged);
- // for DnD (internal)
- doc.body.attachEvent("ondrop", checkModified);
- // for image/table resizing:
- doc.body.attachEvent("onresizeend", checkModified);
- }
- if ("addEventListener" in doc) {
- doc.addEventListener("keypress", keyPressed, true);
- doc.addEventListener("keypress", selChanged, false);
- doc.addEventListener("mouseup", selChanged, false);
- doc.addEventListener("dragdrop", checkModified, false);
-
- // check mouseup event for image/table resizing
- doc.addEventListener("mouseup", checkModified, false);
- }
-
- setStatus(STATUS_EXEC_CMD, 1);
-}
-
-// this one is for modification check on drag n drop within the RTE
-// checkModified listener
-function checkModified(event) {
- setTimeout("setStatus(STATUS_MODIFIED, null);", 10);
-}
-
-// Sets the height of the editor.
-function setHeight(height) {
- if (initialized) {
- document.getElementById(editorId).height = height + "px";
- }
-}
-
-// Sets the status.
-// Note: By default, Firefox disables changes to the status bar. For this to work, the user
-// must set the global preference "dom.disable_window_status_change" to false.
-// For Firefox 1.0.x, this setting can be made in /usr/firefox-1.0.7/defaults/pref/firefox.js.
-function setStatus(type, value) {
- var status = '$$$' + type;
- if (value != null && value != '') {
- status += ('$' + value);
- }
- window.status = status;
- window.status = '$$$' + STATUS_NOP;
-}
-
-// Returns the HTML source.
-function getHTML() {
- var html = document.getElementById(editorId).contentWindow.document.body.innerHTML;
- if (html == "<P>&nbsp;</P>") {
- html = "";
- }
- if (html != null && html != '') {
- var regEx = new RegExp("\"file\:([^=]*)(/resources/)([^\"]+)\"", "g");
- html = html.replace(regEx, "\"./resources/$3\"");
- regEx = new RegExp("\"file\:([^=]*)/#([^\"]+)\"", "g");
- html = html.replace(regEx, "\"#$2\"");
- }
- return html;
-}
-
-//Returns the HTML source to the Java layer
-function getText() {
- var html = getHTML();
- setStatus(STATUS_GET_TEXT, html);
- return html;
-}
-
-function setInnerHTML(html) {
- if (document.all) {
- // IE has problem setting complex HTML set via doc.body.innerHTML.
- enableRichTextEditing(html);
- }
- else {
- if (html == '') {
- // Mozilla/Firefox will only display the caret if <br/> is added to the HTML body.
- html = "<br/>";
- }
- var doc = document.getElementById(editorId).contentWindow.document;
- if (doc.body != null) {
- doc.body.innerHTML = html;
- }
- else {
- // Mozilla/Firefox can take a while to initialize document.body
- // after document.write().
- try {
- setTimeout("setInnerHTML('" + html + "');", 10);
- }
- catch (e) {
- }
- }
- }
-}
-
-// Sets the HTML source.
-function setText(html) {
- if (supportRichTextEditing) {
- html = decodeString(html);
- setInnerHTML(html);
- modified = false;
- setStatus(STATUS_EXEC_CMD, 1);
- }
-}
-
-// Decodes the HTML passed from the Java layer.
-function decodeString(str) {
- if (str != null && str != '') {
- if (document.all) {
- str = str.replace(/%sq%/g, "'");
- str = str.replace(/%EOL%/g, "\n");
- }
- else {
- str = str.replace(/%sq%/g, "&apos;");
- str = str.replace(/%EOL%/g, "");
- str = str.replace(/\n/g, "");
- }
- }
- return str;
-}
-
-// updates selection without notifying the Java layer of the selection state
-function internalUpdateSelection() {
- if (!supportRichTextEditing) {
- return false;
- }
-
- contentWindow = document.getElementById(editorId).contentWindow;
- editorDoc = contentWindow.document;
-
- if (document.all) {
- selection = editorDoc.selection;
- if (selection != null) {
- selectionRange = selection.createRange();
- reformatElementLinks();
- }
- }
- else {
- selection = contentWindow.getSelection();
- if (selection != null) {
- selectionRange = selection.getRangeAt(selection.rangeCount - 1).cloneRange();
- if (selectionRange.startContainer.nodeName == "HTML" &&
- selectionRange.endContainer.nodeName == "HTML") {
- // Mozilla selects the whole document when there's no RTE content, so select just the body
- selectionRange = editorDoc.createRange();
- selectionRange.setStart(editorDoc.body, 0);
- selectionRange.setEnd(editorDoc.body, 0);
- }
- }
- }
- return true;
-}
-
-function selectContent (i) {
-
- contentWindow = document.getElementById(editorId).contentWindow;
- editorDoc = contentWindow.document;
- var doc = editorDoc;
- var text = doc.getElementsByTagName(i)[0];
- var range, selection;
- ;
-
- setFocus();
- if (doc.body.createTextRange) { //ms
- range = doc.body.createTextRange();
- range.moveToElementText(text);
- range.select();
- } else if (window.getSelection) { //all others
- selection = window.getSelection();
- range = doc.createRange();
- range.selectNodeContents(text);
- selection.removeAllRanges();
- selection.addRange(range);
- updateSelection();
- }
-
-}
-
-// Updates the current selection and selection range.
-function updateSelection() {
- if (!supportRichTextEditing) {
- return false;
- }
-
- contentWindow = document.getElementById(editorId).contentWindow;
- editorDoc = contentWindow.document;
-
- var tempSelRange;
- var selOffsetStart = 0;
- var selectedText = "";
- var fontName = "";
- var fontSize = "";
- var blockStyle = "";
- var textFlags = 0;
-
-
- if (document.all) {
- selection = editorDoc.selection;
- if (selection != null) {
- selectionRange = selection.createRange();
- if (selectionRange != null && selection.type != "Control") {
- tempSelRange = selectionRange.duplicate();
- }
- reformatElementLinks();
- }
- }
- else {
- selection = contentWindow.getSelection();
- if (selection != null) {
- selectionRange = selection.getRangeAt(selection.rangeCount - 1).cloneRange();
- tempSelRange = selectionRange.cloneRange();
- }
- }
- if (tempSelRange != null) {
- try {
- if (document.all) {
- if (selectionRange.text) {
- selectedText = selectionRange.text;
- }
- /* for getting selection offset - commented because we can't select the
- * proper location in the HTML source tab because JTidy's reformatting of the HTML
- var html = getHTML();
- var tempSelLen = tempSelRange.htmlText.length;
- tempSelRange.moveStart('character', -html.length);
- selOffsetStart = tempSelRange.htmlText.length - tempSelLen;
- */
- var selParent = tempSelRange.parentElement();
- fontName = tempSelRange.queryCommandValue('fontName');
- fontSize = tempSelRange.queryCommandValue('fontSize');
- blockStyle = tempSelRange.queryCommandValue('formatBlock');
- if (blockStyle == "Normal") {
- if (selParent.className == "quote") {
- blockStyle = "<quote>";
- } else if (selParent.className == "codeSample") {
- blockStyle = "<code>";
- } else {
- blockStyle = "<p>";
- }
- } else if (blockStyle == "Heading 3") {
- blockStyle = "<h3>";
- } else if (blockStyle == "Heading 4") {
- blockStyle = "<h4>";
- } else if (blockStyle == "Heading 5") {
- blockStyle = "<h5>";
- } else if (blockStyle == "" || blockStyle == null) {
- blockStyle = "<p>";
- }
- if (tempSelRange.queryCommandValue('bold') == true) {
- textFlags |= BOLD;
- }
- if (tempSelRange.queryCommandValue('italic') == true) {
- textFlags |= ITALIC;
- }
- if (tempSelRange.queryCommandValue('underline') == true) {
- textFlags |= UNDERLINE;
- }
- if (tempSelRange.queryCommandValue('subscript') == true) {
- textFlags |= SUBSCRIPT;
- }
- if (tempSelRange.queryCommandValue('superscript') == true) {
- textFlags |= SUPERSCRIPT;
- }
- setStatus(STATUS_SELECT_TEXT, /* selOffsetStart + "$" + */
- fontName + "$" + fontSize + "$" + blockStyle + "$" + textFlags + "$" + selectedText);
- } else {
- if (selectionRange != null) {
- selectedText = selectionRange.toString();
- }
- var selParent = selection.focusNode;
- fontName = editorDoc.queryCommandValue('fontName');
- if (fontName == "") {
- fontName = "default";
- }
- fontSize = editorDoc.queryCommandValue('fontSize');
- if (fontSize == "") {
- fontSize = "default";
- }
- blockStyle = editorDoc.queryCommandValue('formatBlock');
- if (blockStyle == "p") {
- if (selParent.parentNode.className == "quote") {
- blockStyle = "<quote>";
- } else if (selParent.parentNode.className == "codeSample") {
- blockStyle = "<code>";
- } else {
- blockStyle = "<p>";
- }
- } else if (blockStyle == "h3") {
- blockStyle = "<h3>";
- } else if (blockStyle == "h4") {
- blockStyle = "<h4>";
- } else if (blockStyle == "h5") {
- blockStyle = "<h5>";
- } else if (blockStyle == "") {
- blockStyle = "<p>";
- }
- if (editorDoc.queryCommandState('bold') == true) {
- textFlags |= BOLD;
- }
- if (editorDoc.queryCommandState('italic') == true) {
- textFlags |= ITALIC;
- }
- if (editorDoc.queryCommandState('underline') == true) {
- textFlags |= UNDERLINE;
- }
- if (editorDoc.queryCommandState('subscript') == true) {
- textFlags |= SUBSCRIPT;
- }
- if (editorDoc.queryCommandState('superscript') == true) {
- textFlags |= SUPERSCRIPT;
- }
- setStatus(STATUS_SELECT_TEXT, /* selOffsetStart + "$" + */
- fontName + "$" + fontSize + "$" + blockStyle + "$" + textFlags + "$" + selectedText);
- }
- } catch (e) { }
- }
-
- return true;
-}
-
-// Sets focus to this editor.
-function setFocus() {
- if (!supportRichTextEditing) {
- return;
- }
- contentWindow = document.getElementById(editorId).contentWindow;
- contentWindow.focus();
- setStatus(STATUS_EXEC_CMD, 1);
-}
-
-// Reformats element links created via drag & drop.
-function reformatElementLinks() {
- var linksReformatted = 0;
- var elements = editorDoc.getElementsByTagName('A');
- for (var i = 0; i < elements.length; i++) {
- var element = elements[i];
- if (element.className.toLowerCase() == 'elementlink' ||
- element.className.toLowerCase() == 'elementlinkwithtype' ||
- element.className.toLowerCase() == 'elementlinkwithusertext') {
- if (element.firstChild != null && element.firstChild.firstChild != null &&
- element.firstChild.firstChild.firstChild != null) {
- var linkText = element.firstChild.firstChild.firstChild.nodeValue;
- element.removeChild(element.firstChild);
- element.appendChild(editorDoc.createTextNode(linkText));
- linksReformatted++;
- }
- }
- }
- if (linksReformatted > 0) {
- setStatus(STATUS_REFORMAT_LINKS, null);
- }
-}
-
-// Formats the selected text.
-function formatText(command, option) {
- if (!readOnly && internalUpdateSelection()) {
- if (editorDoc.execCommand(command, false, option)) {
- setStatus(STATUS_EXEC_CMD, 1);
- setStatus(STATUS_MODIFIED, null);
- }
- }
-}
-
-// Adds HTML.
-function addHTML(html) {
- if (!readOnly && html != "") {
- html = decodeString(html);
- if (internalUpdateSelection()) {
- if (document.all) {
- if (selectionRange.text != null) {
- selectionRange.pasteHTML(html);
- setStatus(STATUS_EXEC_CMD, 1);
- setStatus(STATUS_MODIFIED, null);
- }
- }
- else {
- selectionRange.deleteContents();
- var documentFragment = selectionRange.createContextualFragment(html);
- selectionRange.insertNode(documentFragment);
- setStatus(STATUS_EXEC_CMD, 1);
- setStatus(STATUS_MODIFIED, null);
- }
- }
- }
-}
-
-// Adds an image.
-function addImage(url, height, width, alt) {
- if (internalUpdateSelection()) {
- if (document.all) {
- if (url != null && url != '') {
- formatText('insertimage', url);
- }
- if (selection != null && selection.type == 'Control' && selectionRange != null) {
- if (height != null && height != '') selectionRange.item().height = height;
- if (width != null && width != '') selectionRange.item().width = width;
- if (alt != null) selectionRange.item().alt = alt;
- }
- } else {
- var START_MARKER = "A_-_-_";
- var END_MARKER = ":.:.:";
- // mark img links with START_MARKER + id + END_MARKER in the id, for later recovery
- var elements = editorDoc.getElementsByTagName('img');
- for (var i = 0; i < elements.length; i++) {
- var element = elements[i];
- element.id = START_MARKER + element.id + END_MARKER;
- }
- if (url != null && url != '') {
- formatText('insertimage', url);
- }
- if (internalUpdateSelection()) {
- var regExID = new RegExp(START_MARKER + "(.*?)" + END_MARKER);
- var elements = editorDoc.getElementsByTagName('img');
- for (var i = 0; i < elements.length; i++) {
- var element = elements[i];
- var id = element.id;
- if (id != null && id != '') {
- RegExp.lastIndex=0;
- var matchArray = id.match(regExID);
- if (matchArray != null && matchArray.length > 0) {
- var newId = matchArray[1];
- if (newId.length > 0) {
- element.id = newId;
- } else {
- element.removeAttribute('id');
- }
- }
- } else {
- // no id, must be the new img
- if (height != null && height != '') element.height = height;
- if (width != null && width != '') element.width = width;
- if (alt != null) element.alt = alt;
- }
- }
- }
- }
- setStatus(STATUS_MODIFIED, null);
- }
-}
-
-// Adds a horizontal line.
-function addLine() {
- formatText('inserthorizontalrule', null);
-}
-
-// Adds a link.
-function addLink(url) {
- if (!readOnly && url != null && url != '' && internalUpdateSelection()) {
- if (document.all) {
- if (selectionRange.text == null || selectionRange.text == '') {
- selectionRange.text = url;
- setStatus(STATUS_EXEC_CMD, 1);
- setStatus(STATUS_MODIFIED, null);
- }
- else if (selectionRange.execCommand('createlink', false, url)) {
- setStatus(STATUS_EXEC_CMD, 1);
- setStatus(STATUS_MODIFIED, null);
- }
- }
- else {
- if (selection == null || selection == "") {
- var urlTextNode = editorDoc.createTextNode(url);
- insertNodeAtSelection(document.getElementById(editorFrameId).contentWindow, urlTextNode);
- }
- if (editorDoc.execCommand('createlink', false, url)) {
- setStatus(STATUS_EXEC_CMD, 1);
- setStatus(STATUS_MODIFIED, null);
- }
- }
- }
-}
-
-// Adds an ordered list.
-function addOrderedList() {
- formatText('insertorderedlist', null);
-}
-
-// Adds a table.
-function addTable(rows, cols, width, summary, caption, tableheaders) {
- if (readOnly) return;
- if (rows == 0) rows = 2;
- if (cols == 0) cols = 2;
- if (width == 0) width = "85%";
- if (internalUpdateSelection()) {
- var table = editorDoc.createElement("table");
- table.cellPadding = "2";
- table.cellSpacing = "0";
- table.border = "1";
- table.width = width;
- table.title = "";
- if (summary != null && summary != '') {
- table.summary = summary;
- }
- if (caption != null && caption != '') {
- table.title = caption;
- table.createCaption();
- var captionNode = editorDoc.createTextNode(caption);
- table.caption.appendChild(captionNode);
- }
- tbody = editorDoc.createElement("tbody");
- for (var i = 0; i < rows; i++) {
- tr = editorDoc.createElement("tr");
- for (var j = 0; j < cols; j++) {
- if (i == 0 && (tableheaders == TABLE_HEADERS_COLS || tableheaders == TABLE_HEADERS_BOTH)) {
- th = editorDoc.createElement("th");
- th.scope = "col";
- th.id = "";
- th.abbr = th.id;
- var headerNode = editorDoc.createTextNode(th.id);
- th.appendChild(headerNode);
- if (!document.all) {
- br = editorDoc.createElement("br");
- th.appendChild(br);
- }
- tr.appendChild(th);
- }
- else if (j == 0 && (tableheaders == TABLE_HEADERS_ROWS || tableheaders == TABLE_HEADERS_BOTH)) {
- th = editorDoc.createElement("th");
- th.scope = "row";
- th.id = "";
- th.abbr = th.id;
- var headerNode = editorDoc.createTextNode(th.id);
- th.appendChild(headerNode);
- if (!document.all) {
- br = editorDoc.createElement("br");
- th.appendChild(br);
- }
- tr.appendChild(th);
- }
- else {
- td = editorDoc.createElement("td");
- if (!document.all) {
- br = editorDoc.createElement("br");
- td.appendChild(br);
- }
- tr.appendChild(td);
- }
- }
- tbody.appendChild(tr);
- }
- table.appendChild(tbody);
- if (document.all) {
- selectionRange.parentElement().appendChild(table);
- }
- else {
- selectionRange.insertNode(table);
- }
- setStatus(STATUS_EXEC_CMD, 1);
- setStatus(STATUS_MODIFIED, null);
- }
-}
-
-// Adds an unordered list.
-function addUnorderedList() {
- formatText('insertunorderedlist', null);
-}
-
-// Sets the background color of the selected text.
-function backColor(color) {
- if (color != null && color != '') {
- formatText('backcolor', color);
- }
-}
-
-// Toggles the 'bold' attribute of the selected text.
-function bold() {
- formatText('bold', null);
-}
-
-// Copies the selected text to the clipboard.
-function copy() {
- if (internalUpdateSelection()) {
- if (editorDoc.execCommand('copy', false, null)) {
- setStatus(STATUS_EXEC_CMD, 1);
- }
- }
-}
-
-// Cuts the selected text to the clipboard.
-function cut() {
- formatText('cut', null);
-}
-
-// Deletes the selected text.
-function deleteText() {
- formatText('delete', null);
-}
-
-// Finds text.
-function findText(text, dir, options) {
- if (text == null || text == "") {
- return;
- }
- else {
- text = decodeString(text);
- }
-
- if (internalUpdateSelection()) {
- if (document.all) {
- selectionRange.collapse(dir < 0);
- if (selectionRange.findText(text, dir, options)) {
- selectionRange.scrollIntoView();
- selectionRange.select();
- selectionRange.collapse(dir < 0);
- setStatus(STATUS_EXEC_CMD, 1);
- }
- }
- else {
- // find(text, caseSensitive, backwards, wrapAround, wholeWord, searchInFrames, showDialog)
- var caseSensitive = true;
- var backwards = false;
- var wholeWord = true;
- if ((options & 4) == 0) caseSensitive = false;
- if (dir == -1) backwards = true;
- if ((options & 2) == 0) wholeWord = false;
- if (contentWindow.find(text, caseSensitive, backwards, false, wholeWord, false, false)) {
- setStatus(STATUS_EXEC_CMD, 1);
- }
- }
- }
-}
-
-// Sets the foreground color of the selected text.
-function foreColor(color) {
- if (color != null && color != '') {
- formatText('forecolor', color);
- }
-}
-
-// Formats the selected text using the given HTML heading tag.
-function formatBlock(tag) {
- if (tag != null && tag != '') {
- formatText('formatblock', tag);
- }
-}
-
-
-var INDENTED_LIST_BAD_HTML_IE = "</li>.*<li style=\"list-style: none\">";
-var INDENTED_LIST_BAD_HTML_MOZ = "</li>.*<li style=\"list-style-type: none; list-style-image: none; list-style-position: outside;\">";
-
-// Indents the selected text.
-function indent() {
- formatText('indent', null);
- // fix for sub-lists
- var html = document.getElementById(editorId).contentWindow.document.body.innerHTML;
- if (document.all) {
- html = html.replace(INDENTED_LIST_BAD_HTML_IE, "");
- } else {
- // firefox sometimes puts the same as IE, sometimes more junk
- html = html.replace(INDENTED_LIST_BAD_HTML_IE, "");
- html = html.replace(INDENTED_LIST_BAD_HTML_MOZ, "");
- }
- setText(html);
-}
-
-// Toggles the 'italic' attribute of the selected text.
-function italic() {
- formatText('italic', null);
-
-
-}
-
-// Center justifies the selected text.
-function justifyCenter() {
- formatText('justifycenter', null);
-}
-
-// Fully justifies the selected text.
-function justifyFull() {
- formatText('justifyfull', null);
-}
-
-// Left justifies the selected text.
-function justifyLeft() {
- formatText('justifyleft', null);
-}
-
-// Right justifies the selected text.
-function justifyRight() {
- formatText('justifyright', null);
-}
-
-// Outdents the selected text.
-function outdent() {
- formatText('outdent', null);
-}
-
-// Pastes text from the clipboard.
-function paste(sourceURL) {
- if (sourceURL == null) {
- sourceURL = "";
- }
- else {
- sourceURL = decodeString(sourceURL);
- }
- if (document.all) {
- var START_MARKER = "A_-_-_";
- var END_MARKER = ":.:.:";
- // mark img and <a /> links with START_MARKER + src/href + END_MARKER in the id, for later recovery
- var elements = editorDoc.getElementsByTagName('img');
- for (var i = 0; i < elements.length; i++) {
- var element = elements[i];
- var id = element.id;
- element.id = START_MARKER + element.src + END_MARKER + id;
- }
- var elements = editorDoc.getElementsByTagName('a');
- for (var i = 0; i < elements.length; i++) {
- var element = elements[i];
- var id = element.id;
- element.id = START_MARKER + element.href + END_MARKER + id;
- }
-
- // change the <base> of the document
- var oldBaseHREF = editorDoc.getElementsByTagName('base')[0].href;
- editorDoc.getElementsByTagName('base')[0].href = sourceURL;
-
- formatText('paste', null);
-
- // restore <base>
- editorDoc.getElementsByTagName('base')[0].href = oldBaseHREF;
- }
- else {
- setStatus(STATUS_EXEC_CMD, 1);
- setStatus(STATUS_MODIFIED, null);
- }
- if (internalUpdateSelection()) {
- try {
- var regExRes = new RegExp("file\:([^=]+)(/resources/)(.+)", "g");
- var regExRef = new RegExp("(.+)(#.+)");
- var regEx = new RegExp("file\:([^=]+)/([^/]+)", "g");
- var regExID = new RegExp(START_MARKER + "(.*?)" + END_MARKER + "(.*?)");
- var elements = editorDoc.getElementsByTagName('img');
- for (var i = 0; i < elements.length; i++) {
- var element = elements[i];
- var id = element.id;
- if (id != null && id != '') {
- RegExp.lastIndex=0;
- var matchArray = id.match(regExID);
- if (matchArray != null && matchArray.length > 1) {
- element.src = matchArray[1];
- if (matchArray.length > 2 && matchArray[2].length > 0) {
- element.id = matchArray[2];
- }
- else {
- element.removeAttribute('id');
- }
- continue;
- }
- }
- var src = element.src;
- if (src != null && src != '') {
- if (src.indexOf('about:./resources') != -1) {
- // fix for IE 7 when pasting from another RTE
- // IE7 resolves these as "about:./resources/<file>"
- // so remove the "about:."
- src = src.replace("about:", "");
- }
- if (src.indexOf('about:resources') != -1) {
- // fix for IE 7 when pasting from another RTE
- // IE7 sometimes resolves these as "about:resources/<file>"
- // so remove the "about:" and put in "./"
- src = src.replace("about:", "./");
- }
- if (src.indexOf('resources') != -1) {
- element.src = src.replace(regExRes, "./resources/$3");
- }
- else {
- element.src = src.replace(regEx, "./resources/$2");
- }
- }
- }
- var elements = editorDoc.getElementsByTagName('a');
- for (var i = 0; i < elements.length; i++) {
- var element = elements[i];
- var id = element.id;
- if (id != null && id != '') {
- RegExp.lastIndex=0;
- var matchArray = id.match(regExID);
- if (matchArray != null && matchArray.length > 1) {
- element.href = matchArray[1];
- if (matchArray.length > 2 && matchArray[2].length > 0) {
- element.id = matchArray[2];
- }
- else {
- element.removeAttribute('id');
- }
- continue;
- }
- }
- var href = element.href;
- if (href != null && href != '') {
- // fix self-referencing hrefs
- if (href.indexOf('#') != -1) {
- RegExp.lastIndex=0;
- var matchArray = href.match(regExRef);
- if (matchArray != null && matchArray.length > 2) {
- var hrefFile = matchArray[1];
- var ref = matchArray[2];
- if (hrefFile == sourceURL) {
- element.href = ref;
- continue;
- }
- }
- }
- // fix hrefs already in resources
- if (href.indexOf('resources') != -1) {
- element.href = href.replace(regExRes, "./resources/$3");
- }
- // fix hrefs not in resources
- else {
- element.href = href.replace(regEx, "./resources/$2");
- }
- }
- }
- }
- catch (e) {
- }
- }
-}
-
-// Pastes text from the clipboard.
-function pasteTextOnly(sourceURL) {
- if (sourceURL == null) {
- sourceURL = "";
- }
- else {
- sourceURL = decodeString(sourceURL);
- }
- if (document.all) {
- var START_MARKER = "A_-_-_";
- var END_MARKER = ":.:.:";
- // mark img and <a /> links with START_MARKER + src/href + END_MARKER in the id, for later recovery
- var elements = editorDoc.getElementsByTagName('img');
- for (var i = 0; i < elements.length; i++) {
- var element = elements[i];
- var id = element.id;
- element.id = START_MARKER + element.src + END_MARKER + id;
- }
- var elements = editorDoc.getElementsByTagName('a');
- for (var i = 0; i < elements.length; i++) {
- var element = elements[i];
- var id = element.id;
- element.id = START_MARKER + element.href + END_MARKER + id;
- }
-
- // change the <base> of the document
- var oldBaseHREF = editorDoc.getElementsByTagName('base')[0].href;
- editorDoc.getElementsByTagName('base')[0].href = sourceURL;
-
- formatText('paste', null);
-
- // restore <base>
- editorDoc.getElementsByTagName('base')[0].href = oldBaseHREF;
- }
- else {
- setStatus(STATUS_EXEC_CMD, 1);
- setStatus(STATUS_MODIFIED, null);
- }
- if (internalUpdateSelection()) {
- try {
- var regExRes = new RegExp("file\:([^=]+)(/resources/)(.+)", "g");
- var regExRef = new RegExp("(.+)(#.+)");
- var regEx = new RegExp("file\:([^=]+)/([^/]+)", "g");
- var regExID = new RegExp(START_MARKER + "(.*?)" + END_MARKER + "(.*?)");
- var elements = editorDoc.getElementsByTagName('img');
- for (var i = 0; i < elements.length; i++) {
- var element = elements[i];
- var id = element.id;
- if (id != null && id != '') {
- RegExp.lastIndex=0;
- var matchArray = id.match(regExID);
- if (matchArray != null && matchArray.length > 1) {
- element.src = matchArray[1];
- if (matchArray.length > 2 && matchArray[2].length > 0) {
- element.id = matchArray[2];
- }
- else {
- element.removeAttribute('id');
- }
- continue;
- }
- }
- var src = element.src;
- if (src != null && src != '') {
- if (src.indexOf('about:./resources') != -1) {
- // fix for IE 7 when pasting from another RTE
- // IE7 resolves these as "about:./resources/<file>"
- // so remove the "about:."
- src = src.replace("about:", "");
- }
- if (src.indexOf('about:resources') != -1) {
- // fix for IE 7 when pasting from another RTE
- // IE7 sometimes resolves these as "about:resources/<file>"
- // so remove the "about:" and put in "./"
- src = src.replace("about:", "./");
- }
- if (src.indexOf('resources') != -1) {
- element.src = src.replace(regExRes, "./resources/$3");
- }
- else {
- element.src = src.replace(regEx, "./resources/$2");
- }
- }
- }
- var elements = editorDoc.getElementsByTagName('a');
- for (var i = 0; i < elements.length; i++) {
- var element = elements[i];
- var id = element.id;
- if (id != null && id != '') {
- RegExp.lastIndex=0;
- var matchArray = id.match(regExID);
- if (matchArray != null && matchArray.length > 1) {
- element.href = matchArray[1];
- if (matchArray.length > 2 && matchArray[2].length > 0) {
- element.id = matchArray[2];
- }
- else {
- element.removeAttribute('id');
- }
- continue;
- }
- }
- var href = element.href;
- if (href != null && href != '') {
- // fix self-referencing hrefs
- if (href.indexOf('#') != -1) {
- RegExp.lastIndex=0;
- var matchArray = href.match(regExRef);
- if (matchArray != null && matchArray.length > 2) {
- var hrefFile = matchArray[1];
- var ref = matchArray[2];
- if (hrefFile == sourceURL) {
- element.href = ref;
- continue;
- }
- }
- }
- // fix hrefs already in resources
- if (href.indexOf('resources') != -1) {
- element.href = href.replace(regExRes, "./resources/$3");
- }
- // fix hrefs not in resources
- else {
- element.href = href.replace(regEx, "./resources/$2");
- }
- }
- }
- }
- catch (e) {
- }
- }
-}
-
-// Redo the previous command.
-function redo() {
- formatText('redo', null);
-}
-
-// Redo the previous command.
-function removeformat() {
- formatText('removeformat', null);
-}
-
-
-
-function _replaceAllText(findText, replaceText, options) {
- // this is IE only
- if (document.all) {
- var tempRange = document.getElementById(editorId).contentWindow.document.body.createTextRange();
- tempRange.moveStart('character', -10000000000);
- do {
- tempRange.collapse();
- if (tempRange.findText(findText, 10000000000, options)) {
- tempRange.text = replaceText;
- tempRange.select();
- } else {
- break;
- }
- } while (true);
- }
-}
-
-// Replaces all text.
-function replaceAllText(findText, replaceText, options) {
- if (readOnly || findText == null || findText == "") {
- return;
- }
- else {
- findText = decodeString(findText);
- }
- if (replaceText == null) {
- replaceText = "";
- }
- else {
- replaceText = decodeString(replaceText);
- }
-
- if (document.all) {
- // TODO: Move the insertion point to the start of the HTML
- // and perform a search and replace in the forward direction.
- _replaceAllText(findText, replaceText, options);
- }
- else {
- // TODO: Emulate the IE implementation.
- var html = document.getElementById(editorId).contentWindow.document.body.innerHTML;
- var optionStr = "/g";
- if ((options & 4) == 0) {
- optionStr += "i";
- }
- var regExp = eval("/" + findText + optionStr);
- html = html.replace(regExp, replaceText);
- setText(html);
- }
-
- setStatus(STATUS_EXEC_CMD, 1);
- setStatus(STATUS_MODIFIED, null);
-}
-
-// Replaces text.
-function replaceText(replaceText, dir, options) {
- if (readOnly || !internalUpdateSelection()) {
- return;
- }
- if (replaceText == null) {
- replaceText = "";
- }
- else {
- replaceText = decodeString(replaceText);
- }
- if (document.all) {
- selectionRange.text = replaceText;
- if (replaceText != "") {
- selectionRange.moveStart("word", -1);
- selectionRange.select();
- selectionRange.collapse(dir < 0);
- }
- }
- else {
- selectionRange.deleteContents();
- selectionRange.insertNode(editorDoc.createTextNode(replaceText));
- }
- setStatus(STATUS_EXEC_CMD, 1);
- setStatus(STATUS_MODIFIED, null);
-}
-
-// Selects all text.
-function selectAll() {
- if (internalUpdateSelection()) {
- if (editorDoc.execCommand('selectall', false, null)) {
- setStatus(STATUS_EXEC_CMD, 1);
- }
- }
-}
-
-// Sets the font name for the selected text.
-function setFontName(name) {
- if (internalUpdateSelection()) {
- if (name != null) {
- if (name == '') {
- formatText('removeFormat');
- } else {
- formatText('fontname', name);
- }
- }
- }
-}
-
-// Sets the font size for the selected text.
-function setFontSize(size) {
- if (internalUpdateSelection()) {
- if (size != null) {
- if (size == '') {
- formatText('removeFormat');
- } else {
- formatText('fontsize', size);
- }
- }
- }
-}
-
-// Sets the font style for the selected text.
-function setFontStyle(style) {
- if (!readOnly && style != null && style != '' && internalUpdateSelection()) {
- try {
- if (document.all) {
- selectionRange.execCommand("removeformat");
- selectionRange.parentElement().removeAttribute("className");
- }
- }
- catch (e) {
- }
- if (style == "<quote>") {
- formatText('formatblock', '<p>');
- if (document.all) {
- selectionRange.parentElement().className = "quote";
- }
- else {
- selection.focusNode.parentNode.className = "quote";
- }
- }
- else if (style == "<code>") {
- formatText('formatblock', '<p>');
- if (document.all) {
- selectionRange.parentElement().className = "codeSample";
- }
- else {
- selection.focusNode.parentNode.className = "codeSample";
- }
- }
- else {
- if (!document.all && style == "<p>") {
- // A hack to get rid of the "className" attribute in Mozilla/Firefox.
- formatText('formatblock', '<h4>');
- }
- formatText('formatblock', style);
- }
- }
-}
-
-// Sets whether the content can be edited.
-function setEditable(editable) {
- var doc = document.getElementById(editorId).contentWindow.document;
- if (editable != null && editable == 'true') {
- if (document.all) {
- doc.body.contentEditable = "true";
- }
- else {
- doc.designMode = "on";
- }
- readOnly = false;
- }
- else {
- if (document.all) {
- doc.body.contentEditable = "false";
- }
- else {
- doc.designMode = "off";
- }
- readOnly = true;
- }
- setStatus(STATUS_EXEC_CMD, 1);
-}
-
-// Toggles the 'strike-through' attribute of the selected text.
-function strikeThrough() {
- formatText('strikethrough', null);
-}
-
-// Toggles the 'subscript' attribute of the selected text.
-function subscript() {
- formatText('subscript', null);
-}
-
-// Toggles the 'superscript' attribute of the selected text.
-function superscript() {
- formatText('superscript', null);
-}
-
-// Toggles the 'underline' attribute of the selected text.
-function underline() {
- formatText('underline', null);
-}
-
-// Converts a link to normal text.
-function unlink() {
- formatText('unlink', null);
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/rte.xsl b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/rte.xsl
deleted file mode 100644
index 48914fcea01..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/rte/rte.xsl
+++ /dev/null
@@ -1,32 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright (c) 2005, 2006 IBM 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:
- IBM Corporation - initial implementation
--->
-
-<xsl:stylesheet version="1.0"
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
-
-<xsl:template match="/rte">
- <xsl:variable name="rte_id"><xsl:value-of select="@id"/></xsl:variable>
- <xsl:variable name="rte_js"><xsl:value-of select="@js"/></xsl:variable>
- <html>
- <head>
- <script language="JavaScript" type="text/javascript" src="{$rte_js}"></script>
- </head>
- <body leftMargin="0" topMargin="0" marginheight="0" marginwidth="0" scroll="no" style="overflow: hidden">
- <iframe id="{$rte_id}" name="{$rte_id}" style="border: none;" frameborder="0" scrolling="auto" width="100%" height="100%"></iframe>
- <script language="JavaScript" type="text/javascript">
- initEditor('<xsl:value-of select="@id"/>', '<xsl:value-of select="@css"/>', '<xsl:value-of select="@baseURL"/>');
- </script>
- </body>
- </html>
-</xsl:template>
-
-</xsl:stylesheet>
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/DebugRichText.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/DebugRichText.java
deleted file mode 100644
index d936a580370..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/DebugRichText.java
+++ /dev/null
@@ -1,1187 +0,0 @@
-package org.eclipse.papyrus.infra.widgets.epf.richtext;
-
-import java.io.*;
-import java.net.URL;
-import java.util.*;
-import java.util.List;
-
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.epf.common.CommonPlugin;
-import org.eclipse.epf.common.IHTMLFormatter;
-import org.eclipse.epf.common.serviceability.Logger;
-import org.eclipse.epf.common.utils.*;
-import org.eclipse.epf.common.xml.XSLTProcessor;
-import org.eclipse.epf.richtext.IRichText;
-import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextListener;
-import org.eclipse.epf.richtext.RichTextPlugin;
-import org.eclipse.epf.richtext.RichTextResources;
-import org.eclipse.epf.richtext.RichTextSelection;
-import org.eclipse.epf.richtext.actions.CopyAction;
-import org.eclipse.epf.richtext.actions.CutAction;
-import org.eclipse.epf.richtext.actions.FindReplaceAction;
-import org.eclipse.epf.richtext.actions.PasteAction;
-import org.eclipse.epf.richtext.actions.PastePlainTextAction;
-import org.eclipse.swt.browser.*;
-import org.eclipse.swt.events.*;
-import org.eclipse.swt.graphics.Rectangle;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.widgets.*;
-import org.eclipse.ui.*;
-
-// Referenced classes of package org.eclipse.epf.richtext:
-// IRichText, RichTextSelection, RichTextPlugin, RichTextListener,
-// RichTextResources, RichTextImages
-
-public class DebugRichText
- implements IRichText
-{
- private static final String ENCODED_SINGLE_QUOTE = "%sq%";
- private static final String ENCODED_NEWLINE = "%EOL%";
- protected static final String STATUS_PREFIX = "$$$";
- protected static final int STATUS_PREFIX_LENGTH = "$$$".length();
- protected static final int STATUS_NOP = 0;
- protected static final int STATUS_INITIALIZED = 1;
- protected static final int STATUS_MODIFIED = 2;
- protected static final int STATUS_GET_TEXT = 3;
- protected static final int STATUS_KEY_DOWN = 4;
- protected static final int STATUS_KEY_UP = 5;
- protected static final int STATUS_SELECT_TEXT = 6;
- protected static final int STATUS_SELECT_CONTROL = 7;
- protected static final int STATUS_SELECT_NONE = 8;
- protected static final int STATUS_EXEC_CMD = 9;
- protected static final int STATUS_REFORMAT_LINKS = 10;
- private static final String DEFAULT_BASE_PATH = (new StringBuilder(String.valueOf(System.getProperty("user.home")))).append(System.getProperty("file.separator")).append("rte").toString();
- protected boolean debug;
- protected Logger logger;
- protected Browser editor;
- protected Control editorControl;
- protected static URL copyURL;
- protected Menu contextMenu;
- protected String rteFolder;
- protected String rteURL;
- protected String basePath;
- protected boolean initialized;
- protected boolean initializedWithFocus;
- protected String initialText;
- protected String currentText;
- private String currentRawText;
- protected boolean editable;
- protected boolean modified;
- protected boolean hasSelection;
- protected RichTextSelection richTextSelection;
- protected int status;
- protected IHTMLFormatter htmlFormatter;
- protected Map listeners;
- protected List<ModifyListener> modifyListeners;
- protected boolean notifyingModifyListeners;
- protected boolean hasFocus;
- protected boolean processingJSEvent;
- protected boolean checkingModifyEvent;
- protected FindReplaceAction findReplaceAction;
- protected boolean isIE;
- public static final int RICH_TEXT_INITIALIZED_WIN32 = 98979695;
- public static final int RICH_TEXT_INITIALIZED_LINUX = 98979694;
-
- public DebugRichText(Composite parent, int style, String basePath)
- {
- currentText = "";
- currentRawText = "";
- editable = true;
- richTextSelection = new RichTextSelection();
- status = 0;
- notifyingModifyListeners = false;
- hasFocus = false;
- processingJSEvent = false;
- checkingModifyEvent = false;
- isIE = false;
- debug = RichTextPlugin.getDefault().isDebugging();
- logger = RichTextPlugin.getDefault().getLogger();
- findReplaceAction = new FindReplaceAction(this);
- rteFolder = (new StringBuilder(String.valueOf(RichTextPlugin.getDefault().getInstallPath()))).append("rte/").toString();
- rteURL = XMLUtil.escape((new StringBuilder("file://")).append(rteFolder).toString());
- setBasePath(basePath);
- try
- {
- editor = new Browser(parent, 0);
- if(debug)
- printDebugMessage("RichText", (new StringBuilder("basePath=")).append(basePath).toString());
- editor.setLayoutData(new GridData(1808));
- editor.setData("richText", this);
- init(parent, style);
- }
- catch(Exception e)
- {
- editor = null;
- String msg = (new StringBuilder("Failed to create RichText with basePath=")).append(basePath).toString();
- logger.logError(msg, e);
- if(debug)
- {
- System.out.println(msg);
- e.printStackTrace();
- }
- }
- }
-
- public DebugRichText(Composite parent, int style)
- {
- this(parent, style, null);
- }
-
- protected void setBasePath(String path)
- {
- if(path != null && path.length() > 0)
- {
- if(path.startsWith("\\\\"))
- basePath = (new StringBuilder("\\\\")).append(FileUtil.appendSeparator(path.substring(FileUtil.UNC_PATH_PREFIX_LENGTH).replace('\\', '/'), "/")).toString();
- else
- basePath = FileUtil.appendSeparator(path).replace('\\', '/');
- } else
- {
- basePath = FileUtil.appendSeparator(DEFAULT_BASE_PATH).replace('\\', '/');
- }
- }
-
- protected void init(Composite parent, int style)
- throws Exception
- {
- try
- {
- addStatusTextListener();
- if(debug)
- printDebugMessage("init", "added status text listener");
- String editorHTML = generateEditorHTML();
- if(debug)
- printDebugMessage("init", "generated editor HTML");
- editor.setText(editorHTML);
- if(debug)
- printDebugMessage("init", "loaded editor HTML");
- contextMenu = new Menu(parent.getShell(), 8);
- editor.setMenu(contextMenu);
- fillContextMenu(contextMenu);
- if(debug)
- printDebugMessage("init", "added context menu");
- addListeners();
- if(debug)
- printDebugMessage("init", "added listeners");
- htmlFormatter = (IHTMLFormatter)ExtensionHelper.createExtensionForJTidy(CommonPlugin.getDefault().getId(), "htmlFormatter");
- if(debug)
- printDebugMessage("init", "instantiated HTMLFormatter");
- }
- catch(Exception e)
- {
- editor = null;
- dispose();
- throw e;
- }
- }
-
- public Control getControl()
- {
- return editor;
- }
-
- public void setLayoutData(Object layoutData)
- {
- if(editor != null)
- editor.setLayoutData(layoutData);
- }
-
- public Object getLayoutData()
- {
- if(editor != null)
- return editor.getLayoutData();
- else
- return null;
- }
-
- public void setFocus()
- {
- if(debug)
- printDebugMessage((new StringBuilder("setFocus, editable=")).append(editable).toString());
- if(editor != null)
- if(initialized)
- {
- if(!editor.isFocusControl())
- {
- if(!Platform.getOS().equals("win32"))
- editor.setFocus();
- executeCommand("setFocus");
- }
- hasFocus = true;
- } else
- {
- initializedWithFocus = true;
- }
- }
-
- public void setBlur()
- {
- if(debug)
- printDebugMessage((new StringBuilder("setBlur, editable=")).append(editable).toString());
- if(editor != null)
- if(initialized)
- hasFocus = false;
- else
- initializedWithFocus = false;
- }
-
- public boolean hasFocus()
- {
- if(editor != null)
- return hasFocus;
- else
- return false;
- }
-
- public String getBasePath()
- {
- return basePath;
- }
-
- public URL getCopyURL()
- {
- return copyURL;
- }
-
- public void setCopyURL()
- {
- try
- {
- copyURL = (new File(basePath)).toURL();
- }
- catch(Exception _ex)
- {
- copyURL = null;
- }
- }
-
- public boolean getEditable()
- {
- return editable;
- }
-
- public void setEditable(boolean editable)
- {
- this.editable = editable;
- if(initialized)
- executeCommand("setEditable", (new StringBuilder()).append(editable).toString());
- }
-
- public boolean getModified()
- {
- return modified;
- }
-
- public void setModified(boolean modified)
- {
- this.modified = modified;
- }
-
- public String getText()
- {
- if(editor != null && initialized)
- try
- {
- executeCommand("getText");
- if(currentText != null && currentText.length() > 0)
- {
- currentText = currentText.replaceAll("<P>&nbsp;</P>", "<br/>");
- currentText = tidyText(currentText);
- currentText = formatHTML(currentText);
- } else
- {
- currentText = "";
- }
- if(debug)
- printDebugMessage("getText", "text=", currentText);
- return currentText;
- }
- catch(Exception e)
- {
- logger.logError(e);
- }
- return "";
- }
-
- protected String formatHTML(String text)
- {
- try
- {
- String formattedText = htmlFormatter.formatHTML(text);
- if(htmlFormatter.getLastErrorStr() != null)
- logger.logError(htmlFormatter.getLastErrorStr());
- return formattedText;
- }
- catch(UnsupportedEncodingException e)
- {
- logger.logError(e);
- }
- return text;
- }
-
- public void setText(String text)
- {
- if(editor != null)
- {
- if(debug)
- printDebugMessage("setText", "text=", text);
- setCurrentRawText(text);
- String newText = text;
- if(newText != null)
- {
- newText = tidyText(newText);
- newText = formatHTML(newText);
- } else
- {
- newText = "";
- }
- if(initialized)
- modified = !newText.equals(currentText);
- initialText = newText;
- if(initialText.equals("") && !isIE)
- initialText = "<br />";
- if(debug)
- printDebugMessage("setText", (new StringBuilder("modified=")).append(modified).append(", newText=").toString(), newText);
- if(initialized)
- try
- {
- executeCommand("setText", workaroundForObjectParamNode(newText));
- executeCommand("setEditable", (new StringBuilder()).append(editable).toString());
- }
- catch(Exception e)
- {
- logger.logError(e);
- }
- currentText = newText;
- }
- }
-
- public void restoreText()
- {
- setText(initialText);
- modified = false;
- }
-
- public String getSelectedText()
- {
- return richTextSelection.getText();
- }
-
- public RichTextSelection getSelected()
- {
- return richTextSelection;
- }
-
- public Object getData(String key)
- {
- if(editor != null)
- return editor.getData(key);
- else
- return null;
- }
-
- public void setData(String key, Object value)
- {
- if(editor != null)
- editor.setData(key, value);
- }
-
- protected int execute(final String script)
- {
- status = 0;
- if(editor != null && script != null && script.length() > 0)
- try
- {
- if(!isIE && processingJSEvent)
- Display.getCurrent().asyncExec(new Runnable() {
-
- public void run()
- {
- if(!isDisposed())
- {
- editor.execute(script);
- if(!Platform.getOS().equals("win32") && script.startsWith("setText"))
- notifyListeners(98979694, new Event());
- }
- }
- });
- else
- editor.execute(script);
- if(debug)
- printDebugMessage("execute", script);
- }
- catch(Exception e)
- {
- String msg = (new StringBuilder("Failed to execute ")).append(script).toString();
- logger.logError(msg, e);
- if(debug)
- {
- printDebugMessage("execute", msg);
- e.printStackTrace();
- }
- }
- return status;
- }
-
- public int executeCommand(String command)
- {
- status = 0;
- if(command != null && command.equals("clearContent"))
- {
- String oldInitialText = initialText;
- setText("");
- initialText = oldInitialText;
- status = 1;
- modified = true;
- notifyModifyListeners();
- } else
- {
- status = execute((new StringBuilder(String.valueOf(command))).append("();").toString());
- }
- return status;
- }
-
- public int executeCommand(String command, String param)
- {
- if(param == null)
- return executeCommand(command);
- else
- return execute((new StringBuilder(String.valueOf(command))).append("('").append(formatText(param)).append("');").toString());
- }
-
- public int executeCommand(String command, String params[])
- {
- if(params == null || params.length == 0)
- return executeCommand(command);
- StringBuffer sb = new StringBuffer();
- int paramsLength = params.length;
- for(int i = 0; i < paramsLength; i++)
- {
- sb.append('\'').append(formatText(params[i])).append('\'');
- if(i < paramsLength - 1)
- sb.append(',');
- }
-
- String param = sb.toString();
- return execute((new StringBuilder(String.valueOf(command))).append("(").append(param).append(");").toString());
- }
-
- public void dispose()
- {
- if(contextMenu != null && !contextMenu.isDisposed())
- {
- contextMenu.dispose();
- contextMenu = null;
- }
- if(listeners != null)
- {
- listeners.clear();
- listeners = null;
- }
- if(modifyListeners != null)
- {
- modifyListeners.clear();
- modifyListeners = null;
- }
- if(htmlFormatter != null)
- htmlFormatter = null;
- if(findReplaceAction != null)
- {
- findReplaceAction.dispose();
- findReplaceAction = null;
- }
- }
-
- public boolean isDisposed()
- {
- return editor.isDisposed();
- }
-
- public Iterator getModifyListeners()
- {
- return modifyListeners.iterator();
- }
-
- public void addKeyListener(KeyListener listener)
- {
- if(editor != null)
- editor.addKeyListener(listener);
- }
-
- public void removeKeyListener(KeyListener listener)
- {
- if(editor != null)
- editor.removeKeyListener(listener);
- }
-
- public void addModifyListener(ModifyListener listener)
- {
- if(editor != null && listener != null && !modifyListeners.contains(listener))
- modifyListeners.add(listener);
- }
-
- public void removeModifyListener(ModifyListener listener)
- {
- if(editor != null && listener != null && modifyListeners.contains(listener))
- modifyListeners.remove(listener);
- }
-
- public void addDisposeListener(DisposeListener listener)
- {
- if(editor != null)
- editor.addDisposeListener(listener);
- }
-
- public void removeDisposeListener(DisposeListener listener)
- {
- if(editor != null)
- editor.removeDisposeListener(listener);
- }
-
- public void addHelpListener(HelpListener listener)
- {
- if(editor != null)
- editor.addHelpListener(listener);
- }
-
- public void removeHelpListener(HelpListener listener)
- {
- if(editor != null)
- editor.removeHelpListener(listener);
- }
-
- public void addListener(int eventType, Listener listener)
- {
- if(editor != null && !listeners.containsKey(listener))
- {
- if(eventType != 2 && (editorControl == null || eventType != 26 && eventType != 27 && eventType != 15 && eventType != 16))
- editor.addListener(eventType, listener);
- listeners.put(listener, new RichTextListener(eventType, listener));
- }
- }
-
- public void removeListener(int eventType, Listener listener)
- {
- if(editor != null && listeners.containsKey(listener))
- {
- if(editorControl == null || eventType != 26 && eventType != 27 && eventType != 15 && eventType != 16)
- editor.removeListener(eventType, listener);
- listeners.remove(listener);
- }
- }
-
- public Iterator getListeners()
- {
- return listeners.values().iterator();
- }
-
- protected void addStatusTextListener()
- {
- editor.addStatusTextListener(new StatusTextListener() {
-
- public void changed(StatusTextEvent event)
- {
- String eventText;
- int eventTextLength;
- eventText = event.text;
- eventTextLength = eventText.length();
- if(!eventText.startsWith("$$$") || eventTextLength <= DebugRichText.STATUS_PREFIX_LENGTH)
- return;
- try
- {
- processingJSEvent = true;
- int endStatusIndex = DebugRichText.STATUS_PREFIX_LENGTH + 1;
- if(eventText.length() > DebugRichText.STATUS_PREFIX_LENGTH + 1 && Character.isDigit(eventText.charAt(endStatusIndex)))
- endStatusIndex++;
- int statusType = Integer.parseInt(eventText.substring(DebugRichText.STATUS_PREFIX_LENGTH, endStatusIndex));
- switch(statusType)
- {
- case 0: // '\0'
- default:
- break;
-
- case 1: // '\001'
- if(!initialized)
- {
- initialized = true;
- if(debug)
- printDebugMessage("statusTextListener", "STATUS_INITIALIZED");
- if(!Platform.getOS().equals("win32"))
- executeCommand("setHeight", (new StringBuilder()).append(editor.getBounds().height).toString());
- executeCommand("setText", DebugRichText.workaroundForObjectParamNode(currentText));
- if(initializedWithFocus)
- setFocus();
- if(!editable)
- executeCommand("setEditable", (new StringBuilder()).append(editable).toString());
- if(Platform.getOS().equals("win32"))
- notifyListeners(98979695, new Event());
- }
- break;
-
- case 2: // '\002'
- if(debug)
- printDebugMessage("statusTextListener", "STATUS_MODIFIED");
- checkModify();
- break;
-
- case 3: // '\003'
- if(eventTextLength >= DebugRichText.STATUS_PREFIX_LENGTH + 2)
- {
- currentText = eventText.substring(DebugRichText.STATUS_PREFIX_LENGTH + 2);
- currentText = unWorkaroundForObjectParamNode(currentText);
- } else
- {
- currentText = "";
- }
- if(debug)
- printDebugMessage("statusTextListener", "STATUS_GET_TEXT, currentText=", currentText);
- break;
-
- case 4: // '\004'
- if(eventTextLength < DebugRichText.STATUS_PREFIX_LENGTH + 2)
- break;
- String cmd = eventText.substring(DebugRichText.STATUS_PREFIX_LENGTH + 2);
- if(debug)
- printDebugMessage("statusTextListener", (new StringBuilder("STATUS_KEY_DOWN, cmd=")).append(cmd).toString());
- if(cmd.equals("copy"))
- {
- setCopyURL();
- break;
- }
- if(cmd.equals("cut"))
- {
- setCopyURL();
- CutAction action = new CutAction(DebugRichText.this);
- action.execute(DebugRichText.this);
- break;
- }
- if(cmd.equals("findText"))
- {
- getFindReplaceAction().execute(DebugRichText.this);
- break;
- }
- if(cmd.equals("paste"))
- {
- PasteAction action = new PasteAction(DebugRichText.this);
- action.execute(DebugRichText.this);
- break;
- }
- if(cmd.equals("save"))
- {
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor().doSave(null);
- break;
- }
- if(cmd.equals("saveAll"))
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().saveAllEditors(false);
- break;
-
- case 5: // '\005'
- if(debug)
- printDebugMessage("statusTextListener", (new StringBuilder("STATUS_KEY_UP, modified=")).append(modified).toString());
- checkModify();
- break;
-
- case 6: // '\006'
- if(eventTextLength >= DebugRichText.STATUS_PREFIX_LENGTH + 2)
- {
- String strings[] = eventText.substring(DebugRichText.STATUS_PREFIX_LENGTH + 2).split("\\$", 5);
- try
- {
- richTextSelection.setFontName(strings[0]);
- richTextSelection.setFontSize(strings[1]);
- richTextSelection.setBlockStyle(strings[2]);
- richTextSelection.setFlags(Integer.parseInt(strings[3]));
- richTextSelection.setText(strings[4]);
- }
- catch(NumberFormatException e)
- {
- logger.logError(e);
- }
- if(debug)
- printDebugMessage("selectionStatusListener", (new StringBuilder("current selection is=")).append(richTextSelection).toString());
- hasSelection = true;
- if(hasFocus())
- notifyListeners(2, new Event());
- } else
- {
- richTextSelection.setText("");
- hasSelection = false;
- }
- if(debug)
- printDebugMessage("statusTextListener", "STATUS_SELECT_TEXT, selectedText=", richTextSelection.getText());
- break;
-
- case 7: // '\007'
- if(debug)
- printDebugMessage("statusTextListener", "STATUS_SELECT_CONTROL, control selected");
- hasSelection = true;
- break;
-
- case 8: // '\b'
- if(debug)
- printDebugMessage("statusTextListener", "STATUS_SELECT_NONE, no selection");
- hasSelection = false;
- break;
-
- case 9: // '\t'
- if(eventTextLength >= DebugRichText.STATUS_PREFIX_LENGTH + 3)
- try
- {
- status = Integer.parseInt(eventText.substring(DebugRichText.STATUS_PREFIX_LENGTH + 2, DebugRichText.STATUS_PREFIX_LENGTH + 3));
- }
- catch(Exception _ex)
- {
- status = -1;
- }
- if(debug && status != 1)
- printDebugMessage("statusTextListener", (new StringBuilder("STATUS_EXEC_CMD, status=")).append(status).toString());
- break;
-
- case 10: // '\n'
- if(debug)
- printDebugMessage("statusTextListener", "STATUS_REFORMAT_LINKS");
- Platform.getOS().equals("win32");
- checkModify();
- break;
- }
- }
- catch(Exception _ex)
- {
- processingJSEvent = false;
- }
- }
- }
-);
- }
-
- protected String generateEditorHTML()
- throws Exception
- {
- String escapedBasePath = basePath;
- if(escapedBasePath.startsWith("\\\\"))
- escapedBasePath = escapedBasePath.replaceFirst("^\\\\\\\\", "\\\\\\\\\\\\\\\\");
- escapedBasePath = XMLUtil.escape((new StringBuilder("file://")).append(escapedBasePath.replaceAll("'", "\\\\'")).toString());
- String escapedRteUTL = rteURL.replaceAll("&apos;", "%27");
- StringBuffer rteXML = new StringBuffer();
- rteXML.append("<rte id=\"").append("rte").append("\" css=\"").append((new StringBuilder(String.valueOf(escapedRteUTL))).append("rte.css").toString()).append("\" js=\"").append((new StringBuilder(String.valueOf(escapedRteUTL))).append("rte.js").toString()).append("\" baseURL=\"").append(escapedBasePath).append("\"/>");
- StringWriter result = new StringWriter();
- XSLTProcessor.transform((new StringBuilder(String.valueOf(rteFolder))).append("rte.xsl").toString(), rteXML.toString(), result);
- return result.toString();
- }
-
- protected void fillContextMenu(Menu contextMenu)
- {
- final MenuItem cutItem = new MenuItem(contextMenu, 8);
- cutItem.setText(RichTextResources.cutAction_text);
- cutItem.addSelectionListener(new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent event)
- {
- CutAction action = new CutAction(DebugRichText.this);
- action.execute(DebugRichText.this);
- }
- });
- final MenuItem copyItem = new MenuItem(contextMenu, 8);
- copyItem.setText(RichTextResources.copyAction_text);
- copyItem.addSelectionListener(new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent event)
- {
- CopyAction action = new CopyAction(DebugRichText.this);
- action.execute(DebugRichText.this);
- }
- }
-);
- final MenuItem pasteItem = new MenuItem(contextMenu, 8);
- pasteItem.setText(RichTextResources.pasteAction_text);
- pasteItem.addSelectionListener(new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent event)
- {
- PasteAction action = new PasteAction(DebugRichText.this);
- action.execute(DebugRichText.this);
- }
- });
- final MenuItem pastePlainTextItem = new MenuItem(contextMenu, 8);
- pastePlainTextItem.setText(RichTextResources.pastePlainTextAction_text);
- pastePlainTextItem.setImage(RichTextImages.IMG_PASTE_PLAIN_TEXT);
- pastePlainTextItem.addSelectionListener(new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent event)
- {
- PastePlainTextAction action = new PastePlainTextAction(DebugRichText.this);
- action.execute(DebugRichText.this);
- }
- });
- contextMenu.addMenuListener(new MenuListener() {
-
- public void menuHidden(MenuEvent menuevent)
- {
- }
-
- public void menuShown(MenuEvent e)
- {
- getSelectedText();
- cutItem.setEnabled(editable && hasSelection);
- copyItem.setEnabled(hasSelection);
- pasteItem.setEnabled(editable);
- pastePlainTextItem.setEnabled(editable);
- }
- });
- }
-
- protected void addListeners()
- {
- editorControl = getControlSite(editor);
- if(editorControl != null)
- {
- if(debug)
- printDebugMessage("init", (new StringBuilder("editorControl=")).append(editorControl.getClass().getName()).toString());
- isIE = true;
- editorControl.addListener(26, new Listener() {
-
- public void handleEvent(Event event)
- {
- if(debug)
- printDebugMessage("activateListener");
- setFocus();
- notifyListeners(26, event);
- }
- });
- editorControl.addListener(27, new Listener() {
-
- public void handleEvent(Event event)
- {
- if(debug)
- printDebugMessage("deactivateListener");
- setBlur();
- notifyListeners(27, event);
- }
- });
- editorControl.addListener(15, new Listener() {
-
- public void handleEvent(Event event)
- {
- if(debug)
- printDebugMessage("focusInListener");
- executeCommand("updateSelection");
- notifyListeners(15, event);
- }
- });
- editorControl.addKeyListener(new KeyAdapter() {
-
- public void keyReleased(KeyEvent event)
- {
- int keyCode = event.keyCode;
- int stateMask = event.stateMask;
- if(debug)
- printDebugMessage("keyUpListener", (new StringBuilder("keyCode=")).append(keyCode).append(", stateMask=").append(stateMask).append(", editable=").append(editable).toString());
- if(stateMask == 262144 && event.keyCode == 17)
- executeCommand("updateSelection");
- if((stateMask & 262144) > 0 || (stateMask & 65536) > 0 || (stateMask & 131072) > 0 && keyCode == stateMask)
- return;
- if(editable)
- switch(event.keyCode)
- {
- case 9: // '\t'
- case 16777217:
- case 16777218:
- case 16777219:
- case 16777220:
- case 16777221:
- case 16777222:
- case 16777223:
- case 16777224:
- return;
-
- default:
- checkModify();
- break;
- }
- }
- });
- editor.addLocationListener(new LocationAdapter() {
-
- public void changing(LocationEvent event)
- {
- event.doit = editable;
- }
- });
- } else
- {
- editor.addListener(26, new Listener() {
-
- public void handleEvent(Event event)
- {
- if(debug)
- printDebugMessage("activateListener");
- setFocus();
- }
- });
- editor.addKeyListener(new KeyListener() {
-
- public void keyPressed(KeyEvent e)
- {
- if(e.keyCode == 9)
- {
- if((e.stateMask & 131072) != 0)
- editor.traverse(8);
- else
- if((e.stateMask & 262144) == 0)
- editor.traverse(16);
- return;
- }
- if(!editable)
- e.doit = false;
- }
-
- public void keyReleased(KeyEvent e)
- {
- if((e.stateMask & 262144) > 0 || (e.stateMask & 65536) > 0)
- return;
- if(editable)
- switch(e.keyCode)
- {
- default:
- checkModify();
- break;
-
- case 9: // '\t'
- case 131072:
- case 16777217:
- case 16777218:
- case 16777219:
- case 16777220:
- case 16777221:
- case 16777222:
- case 16777223:
- case 16777224:
- break;
- }
- }
- });
- }
- editor.addDisposeListener(new DisposeListener() {
-
- public void widgetDisposed(DisposeEvent e)
- {
- if(debug)
- printDebugMessage("disposeListener");
- dispose();
- }
- });
- listeners = new Hashtable();
- modifyListeners = new ArrayList();
- }
-
- protected void notifyListeners(int eventType, Event event)
- {
- if(notifyingModifyListeners)
- return;
- if(listeners != null)
- {
- event.display = Display.getCurrent();
- event.widget = editor;
- for(Iterator i = listeners.values().iterator(); i.hasNext();)
- {
- RichTextListener listener = (RichTextListener)i.next();
- if(listener.getEventType() == eventType)
- {
- if(debug)
- printDebugMessage("notifyListeners", (new StringBuilder("notifying listener, ")).append(listener).append(", eventType=").append(eventType).toString());
- listener.getListener().handleEvent(event);
- if(debug)
- printDebugMessage("notifyListeners", (new StringBuilder("notified listener, ")).append(listener).append(", eventType=").append(eventType).toString());
- }
- }
-
- }
- }
-
- public void notifyModifyListeners()
- {
- notifyingModifyListeners = true;
- Event event = new Event();
- event.display = Display.getCurrent();
- event.widget = editor;
- for(Iterator i = modifyListeners.iterator(); i.hasNext();)
- {
- ModifyListener listener = (ModifyListener)i.next();
- if(debug)
- printDebugMessage("notifyModifyListeners", (new StringBuilder("notifying listener, ")).append(listener).toString());
- listener.modifyText(new ModifyEvent(event));
- if(debug)
- printDebugMessage("notifyModifyListeners", (new StringBuilder("notified listener, ")).append(listener).toString());
- }
-
- notifyingModifyListeners = false;
- }
-
- public void checkModify()
- {
- if(!checkingModifyEvent)
- {
- checkingModifyEvent = true;
- if(modified)
- notifyModifyListeners();
- else
- if(!isIE && processingJSEvent)
- Display.getCurrent().asyncExec(new Runnable() {
-
- public void run()
- {
- if(!getText().equals(initialText))
- {
- modified = true;
- notifyModifyListeners();
- }
- }
- });
- else
- if(!getText().equals(initialText))
- {
- modified = true;
- notifyModifyListeners();
- }
- if(debug)
- printDebugMessage("checkModify", (new StringBuilder("modified=")).append(modified).toString());
- }
- checkingModifyEvent = false;
- return;
- }
-
- public String tidyText(String text)
- {
- return text;
- }
-
- public String formatText(String text)
- {
- if(text == null || text.length() == 0)
- return text;
- StringBuffer result = new StringBuffer();
- int textSize = text.length();
- for(int i = 0; i < textSize; i++)
- {
- char ch = text.charAt(i);
- switch(ch)
- {
- case 9: // '\t'
- result.append(' ');
- break;
-
- case 10: // '\n'
- result.append("%EOL%");
- break;
-
- case 39: // '\''
- result.append("%sq%");
- break;
-
- case 92: // '\\'
- result.append("\\\\");
- break;
-
- default:
- result.append(ch);
- break;
-
- case 13: // '\r'
- break;
- }
- }
-
- return result.toString();
- }
-
- protected Control getControlSite(Composite composite)
- {
- if(Platform.getOS().equals("win32"))
- {
- Control controls[] = composite.getChildren();
- for(int i = 0; i < controls.length; i++)
- {
- String controlClass = controls[i].getClass().getName();
- if(controlClass.equals("org.eclipse.swt.browser.WebSite"))
- return controls[i];
- if(controls[i] instanceof Composite)
- return getControlSite((Composite)controls[i]);
- }
-
- }
- return null;
- }
-
- protected void printDebugMessage(String method, String msg, String text)
- {
- StringBuffer strBuf = new StringBuffer();
- strBuf.append("RichText[").append(editor.handle).append(']').append('.').append(method);
- if(msg != null && msg.length() > 0)
- strBuf.append(": ").append(msg);
- if(text != null && text.length() > 0)
- strBuf.append('\n').append(text);
- System.out.println(strBuf);
- }
-
- protected void printDebugMessage(String method, String msg)
- {
- printDebugMessage(method, msg, null);
- }
-
- protected void printDebugMessage(String method)
- {
- printDebugMessage(method, null);
- }
-
- public FindReplaceAction getFindReplaceAction()
- {
- return findReplaceAction;
- }
-
- public void setFindReplaceAction(FindReplaceAction findReplaceAction)
- {
- if(findReplaceAction != null)
- {
- if(this.findReplaceAction != null && this.findReplaceAction != findReplaceAction)
- this.findReplaceAction.dispose();
- this.findReplaceAction = findReplaceAction;
- this.findReplaceAction.setRichText(this);
- }
- }
-
- public void setInitialText(String text)
- {
- setText(text);
- initialText = text != null ? text : "";
- modified = false;
- }
-
- public boolean hasError()
- {
- return htmlFormatter.getLastErrorStr() != null;
- }
-
- public static String workaroundForObjectParamNode(String html)
- {
- String result = html.replaceAll("<param", "<paramTemp");
- return result;
- }
-
- private String unWorkaroundForObjectParamNode(String html)
- {
- String result = html.replaceAll("<paramTemp", "<param");
- return result;
- }
-
- public String getCurrentRawText()
- {
- return currentRawText;
- }
-
- private void setCurrentRawText(String currentRawText)
- {
- this.currentRawText = currentRawText != null ? currentRawText : "";
- }
-
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/IRichTextEditor.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/IRichTextEditor.java
deleted file mode 100644
index 0f7248d0442..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/IRichTextEditor.java
+++ /dev/null
@@ -1,53 +0,0 @@
-/*****************************************************************************
-* Copyright (c) 2013 CEA
-*
-*
- * 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:
-* Soyatec - Initial API and implementation
-*
-*****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension;
-
-import org.eclipse.epf.richtext.IRichText;
-import org.eclipse.epf.richtext.actions.FindReplaceAction;
-
-/**
- * The interface for a rich text editor.
- * <p>
- * A rich text editor is a composite user interface object that includes a tool
- * bar, a tab folder for entering the rich text content, and a tab folder for
- * viewing and modifying the rich text content in a markup language.
- *
- * @author Nguyen
- *
- */
-public abstract interface IRichTextEditor extends IRichText
-{
- /**
- * Fills the tool bar with rich text action items.
- *
- * @param toolBar
- * a rich text editor tool bar
- */
- public abstract void fillToolBar(IRichTextToolBar paramIRichTextToolBar);
-
- /**
- * Selects the rich text or the markup language tab.
- *
- * @param index
- * <code>0</code> for the rich text tab, <code>1</code> for
- * the markup language tab
- */
- public abstract void setSelection(int paramInt);
-
- /**
- * Sets the FindReplaceAction to use
- * @param findReplaceAction
- */
- public abstract void setFindReplaceAction(FindReplaceAction paramFindReplaceAction);
-} \ No newline at end of file
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/IRichTextToolBar.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/IRichTextToolBar.java
deleted file mode 100644
index 44ee37c6fba..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/IRichTextToolBar.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*****************************************************************************
-* Copyright (c) 2013 CEA
-*
-*
- * 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:
-* Soyatec - Initial API and implementation
-*
-*****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension;
-
-import org.eclipse.epf.richtext.actions.RichTextComboAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.RichTextButtonAction;
-import org.eclipse.swt.widgets.Button;
-
-/**
- * The interface for a rich text editor toolbar.
- *
- * @author Nguyen Viet Hoa
- *
- */
-public interface IRichTextToolBar extends org.eclipse.epf.richtext.IRichTextToolBar{
-
-
- /**
- * Adds a button to the tool bar.
- *
- * @param button
- * the button to add
- */
- public void addButton(Button button);
-
- /**
- * Adds a button action to the tool bar.
- *
- * @param action
- * the button action to add
- */
- public void addAction(RichTextButtonAction item);
-
- /**
- * Adds a combo action to the tool bar.
- *
- * @param action
- * the combo action to add
- */
- public void addAction(RichTextComboAction item);
-
- /**
- * Adds a combo action to the tool bar.
- *
- * @param action
- * the combo action to add
- */
- public void addAction(org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.RichTextComboAction item);
-
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/Resources.properties b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/Resources.properties
deleted file mode 100644
index b6c9998f4be..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/Resources.properties
+++ /dev/null
@@ -1,154 +0,0 @@
-#-------------------------------------------------------------------------------
-# Copyright (c) 2000, 2007 IBM 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:
-# IBM Corporation - initial implementation.
-#-------------------------------------------------------------------------------
-# NLS_MESSAGEFORMAT_VAR
-
-################################################################################
-# BEGIN NO TRANSLATION
-###############################################################################
-# !! DO NOT TRANSLATE THE FOLLOWING LINE !!
-fontNameAction_CSS_Default=arial, helvetica, sans-serif
-# !! DO NOT TRANSLATE THE FOLLOWING LINE !!
-fontNameAction_CSS_Default_Mozilla=arial,helvetica,sans-serif
-################################################################################
-# END NO TRANSLATION
-################################################################################
-
-
-
-# Font Style Names
-fontStyle_normal=Normal
-fontStyle_sectionHeading=Section Heading
-fontStyle_subsectionHeading=Subsection Heading
-fontStyle_subSubsectionHeading=Sub Subsection Heading
-fontStyle_quote=Quote
-fontStyle_codeSample=Code Sample
-
-# HTML Block Tags
-blockTag_paragraph=Paragraph
-blockTag_heading1=Heading 1
-blockTag_heading2=Heading 2
-blockTag_heading3=Heading 3
-blockTag_heading4=Heading 4
-blockTag_heading5=Heading 5
-blockTag_heading6=Heading 6
-blockTag_address=Address
-blockTag_preformattedText=Preformatted Text
-
-# HTML Font Names
-fontName_default=Default
-fontName_arial=Arial
-fontName_courierNew=Courier New
-fontName_timesNewRoman=Times New Roman
-fontName_verdana=Verdana
-
-# Rich Text Editor Tool Buttons
-addHorizontalBarAction_toolTipText=Add Horizontal Bar
-addImageAction_toolTipText=Add Image
-addLineAction_toolTipText=Add Line
-addLinkAction_toolTipText=Add Link
-addOrderedListAction_toolTipText=Add Ordered List
-addTableAction_toolTipText=Add Table
-addUnorderedListAction_toolTipText=Add Unordered List
-boldAction_toolTipText=Bold
-clearContentAction_toolTipText=Clear Content
-copyAction_toolTipText=Copy
-cutAction_toolTipText=Cut
-findReplaceAction_toolTipText=Find/Replace
-indentAction_toolTipText=Indent
-italicAction_toolTipText=Italic
-removeFormatAction_toolTipText=Clear Formatting
-backGroundColorAction_toolTipText=Background Color
-foreGroundColorAction_toolTipText=Foreground Color
-strikeThroughAction_toolTipText=Strike-through
-justifyCenterAction_toolTipText=Justify Center
-justifyFullAction_toolTipText=Justify Full
-justifyLeftAction_toolTipText=Justify Left
-justifyRightAction_toolTipText=Justify Right
-outdentAction_toolTipText=Outdent
-pasteAction_toolTipText=Keep Source Formatting
-pasteKeepTextOnlyAction_toolTipText=Keep Text Only
-pasteMergeFormattingAction_toolTipText=Merge Formatting
-subscriptAction_toolTipText=Subscript
-superscriptAction_toolTipText=Superscript
-underlineAction_toolTipText=Underline
-tidy_clean_text=Default Clean
-tidy_cleaner_text=Clean MS HTML
-tidy_cleanest_text=Clean Word 2000 HTML
-tidy_clean_toolTipText=Clean with JTidy using default options
-tidy_cleaner_toolTipText=Clean HTML of MS HTML
-tidy_cleanest_toolTipText=Clean Word 2000 HTML
-
-
-# Rich Text Editor Comboboxes
-fontStyleAction_toolTipText=Set Font Style
-blockTagAction_toolTipText=Set Block Tag
-fontNameAction_toolTipText=Set Font
-fontNameAction_DefaultFontName=Default font
-fontSizeAction_toolTipText=Set Font Size
-
-# Rich Text Editor Context Menu Items
-cutAction_text=&Cut
-copyAction_text=C&opy
-pasteAction_text=&Paste Keep Source Formatting
-pasteKeepTextOnlyAction_text=Paste &Keep Text Only
-pasteMergeFormattingAction=&Merge Formatting
-
-# Rich Text Editor Tabs
-richTextTab_text=Rich Text
-richTextTab_toolTipText=Edit content in rich text
-htmlTab_text=HTML
-htmlTab_toolTipText=Edit content in HTML
-
-# Add Dialogs
-addImageDialog_title=Add Image
-addLinkDialog_title=Add Link
-addTableDialog_title=Add Table
-findReplaceDialog_title=Find/Replace
-urlLabel_text=URL:
-summaryLabel_text=Summary:
-captionLabel_text=Caption:
-rowsLabel_text=Rows:
-columnsLabel_text=Columns:
-widthLabel_text=Width:
-tableStyleLabel_text=Style:
-tableHeaderNone_text=Table with no headers
-tableHeaderCols_text=Table with column headers
-tableHeaderRows_text=Table with row headers
-tableHeaderBoth_text=Table with column and row headers
-browseButton_text=Browse...
-
-# Clear Editor Content Dialog
-clearContentDialog_title=Clear Editor Content Confirmation
-clearContentDialog_text=Do you really want to clear the content of this rich text editor?
-
-# Find/Replace Dialog
-findLabel_text=Find:
-replaceLabel_text=Replace with:
-optionsGroup_text=Options
-caseSensitiveCheckbox_text=Case sensitive
-wholeWordCheckbox_text=Whole word
-directionGroup_text=Direction
-forwardRadioButton_text=Forward
-backwardRadioButton_text=Backward
-findButton_text=Find
-replaceButton_text=Replace
-replaceFindButton_text=Replace/Find
-replaceallButton_text=Replace All
-# taken from org.eclipse.ui.workbench.texteditor
-FindReplace_Status_noMatch_label=String Not Found
-
-# Preference Page
-maxCharsPerLineLabel_text=Maximum characters per line:
-indentHTMLCheckbox_text=Indent HTML tags
-indentSizeLabel_text=Indent Size:
-urlDisplayNameLabel_text=URL Display Name:
-
-
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichPlugin.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichPlugin.java
deleted file mode 100644
index 8440b545f2a..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichPlugin.java
+++ /dev/null
@@ -1,74 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension;
-
-import java.util.Date;
-import org.eclipse.epf.common.ui.AbstractPlugin;
-import org.osgi.framework.BundleContext;
-
-/**
- * The Rich Text plug-in class.
- *
- * @author Nguyen
- *
- */
-public class RichPlugin extends AbstractPlugin {
-
- /**
- * The shared plug-in instance.
- */
- private static RichPlugin plugin;
-
- /**
- * The date and time when this plug-in was started.
- */
- private Date startTime;
-
- /**
- * Default constructor.
- */
- public RichPlugin() {
- plugin = this;
- }
-
- /**
- * @see AbstractPlugin#start(BundleContext)
- */
- public void start(BundleContext context) throws Exception {
- super.start(context);
- this.startTime = new Date();
- }
-
- /**
- * @see AbstractPlugin#stop(BundleContext)
- */
- public void stop(BundleContext context) throws Exception {
- super.stop(context);
- plugin = null;
- }
-
- /**
- * Returns the shared plug-in instance.
- */
- public static RichPlugin getDefault() {
- return plugin;
- }
-
- /**
- * Returns the date and time when this plug-in was started.
- */
- public Date getStartTime() {
- return this.startTime;
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichText.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichText.java
deleted file mode 100644
index 84d1920b7a3..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichText.java
+++ /dev/null
@@ -1,184 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension;
-
-import java.io.StringWriter;
-
-import org.eclipse.epf.common.utils.XMLUtil;
-import org.eclipse.epf.common.xml.XSLTProcessor;
-import org.eclipse.epf.richtext.actions.CopyAction;
-import org.eclipse.epf.richtext.actions.CutAction;
-import org.eclipse.epf.richtext.actions.PastePlainTextAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.PasteAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.PasteTextOnlyAction;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.MenuEvent;
-import org.eclipse.swt.events.MenuListener;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-import org.eclipse.swt.widgets.Menu;
-import org.eclipse.swt.widgets.MenuItem;
-
-/**
- * The default rich text control implementation.
- * <p>
- * The default rich text editor uses XHTML as the underlying markup language for the rich text content. It is implemented using a SWT
- * <code>Browser</code> control and DHTML (HTML, CSS and JavaScript).
- *
- * @author Nguyen
- */
-public class RichText extends org.eclipse.epf.richtext.RichText {
-
- /**
- * Creates a new instance.
- *
- * @param parent
- * the parent composite
- * @param style
- * the style for this control
- * @param basePath
- * the path used for resolving links
- */
- public RichText(Composite parent, int style, String basePath) {
- super(parent, style, basePath);
- }
-
- /**
- * Creates a new instance.
- *
- * @param parent
- * the parent composite
- * @param style
- * the style for this control
- */
- public RichText(Composite parent, int style) {
- this(parent, style, null);
- }
-
- /**
- * Fills the context menu with menu items.
- *
- * @param contextMenu
- * a context menu containing rich text actions
- */
- protected void fillContextMenu(Menu contextMenu) {
- final MenuItem cutItem = new MenuItem(contextMenu, 8);
- cutItem.setText(RichTextResources.cutAction_text);
- cutItem.addSelectionListener(new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent event) {
- CutAction action = new CutAction(RichText.this);
- action.execute(RichText.this);
- }
- });
- final MenuItem copyItem = new MenuItem(contextMenu, 8);
- copyItem.setText(RichTextResources.copyAction_text);
- copyItem.addSelectionListener(new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent event) {
- CopyAction action = new CopyAction(RichText.this);
- action.execute(RichText.this);
- }
- });
- final MenuItem pasteItem = new MenuItem(contextMenu, 8);
- pasteItem.setText(RichTextResources.pasteAction_text);
- pasteItem.addSelectionListener(new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent event) {
- PasteAction action = new PasteAction(RichText.this);
- action.execute(RichText.this);
- }
- });
- final MenuItem pastePlainTextItem = new MenuItem(contextMenu, 8);
- pastePlainTextItem.setText(RichTextResources.pasteKeepTextOnlyAction_text);
- pastePlainTextItem.setImage(RichTextImages.IMG_PASTE_PLAIN_TEXT);
- pastePlainTextItem.addSelectionListener(new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent event) {
- PastePlainTextAction action = new PastePlainTextAction(RichText.this);
- action.execute(RichText.this);
- }
- });
- final MenuItem pasteTextOnlyItem = new MenuItem(contextMenu, 8);
- pasteTextOnlyItem.setText(RichTextResources.pasteMergeFormattingAction_toolTipText);
- pasteTextOnlyItem.setImage(RichTextImages.IMG_PASTE_TEXT_ONLY);
- pasteTextOnlyItem.addSelectionListener(new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent event) {
- PasteTextOnlyAction action = new PasteTextOnlyAction(RichText.this);
- action.execute(RichText.this);
- }
- });
- contextMenu.addMenuListener(new MenuListener() {
-
- public void menuHidden(MenuEvent e) {
- }
-
- public void menuShown(MenuEvent e) {
- RichText.this.getSelectedText();
- cutItem.setEnabled((RichText.this.editable) && (RichText.this.hasSelection));
- copyItem.setEnabled(RichText.this.hasSelection);
- pasteItem.setEnabled(RichText.this.editable);
- pastePlainTextItem.setEnabled(RichText.this.editable);
- pasteTextOnlyItem.setEnabled(RichText.this.editable);
- }
- });
- }
-
- /**
- * Generates the HTML source for the editor.
- *
- * @return the HTML source for the editor
- */
- protected String generateEditorHTML() throws Exception {
- this.debug = RichPlugin.getDefault().isDebugging();
- this.logger = RichPlugin.getDefault().getLogger();
- this.rteFolder = (RichPlugin.getDefault().getInstallPath() + "rte/");
- this.rteURL = XMLUtil.escape("file://" + this.rteFolder);
- String escapedBasePath = this.basePath;
- if(escapedBasePath.startsWith("\\\\"))
- escapedBasePath = escapedBasePath.replaceFirst("^\\\\\\\\", "\\\\\\\\\\\\\\\\");
- escapedBasePath = XMLUtil.escape("file://" + escapedBasePath.replaceAll("'", "\\\\'"));
- String escapedRteUTL = this.rteURL.replaceAll("&apos;", "%27");
- StringBuffer rteXML = new StringBuffer();
- rteXML.append("<rte id=\"").append("rte").append("\" css=\"").append(escapedRteUTL + "rte.css").append("\" js=\"").append(escapedRteUTL + "rte.js").append("\" baseURL=\"").append(escapedBasePath).append("\"/>");
- StringWriter result = new StringWriter();
- XSLTProcessor.transform(this.rteFolder + "rte.xsl", rteXML.toString(), result);
- return result.toString();
- }
-
- /**
- * Adds listeners to manage the focus out events.
- */
- @Override
- protected void addListeners() {
- editorControl = getControlSite(editor);
- if(editorControl != null) {
- editorControl.addListener(SWT.FocusOut, new Listener() {
-
- public void handleEvent(Event event) {
- if(debug) {
- printDebugMessage("focusInListener"); //$NON-NLS-1$
- }
- setBlur();
- notifyListeners(SWT.FocusOut, event);
- }
- });
- }
- super.addListeners();
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextCommand.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextCommand.java
deleted file mode 100644
index d441506a89d..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextCommand.java
+++ /dev/null
@@ -1,268 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension;
-
-/**
- * Defines the editing commands supported by the default rich text control and
- * editor.
- *
- * @author Nguyen
- */
-public class RichTextCommand extends org.eclipse.epf.richtext.RichTextCommand {
-
- /**
- * Adds ad a HTML fragment.
- */
- public static final String ADD_HTML = "addHTML"; //$NON-NLS-1$
-
- /**
- * Adds an image.
- *
- */
- public static final String ADD_IMAGE = "addImage"; //$NON-NLS-1$
-
- /**
- * Adds a horizontal line.
- */
- public static final String ADD_LINE = "addLine"; //$NON-NLS-1$
-
- /**
- * Adds a link.
- */
- public static final String ADD_LINK = "addLink"; //$NON-NLS-1$
-
- /**
- * Inserts text over the current selection.
- */
- public static final String INSERT_TEXT = "insertText"; //$NON-NLS-1$
-
- /**
- * Adds an ordered list.
- */
- public static final String ADD_ORDERED_LIST = "addOrderedList"; //$NON-NLS-1$
-
- /**
- * Adds a table.
- */
- public static final String ADD_TABLE = "addTable"; //$NON-NLS-1$
-
- /**
- * Adds an unordered list.
- */
- public static final String ADD_UNORDERED_LIST = "addUnorderedList"; //$NON-NLS-1$
-
- /**
- * Sets the background color of the selected text.
- */
- public static final String BACKGROUND_COLOR = "backColor"; //$NON-NLS-1$
-
- /**
- * Sets the background color of the selected text.
- */
- // public static final String SETUP_TEST = "setupTest"; //$NON-NLS-1$
-
- public static final String SETUP_TEST = "selectContent"; //$NON-NLS-1$
-
-
- /**
- * Toggles the 'bold' attribute of the selected text.
- */
- public static final String BOLD = "bold"; //$NON-NLS-1$
-
- /**
- * Clears the rich text content.
- */
- public static final String CLEAR_CONTENT = "clearContent"; //$NON-NLS-1$
-
- /**
- * Copies the selected text to the clipboard.
- */
- public static final String COPY = "copy"; //$NON-NLS-1$
-
- /**
- * Cuts the selected text to the clipboard.
- */
- public static final String CUT = "cut"; //$NON-NLS-1$
-
- /**
- * Deletes the selected text.
- */
- public static final String DELETE = "deleteText"; //$NON-NLS-1$
-
- /**
- * Finds text.
- */
- public static final String FIND_TEXT = "findText"; //$NON-NLS-1$
-
- /**
- * Gets the HTML source.
- */
- public static final String GET_TEXT = "getText"; //$NON-NLS-1$
-
- /**
- * Sets the foreground color of the selected text.
- */
- public static final String FOREGROUND_COLOR = "foreColor"; //$NON-NLS-1$
-
- /**
- * Formats the selected text.
- */
- public static final String FORMAT_BLOCK = "formatBlock"; //$NON-NLS-1$
-
- /**
- * Returns the selected text.
- */
- public static final String GET_SELECTED_TEXT = "getSelectedText"; //$NON-NLS-1$
-
- /**
- * Indents the selected text.
- */
- public static final String INDENT = "indent"; //$NON-NLS-1$
-
- /**
- * Toggles the 'italic' attribute of the selected text.
- */
- public static final String ITALIC = "italic"; //$NON-NLS-1$
-
- /**
- * Center justifies the selected text.
- */
- public static final String JUSTIFY_CENTER = "justifyCenter"; //$NON-NLS-1$
-
- /**
- * Fully justifies the selected text.
- */
- public static final String JUSTIFY_FULL = "justifyFull"; //$NON-NLS-1$
-
- /**
- * Left justifies the selected text.
- */
- public static final String JUSTIFY_LEFT = "justifyLeft"; //$NON-NLS-1$
-
- /**
- * Right justifies the selected text.
- */
- public static final String JUSTIFY_RIGHT = "justifyRight"; //$NON-NLS-1$
-
- /**
- * Outdents the selected text.
- */
- public static final String OUTDENT = "outdent"; //$NON-NLS-1$
-
- /**
- * Pastes text from the clipboard.
- */
- public static final String PASTE = "paste"; //$NON-NLS-1$
-
- /**
- * Replaces all text.
- */
- public static final String REPLACE_ALL_TEXT = "replaceAllText"; //$NON-NLS-1$
-
- /**
- * Replaces the selected text.
- */
- public static final String REPLACE_TEXT = "replaceText"; //$NON-NLS-1$
-
- /**
- * Redoes the previous command.
- */
- public static final String REDO = "redo"; //$NON-NLS-1$
-
- /**
- * Removes the current formatting of the selected text.
- */
- public static final String REMOVE_FORMAT = "removeformat"; //$NON-NLS-1$
-
- /**
- * Saves the editor
- */
- public static final String SAVE = "save"; //$NON-NLS-1$
-
- /**
- * Saves all editors
- */
- public static final String SAVE_ALL = "saveAll"; //$NON-NLS-1$
-
- /**
- * Selects all text.
- */
- public static final String SELECT_ALL = "selectAll"; //$NON-NLS-1$
-
- /**
- * Sets the font name for the selected text.
- */
- public static final String SET_FONT_NAME = "setFontName"; //$NON-NLS-1$
-
- /**
- * Sets the font size for the selected text.
- */
- public static final String SET_FONT_SIZE = "setFontSize"; //$NON-NLS-1$
-
- /**
- * Sets the font style for the selected text.
- */
- public static final String SET_FONT_STYLE = "setFontStyle"; //$NON-NLS-1$
-
- /**
- * Sets whether the content can be edited.
- */
- public static final String SET_EDITABLE = "setEditable"; //$NON-NLS-1$
-
- /**
- * Sets focus to this control.
- */
- public static final String SET_FOCUS = "setFocus"; //$NON-NLS-1$
-
- /**
- * Sets the height of this control.
- */
- public static final String SET_HEIGHT = "setHeight"; //$NON-NLS-1$
-
- /**
- * Sets the HTML source.
- */
- public static final String SET_TEXT = "setText"; //$NON-NLS-1$
-
- /**
- * Toggles the 'strike-through' attribute of the selected text.
- */
- public static final String STRIKE_THROUGH = "strikeThrough"; //$NON-NLS-1$
-
- /**
- * Toggles the subscript attribute of the selected text.
- */
- public static final String SUBSCRIPT = "subscript"; //$NON-NLS-1$
-
- /**
- * Toggles the superscript attribute of the selected text.
- */
- public static final String SUPERSCRIPT = "superscript"; //$NON-NLS-1$
-
- /**
- * Toggles the underline attribute of the selected text.
- */
- public static final String UNDERLINE = "underline"; //$NON-NLS-1$
-
- /**
- * Undoes the previous command.
- */
- public static final String UNDO = "undo"; //$NON-NLS-1$
-
- /**
- * Converts a link to normal text.
- */
- public static final String UNLINK = "unlink"; //$NON-NLS-1$
-
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextEditor.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextEditor.java
deleted file mode 100644
index 06f5ca909a3..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextEditor.java
+++ /dev/null
@@ -1,1820 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension;
-
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
-import java.util.Map;
-
-import org.eclipse.core.commands.ParameterizedCommand;
-import org.eclipse.core.commands.operations.IUndoContext;
-import org.eclipse.epf.common.serviceability.Logger;
-import org.eclipse.epf.richtext.IRichText;
-import org.eclipse.epf.richtext.RichTextListener;
-import org.eclipse.epf.richtext.RichTextSelection;
-import org.eclipse.epf.richtext.actions.AddImageAction;
-import org.eclipse.epf.richtext.actions.AddLineAction;
-import org.eclipse.epf.richtext.actions.AddLinkAction;
-import org.eclipse.epf.richtext.actions.AddOrderedListAction;
-import org.eclipse.epf.richtext.actions.AddTableAction;
-import org.eclipse.epf.richtext.actions.AddUnorderedListAction;
-import org.eclipse.epf.richtext.actions.BlockTagAction;
-import org.eclipse.epf.richtext.actions.BoldAction;
-import org.eclipse.epf.richtext.actions.CopyAction;
-import org.eclipse.epf.richtext.actions.CutAction;
-import org.eclipse.epf.richtext.actions.FindReplaceAction;
-import org.eclipse.epf.richtext.actions.IndentAction;
-import org.eclipse.epf.richtext.actions.ItalicAction;
-import org.eclipse.epf.richtext.actions.JustifyCenterAction;
-import org.eclipse.epf.richtext.actions.JustifyFullAction;
-import org.eclipse.epf.richtext.actions.JustifyLeftAction;
-import org.eclipse.epf.richtext.actions.JustifyRightAction;
-import org.eclipse.epf.richtext.actions.OutdentAction;
-import org.eclipse.epf.richtext.actions.PastePlainTextAction;
-import org.eclipse.epf.richtext.actions.SubscriptAction;
-import org.eclipse.epf.richtext.actions.SuperscriptAction;
-import org.eclipse.epf.richtext.actions.TidyActionGroup;
-import org.eclipse.epf.richtext.actions.UnderlineAction;
-import org.eclipse.jface.action.Action;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.bindings.Binding;
-import org.eclipse.jface.bindings.keys.KeySequence;
-import org.eclipse.jface.bindings.keys.KeyStroke;
-import org.eclipse.jface.bindings.keys.SWTKeySupport;
-import org.eclipse.jface.text.Document;
-import org.eclipse.jface.text.DocumentEvent;
-import org.eclipse.jface.text.IDocument;
-import org.eclipse.jface.text.IDocumentListener;
-import org.eclipse.jface.text.ITextViewerExtension;
-import org.eclipse.jface.text.ITextViewerExtension6;
-import org.eclipse.jface.text.IUndoManager;
-import org.eclipse.jface.text.IUndoManagerExtension;
-import org.eclipse.jface.text.TextViewerUndoManager;
-import org.eclipse.jface.text.source.AnnotationModel;
-import org.eclipse.jface.text.source.IAnnotationAccess;
-import org.eclipse.jface.text.source.SourceViewer;
-import org.eclipse.jface.text.source.SourceViewerConfiguration;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.BackgroundColorAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.FontNameAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.FontSizeAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.FontStyleAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.ForegroundColorAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.PasteAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.PasteTextOnlyAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.RemoveFormatAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.SetupTestAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.SpellCheckAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.StrikeThroughAction;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.custom.CTabFolder;
-import org.eclipse.swt.custom.CTabItem;
-import org.eclipse.swt.custom.StyledText;
-import org.eclipse.swt.custom.VerifyKeyListener;
-import org.eclipse.swt.custom.ViewForm;
-import org.eclipse.swt.dnd.DND;
-import org.eclipse.swt.dnd.DropTarget;
-import org.eclipse.swt.dnd.DropTargetEvent;
-import org.eclipse.swt.dnd.DropTargetListener;
-import org.eclipse.swt.dnd.HTMLTransfer;
-import org.eclipse.swt.dnd.TextTransfer;
-import org.eclipse.swt.dnd.Transfer;
-import org.eclipse.swt.events.DisposeListener;
-import org.eclipse.swt.events.HelpListener;
-import org.eclipse.swt.events.KeyEvent;
-import org.eclipse.swt.events.KeyListener;
-import org.eclipse.swt.events.MenuEvent;
-import org.eclipse.swt.events.MenuListener;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.events.SelectionAdapter;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.VerifyEvent;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.layout.FillLayout;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-import org.eclipse.swt.widgets.Menu;
-import org.eclipse.swt.widgets.MenuItem;
-import org.eclipse.ui.IActionBars;
-import org.eclipse.ui.IEditorSite;
-import org.eclipse.ui.IKeyBindingService;
-import org.eclipse.ui.PlatformUI;
-import org.eclipse.ui.actions.ActionFactory;
-import org.eclipse.ui.editors.text.EditorsUI;
-import org.eclipse.ui.editors.text.TextSourceViewerConfiguration;
-import org.eclipse.ui.internal.editors.text.EditorsPlugin;
-import org.eclipse.ui.keys.IBindingService;
-import org.eclipse.ui.operations.OperationHistoryActionHandler;
-import org.eclipse.ui.operations.RedoActionHandler;
-import org.eclipse.ui.operations.UndoActionHandler;
-import org.eclipse.ui.texteditor.AbstractDecoratedTextEditorPreferenceConstants;
-import org.eclipse.ui.texteditor.AnnotationPreference;
-import org.eclipse.ui.texteditor.DefaultMarkerAnnotationAccess;
-import org.eclipse.ui.texteditor.IAbstractTextEditorHelpContextIds;
-import org.eclipse.ui.texteditor.IReadOnlyDependent;
-import org.eclipse.ui.texteditor.ITextEditor;
-import org.eclipse.ui.texteditor.ITextEditorActionConstants;
-import org.eclipse.ui.texteditor.IUpdate;
-import org.eclipse.ui.texteditor.IWorkbenchActionDefinitionIds;
-import org.eclipse.ui.texteditor.MarkerAnnotationPreferences;
-import org.eclipse.ui.texteditor.SourceViewerDecorationSupport;
-
-/**
- * @author Nguyen
- *
- */
-public class RichTextEditor extends Composite {
-
- public IDocument getCurrentDoc() {
- return currentDoc;
- }
-
- public void setCurrentDoc(IDocument currentDoc) {
- this.currentDoc = currentDoc;
- }
-
- /** The HTML tab name. */
- protected static final String HTML_TAB_NAME = RichTextResources.htmlTab_text;
-
- /** The set of actions in the tool bar. */
- private ToolbarCommand[] commandSet;
-
- /** Set the name for the richText. */
- public static final String PROPERTY_NAME = "richText";
-
- /** If true, log debugging info. */
- protected boolean debug;
-
- /** The plug-in logger. */
- protected Logger logger;
-
- /** The base path used for resolving links (<href>, <img>, etc.). */
- protected String basePath;
-
- /** The editor form. */
- protected ViewForm form;
-
- /** The editor tool bar. */
- protected IRichTextToolBar toolBar;
-
- /** The editor content. */
- protected Composite content;
-
- /**
- * get the content composite
- *
- * @return content
- */
- public Composite getContent() {
- return content;
- }
-
- /**
- * set the content composite
- *
- * @param content
- */
- public void setContent(Composite content) {
- this.content = content;
- }
-
- /** The editor tab folder. */
- protected CTabFolder tabFolder;
-
- /** The rich text tab. */
- protected CTabItem richTextTab;
-
- /** The HTML source tab. */
- protected CTabItem htmlTab;
-
- /** The embedded rich text control. */
- protected IRichText richText;
-
- /** The underlying HTML text editor. */
- protected SourceViewer sourceViewer;
-
- /** the document of the rich text. */
- protected IDocument currentDoc;
-
- /** Drop support. */
- protected DropTarget sourceEditDropTarget;
-
- /** HTML editor's context menu. */
- protected Menu contextMenu;
-
- /** check if the HTML source been modified. */
- protected boolean sourceModified = false;
-
- /** The editor's editable flag. */
- protected boolean editable = true;
-
- /** The OperationHistory to handler the redo action. */
- private OperationHistoryActionHandler undoAction;
-
- /** The OperationHistory to handler the redo action. */
- private OperationHistoryActionHandler redoAction;
-
- /** The editor site in case of using the editor site. */
- private IEditorSite editorSite;
-
- /** The actions registered with the editor. */
- private Map<String, IAction> fActions = new HashMap<String, IAction>(10);
-
- /** The verify key listener for activation code triggering. */
- private ActivationCodeTrigger fActivationCodeTrigger = new ActivationCodeTrigger();
-
- /** The editor's action activation codes. */
- private List<ActionActivationCode> fActivationCodes = new ArrayList<ActionActivationCode>(2);
-
- /** The editor's undo manager. */
- final IUndoManager undoManager = new TextViewerUndoManager(10);
-
- /**
- * The key binding scopes of this editor.
- *
- * @since 2.1
- */
- private String[] fKeyBindingScopes;
-
- /**
- * the listener to the source editor
- */
- protected IDocumentListener sourceEditDocumentListener = new IDocumentListener() {
-
- public void documentAboutToBeChanged(DocumentEvent event) {
- }
-
- public void documentChanged(DocumentEvent event) {
- sourceModified = true;
- if(richText != null && richText instanceof RichText) {
- richText.notifyModifyListeners();
- }
- }
- };
-
- /**
- * The deactivate listener for the sourceEdit control.
- */
- protected Listener sourceEditDeactivateListener = new Listener() {
-
- public void handleEvent(Event event) {
- if(sourceModified) {
- updateRichText(sourceViewer.getTextWidget().getText());
- setModified(true);
- sourceModified = false;
- }
- }
- };
-
- /**
- * The key listener for the sourceEdit control.
- */
- protected KeyListener sourceEditKeyListener = new KeyListener() {
-
- public void keyPressed(KeyEvent e) {
- Object adapter = PlatformUI.getWorkbench().getAdapter(IBindingService.class);
- if(adapter != null && adapter instanceof IBindingService) {
- int accel = SWTKeySupport.convertEventToUnmodifiedAccelerator(e);
- KeyStroke stroke = SWTKeySupport.convertAcceleratorToKeyStroke(accel);
- KeySequence seq = KeySequence.getInstance(stroke);
- Binding bind = ((IBindingService)adapter).getPerfectMatch(seq);
- if(bind != null) {
- ParameterizedCommand command = bind.getParameterizedCommand();
- if(command != null) {
- String cmdId = command.getId();
- if(cmdId != null && cmdId.equals("org.eclipse.ui.edit.findReplace")) { //$NON-NLS-1$
- richText.getFindReplaceAction().execute(richText);
- }
- }
- }
- }
- }
-
- public void keyReleased(KeyEvent e) {
- }
- };
-
- /**
- * Creates a new instance.
- *
- * @param parent
- * the parent composite
- * @param style
- * the editor style
- * @param basePath
- * the base path used for resolving links
- */
- public RichTextEditor(Composite parent, int style) {
- super(parent, style);
- setLayout(new FillLayout());
- init(this);
- }
-
- /**
- * Initializes this editor.
- *
- * @param parent
- * the parent composite
- * @param style
- * the editor style
- */
- protected void init(Composite parent) {
- try {
- form = new ViewForm(parent, SWT.BORDER | SWT.FLAT); //remove SWT.FLAT for the a blue border
- form.marginHeight = 0;
- form.marginWidth = 0;
- content = new Composite(form, SWT.FLAT);
- GridLayout layout = new GridLayout();
- layout.marginHeight = 0;
- layout.marginWidth = 0;
- content.setLayout(layout);
- toolBar = new RichTextToolBar(form, SWT.FLAT);
- tabFolder = createEditorTabFolder(content, SWT.BORDER);
- form.setTopCenter(((RichTextToolBar)toolBar).getToolbarMgr().getControl());
- form.setTopLeft(((RichTextToolBar)toolBar).getToolbarMgrCombo().getControl());
- form.setContent(content);
- } catch (Exception e) {
- logger.logError(e);
- }
- }
-
- /**
- * Returns the form control.
- *
- * @return the form control
- */
- public Control getControl() {
- return form;
- }
-
- /**
- * Returns the rich text control embedded within this editor.
- */
- public IRichText getRichTextControl() {
- return richText;
- }
-
- /**
- * Sets focus to this editor.
- */
- public boolean setFocus() {
- if(richText != null) {
- richText.setFocus();
- }
- setSelection(0);
- if(toolBar != null && tabFolder != null) {
- toolBar.updateToolBar(editable && !isHTMLTabSelected());
- }
- return true;
- }
-
- /**
- * Tells the control it does not have focus.
- */
- public void setBlur() {
- if(richText != null) {
- richText.setBlur();
- }
- }
-
- /**
- * Checks whether this editor has focus.
- *
- * @return <code>true</code> if this editor has the user-interface focus
- */
- public boolean hasFocus() {
- if(richText != null) {
- return richText.hasFocus();
- }
- return false;
- }
-
- /**
- * Selects the Rich Text or HTML tab.
- *
- * @param index
- * <code>0</code> for the Rich Text tab, <code>1</code> for
- * the HTML tab.
- */
- public void setSelection(int index) {
- if(tabFolder != null) {
- tabFolder.setSelection(index);
- }
- }
-
- /**
- * Returns the base path used for resolving text and image links.
- *
- * @return the base path used for resolving links specified with <href>,
- * <img>, etc.
- */
- public String getBasePath() {
- return basePath;
- }
-
- /**
- * Returns the base URL of the rich text control whose content was last
- * copied to the clipboard.
- *
- * @return the base URL of a rich text control
- */
- public URL getCopyURL() {
- if(richText != null) {
- return richText.getCopyURL();
- }
- return null;
- }
-
- /**
- * Sets the base URL of the rich text control whose content was last copied
- * to the clipboard.
- */
- public void setCopyURL() {
- if(richText != null) {
- richText.setCopyURL();
- }
- }
-
- /**
- * Returns the editable state.
- *
- * @return <code>true</code> if the content can be edited
- */
- public boolean getEditable() {
- return editable;
- }
-
- /**
- * Sets the editable state.
- *
- * @param editable
- * the editable state
- */
- public void setEditable(boolean editable) {
-
- this.editable = editable;
- if(toolBar != null && tabFolder != null) {
- toolBar.updateToolBar(editable && !isHTMLTabSelected());
- }
- if(richText != null) {
- richText.setEditable(editable && !isHTMLTabSelected());
- }
- if(sourceViewer != null) {
- sourceViewer.setEditable(editable && !isHTMLTabSelected());
- }
- }
-
- /**
- * Checks whether the content has been modified.
- *
- * @return <code>true</code> if the content has been modified
- */
- public boolean getModified() {
- if(richText != null) {
- return richText.getModified();
- }
- return false;
- }
-
- /**
- * Sets the modified state.
- *
- * @param modified
- * the modified state
- */
- public void setModified(boolean modified) {
- if(richText != null) {
- richText.setModified(modified);
- }
- }
-
- /**
- * Returns the rich text content.
- *
- * @return the rich text content formatted in XHTML
- */
- public String getText() {
- if(sourceModified) {
- setText(getSourceEdit().getText());
- setModified(true);
- sourceModified = false;
- }
- if(richText != null) {
- return richText.getText();
- }
- return ""; //$NON-NLS-1$
- }
-
- /**
- * Sets the rich text content.
- *
- * @param text
- * the rich text content in XHTML format
- */
- public void setText(String text) {
- if(richText != null) {
- richText.setText(text);
- }
- sourceModified = false;
- if(tabFolder != null) {
- if(toolBar != null) {
- toolBar.updateToolBar(editable && !isHTMLTabSelected());
- }
- if(getSourceEdit() != null) {
- removeModifyListeners();
- currentDoc.set(text);
- addModifyListeners();
- }
- }
- }
-
- /**
- * add the modify listeners
- */
- protected void addModifyListeners() {
- if(currentDoc != null) {
- currentDoc.addDocumentListener(sourceEditDocumentListener);
- }
- }
-
- /**
- * remove the modify listeners
- */
- protected void removeModifyListeners() {
- if(currentDoc != null) {
- currentDoc.removeDocumentListener(sourceEditDocumentListener);
- }
- }
-
- /**
- * @see org.eclipse.epf.richtext.IRichText#checkModify()
- */
- public void checkModify() {
- richText.checkModify();
- if(sourceModified) {
- notifyModifyListeners();
- }
- if(debug) {
- printDebugMessage("checkModify", "modified=" + sourceModified); //$NON-NLS-1$ //$NON-NLS-2$
- }
- }
-
- /**
- * Restores the rich text content back to the initial value.
- */
- public void restoreText() {
- if(richText != null) {
- richText.restoreText();
- }
- }
-
- /*
- * (non-Javadoc)
- *
- * @see org.eclipse.epf.richtext.IRichText#getSelected()
- */
- public RichTextSelection getSelected() {
- if(tabFolder.getSelection() == htmlTab) {
- String HTMLsource = getSourceEdit().getText();
- Point sel = sourceViewer.getSelectedRange();
- int selStartIndex = sel.x;
- int selEndIndex = sel.x + sel.y - 1;
- richText.getSelected().clear();
- richText.getSelected().setText(HTMLsource.substring(selStartIndex, selEndIndex + 1));
- }
- return richText.getSelected();
- }
-
- /**
- * Returns an application specific property value.
- *
- * @param key
- * the name of the property
- * @return the value of the property or <code>null</code> if it has not
- * been set
- */
- public Object getData(String key) {
- if(richText != null) {
- richText.getData(key);
- }
- return null;
- }
-
- /**
- * Sets an application specific property name and value.
- *
- * @param key
- * the name of the property
- * @param value
- * the new value for the property
- */
- public void setData(String key, Object value) {
- if(richText != null) {
- richText.setData(key, value);
- }
- }
-
- /**
- * Executes the given rich text command. The supported command strings are
- * defined in <code>RichTextCommand<code>.
- *
- * @param command
- * a rich text command string
- * @return a status code returned by the executed command
- */
- public int executeCommand(String command) {
- if(richText != null) {
- return richText.executeCommand(command);
- }
- return 0;
- }
-
- /**
- * Executes the given rich text command with a single parameter. The
- * supported command strings are defined in <code>RichTextCommand<code>.
- *
- * @param command
- * a rich text command string
- * @param param
- * a parameter for the command or <code>null</code>
- * @return a status code returned by the executed command
- */
- public int executeCommand(String command, String param) {
- if(richText != null) {
- return richText.executeCommand(command, param);
- }
- return 0;
- }
-
- /**
- * Executes the given rich text command with an array of parameters. The
- * supported command strings are defined in <code>RichTextCommand<code>.
- *
- * @param command
- * a rich text command string
- * @param params
- * an array of parameters for the command or <code>null</code>
- * @return a status code returned by the executed command
- */
- public int executeCommand(String command, String[] params) {
- if(richText != null) {
- return richText.executeCommand(command, params);
- }
- return 0;
- }
-
- /**
- * Disposes the operating system resources allocated by this editor.
- */
- public void disposeEditor() {
- if(contextMenu != null && !contextMenu.isDisposed()) {
- contextMenu.dispose();
- contextMenu = null;
- }
- if(sourceEditDropTarget != null) {
- sourceEditDropTarget.dispose();
- sourceEditDropTarget = null;
- }
- if(fActivationCodeTrigger != null) {
- fActivationCodeTrigger.uninstall();
- fActivationCodeTrigger = null;
- }
- removeModifyListeners();
- if(getSourceEdit() != null) {
- getSourceEdit().removeListener(SWT.Deactivate, sourceEditDeactivateListener);
- getSourceEdit().removeKeyListener(sourceEditKeyListener);
- sourceEditDeactivateListener = null;
- sourceEditKeyListener = null;
- }
- if(sourceViewer != null) {
- sourceViewer = null;
- }
- if(fActions != null) {
- fActions.clear();
- fActions = null;
- }
- if(fActivationCodes != null) {
- fActivationCodes.clear();
- fActivationCodes = null;
- }
- if(richText != null) {
- richText.dispose();
- richText = null;
- }
- }
-
- /**
- * Checks whether this control has been disposed.
- *
- * @return <code>true</code> if this control is disposed successfully
- */
- public boolean isEditorDisposed() {
- if(richText != null) {
- return richText.isDisposed();
- }
- return true;
- }
-
- /**
- * Returns the modify listeners attached to this editor.
- *
- * @return an iterator for retrieving the modify listeners
- */
- public Iterator<ModifyListener> getModifyListeners() {
- if(richText != null) {
- richText.getModifyListeners();
- }
- return null;
- }
-
- /**
- * Adds a listener to the collection of listeners who will be notified when
- * keys are pressed and released within this editor.
- *
- * @param listener
- * the listener which should be notified
- */
- public void addKeyListener(KeyListener listener) {
- if(richText != null) {
- richText.addKeyListener(listener);
- }
- }
-
- /**
- * Removes a listener from the collection of listeners who will be notified
- * when keys are pressed and released within this editor.
- *
- * @param listener
- * the listener which should no longer be notified
- */
- public void removeKeyListener(KeyListener listener) {
- if(richText != null) {
- richText.removeKeyListener(listener);
- }
- }
-
- /**
- * Adds a listener to the collection of listeners who will be notified when
- * the content of this editor is modified.
- *
- * @param listener
- * the listener which should be notified
- */
- public void addModifyListener(ModifyListener listener) {
- if(richText != null) {
- richText.addModifyListener(listener);
- }
- }
-
- /**
- * Removes a listener from the collection of listeners who will be notified
- * when the content of this editor is modified.
- *
- * @param listener
- * the listener which should no longer be notified
- */
- public void removeModifyListener(ModifyListener listener) {
- if(richText != null) {
- richText.removeModifyListener(listener);
- }
- }
-
- /**
- * Adds the listener to the collection of listeners who will be notifed when
- * this editor is disposed.
- *
- * @param listener
- * the listener which should be notified
- */
- public void addDisposeListener(DisposeListener listener) {
- if(richText != null) {
- richText.addDisposeListener(listener);
- }
- }
-
- /**
- * Removes a listener from the collection of listeners who will be notified
- * when this editor is disposed.
- *
- * @param listener
- * the listener which should no longer be notified
- */
- public void removeDisposeListener(DisposeListener listener) {
- if(richText != null) {
- richText.removeDisposeListener(listener);
- }
- }
-
- /**
- * Adds a listener to the collection of listeners who will be notified when
- * help events are generated for this editor.
- *
- * @param listener
- * the listener which should be notified
- */
- public void addHelpListener(HelpListener listener) {
- if(richText != null) {
- richText.addHelpListener(listener);
- }
- }
-
- /**
- * Removes a listener from the collection of listeners who will be notified
- * when help events are generated for this editor.
- *
- * @param listener
- * the listener which should no longer be notified
- */
- public void removeHelpListener(HelpListener listener) {
- if(richText != null) {
- richText.removeHelpListener(listener);
- }
- }
-
- /**
- * Adds the listener to the collection of listeners who will be notifed when
- * an event of the given type occurs within this editor.
- *
- * @param eventType
- * the type of event to listen for
- * @param listener
- * the listener which should be notified when the event occurs
- */
- public void addListener(int eventType, Listener listener) {
- if(richText != null) {
- richText.addListener(eventType, listener);
- }
- }
-
- /**
- * Removes the listener from the collection of listeners who will be notifed
- * when an event of the given type occurs within this editor.
- *
- * @param eventType
- * the type of event to listen for
- * @param listener
- * the listener which should no longer be notified when the event
- * occurs
- */
- public void removeListener(int eventType, Listener listener) {
- if(richText != null) {
- richText.removeListener(eventType, listener);
- }
- }
-
- /**
- * Returns the event listeners attached to this editor.
- *
- * @return an iterator for retrieving the event listeners attached to this
- * editor
- */
- public Iterator<RichTextListener> getListeners() {
- if(richText != null) {
- return richText.getListeners();
- }
- return null;
- }
-
- /**
- * Notifies the modify listeners that the rich text editor content has
- * changed.
- */
- public void notifyModifyListeners() {
- if(richText != null) {
- Event event = new Event();
- event.display = Display.getCurrent();
- event.widget = richText.getControl();
- for(Iterator<ModifyListener> i = getModifyListeners(); i != null && i.hasNext();) {
- ModifyListener listener = i.next();
- listener.modifyText(new ModifyEvent(event));
- }
- }
- }
-
- /**
- * Creates the underlying rich text control.
- *
- * @param parent
- * the parent composite
- * @param style
- * the style for the control
- * @param basePath
- * the path used for resolving links
- */
- protected IRichText createRichTextControl(Composite parent, int style, String basePath) {
- return new RichText(parent, style, basePath);
- }
-
- /**
- * Creates the editor tab folder.
- *
- * @param parent
- * the parent control
- * @param style
- * the style for the control
- * @return a new editor toolbar
- */
- protected CTabFolder createEditorTabFolder(Composite parent, int style) {
- CTabFolder folder = new CTabFolder(parent, SWT.FLAT | SWT.BOTTOM);
- folder.setLayout(new GridLayout(1, true));
- folder.setLayoutData(new GridData(GridData.FILL_BOTH));
- Composite richTextComposite = new Composite(folder, SWT.FLAT);
- GridLayout richTextCompositeLayout = new GridLayout(1, false);
- richTextCompositeLayout.marginHeight = 0;
- richTextCompositeLayout.marginWidth = 0;
- richTextComposite.setLayout(richTextCompositeLayout);
- richTextComposite.setLayoutData(new GridData(GridData.FILL_BOTH));
- richText = createRichTextControl(richTextComposite, style, basePath);
- richText.setData(PROPERTY_NAME, this);
- richText.getFindReplaceAction().setRichText(this.getRichTextControl());
- richTextTab = new CTabItem(folder, SWT.FLAT);
- richTextTab.setText(RichTextResources.richTextTab_text);
- richTextTab.setToolTipText(RichTextResources.richTextTab_toolTipText);
- richTextTab.setControl(richTextComposite);
- Composite htmlComposite = new Composite(folder, SWT.FLAT);
- htmlComposite.setLayout(new FillLayout());
- sourceViewer = new SourceViewer(htmlComposite, null, null, true, SWT.MULTI | SWT.V_SCROLL | SWT.WRAP);
- final IAnnotationAccess access = new DefaultMarkerAnnotationAccess();
- SourceViewerConfiguration config = new TextSourceViewerConfiguration(EditorsUI.getPreferenceStore());
- sourceViewer.configure(config);
- Document document = new Document("dfg");
- sourceViewer.setDocument(document, new AnnotationModel());
- @SuppressWarnings("restriction")
- SourceViewerDecorationSupport decorationSupport = new SourceViewerDecorationSupport(sourceViewer, null, access, EditorsPlugin.getDefault().getSharedTextColors());
- configureSourceViewerDecorationSupport(decorationSupport);
- sourceViewer.setUndoManager(undoManager);
- setDocument(null);
- addModifyListeners();
- getSourceEdit().addListener(SWT.Deactivate, sourceEditDeactivateListener);
- getSourceEdit().addKeyListener(sourceEditKeyListener);
- contextMenu = new Menu(parent.getShell(), SWT.POP_UP);
- getSourceEdit().setMenu(contextMenu);
- addDropSupportToStyledText();
- fillContextMenu(contextMenu);
- htmlTab = new CTabItem(folder, SWT.NONE);
- htmlTab.setText(HTML_TAB_NAME);
- htmlTab.setToolTipText(RichTextResources.htmlTab_toolTipText);
- htmlTab.setControl(htmlComposite);
- folder.addSelectionListener(new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent event) {
- CTabItem item = (CTabItem)event.item;
- if(item.getText().equals(HTML_TAB_NAME)) {
- removeModifyListeners();
- currentDoc.set(getText());
- sourceModified = false;
- addModifyListeners();
- if(toolBar != null) {
- toolBar.updateToolBar(editable && !isHTMLTabSelected());
- }
- } else {
- updateRichText(getSourceEdit().getText());
- setModified(true);
- if(toolBar != null) {
- toolBar.updateToolBar(editable && !isHTMLTabSelected());
- }
- }
- }
- });
- fillToolBar(toolBar);
- initializeActivationCodeTrigger();
- // createActions();
- //
- folder.setSelection(0);
- return folder;
- }
-
- /**
- * get the actions in the toolbar
- *
- * @return set of commands in the toolbar
- */
- public ToolbarCommand[] getCommand() {
- return commandSet;
- }
-
- /**
- * For HTML source editor spell checking solution
- *
- * @param support
- */
- private void configureSourceViewerDecorationSupport(SourceViewerDecorationSupport support) {
- for(Object o : new MarkerAnnotationPreferences().getAnnotationPreferences())
- support.setAnnotationPreference((AnnotationPreference)o);
- support.setCursorLinePainterPreferenceKeys(AbstractDecoratedTextEditorPreferenceConstants.EDITOR_CURRENT_LINE, AbstractDecoratedTextEditorPreferenceConstants.EDITOR_CURRENT_LINE_COLOR);
- support.install(EditorsUI.getPreferenceStore());
- }
-
- /**
- * set the document for the rich text
- *
- * @param doc
- */
- private void setDocument(IDocument doc) {
- if(doc == null) {
- doc = new Document();
- }
- // clean up old doc
- undoManager.disconnect();
- IDocument oldDoc = sourceViewer.getDocument();
- if(oldDoc != null) {
- oldDoc.removeDocumentListener(sourceEditDocumentListener);
- }
- // hook up new doc
- currentDoc = doc;
- sourceViewer.setDocument(currentDoc, new AnnotationModel());
- currentDoc.addDocumentListener(sourceEditDocumentListener);
- undoManager.connect(sourceViewer);
- if(undoAction != null) {
- undoAction.setContext(getUndoContext());
- }
- if(redoAction != null) {
- redoAction.setContext(getUndoContext());
- }
- }
-
- /**
- * Disposes the operating system resources allocated by this editor.
- */
- public void dispose() {
- if(contextMenu != null && !contextMenu.isDisposed()) {
- contextMenu.dispose();
- contextMenu = null;
- }
- if(sourceEditDropTarget != null) {
- sourceEditDropTarget.dispose();
- sourceEditDropTarget = null;
- }
- if(fActivationCodeTrigger != null) {
- fActivationCodeTrigger.uninstall();
- fActivationCodeTrigger = null;
- }
- removeModifyListeners();
- if(getSourceEdit() != null) {
- getSourceEdit().removeListener(SWT.Deactivate, sourceEditDeactivateListener);
- getSourceEdit().removeKeyListener(sourceEditKeyListener);
- sourceEditDeactivateListener = null;
- sourceEditKeyListener = null;
- }
- if(sourceViewer != null) {
- sourceViewer = null;
- }
- if(fActions != null) {
- fActions.clear();
- fActions = null;
- }
- if(fActivationCodes != null) {
- fActivationCodes.clear();
- fActivationCodes = null;
- }
- if(richText != null) {
- richText.dispose();
- richText = null;
- }
- }
-
- /**
- * Returns the HTML source edit control.
- *
- * @return a <code>StyleText</code> object.
- */
- public StyledText getSourceEdit() {
- if(sourceViewer != null) {
- return sourceViewer.getTextWidget();
- }
- return null;
- }
-
- /**
- * Inserts text at the selection (overwriting the selection).
- */
- public void addHTML(String text) {
- if(text == null || text.length() == 0)
- return;
- if(tabFolder.getSelection() == richTextTab) {
- executeCommand(RichTextCommand.ADD_HTML, text);
- } else if(tabFolder.getSelection() == htmlTab) {
- String oldHTML = getSourceEdit().getText();
- Point sel = sourceViewer.getSelectedRange();
- int selStartIndex = sel.x;
- int selEndIndex = sel.x + sel.y - 1;
- String newHTML = oldHTML.substring(0, selStartIndex) + text + oldHTML.substring(selEndIndex + 1);
- removeModifyListeners();
- currentDoc.set(newHTML);
- addModifyListeners();
- updateRichText(newHTML);
- }
- }
-
- /**
- * Inserts an image at the selection (overwriting the selection).
- */
- public void addImage(String imageURL, String height, String width, String altTag) {
- if(tabFolder.getSelection() == richTextTab) {
- executeCommand(RichTextCommand.ADD_IMAGE, new String[]{ imageURL, height, width, altTag });
- } else if(tabFolder.getSelection() == htmlTab) {
- StringBuffer imageLink = new StringBuffer();
- // order of these attributes is the same as JTidy'ed HTML
- imageLink.append("<img"); //$NON-NLS-1$
- if(height.length() > 0) {
- imageLink.append(" height=\"" + height + "\""); //$NON-NLS-1$ //$NON-NLS-2$
- }
- if(altTag.length() > 0) {
- imageLink.append(" alt=\"" + altTag + "\""); //$NON-NLS-1$ //$NON-NLS-2$
- }
- imageLink.append(" src=\"" + imageURL + "\""); //$NON-NLS-1$ //$NON-NLS-2$
- if(width.length() > 0) {
- imageLink.append(" width=\"" + width + "\""); //$NON-NLS-1$ //$NON-NLS-2$
- }
- imageLink.append(" />"); //$NON-NLS-1$
- String oldHTML = getSourceEdit().getText();
- Point sel = sourceViewer.getSelectedRange();
- int selStartIndex = sel.x;
- int selEndIndex = sel.x + sel.y - 1;
- String newHTML = oldHTML.substring(0, selStartIndex) + imageLink.toString() + oldHTML.substring(selEndIndex + 1);
- removeModifyListeners();
- currentDoc.set(newHTML);
- addModifyListeners();
- updateRichText(newHTML);
- }
- }
-
- /**
- * Checks whether the HTML tab is selected.
- *
- * @return <code>true</code> if the HTML tab is selected.
- */
- public boolean isHTMLTabSelected() {
- return (tabFolder.getSelection() == htmlTab);
- }
-
- /**
- * Fills the context menu with menu items.
- *
- * @param contextMenu
- * a context menu containing rich text actions
- */
- protected void fillContextMenu(Menu contextMenu) {
- final MenuItem cutItem = new MenuItem(contextMenu, SWT.PUSH);
- cutItem.setText(RichTextResources.cutAction_text);
- cutItem.addSelectionListener(new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent event) {
- CutAction action = new CutAction(RichTextEditor.this.getRichTextControl());
- action.execute(RichTextEditor.this.getRichTextControl());
- }
- });
- final MenuItem copyItem = new MenuItem(contextMenu, SWT.PUSH);
- copyItem.setText(RichTextResources.copyAction_text);
- copyItem.addSelectionListener(new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent event) {
- CopyAction action = new CopyAction(RichTextEditor.this.getRichTextControl());
- action.execute(RichTextEditor.this.getRichTextControl());
- }
- });
- final MenuItem pasteItem = new MenuItem(contextMenu, SWT.PUSH);
- pasteItem.setText(RichTextResources.pasteAction_text);
- pasteItem.addSelectionListener(new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent event) {
- PasteAction action = new PasteAction(RichTextEditor.this.getRichTextControl());
- action.execute(RichTextEditor.this.getRichTextControl());
- }
- });
- final MenuItem pastePlainTextItem = new MenuItem(contextMenu, SWT.PUSH);
- pastePlainTextItem.setText(RichTextResources.pasteKeepTextOnlyAction_text);
- pastePlainTextItem.addSelectionListener(new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent event) {
- PastePlainTextAction action = new PastePlainTextAction(RichTextEditor.this.getRichTextControl());
- action.execute(RichTextEditor.this.getRichTextControl());
- }
- });
- final MenuItem pasteTextOnlyItem = new MenuItem(contextMenu, SWT.PUSH);
- pasteTextOnlyItem.setText(RichTextResources.pasteMergeFormattingAction_toolTipText);
- pasteTextOnlyItem.setImage(RichTextImages.IMG_PASTE_MATCH_TEXT);
- pasteTextOnlyItem.addSelectionListener(new SelectionAdapter() {
-
- public void widgetSelected(SelectionEvent event) {
- PasteTextOnlyAction action = new PasteTextOnlyAction(RichTextEditor.this.getRichTextControl());
- action.execute(RichTextEditor.this.getRichTextControl());
- }
- });
- contextMenu.addMenuListener(new MenuListener() {
-
- public void menuHidden(MenuEvent e) {
- }
-
- public void menuShown(MenuEvent e) {
- String selectedText = getSelected().getText();
- boolean selection = selectedText.length() > 0;
- cutItem.setEnabled(editable && selection);
- copyItem.setEnabled(selection);
- pasteItem.setEnabled(editable);
- pastePlainTextItem.setEnabled(editable);
- pasteTextOnlyItem.setEnabled(editable);
- }
- });
- }
-
- /**
- * Updates the content of the rich text control without updating the HTML
- * source editor.
- * <p>
- * This method should be called by the HTML source editor to sync up its content with the rich text control.
- *
- * @param text
- * the rich text content in XHTML format
- */
- private void updateRichText(String text) {
- if(richText != null) {
- richText.setText(text);
- richText.checkModify();
- }
- sourceModified = false;
- if(tabFolder != null) {
- if(toolBar != null) {
- toolBar.updateToolBar(editable && !isHTMLTabSelected());
- }
- }
- }
-
- /**
- * add the drop support
- */
- private void addDropSupportToStyledText() {
- int operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_DEFAULT;
- sourceEditDropTarget = new DropTarget(getSourceEdit(), operations);
- // Receive data in Text or HTML format
- final TextTransfer textTransfer = TextTransfer.getInstance();
- final HTMLTransfer htmlTransfer = HTMLTransfer.getInstance();
- Transfer[] types = new Transfer[]{ htmlTransfer, textTransfer };
- sourceEditDropTarget.setTransfer(types);
- sourceEditDropTarget.addDropListener(new DropTargetListener() {
-
- public void dragEnter(DropTargetEvent event) {
- if(event.detail == DND.DROP_DEFAULT) {
- if((event.operations & DND.DROP_COPY) != 0) {
- event.detail = DND.DROP_COPY;
- } else {
- event.detail = DND.DROP_NONE;
- }
- }
- if(!getEditable()) {
- event.detail = DND.DROP_NONE;
- }
- // will accept text but prefer to have HTML dropped
- for(int i = 0; i < event.dataTypes.length; i++) {
- if(htmlTransfer.isSupportedType(event.dataTypes[i])) {
- event.currentDataType = event.dataTypes[i];
- break;
- }
- }
- }
-
- public void dragOver(DropTargetEvent event) {
- event.feedback = DND.FEEDBACK_SELECT | DND.FEEDBACK_INSERT_AFTER | DND.FEEDBACK_SCROLL;
- }
-
- public void dragOperationChanged(DropTargetEvent event) {
- if(event.detail == DND.DROP_DEFAULT) {
- if((event.operations & DND.DROP_COPY) != 0) {
- event.detail = DND.DROP_COPY;
- } else {
- event.detail = DND.DROP_NONE;
- }
- }
- }
-
- public void dragLeave(DropTargetEvent event) {
- }
-
- public void dropAccept(DropTargetEvent event) {
- }
-
- public void drop(DropTargetEvent event) {
- if(textTransfer.isSupportedType(event.currentDataType) || htmlTransfer.isSupportedType(event.currentDataType)) {
- String text = (String)event.data;
- addHTML(text);
- }
- }
- });
- }
-
- /**
- * Displays the given debug message to the console.
- */
- private void printDebugMessage(String method, String msg, String text) {
- StringBuffer strBuf = new StringBuffer();
- strBuf.append("RichTextEditor[").append(richText.getControl().handle).append(']') //$NON-NLS-1$
- .append('.').append(method);
- if(msg != null && msg.length() > 0) {
- strBuf.append(": ").append(msg); //$NON-NLS-1$
- }
- if(text != null && text.length() > 0) {
- strBuf.append('\n').append(text);
- }
- System.out.println(strBuf);
- }
-
- /**
- * Displays the given debug message to the console.
- */
- private void printDebugMessage(String method, String msg) {
- printDebugMessage(method, msg, null);
- }
-
- public FindReplaceAction getFindReplaceAction() {
- return richText.getFindReplaceAction();
- }
-
- public void setFindReplaceAction(FindReplaceAction findReplaceAction) {
- if(richText != null) {
- richText.setFindReplaceAction(findReplaceAction);
- richText.getFindReplaceAction().setRichText(richText);
- }
- }
-
- /**
- * @see org.eclipse.epf.richtext.IRichText#setInitialText(java.lang.String)
- *
- * @param text
- */
- public void setInitialText(String text) {
- if(richText != null) {
- richText.setInitialText(text);
- }
- if(getSourceEdit() != null) {
- removeModifyListeners();
- setDocument(new Document(text));
- addModifyListeners();
- }
- }
-
- /**
- * from org.eclipse.ui.texteditor.AbstractTextEditor#getUndoContext()
- * Returns this editor's viewer's undo manager undo context.
- *
- * @return the undo context or <code>null</code> if not available
- * @since 3.1
- */
- private IUndoContext getUndoContext() {
- if(sourceViewer instanceof ITextViewerExtension6) {
- IUndoManager undoManager = ((ITextViewerExtension6)sourceViewer).getUndoManager();
- if(undoManager instanceof IUndoManagerExtension)
- return ((IUndoManagerExtension)undoManager).getUndoContext();
- }
- return null;
- }
-
- /**
- * create the actions
- */
- protected void createActions() {
- createUndoRedoActions();
- Action selectAllAction = new Action() {
-
- @Override
- public void run() {
- getSourceEdit().selectAll();
- }
- };
- selectAllAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.SELECT_ALL);
- registerAction(ActionFactory.SELECT_ALL.getId(), selectAllAction);
- }
-
- /**
- * from org.eclipse.ui.texteditor.AbstractTextEditor#createUndoRedoActions()
- */
- protected void createUndoRedoActions() {
- IUndoContext undoContext = getUndoContext();
- if(undoContext != null) {
- undoAction = new UndoActionHandler(getEditorSite(), undoContext);
- PlatformUI.getWorkbench().getHelpSystem().setHelp(undoAction, IAbstractTextEditorHelpContextIds.UNDO_ACTION);
- undoAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.UNDO);
- registerAction(ITextEditorActionConstants.UNDO, undoAction);
- redoAction = new RedoActionHandler(getEditorSite(), undoContext);
- PlatformUI.getWorkbench().getHelpSystem().setHelp(redoAction, IAbstractTextEditorHelpContextIds.REDO_ACTION);
- redoAction.setActionDefinitionId(IWorkbenchActionDefinitionIds.REDO);
- registerAction(ITextEditorActionConstants.REDO, redoAction);
- }
- }
-
- private IEditorSite getEditorSite() {
- return editorSite;
- }
-
- /**
- * Registers the given undo/redo action under the given ID and
- * ensures that previously installed actions get disposed. It
- * also takes care of re-registering the new action with the
- * global action handler.
- *
- * @param actionId
- * the action id under which to register the action
- * @param action
- * the action to register
- * @since 3.1
- */
- private void registerAction(String actionId, IAction action) {
- IAction oldAction = getAction(actionId);
- if(oldAction instanceof OperationHistoryActionHandler)
- ((OperationHistoryActionHandler)oldAction).dispose();
- setAction(actionId, action);
- IActionBars actionBars = getEditorSite().getActionBars();
- if(actionBars != null)
- actionBars.setGlobalActionHandler(actionId, action);
- }
-
- /**
- * @see ITextEditor#getAction(String)
- */
- public IAction getAction(String actionID) {
- assert actionID != null;
- IAction action = (IAction)fActions.get(actionID);
- // if (action == null) {
- // action= findContributedAction(actionID);
- // if (action != null)
- // setAction(actionID, action);
- //
- return action;
- }
-
- /**
- * @see ITextEditor#setAction(String, IAction)
- */
- public void setAction(String actionID, IAction action) {
- assert actionID != null;
- if(action == null) {
- action = (IAction)fActions.remove(actionID);
- if(action != null)
- fActivationCodeTrigger.unregisterActionFromKeyActivation(action);
- } else {
- fActions.put(actionID, action);
- fActivationCodeTrigger.registerActionForKeyActivation(action);
- }
- }
-
- /**
- * Initializes the activation code trigger.
- *
- * @since 2.1
- */
- private void initializeActivationCodeTrigger() {
- fActivationCodeTrigger.install();
- fActivationCodeTrigger.setScopes(fKeyBindingScopes);
- }
-
- /**
- * add the actions into the toolbar
- */
- public void setCommands(ToolbarCommand[] cmd) {
- commandSet = cmd;
- toolBar.getToolbarMgr().removeAll();
- for(ToolbarCommand command : cmd) {
- switch(command) {
- case Copy:
- toolBar.addAction(new CopyAction(richText));
- break;
- case Paste:
- toolBar.addAction(new PasteAction(richText));
- break;
- case Cut:
- toolBar.addAction(new CutAction(richText));
- break;
- case AddImage:
- toolBar.addAction(new AddImageAction(richText));
- break;
- case BackGroundColor:
- toolBar.addAction(new BackgroundColorAction(richText));
- break;
- case ForeGroundColor:
- toolBar.addAction(new ForegroundColorAction(richText));
- break;
- case FontStyle:
- toolBar.addAction(new FontStyleAction(richText));
- break;
- case FontName:
- toolBar.addAction(new FontNameAction(richText));
- break;
- case FontSize:
- toolBar.addAction(new FontSizeAction(richText));
- break;
- case RemoveFormat:
- toolBar.addAction(new RemoveFormatAction(richText));
- break;
- case Bold:
- toolBar.addAction(new BoldAction(richText));
- break;
- case Italic:
- toolBar.addAction(new ItalicAction(richText));
- break;
- case Underline:
- toolBar.addAction(new UnderlineAction(richText));
- break;
- case StrikeThrough:
- toolBar.addAction(new StrikeThroughAction(richText));
- break;
- case Subscript:
- toolBar.addAction(new SubscriptAction(richText));
- break;
- case Superscript:
- toolBar.addAction(new SuperscriptAction(richText));
- break;
- case BlogTag:
- toolBar.addAction(new BlockTagAction(richText));
- break;
- case JustifyLeft:
- toolBar.addAction(new JustifyLeftAction(richText));
- break;
- case JustifyCenter:
- toolBar.addAction(new JustifyCenterAction(richText));
- break;
- case JustifyRight:
- toolBar.addAction(new JustifyRightAction(richText));
- break;
- case JustifyFull:
- toolBar.addAction(new JustifyFullAction(richText));
- break;
- case AddOrderedList:
- toolBar.addAction(new AddOrderedListAction(richText));
- break;
- case AddUnorderedList:
- toolBar.addAction(new AddUnorderedListAction(richText));
- break;
- case Outdent:
- toolBar.addAction(new OutdentAction(richText));
- break;
- case Indent:
- toolBar.addAction(new IndentAction(richText));
- break;
- case AddLine:
- toolBar.addAction(new AddLineAction(richText));
- break;
- case AddLink:
- toolBar.addAction(new AddLinkAction(richText));
- break;
- case AddTable:
- toolBar.addAction(new AddTableAction(richText));
- break;
- case TidyActionGroup:
- toolBar.addAction(new TidyActionGroup(richText));
- break;
- case SpellChecking:
- toolBar.addAction(new SpellCheckAction(richText));
- break;
- case SetupTest:
- SetupTestAction setupTest = new SetupTestAction(richText);
- setupTest.setParameter("i");
- toolBar.addAction(setupTest);
- break;
- }
- }
- if(richText.getFindReplaceAction() != null)
- toolBar.addAction(richText.getFindReplaceAction());
- }
-
- /**
- * Internal key verify listener for triggering action activation codes.
- */
- class ActivationCodeTrigger implements VerifyKeyListener {
-
- /** Indicates whether this trigger has been installed. */
- private boolean fIsInstalled = false;
-
- /**
- * The key binding service to use.
- *
- * @since 2.0
- */
- private IKeyBindingService fKeyBindingService;
-
- /**
- * @see VerifyKeyListener#verifyKey(org.eclipse.swt.events.VerifyEvent)
- */
- public void verifyKey(VerifyEvent event) {
- ActionActivationCode code = null;
- int size = fActivationCodes.size();
- for(int i = 0; i < size; i++) {
- code = (ActionActivationCode)fActivationCodes.get(i);
- if(code.matches(event)) {
- IAction action = getAction(code.fActionId);
- if(action != null) {
- if(action instanceof IUpdate)
- ((IUpdate)action).update();
- if(!action.isEnabled() && action instanceof IReadOnlyDependent) {
- IReadOnlyDependent dependent = (IReadOnlyDependent)action;
- boolean writable = dependent.isEnabled(true);
- if(writable) {
- event.doit = false;
- return;
- }
- } else if(action.isEnabled()) {
- event.doit = false;
- action.run();
- return;
- }
- }
- }
- }
- }
-
- /**
- * Installs this trigger on the editor's text widget.
- *
- * @since 2.0
- */
- public void install() {
- if(!fIsInstalled) {
- if(sourceViewer instanceof ITextViewerExtension) {
- ITextViewerExtension e = (ITextViewerExtension)sourceViewer;
- e.prependVerifyKeyListener(this);
- } else {
- StyledText text = sourceViewer.getTextWidget();
- text.addVerifyKeyListener(this);
- }
- // fKeyBindingService= getEditorSite().getKeyBindingService();
- fIsInstalled = true;
- }
- }
-
- /**
- * Uninstalls this trigger from the editor's text widget.
- *
- * @since 2.0
- */
- public void uninstall() {
- if(fIsInstalled) {
- if(sourceViewer instanceof ITextViewerExtension) {
- ITextViewerExtension e = (ITextViewerExtension)sourceViewer;
- e.removeVerifyKeyListener(this);
- } else if(sourceViewer != null) {
- StyledText text = sourceViewer.getTextWidget();
- if(text != null && !text.isDisposed())
- text.removeVerifyKeyListener(fActivationCodeTrigger);
- }
- fIsInstalled = false;
- fKeyBindingService = null;
- }
- }
-
- /**
- * Registers the given action for key activation.
- *
- * @param action
- * the action to be registered
- * @since 2.0
- */
- public void registerActionForKeyActivation(IAction action) {
- if(action.getActionDefinitionId() != null)
- fKeyBindingService.registerAction(action);
- }
-
- /**
- * The given action is no longer available for key activation
- *
- * @param action
- * the action to be unregistered
- * @since 2.0
- */
- public void unregisterActionFromKeyActivation(IAction action) {
- if(action.getActionDefinitionId() != null)
- fKeyBindingService.unregisterAction(action);
- }
-
- /**
- * Sets the key binding scopes for this editor.
- *
- * @param keyBindingScopes
- * the key binding scopes
- * @since 2.1
- */
- public void setScopes(String[] keyBindingScopes) {
- if(keyBindingScopes != null && keyBindingScopes.length > 0)
- fKeyBindingService.setScopes(keyBindingScopes);
- }
- }
-
- /**
- * Representation of action activation codes.
- */
- static class ActionActivationCode {
-
- /** The action id. */
- public String fActionId;
-
- /** The character. */
- public char fCharacter;
-
- /** The key code. */
- public int fKeyCode = -1;
-
- /** The state mask. */
- public int fStateMask = SWT.DEFAULT;
-
- /**
- * Creates a new action activation code for the given action id.
- *
- * @param actionId
- * the action id
- */
- public ActionActivationCode(String actionId) {
- fActionId = actionId;
- }
-
- /**
- * Returns <code>true</code> if this activation code matches the given verify event.
- *
- * @param event
- * the event to test for matching
- * @return whether this activation code matches <code>event</code>
- */
- public boolean matches(VerifyEvent event) {
- return (event.character == fCharacter && (fKeyCode == -1 || event.keyCode == fKeyCode) && (fStateMask == SWT.DEFAULT || event.stateMask == fStateMask));
- }
- }
-
- /**
- * Fills the tool bar with action items.
- *
- * @param toolBar
- * a tool bar contain rich text actions
- */
- public void fillToolBar(IRichTextToolBar toolBar) {
- toolBar.addAction(new BackgroundColorAction(richText));
- toolBar.addAction(new ForegroundColorAction(richText));
- toolBar.addAction(new FontStyleAction(richText));
- toolBar.addAction(new FontNameAction(richText));
- toolBar.addAction(new FontSizeAction(richText));
- toolBar.addAction(new CutAction(richText));
- toolBar.addAction(new CopyAction(richText));
- toolBar.addAction(new PasteAction(richText));
- toolBar.addAction(new RemoveFormatAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new BoldAction(richText));
- toolBar.addAction(new ItalicAction(richText));
- toolBar.addAction(new UnderlineAction(richText));
- toolBar.addAction(new StrikeThroughAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new SpellCheckAction(richText));
- toolBar.addAction(new SubscriptAction(richText));
- toolBar.addAction(new SuperscriptAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new TidyActionGroup(richText));
- toolBar.addSeparator();
- toolBar.addAction(new JustifyLeftAction(richText));
- toolBar.addAction(new JustifyCenterAction(richText));
- toolBar.addAction(new JustifyRightAction(richText));
- toolBar.addAction(new JustifyFullAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new AddOrderedListAction(richText));
- toolBar.addAction(new AddUnorderedListAction(richText));
- toolBar.addSeparator();
- toolBar.addAction(new OutdentAction(richText));
- toolBar.addAction(new IndentAction(richText));
- toolBar.addSeparator();
- if(richText.getFindReplaceAction() != null)
- toolBar.addAction(richText.getFindReplaceAction());
- toolBar.addSeparator();
- toolBar.addAction(new AddLineAction(richText));
- toolBar.addAction(new AddLinkAction(richText));
- toolBar.addAction(new AddImageAction(richText));
- toolBar.addAction(new AddTableAction(richText));
- }
-
- /**
- * @return the toolbar
- */
- public IRichTextToolBar getToolBar() {
- return toolBar;
- }
-
- /**
- * set the toolbar
- *
- * @param toolBar
- */
- public void setToolBar(IRichTextToolBar toolBar) {
- this.toolBar = toolBar;
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextImages.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextImages.java
deleted file mode 100644
index 0e8df75379f..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextImages.java
+++ /dev/null
@@ -1,350 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension;
-
-import org.eclipse.jface.resource.ImageDescriptor;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichPlugin;
-import org.eclipse.swt.graphics.Image;
-
-
-/**
- * @author Nguyen
- *
- */
-public class RichTextImages {
-
- private static final String ETOOL16 = "full/etool16/"; //$NON-NLS-1$
-
- private static final String DTOOL16 = "full/dtool16/"; //$NON-NLS-1$
-
- private static final RichPlugin richTextPlugin = RichPlugin.getDefault();
-
- public static final String IMG_PATH_ADD_IMAGE = ETOOL16 + "AddImage.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_ADD_LINE = ETOOL16 + "AddLine.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_ADD_LINK = ETOOL16 + "AddLink.gif"; //$NON-NLS-1$
-
- private static String IMG_PATH_SPELLCHECK = ETOOL16 + "SpellCheck.gif";
-
- private static String DISABLED_IMG_PATH_SPELLCHECK = DTOOL16 + "SpellCheck.gif";
-
- public static final String IMG_PATH_ADD_ORDERED_LIST = ETOOL16 + "AddOrderedList.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_ADD_TABLE = ETOOL16 + "AddTable.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_ADD_UNORDERED_LIST = ETOOL16 + "AddUnorderedList.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_BOLD = ETOOL16 + "Bold.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_CLEAR_CONTENT = ETOOL16 + "ClearContent.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_COPY = ETOOL16 + "Copy.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_CUT = ETOOL16 + "Cut.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_FIND_REPLACE = ETOOL16 + "FindReplace.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_INDENT = ETOOL16 + "Indent.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_ITALIC = ETOOL16 + "Italic.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_JUSTIFY_CENTER = ETOOL16 + "JustifyCenter.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_CLEAR_FORMATTING = ETOOL16 + "ClearContent.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_JUSTIFY_FULL = ETOOL16 + "JustifyFull.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_JUSTIFY_LEFT = ETOOL16 + "JustifyLeft.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_JUSTIFY_RIGHT = ETOOL16 + "JustifyRight.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_OUTDENT = ETOOL16 + "Outdent.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_PASTE = ETOOL16 + "Paste.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_PASTE_PLAIN_TEXT = ETOOL16 + "PastePlainText.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_PASTE_MATCH_TEXT = ETOOL16 + "PasteMatchText.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_PASTE_TEXT_ONLY = ETOOL16 + "PasteMatchText.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_STRIKE_THROUGH = ETOOL16 + "StrikeThrough.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_SUBSCRIPT = ETOOL16 + "Subscript.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_SUPERSCRIPT = ETOOL16 + "Superscript.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_UNDERLINE = ETOOL16 + "Underline.gif"; //$NON-NLS-1$
-
- public static final String IMG_PATH_TIDY = ETOOL16 + "TidyHTML.gif"; //$NON-NLS-1$
-
- public static final Image IMG_ADD_IMAGE = richTextPlugin.getSharedImage(IMG_PATH_ADD_IMAGE);
-
- public static final Image IMG_ADD_LINE = richTextPlugin.getSharedImage(IMG_PATH_ADD_LINE);
-
- public static final Image IMG_ADD_LINK = richTextPlugin.getSharedImage(IMG_PATH_ADD_LINK);
-
- public static final Image IMG_ADD_ORDERED_LIST = richTextPlugin.getSharedImage(IMG_PATH_ADD_ORDERED_LIST);
-
- public static final Image IMG_ADD_TABLE = richTextPlugin.getSharedImage(IMG_PATH_ADD_TABLE);
-
- public static final Image IMG_ADD_UNORDERED_LIST = richTextPlugin.getSharedImage(IMG_PATH_ADD_UNORDERED_LIST);
-
- public static final Image IMG_BOLD = richTextPlugin.getSharedImage(IMG_PATH_BOLD);
-
- public static final Image IMG_CLEAR_CONTENT = richTextPlugin.getSharedImage(IMG_PATH_CLEAR_CONTENT);
-
- public static final Image IMG_COPY = richTextPlugin.getSharedImage(IMG_PATH_COPY);
-
- public static final Image IMG_CUT = richTextPlugin.getSharedImage(IMG_PATH_CUT);
-
- public static final Image IMG_FIND_REPLACE = richTextPlugin.getSharedImage(IMG_PATH_FIND_REPLACE);
-
- public static final Image IMG_INDENT = richTextPlugin.getSharedImage(IMG_PATH_INDENT);
-
- public static final Image IMG_ITALIC = richTextPlugin.getSharedImage(IMG_PATH_ITALIC);
-
- public static final Image IMG_JUSTIFY_CENTER = richTextPlugin.getSharedImage(IMG_PATH_JUSTIFY_CENTER);
-
- public static final Image IMG_JUSTIFY_FULL = richTextPlugin.getSharedImage(IMG_PATH_JUSTIFY_FULL);
-
- public static final Image IMG_JUSTIFY_LEFT = richTextPlugin.getSharedImage(IMG_PATH_JUSTIFY_LEFT);
-
- public static final Image IMG_JUSTIFY_RIGHT = richTextPlugin.getSharedImage(IMG_PATH_JUSTIFY_RIGHT);
-
- public static final Image IMG_OUTDENT = richTextPlugin.getSharedImage(IMG_PATH_OUTDENT);
-
- public static final Image IMG_PASTE = richTextPlugin.getSharedImage(IMG_PATH_PASTE);
-
- public static final Image IMG_PASTE_PLAIN_TEXT = richTextPlugin.getSharedImage(IMG_PATH_PASTE_PLAIN_TEXT);
-
- public static final Image IMG_PASTE_TEXT_ONLY = richTextPlugin.getSharedImage(IMG_PATH_PASTE_PLAIN_TEXT);
-
- public static final Image IMG_PASTE_MATCH_TEXT = richTextPlugin.getSharedImage(IMG_PATH_PASTE_PLAIN_TEXT);
-
-
- public static final Image IMG_STRIKE_THROUGH = richTextPlugin.getSharedImage(IMG_PATH_STRIKE_THROUGH);
-
- public static final Image IMG_SUBSCRIPT = richTextPlugin.getSharedImage(IMG_PATH_SUBSCRIPT);
-
- public static final Image IMG_SUPERSCRIPT = richTextPlugin.getSharedImage(IMG_PATH_SUPERSCRIPT);
-
- public static final Image IMG_UNDERLINE = richTextPlugin.getSharedImage(IMG_PATH_UNDERLINE);
-
- public static final Image IMG_TIDY = richTextPlugin.getSharedImage(IMG_PATH_TIDY);
-
- public static final ImageDescriptor IMG_DESC_ADD_IMAGE = richTextPlugin.getImageDescriptor(IMG_PATH_ADD_IMAGE);
-
- public static final ImageDescriptor IMG_DESC_ADD_LINE = richTextPlugin.getImageDescriptor(IMG_PATH_ADD_LINE);
-
- public static final ImageDescriptor IMG_DESC_ADD_LINK = richTextPlugin.getImageDescriptor(IMG_PATH_ADD_LINK);
-
- public static final ImageDescriptor IMG_DESC_ADD_ORDERED_LIST = richTextPlugin.getImageDescriptor(IMG_PATH_ADD_ORDERED_LIST);
-
- public static final ImageDescriptor IMG_DESC_ADD_TABLE = richTextPlugin.getImageDescriptor(IMG_PATH_ADD_TABLE);
-
- public static final ImageDescriptor IMG_DESC_ADD_UNORDERED_LIST = richTextPlugin.getImageDescriptor(IMG_PATH_ADD_UNORDERED_LIST);
-
- public static final ImageDescriptor IMG_DESC_BOLD = richTextPlugin.getImageDescriptor(IMG_PATH_BOLD);
-
- public static final ImageDescriptor IMG_DESC_CLEAR_CONTENT = richTextPlugin.getImageDescriptor(IMG_PATH_CLEAR_CONTENT);
-
- public static final ImageDescriptor IMG_DESC_COPY = richTextPlugin.getImageDescriptor(IMG_PATH_COPY);
-
- public static final ImageDescriptor IMG_DESC_CUT = richTextPlugin.getImageDescriptor(IMG_PATH_CUT);
-
- public static final ImageDescriptor IMG_DESC_FIND_REPLACE = richTextPlugin.getImageDescriptor(IMG_PATH_FIND_REPLACE);
-
- public static final ImageDescriptor IMG_DESC_INDENT = richTextPlugin.getImageDescriptor(IMG_PATH_INDENT);
-
- public static final ImageDescriptor IMG_DESC_ITALIC = richTextPlugin.getImageDescriptor(IMG_PATH_ITALIC);
-
- public static final ImageDescriptor IMG_DESC_CLEAR_FORMATTING = richTextPlugin.getImageDescriptor(IMG_PATH_CLEAR_FORMATTING);
-
- public static final ImageDescriptor IMG_DESC_JUSTIFY_CENTER = richTextPlugin.getImageDescriptor(IMG_PATH_JUSTIFY_CENTER);
-
- public static final ImageDescriptor IMG_DESC_JUSTIFY_FULL = richTextPlugin.getImageDescriptor(IMG_PATH_JUSTIFY_FULL);
-
- public static final ImageDescriptor IMG_DESC_JUSTIFY_LEFT = richTextPlugin.getImageDescriptor(IMG_PATH_JUSTIFY_LEFT);
-
- public static final ImageDescriptor IMG_DESC_JUSTIFY_RIGHT = richTextPlugin.getImageDescriptor(IMG_PATH_JUSTIFY_RIGHT);
-
- public static final ImageDescriptor IMG_DESC_OUTDENT = richTextPlugin.getImageDescriptor(IMG_PATH_OUTDENT);
-
- public static final ImageDescriptor IMG_DESC_PASTE = richTextPlugin.getImageDescriptor(IMG_PATH_PASTE);
-
- public static final ImageDescriptor IMG_DESC_PASTE_PLAIN_TEXT = richTextPlugin.getImageDescriptor(IMG_PATH_PASTE_PLAIN_TEXT);
-
- public static final ImageDescriptor IMG_DESC_STRIKE_THROUGH = richTextPlugin.getImageDescriptor(IMG_PATH_STRIKE_THROUGH);
-
- public static final ImageDescriptor IMG_DESC_SUBSCRIPT = richTextPlugin.getImageDescriptor(IMG_PATH_SUBSCRIPT);
-
- public static final ImageDescriptor IMG_DESC_SUPERSCRIPT = richTextPlugin.getImageDescriptor(IMG_PATH_SUPERSCRIPT);
-
- public static final ImageDescriptor IMG_DESC_UNDERLINE = richTextPlugin.getImageDescriptor(IMG_PATH_UNDERLINE);
-
- public static final ImageDescriptor IMG_DESC_TIDY = richTextPlugin.getImageDescriptor(IMG_PATH_TIDY);
-
- public static final String DISABLED_IMG_PATH_ADD_IMAGE = DTOOL16 + "AddImage.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_ADD_LINE = DTOOL16 + "AddLine.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_ADD_LINK = DTOOL16 + "AddLink.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_ADD_ORDERED_LIST = DTOOL16 + "AddOrderedList.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_ADD_TABLE = DTOOL16 + "AddTable.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_ADD_UNORDERED_LIST = DTOOL16 + "AddUnorderedList.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_BOLD = DTOOL16 + "Bold.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_CLEAR_CONTENT = DTOOL16 + "ClearContent.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_COPY = DTOOL16 + "Copy.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_CUT = DTOOL16 + "Cut.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_FIND_REPLACE = DTOOL16 + "FindReplace.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_INDENT = DTOOL16 + "Indent.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_ITALIC = DTOOL16 + "Italic.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_JUSTIFY_CENTER = DTOOL16 + "JustifyCenter.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_JUSTIFY_FULL = DTOOL16 + "JustifyFull.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_JUSTIFY_LEFT = DTOOL16 + "JustifyLeft.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_JUSTIFY_RIGHT = DTOOL16 + "JustifyRight.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_OUTDENT = DTOOL16 + "Outdent.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_PASTE = DTOOL16 + "Paste.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_PASTE_PLAIN_TEXT = DTOOL16 + "PastePlainText.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_STRIKE_THROUGH = DTOOL16 + "StrikeThrough.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_SUBSCRIPT = DTOOL16 + "Subscript.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_SUPERSCRIPT = DTOOL16 + "Superscript.gif"; //$NON-NLS-1$
-
- private static String DISABLED_IMG_PATH_TIDY = DTOOL16 + "TidyHTML.gif"; //$NON-NLS-1$
-
- public static final String DISABLED_IMG_PATH_UNDERLINE = DTOOL16 + "Underline.gif"; //$NON-NLS-1$
-
- public static final Image DISABLED_IMG_ADD_IMAGE = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_ADD_IMAGE);
-
- public static final Image DISABLED_IMG_ADD_LINE = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_ADD_LINE);
-
- public static final Image DISABLED_IMG_ADD_LINK = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_ADD_LINK);
-
- public static final Image DISABLED_IMG_ADD_ORDERED_LIST = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_ADD_ORDERED_LIST);
-
- public static final Image DISABLED_IMG_ADD_TABLE = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_ADD_TABLE);
-
- public static final Image DISABLED_IMG_ADD_UNORDERED_LIST = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_ADD_UNORDERED_LIST);
-
- public static final Image DISABLED_IMG_BOLD = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_BOLD);
-
- public static final Image DISABLED_IMG_CLEAR_CONTENT = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_CLEAR_CONTENT);
-
- public static final Image DISABLED_IMG_COPY = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_COPY);
-
- public static final Image DISABLED_IMG_CUT = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_CUT);
-
- public static final Image DISABLED_IMG_FIND_REPLACE = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_FIND_REPLACE);
-
- public static final Image DISABLED_IMG_INDENT = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_INDENT);
-
- public static final Image DISABLED_IMG_ITALIC = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_ITALIC);
-
- public static final Image DISABLED_IMG_JUSTIFY_CENTER = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_JUSTIFY_CENTER);
-
- public static final Image DISABLED_IMG_JUSTIFY_FULL = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_JUSTIFY_FULL);
-
- public static final Image DISABLED_IMG_JUSTIFY_LEFT = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_JUSTIFY_LEFT);
-
- public static final Image DISABLED_IMG_JUSTIFY_RIGHT = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_JUSTIFY_RIGHT);
-
- public static final Image DISABLED_IMG_OUTDENT = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_OUTDENT);
-
- public static final Image DISABLED_IMG_PASTE = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_PASTE);
-
- public static final Image DISABLED_IMG_STRIKE_THROUGH = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_STRIKE_THROUGH);
-
- public static final Image DISABLED_IMG_SUBSCRIPT = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_SUBSCRIPT);
-
- public static final Image DISABLED_IMG_SUPERSCRIPT = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_SUPERSCRIPT);
-
- public static final Image DISABLED_IMG_UNDERLINE = richTextPlugin.getSharedImage(DISABLED_IMG_PATH_UNDERLINE);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_ADD_IMAGE = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_ADD_IMAGE);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_ADD_LINE = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_ADD_LINE);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_ADD_LINK = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_ADD_LINK);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_ADD_ORDERED_LIST = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_ADD_ORDERED_LIST);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_ADD_TABLE = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_ADD_TABLE);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_ADD_UNORDERED_LIST = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_ADD_UNORDERED_LIST);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_BOLD = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_BOLD);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_CLEAR_CONTENT = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_CLEAR_CONTENT);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_COPY = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_COPY);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_CUT = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_CUT);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_FIND_REPLACE = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_FIND_REPLACE);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_INDENT = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_INDENT);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_ITALIC = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_ITALIC);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_JUSTIFY_CENTER = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_JUSTIFY_CENTER);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_JUSTIFY_FULL = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_JUSTIFY_FULL);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_JUSTIFY_LEFT = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_JUSTIFY_LEFT);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_JUSTIFY_RIGHT = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_JUSTIFY_RIGHT);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_OUTDENT = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_OUTDENT);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_PASTE = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_PASTE);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_PASTE_PLAIN_TEXT = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_PASTE_PLAIN_TEXT);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_STRIKE_THROUGH = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_STRIKE_THROUGH);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_SUBSCRIPT = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_SUBSCRIPT);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_SUPERSCRIPT = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_SUPERSCRIPT);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_UNDERLINE = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_UNDERLINE);
-
- public static final ImageDescriptor DISABLED_IMG_DESC_TIDY = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_TIDY);
-
- public static final ImageDescriptor IMG_SPELLCHECK = richTextPlugin.getImageDescriptor(IMG_PATH_SPELLCHECK);
-
- public static final ImageDescriptor DISABLED_IMG_SPELLCHECK = richTextPlugin.getImageDescriptor(DISABLED_IMG_PATH_SPELLCHECK);
-
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextResources.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextResources.java
deleted file mode 100644
index 354abf14710..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextResources.java
+++ /dev/null
@@ -1,246 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension;
-
-import org.eclipse.osgi.util.NLS;
-
-/**
- * The RichText resources.
- *
- * @author Nguyen
- */
-public final class RichTextResources extends NLS {
-
- private static String BUNDLE_NAME = RichTextResources.class.getPackage().getName() + ".Resources"; //$NON-NLS-1$
-
- private RichTextResources() {
- // Do not instantiate.
- }
-
- public static String fontNameAction_CSS_Default;
-
- public static String fontNameAction_CSS_Default_Mozilla;
-
- public static String fontNameAction_DefaultFontName;
-
- public static String fontStyle_normal;
-
- public static String fontStyle_sectionHeading;
-
- public static String fontStyle_subsectionHeading;
-
- public static String fontStyle_subSubsectionHeading;
-
- public static String fontStyle_quote;
-
- public static String fontStyle_codeSample;
-
- public static String blockTag_paragraph;
-
- public static String blockTag_heading1;
-
- public static String blockTag_heading2;
-
- public static String blockTag_heading3;
-
- public static String blockTag_heading4;
-
- public static String blockTag_heading5;
-
- public static String blockTag_heading6;
-
- public static String blockTag_address;
-
- public static String blockTag_preformattedText;
-
- public static String fontName_default;
-
- public static String fontName_arial;
-
- public static String fontName_courierNew;
-
- public static String fontName_timesNewRoman;
-
- public static String fontName_verdana;
-
- public static String addHorizontalBarAction_toolTipText;
-
- public static String addImageAction_toolTipText;
-
- public static String addLineAction_toolTipText;
-
- public static String addLinkAction_toolTipText;
-
- public static String addOrderedListAction_toolTipText;
-
- public static String addTableAction_toolTipText;
-
- public static String addUnorderedListAction_toolTipText;
-
- public static String boldAction_toolTipText;
-
- public static String clearContentAction_toolTipText;
-
- public static String copyAction_toolTipText;
-
- public static String cutAction_toolTipText;
-
- public static String findReplaceAction_toolTipText;
-
- public static String indentAction_toolTipText;
-
- public static String italicAction_toolTipText;
-
- public static String strikeThroughAction_toolTipText;
-
- public static String pasteMergeFormattingAction_toolTipText;
-
- public static String removeFormatAction_toolTipText;
-
- public static String justifyCenterAction_toolTipText;
-
- public static String justifyFullAction_toolTipText;
-
- public static String justifyLeftAction_toolTipText;
-
- public static String justifyRightAction_toolTipText;
-
- public static String outdentAction_toolTipText;
-
- public static String pasteAction_toolTipText;
-
- public static String pasteKeepTextOnlyAction_toolTipText;
-
- public static String subscriptAction_toolTipText;
-
- public static String superscriptAction_toolTipText;
-
- public static String underlineAction_toolTipText;
-
- public static String fontStyleAction_toolTipText;
-
- public static String backGroundColorAction_toolTipText;
-
- public static String foreGroundColorAction_toolTipText;
-
- public static String blockTagAction_toolTipText;
-
- public static String fontNameAction_toolTipText;
-
- public static String fontSizeAction_toolTipText;
-
- public static String cutAction_text;
-
- public static String copyAction_text;
-
- public static String pasteAction_text;
-
- public static String pasteKeepTextOnlyAction_text;
-
- public static String richTextTab_text;
-
- public static String richTextTab_toolTipText;
-
- public static String htmlTab_text;
-
- public static String htmlTab_toolTipText;
-
- public static String addImageDialog_title;
-
- public static String addLinkDialog_title;
-
- public static String addTableDialog_title;
-
- public static String findReplaceDialog_title;
-
- public static String urlDisplayNameLabel_text;
-
- public static String urlLabel_text;
-
- public static String summaryLabel_text;
-
- public static String captionLabel_text;
-
- public static String rowsLabel_text;
-
- public static String columnsLabel_text;
-
- public static String widthLabel_text;
-
- public static String tableStyleLabel_text;
-
- public static String tableHeaderNone_text;
-
- public static String tableHeaderCols_text;
-
- public static String tableHeaderRows_text;
-
- public static String tableHeaderBoth_text;
-
- public static String browseButton_text;
-
- public static String clearContentDialog_title;
-
- public static String clearContentDialog_text;
-
- public static String findLabel_text;
-
- public static String replaceLabel_text;
-
- public static String optionsGroup_text;
-
- public static String caseSensitiveCheckbox_text;
-
- public static String wholeWordCheckbox_text;
-
- public static String directionGroup_text;
-
- public static String forwardRadioButton_text;
-
- public static String backwardRadioButton_text;
-
- public static String findButton_text;
-
- public static String replaceButton_text;
-
- public static String replaceFindButton_text;
-
- public static String replaceallButton_text;
-
- public static String FindReplace_Status_noMatch_label;
-
- public static String maxCharsPerLineLabel_text;
-
- public static String indentHTMLCheckbox_text;
-
- public static String indentSizeLabel_text;
-
- public static String tidy_clean_text;
-
- public static String tidy_cleaner_text;
-
- public static String tidy_cleanest_text;
-
- public static String tidy_clean_toolTipText;
-
- public static String tidy_cleaner_toolTipText;
-
- public static String tidy_cleanest_toolTipText;
-
- public static final String spellCheckAction_toolTipText = "Check Spelling";
-
- static {
- NLS.initializeMessages(BUNDLE_NAME, RichTextResources.class);
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextToolBar.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextToolBar.java
deleted file mode 100644
index 1dd99e17f47..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/RichTextToolBar.java
+++ /dev/null
@@ -1,213 +0,0 @@
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension;
-
-import java.util.ArrayList;
-import java.util.Iterator;
-import java.util.List;
-
-import org.eclipse.epf.richtext.actions.IRichTextAction;
-import org.eclipse.epf.richtext.actions.RichTextAction;
-import org.eclipse.epf.richtext.actions.RichTextComboAction;
-import org.eclipse.jface.action.ActionContributionItem;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.jface.action.Separator;
-import org.eclipse.jface.action.ToolBarManager;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.ComboContributionItem;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.RichTextButtonAction;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Combo;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.ToolItem;
-
-/**
- * The default rich text tool bar implementation.
- *
- * Split into 2 toolbars (one for CCombos, one for buttons) for tabbing purposes.
- *
- * @author Nguyen
- */
-public class RichTextToolBar implements IRichTextToolBar {
-
- /**
- * If true, add a new tool bar.
- */
- private boolean addToolBar = true;
-
- /**
- * The current tool bar manager used to populate the tool actions.
- */
- private ToolBarManager toolbarMgr;
-
- /**
- * The current tool bar manager used to populate the tool actions.
- */
- private ToolBarManager toolbarMgrCombo;
-
- /**
- * The action items in the tool bar(s).
- */
- private List<Object> actionItems = new ArrayList<Object>();
-
- /**
- * the parent composite
- */
- protected Composite parent;
-
- /**
- * Creates a new instance.
- *
- * @param parent
- * the parent composite
- * @param style
- * the tool bar style
- * @param richText
- * the parent rich text control
- */
- public RichTextToolBar(Composite parent, int style) {
- this.parent = parent;
- addToolBar();
- }
-
- /**
- * @see org.eclipse.papyrus.infra.widgets.epf.richtext.extension.IRichTextToolBar#addButton(org.eclipse.swt.widgets.Button)
- *
- * @param button
- */
- public void addButton(Button button) {
- if(button != null) {
- ToolItem item = new ToolItem(toolbarMgr.getControl(), SWT.FLAT);
- item.setControl(button);
- toolbarMgr.update(true);
- }
- }
-
- /**
- * @see org.eclipse.epf.richtext.IRichTextToolBar#addAction(org.eclipse.jface.action.IAction)
- *
- * @param action
- */
- public void addAction(final IAction action) {
- if(action != null) {
- ActionContributionItem item = new ActionContributionItem(action);
-
- toolbarMgr.add(item);
- toolbarMgr.update(true);
- actionItems.add(item);
- }
- }
-
- /**
- * Adds a combo action to the tool bar.
- *
- * @param action
- * the action to add
- */
- public void addAction(final RichTextComboAction item) {
- if(item != null) {
- item.init();
- toolbarMgrCombo.add(item);
- toolbarMgrCombo.update(true);
- actionItems.add(item);
- }
- }
-
- /**
- * Adds a combo action to the tool bar.
- *
- * @param action
- * the action to add
- */
- public void addAction(final org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.RichTextComboAction item) {
- if(item != null) {
- item.init();
- toolbarMgrCombo.add(item);
- toolbarMgrCombo.update(true);
- actionItems.add(item);
- }
- }
-
- /**
- * @see org.eclipse.papyrus.infra.widgets.epf.richtext.extension.IRichTextToolBar#addAction(org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions.RichTextButtonAction)
- *
- * @param item
- */
- public void addAction(final RichTextButtonAction item) {
- if(item != null) {
- item.init();
- toolbarMgr.add(item);
- toolbarMgr.update(true);
- actionItems.add(item);
- }
- }
-
- /**
- * Adds a separator to the tool bar.
- */
- public void addSeparator() {
- toolbarMgr.add(new Separator());
- }
-
- /**
- * Updates the toolbar state.
- * <p>
- * Enables/disables actions depending on the currently selected RichTextEditor tab (RichText vs. HTML)
- *
- * @param editable
- * specifies whether to enable non-ReadOnly commands
- */
- public void updateToolBar(boolean enabled) {
- // boolean richTextMode = true;
- // if (editor.isHTMLTabSelected()) {
- // richTextMode = false;
- // }
- for(Iterator<Object> i = actionItems.iterator(); i.hasNext();) {
- Object item = i.next();
- if(item instanceof ToolItem) {
- ToolItem toolItem = (ToolItem)item;
- toolItem.setEnabled(enabled);
- } else if(item instanceof Combo) {
- ((Combo)item).setEnabled(enabled);
- } else if(item instanceof ActionContributionItem) {
- RichTextAction action = (RichTextAction)((ActionContributionItem)item).getAction();
- action.setEnabled(enabled);
- } else if(item instanceof RichTextButtonAction) {
- RichTextButtonAction action = (RichTextButtonAction) item;
- action.getButton().setEnabled(enabled);
- } else if(item instanceof ComboContributionItem) {
- ComboContributionItem contributionItem = (ComboContributionItem) item;
- contributionItem.getCCombo().setEnabled(enabled);
- } else {
- System.out.println(item.getClass().getName());
- }
- }
- }
-
- /**
- * Adds a tool bar, if necessary, to contain a button action or separator.
- */
- public void addToolBar() {
- if(addToolBar) {
- toolbarMgrCombo = new ToolBarManager(SWT.WRAP | SWT.FLAT | parent.getStyle());
- toolbarMgrCombo.createControl(parent);
- toolbarMgr = new ToolBarManager(SWT.WRAP | SWT.FLAT | parent.getStyle());
- toolbarMgr.createControl(parent);
- addToolBar = false;
- }
- }
-
- /**
- * @see org.eclipse.epf.richtext.IRichTextToolBar#getToolbarMgr()
- *
- * @return
- */
- public ToolBarManager getToolbarMgr() {
- return toolbarMgr;
- }
-
- /**
- * @return ToolBarManager
- */
- public ToolBarManager getToolbarMgrCombo() {
- return toolbarMgrCombo;
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/ToolbarCommand.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/ToolbarCommand.java
deleted file mode 100644
index 9c3a6612809..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/ToolbarCommand.java
+++ /dev/null
@@ -1,22 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension;
-
-/**
- * the enumeration of actions that can be added into the rich text editor's toolbar
- *
- */
-public enum ToolbarCommand {
- AddImage, AddLine, AddLink, AddOrderedList, AddTable, AddUnorderedList, BlogTag, Bold, RemoveFormat, BackGroundColor, ForeGroundColor, Indent, Italic, JustifyCenter, JustifyFull, JustifyLeft, JustifyRight, Outdent, FontName, FontSize, StrikeThrough, Subscript, Superscript, Underline, FontStyle, Copy, Paste, Cut, TidyActionGroup, SpellChecking, SetupTest
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/BackgroundColorAction.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/BackgroundColorAction.java
deleted file mode 100644
index 463160444cd..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/BackgroundColorAction.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions;
-
-import org.eclipse.epf.richtext.IRichText;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextCommand;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextResources;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-
-/**
- * the backgroundColor action in the toolbar
- *
- * @author Nguyen Viet Hoa
- *
- */
-public class BackgroundColorAction extends RichTextButtonAction {
-
- /**
- * Creates a new instance.
- */
- public BackgroundColorAction(final IRichText richText) {
- super(richText);
-
- this.toolTipText = RichTextResources.backGroundColorAction_toolTipText;
- richText.addListener(SWT.SELECTED, new Listener() {
-
- @Override
- public void handleEvent(Event event) {
-
- }
- });
- }
-
- /**
- * Executes the action.
- *
- * @param richText
- * a rich text control
- * @param index
- * the index of the selected item
- */
- @Override
- public void execute(IRichText richText) {
- if(richText != null) {
- richText.executeCommand(RichTextCommand.BACKGROUND_COLOR, this.color);
-
- }
- }
-
-
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/ComboContributionItem.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/ComboContributionItem.java
deleted file mode 100644
index 19820cd4597..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/ComboContributionItem.java
+++ /dev/null
@@ -1,126 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions;
-
-import java.util.Collection;
-import org.eclipse.jface.action.ContributionItem;
-import org.eclipse.swt.events.*;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.widgets.*;
-
-public class ComboContributionItem extends ContributionItem
-{
- protected Combo combo;
- protected ToolItem toolItem;
- protected CoolItem coolItem;
- protected int style;
- protected Collection<String> input;
- protected int defaultSelected = 0;
-
- public ComboContributionItem(int style)
- {
- this.style = style;
- }
-
- public void fill(ToolBar parent, int index)
- {
- toolItem = new ToolItem(parent, 2);
- Control box = createControl(parent);
- toolItem.setControl(box);
- Point preferredSize = combo.computeSize(-1, -1, true);
- toolItem.setWidth(preferredSize.x);
- }
-
- public void fill(CoolBar coolBar, int index)
- {
- Control box = createControl(coolBar);
- if(index >= 0)
- coolItem = new CoolItem(coolBar, 4, index);
- else
- coolItem = new CoolItem(coolBar, 4);
- coolItem.setData(this);
- coolItem.setControl(box);
- Point toolBarSize = box.computeSize(-1, -1);
- coolItem.setMinimumSize(toolBarSize);
- coolItem.setPreferredSize(toolBarSize);
- coolItem.setSize(toolBarSize);
- }
-
- public void fill(Composite parent)
- {
- createControl(parent);
- }
-
- protected Control createControl(Composite parent)
- {
- combo = new Combo(parent, style);
- combo.setVisibleItemCount(10);
- combo.setEnabled(true);
- combo.setItems((String[])input.toArray(new String[0]));
- if (input.size() > 0) {
- combo.select(defaultSelected);
- }
- combo.addDisposeListener(new DisposeListener() {
- public void widgetDisposed(DisposeEvent event)
- {
- dispose();
- }
- });
-
- combo.addSelectionListener(new SelectionListener() {
- public void widgetDefaultSelected(SelectionEvent selectionevent)
- {
- }
-
- public void widgetSelected(SelectionEvent e)
- {
- performSelectionChanged();
- }
- });
- return combo;
- }
-
- protected int getSelectionIndex()
- {
- return combo.getSelectionIndex();
- }
-
- protected void setInput(Collection<String> input)
- {
- this.input = input;
- }
-
- protected void performSelectionChanged()
- {
- }
-
- public void dispose()
- {
- super.dispose();
- }
-
- public Combo getCCombo()
- {
- return combo;
- }
-
- public ToolItem getToolItem()
- {
- return toolItem;
- }
-
- public CoolItem getCoolItem()
- {
- return coolItem;
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/FontNameAction.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/FontNameAction.java
deleted file mode 100644
index 7b0a73c7970..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/FontNameAction.java
+++ /dev/null
@@ -1,109 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions;
-
-import java.util.ArrayList;
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.SortedSet;
-import java.util.TreeSet;
-
-import org.eclipse.epf.richtext.IRichText;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextResources;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.graphics.FontData;
-import org.eclipse.swt.widgets.Display;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-
-public class FontNameAction extends RichTextComboAction {
-
- public FontNameAction(final IRichText richText) {
- super(richText);
- setToolTipText(RichTextResources.fontNameAction_toolTipText);
-
- SortedSet<String> fontSet = new TreeSet<String>();
- FontData[] fonts = Display.getCurrent().getFontList(null, true);
- for(int i = 0; i < fonts.length; i++) {
- fontSet.add(fonts[i].getName());
- }
- this.input = new ArrayList<String>();
- this.input.add(RichTextResources.fontNameAction_DefaultFontName);
- for(Iterator<String> iter = fontSet.iterator(); iter.hasNext();) {
- String fontName = (String)iter.next();
- this.input.add(fontName);
- }
-
- richText.addListener(SWT.SELECTED, new Listener() {
-
- public void handleEvent(Event event) {
-
- if(!changed) {
- setNotifyListeners(false);
- getCCombo().select(getFontNameIndex());
- setNotifyListeners(true);
- }
-
- // After combo selection, the SWT.SELECTION event launched 2 times!, only update combo if i == 2
- if(changed)
- i++;
-
- if(i == 2) {
- changed = false;
- i = 0;
- }
-
-
-
- }
- });
- }
-
- protected int getFontNameIndex() {
- String fontName = richText.getSelected().getFontName();
-
- if((fontName.equals(RichTextResources.fontNameAction_CSS_Default)) || (fontName.equals(RichTextResources.fontNameAction_CSS_Default_Mozilla)) || (fontName.equals("default"))) {
- fontName = RichTextResources.fontNameAction_DefaultFontName;
- }
- return findFontNameInItems(fontName);
- }
-
- private int findFontNameInItems(String fontName) {
- int index = 0;
- String[] elements = fontName.split(",");
- for(Iterator<String> iter = this.input.iterator(); iter.hasNext(); index++) {
- String font = (String)iter.next();
- for(String string : elements) {
- if(font.equalsIgnoreCase(string)) {
- return index;
- }
- }
- }
- return index;
- }
-
- public void execute(IRichText richText) {
- if(richText != null) {
- String selected = getCComboSelection();
- if(selected.equals(RichTextResources.fontNameAction_DefaultFontName))
- richText.executeCommand("setFontName", "");
- else
- richText.executeCommand("setFontName", selected);
- }
- }
-
- public Collection<String> getInput() {
- return this.input;
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/FontSizeAction.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/FontSizeAction.java
deleted file mode 100644
index 57b3a65cac1..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/FontSizeAction.java
+++ /dev/null
@@ -1,103 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions;
-
-import java.util.ArrayList;
-import java.util.Collection;
-
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.epf.richtext.IRichText;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextResources;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-
-public class FontSizeAction extends RichTextComboAction {
-
- public FontSizeAction(final IRichText richText) {
- super(richText);
- setToolTipText(RichTextResources.fontSizeAction_toolTipText);
- this.input = new ArrayList<String>();
-
- this.input.add("Default");
- this.input.add("1");
- this.input.add("2");
- this.input.add("3");
- this.input.add("4");
- this.input.add("5");
- this.input.add("6");
- this.input.add("7");
-
- richText.addListener(SWT.Show, new Listener() {
-
- public void handleEvent(Event event) {
- FontSizeAction.this.setNotifyListeners(false);
- FontSizeAction.this.getCCombo().select(getFontSizeIndex());
- FontSizeAction.this.setNotifyListeners(true);
- }
- });
-
- richText.addListener(SWT.SELECTED, new Listener() {
-
- public void handleEvent(Event event) {
-
- if(!changed) {
- setNotifyListeners(false);
- getCCombo().select(getFontSizeIndex());
- setNotifyListeners(true);
- }
-
- // After combo selection, the SWT.SELECTION event launched 2 times!, only update combo if i == 2
- if(changed)
- i++;
-
- if((i == 2)) {
-
- changed = false;
- i = 0;
- }
-
-
- }
- });
-
- if(Platform.getOS().equals("linux")) {
- this.defaultSelected = 2; // Workarround a problem of selection event
- }
- }
-
- protected int getFontSizeIndex() {
- String fontSize = richText.getSelected().getFontSize();
- int index = 0;
- try {
- index = Integer.parseInt(fontSize);
- } catch (NumberFormatException localNumberFormatException) {
- }
- return index;
- }
-
- public void execute(IRichText richText) {
- if(richText != null) {
- String selected = getCComboSelection();
- if("Default".equals(selected))
- richText.executeCommand("setFontSize", "");
- else
- richText.executeCommand("setFontSize", selected);
- }
- }
-
- public Collection<String> getInput() {
- return this.input;
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/FontStyleAction.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/FontStyleAction.java
deleted file mode 100644
index 4d845793ab5..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/FontStyleAction.java
+++ /dev/null
@@ -1,88 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions;
-
-import java.util.ArrayList;
-import java.util.Collection;
-
-import org.eclipse.epf.richtext.IRichText;
-import org.eclipse.epf.richtext.html.FontStyle;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextResources;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-
-public class FontStyleAction extends RichTextComboAction {
-
- public FontStyleAction(final IRichText richText) {
- super(richText);
- setToolTipText(RichTextResources.fontStyleAction_toolTipText);
-
- this.input = new ArrayList<String>();
- this.input.add(FontStyle.NORMAL.getName());
- this.input.add(FontStyle.SECTION_HEADING.getName());
- this.input.add(FontStyle.SUBSECTION_HEADING.getName());
- this.input.add(FontStyle.SUB_SUBSECTION_HEADING.getName());
- this.input.add(FontStyle.QUOTE.getName());
- this.input.add(FontStyle.CODE_SAMPLE.getName());
-
- richText.addListener(SWT.SELECTED, new Listener() {
-
- public void handleEvent(Event event) {
-
- if(!changed) {
- setNotifyListeners(false);
- getCCombo().select(getFontStyleIndex());
- setNotifyListeners(true);
- }
-
- // After combo selection, the SWT.SELECTION event launched 2 times!, only update combo if i == 2
- if(changed)
- i++;
-
- if((i == 2)) {
-
- changed = false;
- i = 0;
- }
-
-
- }
- });
- }
-
- protected int getFontStyleIndex() {
- String blockStyle = richText.getSelected().getBlockStyle();
- String name = FontStyle.getFontStyleName(blockStyle);
-
- int index = ((FontStyleAction.this.getCCombo())).indexOf(name);
- if(index <= 0) {
- index = 0;
- }
- return index;
- }
-
-
- public void execute(IRichText richText) {
- if(richText != null) {
- String selected = getCComboSelection();
- String value = FontStyle.getFontStyleValue(selected);
- richText.executeCommand("setFontStyle", value);
- }
- }
-
- public Collection<String> getInput() {
- return this.input;
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/ForegroundColorAction.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/ForegroundColorAction.java
deleted file mode 100644
index 87602ea7c07..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/ForegroundColorAction.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions;
-
-import org.eclipse.epf.richtext.IRichText;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextCommand;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextResources;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-
-
-/**
- * The ForegroundColor button in the toolbar
- *
- * @author Nguyen Viet Hoa
- *
- */
-public class ForegroundColorAction extends RichTextButtonAction {
-
- /**
- * Creates a new instance.
- */
- public ForegroundColorAction(final IRichText richText) {
- super(richText);
- this.setToolTipText(RichTextResources.foreGroundColorAction_toolTipText);
-
- richText.addListener(SWT.SELECTED, new Listener() {
-
- public void handleEvent(Event event) {
-
-
- }
- });
- }
-
- /**
- * Executes the action.
- *
- * @param richText
- * a rich text control
- * @param index
- * the index of the selected item
- */
- public void execute(IRichText richText) {
- if(richText != null) {
-
- richText.executeCommand(RichTextCommand.FOREGROUND_COLOR, this.color);
- }
- }
-
-
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/PasteAction.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/PasteAction.java
deleted file mode 100644
index 01e24a57262..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/PasteAction.java
+++ /dev/null
@@ -1,206 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions;
-
-import java.io.File;
-import java.net.URL;
-import java.util.Stack;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.epf.common.serviceability.Logger;
-import org.eclipse.epf.common.ui.util.ClipboardUtil;
-import org.eclipse.epf.common.utils.FileUtil;
-import org.eclipse.epf.common.utils.NetUtil;
-import org.eclipse.epf.richtext.IRichText;
-import org.eclipse.epf.richtext.RichTextEditor;
-import org.eclipse.epf.richtext.RichTextImages;
-import org.eclipse.epf.richtext.RichTextPlugin;
-import org.eclipse.epf.richtext.RichTextResources;
-import org.eclipse.epf.richtext.actions.RichTextAction;
-import org.eclipse.swt.custom.StyledText;
-import org.eclipse.swt.dnd.Clipboard;
-import org.eclipse.swt.dnd.HTMLTransfer;
-import org.eclipse.swt.widgets.Display;
-
-/**
- * The paste action
- *
- * @author Nguyen
- *
- */
-public class PasteAction extends RichTextAction {
-
- private static final String SOURCE_URL = "SourceURL:";
-
- private static final String HTM_EXT = ".htm";
-
- private static final String HTML_EXT = ".html";
-
- private static final Pattern HREF_REFERENCES = Pattern.compile("href\\s*=\\s*\"(.*?)\"", 34);
-
- protected static final Pattern p_image_ref = Pattern.compile("(<(img|iframe).*?src\\s*=\\s*\")(.*?)(\")", 34);
-
- protected static String sourceURLStr = "";
-
- private Logger logger;
-
- private static String RESOURCES = "resources";
-
- public PasteAction(IRichText richText) {
- super(richText, 1);
- setImageDescriptor(RichTextImages.IMG_DESC_PASTE);
- setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_PASTE);
- setToolTipText(RichTextResources.pasteAction_toolTipText);
- this.logger = RichTextPlugin.getDefault().getLogger();
- }
-
- public boolean disableInSourceMode() {
- return false;
- }
-
- public void execute(IRichText richText) {
- if(richText != null) {
- copyLinkResources(richText);
- if(((richText instanceof RichTextEditor)) && (((RichTextEditor)richText).isHTMLTabSelected())) {
- StyledText styledText = ((RichTextEditor)richText).getSourceEdit();
- styledText.paste();
- } else {
- if(Platform.getOS().equals("win32")) {
- richText.executeCommand("paste", sourceURLStr);
- } else if(Platform.getOS().equals("linux") || Platform.getOS().equals("maxosx")) {
- richText.executeCommand("paste", sourceURLStr);
- }
-
-
- }
- }
- }
-
- protected void copyLinkResources(IRichText richText) {
- try {
- sourceURLStr = ClipboardUtil.getHTMLSourceURL();
- Clipboard clipboard = new Clipboard(Display.getCurrent());
- String html = (String)clipboard.getContents(HTMLTransfer.getInstance());
- if((html != null) && (html.length() > 0)) {
- String basePath = richText.getBasePath();
- URL sourceURL = null;
- if((sourceURLStr == null) || (sourceURLStr.length() == 0) || (sourceURLStr.equals("about:blank")))
- sourceURL = richText.getCopyURL();
- else {
- sourceURL = new URL(sourceURLStr);
- }
-
- Matcher matcher = HREF_REFERENCES.matcher(html);
- while(matcher.find()) {
- String href = NetUtil.decodeURL(matcher.group(1));
- try {
- URL hrefURL = new URL(sourceURL, href);
- String scheme = hrefURL.getProtocol();
- if(scheme != null) {
- if(scheme.equalsIgnoreCase("file")) {
- String url = hrefURL.getPath();
- File srcFile = new File(NetUtil.decodeURL(url));
- File tgtFile = null;
- File tgtDir = null;
- if((!href.startsWith("#")) && (!sourceURL.sameFile(hrefURL))) {
- if((href.startsWith(RESOURCES)) || (href.startsWith("./" + RESOURCES))) {
- tgtFile = new File(basePath, href);
- tgtDir = tgtFile.getParentFile();
- } else {
- String resPath = getSubdirectoryOfResources(href);
- tgtFile = new File(basePath + RESOURCES, resPath);
- tgtDir = tgtFile;
- }
- tgtDir.mkdirs();
- FileUtil.copyFile(srcFile, tgtDir);
- }
- }
- }
- } catch (Exception e) {
- this.logger.logError(e);
- }
-
- }
-
- matcher = p_image_ref.matcher(html);
- while(matcher.find()) {
- String src = NetUtil.decodeURL(matcher.group(3));
- try {
- URL srcURL = new URL(sourceURL, src);
- String scheme = srcURL.getProtocol();
- if((scheme != null) && (scheme.equalsIgnoreCase("file"))) {
- File srcFile = null;
- String authority = srcURL.getAuthority();
- if(authority != null)
- srcFile = new File(NetUtil.decodeURL(authority + srcURL.getPath()));
- else {
- srcFile = new File(NetUtil.decodeURL(srcURL.getPath()));
- }
- File tgtFile = null;
- File tgtDir = null;
- if((src.startsWith(RESOURCES)) || (src.startsWith("./" + RESOURCES))) {
- tgtFile = new File(basePath, src);
- tgtDir = tgtFile.getParentFile();
- } else {
- String resPath = getSubdirectoryOfResources(src);
- tgtFile = new File(basePath + RESOURCES, resPath);
- tgtDir = tgtFile;
- }
- tgtDir.mkdirs();
- FileUtil.copyFile(srcFile, tgtDir);
- }
- } catch (Exception e) {
- this.logger.logError(e);
- }
- }
- }
- } catch (Exception e) {
- this.logger.logError(e);
- }
- }
-
- protected String getSourceURL(String htmlContent) {
- String sourceURL = null;
- int sourceURLIndex = htmlContent.indexOf("SourceURL:");
- if(sourceURLIndex > 0) {
- sourceURL = htmlContent.substring(sourceURLIndex + "SourceURL:".length());
- sourceURL = sourceURL.substring(0, sourceURL.indexOf(FileUtil.LINE_SEP));
- if((sourceURL.toLowerCase().endsWith(".htm")) || (sourceURL.toLowerCase().endsWith(".html"))) {
- sourceURL = sourceURL.substring(0, sourceURL.indexOf(FileUtil.getFileName(sourceURL)) - 1);
- sourceURL = sourceURL.replace('\\', '/');
- }
- sourceURL = FileUtil.appendSeparator(sourceURL, "/");
- }
- return sourceURL;
- }
-
- protected String getSubdirectoryOfResources(String path) {
- String result = "";
- int res_idx = path.indexOf(RESOURCES);
- if(res_idx != -1) {
- Stack stack = new Stack();
- File relative = new File(path).getParentFile();
- while(!relative.getName().equals(RESOURCES)) {
- stack.push(relative.getName());
- relative = relative.getParentFile();
- }
- while(!stack.isEmpty()) {
- result = result + (String)stack.pop() + File.separator;
- }
- }
- return result;
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/PasteTextOnlyAction.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/PasteTextOnlyAction.java
deleted file mode 100644
index 6007434c0c7..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/PasteTextOnlyAction.java
+++ /dev/null
@@ -1,95 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions;
-
-import java.util.regex.Pattern;
-
-import org.eclipse.core.runtime.Platform;
-import org.eclipse.epf.common.serviceability.Logger;
-import org.eclipse.epf.richtext.IRichText;
-import org.eclipse.epf.richtext.actions.RichTextAction;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichPlugin;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextCommand;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextEditor;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextImages;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextResources;
-import org.eclipse.swt.custom.StyledText;
-import org.eclipse.swt.dnd.Clipboard;
-import org.eclipse.swt.dnd.HTMLTransfer;
-import org.eclipse.swt.widgets.Display;
-
-
-/**
- * The Paste merge formatting
- *
- * @author Nguyen
- *
- */
-public class PasteTextOnlyAction extends RichTextAction {
-
- protected static final Pattern p_image_ref = Pattern.compile("(<(img|iframe).*?src\\s*=\\s*\")(.*?)(\")", Pattern.CASE_INSENSITIVE | Pattern.DOTALL); //$NON-NLS-1$
-
- protected static String sourceURLStr = ""; //$NON-NLS-1$
-
- private Logger logger;
-
- /**
- * Creates a new instance.
- */
- public PasteTextOnlyAction(IRichText richText) {
- super(richText, IAction.AS_PUSH_BUTTON);
- setImageDescriptor(RichTextImages.IMG_DESC_PASTE);
- setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_PASTE);
- setToolTipText(RichTextResources.pasteMergeFormattingAction_toolTipText);
- logger = RichPlugin.getDefault().getLogger();
- }
-
- /**
- * Returns <code>true</code> if this action should be disabled when the
- * rich text editor is in source edit mode.
- */
- public boolean disableInSourceMode() {
- return false;
- }
-
- /**
- * Executes the action.
- *
- * @param richText
- * a rich text control
- */
- public void execute(IRichText richText) {
- if(richText != null) {
- if(richText instanceof RichTextEditor && ((RichTextEditor)richText).isHTMLTabSelected()) {
- StyledText styledText = ((RichTextEditor)richText).getSourceEdit();
- styledText.paste();
- } else {
- if(Platform.getOS().equals("win32")) {
- Clipboard clipboard = new Clipboard(Display.getCurrent());
- String html = (String)clipboard.getContents(HTMLTransfer.getInstance());
- richText.executeCommand(RichTextCommand.ADD_HTML, html);
- } else if(Platform.getOS().equals("linux") || Platform.getOS().equals("macosx")) {
- Clipboard clipboard = new Clipboard(Display.getCurrent());
- String html = (String)clipboard.getContents(HTMLTransfer.getInstance());
- richText.executeCommand(RichTextCommand.ADD_HTML, html);
- }
-
- }
-
- }
- }
-
-
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/RemoveFormatAction.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/RemoveFormatAction.java
deleted file mode 100644
index 5abfde28d47..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/RemoveFormatAction.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions;
-
-import org.eclipse.epf.richtext.IRichText;
-import org.eclipse.epf.richtext.actions.RichTextAction;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextCommand;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextImages;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextResources;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-
-/**
- * @author Nguyen Viet Hoa
- *
- */
-public class RemoveFormatAction extends RichTextAction {
-
- /**
- * Creates a new instance.
- */
- public RemoveFormatAction(final IRichText richText) {
- super(richText, IAction.AS_CHECK_BOX);
- this.setEnabled(false);
- setImageDescriptor(RichTextImages.IMG_DESC_CLEAR_FORMATTING);
- setToolTipText(RichTextResources.removeFormatAction_toolTipText);
- richText.addListener(SWT.SELECTED, new Listener() {
-
- public void handleEvent(Event event) {
- if(richText.getSelected().getText().length() >= 1)
- setEnabled(true);
- else
- setEnabled(false);
- }
- });
- }
-
- /**
- * Executes the action.
- *
- * @param richText
- * a rich text control
- */
- public void execute(IRichText richText) {
- if(richText != null) {
- richText.executeCommand(RichTextCommand.REMOVE_FORMAT, "2");
-
- }
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/RichTextButtonAction.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/RichTextButtonAction.java
deleted file mode 100644
index a6f428c991c..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/RichTextButtonAction.java
+++ /dev/null
@@ -1,133 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions;
-
-import org.eclipse.epf.richtext.IRichText;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.ui.ButtonContributionItem;
-import org.eclipse.swt.SWT;
-
-/**
- * @author Nguyen Viet Hoa
- *
- */
-public abstract class RichTextButtonAction extends ButtonContributionItem {
-
- protected IRichText richText;
-
-
- protected String toolTipText;
-
- protected boolean enabled = true;
-
- protected boolean notifyListeners = false;
-
-
- /**
- * Creates a new instance.
- *
- * @param richText
- * a rich text control
- */
- public RichTextButtonAction(IRichText richText) {
- super(SWT.FLAT | SWT.BORDER);
- this.richText = richText;
- }
-
- /**
- * Creates a new instance.
- *
- * @param richText
- * a rich text control
- */
- public RichTextButtonAction(IRichText richText, int style) {
- super(SWT.FLAT | SWT.BORDER | style);
- this.richText = richText;
- }
-
-
- /**
- * Executes the action.
- *
- * @param richText
- * a rich text control
- * @param index
- * the index of the selected item
- */
- public abstract void execute(IRichText richText);
-
-
-
- public void init() {
-
- setNotifyListeners(true);
- }
-
-
-
-
-
- /**
- * Returns the tool tip for the action.
- *
- * @return the tool tip text
- */
- public String getToolTipText() {
- return toolTipText;
- }
-
- /**
- * Sets the tool tip for the action.
- *
- * @param toolTipText
- * the tool tip text
- */
- public void setToolTipText(String toolTipText) {
- this.toolTipText = toolTipText;
- }
-
- /**
- * Returns the enabled status of the action.
- *
- * @return <code>true</code> if enabled, <code>false</code> if not
- */
- public boolean getEnabled() {
- return enabled;
- }
-
- /**
- * Enables or disables the action.
- *
- * @param enabled
- * if <code>true</code>, enable the action. if <code>false</code>, disable it.
- */
- public void setEnabled(boolean enabled) {
- this.enabled = enabled;
- }
-
- @Override
- protected void performSelectionChanged() {
- if(notifyListeners) {
- execute(richText);
- richText.setFocus();
- }
- }
-
- public boolean isNotifyListeners() {
- return notifyListeners;
- }
-
- public void setNotifyListeners(boolean notifyListeners) {
- this.notifyListeners = notifyListeners;
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/RichTextComboAction.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/RichTextComboAction.java
deleted file mode 100644
index ab356e7f340..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/RichTextComboAction.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions;
-
-import java.util.Collection;
-
-import org.eclipse.epf.richtext.IRichText;
-
-public abstract class RichTextComboAction extends ComboContributionItem {
-
- protected IRichText richText;
-
- protected String toolTipText;
-
- protected boolean enabled = true;
-
- protected boolean notifyListeners = false;
-
- protected boolean changed = false;
-
- protected int i = 0;
-
-
- public RichTextComboAction(IRichText richText) {
- super(8390664);
- this.richText = richText;
- }
-
- public RichTextComboAction(IRichText richText, int style) {
- super(0x800808 | style);
- this.richText = richText;
- }
-
- public abstract void execute(IRichText paramIRichText);
-
- public abstract Collection<String> getInput();
-
- public void init() {
- setInput(getInput());
- setNotifyListeners(true);
- }
-
- protected String getCComboSelection() {
- if(getCCombo() != null) {
- int index = getSelectionIndex();
- return getCCombo().getItem(index);
- }
- return null;
- }
-
- public String getToolTipText() {
- return this.toolTipText;
- }
-
- public void setToolTipText(String toolTipText) {
- this.toolTipText = toolTipText;
- }
-
- public boolean getEnabled() {
- return this.enabled;
- }
-
- public void setEnabled(boolean enabled) {
- this.enabled = enabled;
- }
-
- protected void performSelectionChanged() {
- if(this.notifyListeners) {
- changed = true;
- execute(this.richText);
- }
- richText.setFocus();
- }
-
- public boolean isNotifyListeners() {
- return this.notifyListeners;
- }
-
- public void setNotifyListeners(boolean notifyListeners) {
- this.notifyListeners = notifyListeners;
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/SetupTestAction.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/SetupTestAction.java
deleted file mode 100644
index b2e4dbbd3fe..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/SetupTestAction.java
+++ /dev/null
@@ -1,56 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions;
-
-import org.eclipse.epf.richtext.IRichText;
-import org.eclipse.epf.richtext.actions.RichTextAction;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextCommand;
-
-/**
- * @author Nguyen Viet Hoa
- *
- */
-public class SetupTestAction extends RichTextAction {
-
- private String parameter = "";
-
- /**
- * Creates a new instance.
- */
- public SetupTestAction(final IRichText richText) {
- super(richText, IAction.AS_CHECK_BOX);
-
- }
-
- /**
- * Executes the action.
- *
- * @param richText
- * a rich text control
- */
- public void execute(IRichText richText) {
- if(richText != null) {
- richText.executeCommand(RichTextCommand.SETUP_TEST, getParameter());
- }
- }
-
- public String getParameter() {
- return parameter;
- }
-
- public void setParameter(String parameter) {
- this.parameter = parameter;
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/SpellCheckAction.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/SpellCheckAction.java
deleted file mode 100644
index 4e783e60607..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/SpellCheckAction.java
+++ /dev/null
@@ -1,61 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions;
-
-import org.eclipse.epf.richtext.IRichText;
-import org.eclipse.epf.richtext.actions.RichTextAction;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichPlugin;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextImages;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextResources;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.dialogs.CheckSpellDialog;
-import org.eclipse.swt.widgets.Display;
-
-
-/**
- * @author Nguyen
- *
- */
-public class SpellCheckAction extends RichTextAction {
-
- protected CheckSpellDialog dialog;
-
- /**
- * Creates a new instance.
- */
- public SpellCheckAction(IRichText richText) {
- super(richText, IAction.AS_PUSH_BUTTON);
- setImageDescriptor(RichTextImages.IMG_SPELLCHECK);
- setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_SPELLCHECK);
- setToolTipText(RichTextResources.spellCheckAction_toolTipText);
- this.richText = richText;
- }
-
- /**
- * Executes the action.
- *
- * @param richText
- * a rich text control
- */
- public void execute(IRichText richText) {
- if(richText != null) {
- try {
- dialog = new CheckSpellDialog(Display.getCurrent().getActiveShell(), richText);
- dialog.open();
- } catch (Exception e) {
- RichPlugin.getDefault().getLogger().logError(e);
- }
- }
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/StrikeThroughAction.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/StrikeThroughAction.java
deleted file mode 100644
index b7f6a68e472..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/StrikeThroughAction.java
+++ /dev/null
@@ -1,60 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions;
-
-import org.eclipse.epf.richtext.IRichText;
-import org.eclipse.epf.richtext.actions.RichTextAction;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextCommand;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextImages;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextResources;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-
-/**
- * @author Nguyen Viet Hoa
- *
- */
-public class StrikeThroughAction extends RichTextAction {
-
- /**
- * Creates a new instance.
- */
- public StrikeThroughAction(final IRichText richText) {
- super(richText, IAction.AS_CHECK_BOX);
- setImageDescriptor(RichTextImages.IMG_DESC_STRIKE_THROUGH);
- setToolTipText(RichTextResources.strikeThroughAction_toolTipText);
- // add listener
- richText.addListener(SWT.SELECTED, new Listener() {
-
- public void handleEvent(Event event) {
- // check style of selected text
- // setChecked(richText.getSelected().isStrikeThrough());
- }
- });
- }
-
- /**
- * Executes the action.
- *
- * @param richText
- * a rich text control
- */
- public void execute(IRichText richText) {
- if(richText != null) {
- richText.executeCommand(RichTextCommand.STRIKE_THROUGH);
- }
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/UnderlineAction.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/UnderlineAction.java
deleted file mode 100644
index a2d81e49e37..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/actions/UnderlineAction.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.actions;
-
-import org.eclipse.epf.richtext.IRichText;
-import org.eclipse.epf.richtext.actions.RichTextAction;
-import org.eclipse.jface.action.IAction;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextCommand;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextImages;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextResources;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.widgets.Event;
-import org.eclipse.swt.widgets.Listener;
-
-/**
- * @author Nguyen Viet Hoa
- *
- */
-public class UnderlineAction extends RichTextAction {
-
- /**
- * Creates a new instance.
- */
- public UnderlineAction(final IRichText richText) {
- super(richText, IAction.AS_CHECK_BOX);
- setImageDescriptor(RichTextImages.IMG_DESC_UNDERLINE);
- setDisabledImageDescriptor(RichTextImages.DISABLED_IMG_DESC_UNDERLINE);
- setToolTipText(RichTextResources.underlineAction_toolTipText);
- richText.addListener(SWT.SELECTED, new Listener() {
-
- public void handleEvent(Event event) {
- setChecked(richText.getSelected().isUnderLine());
- }
- });
- }
-
- /**
- * Executes the action.
- *
- * @param richText
- * a rich text control
- */
- public void execute(IRichText richText) {
- if(richText != null) {
- richText.executeCommand(RichTextCommand.UNDERLINE);
- }
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/dialogs/FindReplaceDialog.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/dialogs/FindReplaceDialog.java
deleted file mode 100644
index 27d68b45c96..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/dialogs/FindReplaceDialog.java
+++ /dev/null
@@ -1,312 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2013 CEA
- *
- *
- * 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:
- * Soyatec - Initial API and implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.dialogs;
-
-import org.eclipse.epf.richtext.actions.FindReplaceAction;
-import org.eclipse.jface.dialogs.IDialogConstants;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextResources;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.ModifyEvent;
-import org.eclipse.swt.events.ModifyListener;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.Group;
-import org.eclipse.swt.widgets.Label;
-import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.widgets.Text;
-
-/**
- * Prompts the user to specify the search and replace strings and options.
- *
- * @author Kelvin Low
- * @since 1.0
- */
-public class FindReplaceDialog extends BaseDialog {
-
- private FindReplaceAction findReplaceAction;
-
- private boolean findOnly;
-
- private Text findText;
-
- private Text replaceText;
-
- private Button searchForwardRadioButton;
-
- private Button searchBackwardRadioButton;
-
- private Button caseSensitiveCheckbox;
-
- private Button wholeWordCheckbox;
-
- private Button findButton;
-
- private Button replaceButton;
-
- private Button replaceFindButton;
-
- private Button replaceAllButton;
-
- private Label statusLabel;
-
- /**
- * Creates a new instance.
- *
- * @param parent
- * the parent shell
- * @param findReplaceAction
- * the Find and Replace action
- * @param findOnly
- * if <code>true</code>, disable the replace and replace all
- * functionalities
- */
- public FindReplaceDialog(Shell parent, FindReplaceAction findReplaceAction, boolean findOnly) {
- super(parent);
- setShellStyle(SWT.DIALOG_TRIM | SWT.MODELESS | getDefaultOrientation());
- setBlockOnOpen(false);
- this.findReplaceAction = findReplaceAction;
- this.findOnly = findOnly;
- }
-
- @Override
- protected Control createDialogArea(Composite parent) {
- Composite composite = (Composite)super.createDialogArea(parent);
- GridLayout layout = (GridLayout)composite.getLayout();
- layout.numColumns = 1;
-
- Composite textComposite = new Composite(composite, SWT.NONE);
- textComposite.setLayout(new GridLayout(2, false));
- textComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
- Label findLabel = new Label(textComposite, SWT.NONE);
- findLabel.setText(RichTextResources.findLabel_text);
- findText = new Text(textComposite, SWT.BORDER);
- GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
- gridData.widthHint = 200;
- findText.setLayoutData(gridData);
- findText.addModifyListener(new ModifyListener() {
-
- public void modifyText(ModifyEvent e) {
- if(findButton != null) {
- findButton.setEnabled(findText.getText().trim().length() > 0);
- }
- if(replaceAllButton != null && !findOnly) {
- replaceAllButton.setEnabled(findText.getText().trim().length() > 0);
- }
- }
- });
-
- Label replaceLabel = new Label(textComposite, SWT.NONE);
- replaceLabel.setText(RichTextResources.replaceLabel_text);
- replaceText = new Text(textComposite, SWT.BORDER);
- replaceText.setLayoutData(gridData);
- if(findOnly) {
- replaceText.setEnabled(false);
- } else {
- replaceText.addModifyListener(new ModifyListener() {
-
- public void modifyText(ModifyEvent e) {
- if(replaceButton != null) {
- replaceButton.setEnabled(findReplaceAction.getFoundMatch());
- }
- if(replaceFindButton != null) {
- replaceFindButton.setEnabled(findReplaceAction.getFoundMatch());
- }
- }
- });
- }
-
- Composite optionsComposite = new Composite(composite, SWT.NONE);
- optionsComposite.setLayout(new GridLayout(2, true));
- optionsComposite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
- Group directionGroup = new Group(optionsComposite, SWT.NONE);
- directionGroup.setText(RichTextResources.directionGroup_text);
- directionGroup.setLayout(new GridLayout(1, false));
- directionGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- searchForwardRadioButton = new Button(directionGroup, SWT.RADIO);
- searchForwardRadioButton.setText(RichTextResources.forwardRadioButton_text);
- searchForwardRadioButton.setSelection(true);
- searchBackwardRadioButton = new Button(directionGroup, SWT.RADIO);
- searchBackwardRadioButton.setText(RichTextResources.backwardRadioButton_text);
-
- Group optionsGroup = new Group(optionsComposite, SWT.NONE);
- optionsGroup.setText(RichTextResources.optionsGroup_text);
- optionsGroup.setLayout(new GridLayout(1, false));
- optionsGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
- caseSensitiveCheckbox = new Button(optionsGroup, SWT.CHECK);
- caseSensitiveCheckbox.setText(RichTextResources.caseSensitiveCheckbox_text);
- wholeWordCheckbox = new Button(optionsGroup, SWT.CHECK);
- wholeWordCheckbox.setText(RichTextResources.wholeWordCheckbox_text);
-
- statusLabel = new Label(composite, SWT.NONE);
- statusLabel.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
-
- super.getShell().setText(RichTextResources.findReplaceDialog_title);
-
- return composite;
- }
-
- @Override
- protected void createButtonsForButtonBar(Composite parent) {
- createButton(parent, IDialogConstants.CLIENT_ID + 1, RichTextResources.findButton_text, true);
- findButton = super.getButton(IDialogConstants.CLIENT_ID + 1);
- findButton.addSelectionListener(new SelectionListener() {
-
- public void widgetSelected(SelectionEvent event) {
- findReplaceAction.run(FindReplaceAction.FIND_TEXT, getFindText(), getReplaceText(), getMatchDirection(), getMatchOptions());
- if(!findOnly) {
- replaceButton.setEnabled(findReplaceAction.getFoundMatch());
- replaceFindButton.setEnabled(findReplaceAction.getFoundMatch());
- }
- if(findReplaceAction.getFoundMatch()) {
- statusLabel.setText(""); //$NON-NLS-1$
- } else {
- statusLabel.setText(RichTextResources.FindReplace_Status_noMatch_label);
- }
- findButton.setFocus();
- }
-
- public void widgetDefaultSelected(SelectionEvent e) {
- }
- });
-
- createButton(parent, IDialogConstants.CLIENT_ID + 2, RichTextResources.replaceButton_text, false);
- replaceButton = super.getButton(IDialogConstants.CLIENT_ID + 2);
- if(!findOnly) {
- replaceButton.addSelectionListener(new SelectionListener() {
-
- public void widgetSelected(SelectionEvent event) {
- findReplaceAction.run(FindReplaceAction.REPLACE_TEXT, getFindText(), getReplaceText(), getMatchDirection(), getMatchOptions());
- replaceButton.setFocus();
- }
-
- public void widgetDefaultSelected(SelectionEvent e) {
- }
- });
- }
-
- createButton(parent, IDialogConstants.CLIENT_ID + 3, RichTextResources.replaceFindButton_text, false);
- replaceFindButton = super.getButton(IDialogConstants.CLIENT_ID + 3);
- if(!findOnly) {
- replaceFindButton.addSelectionListener(new SelectionListener() {
-
- public void widgetSelected(SelectionEvent event) {
- findReplaceAction.run(FindReplaceAction.REPLACE_FIND_TEXT, getFindText(), getReplaceText(), getMatchDirection(), getMatchOptions());
- replaceButton.setEnabled(findReplaceAction.getFoundMatch());
- replaceFindButton.setEnabled(findReplaceAction.getFoundMatch());
- replaceFindButton.setFocus();
- }
-
- public void widgetDefaultSelected(SelectionEvent e) {
- }
- });
- }
-
- createButton(parent, IDialogConstants.CLIENT_ID + 4, RichTextResources.replaceallButton_text, false);
- replaceAllButton = super.getButton(IDialogConstants.CLIENT_ID + 4);
- if(!findOnly) {
- replaceAllButton.addSelectionListener(new SelectionListener() {
-
- public void widgetSelected(SelectionEvent event) {
- findReplaceAction.run(FindReplaceAction.REPLACE_ALL_TEXT, getFindText(), getReplaceText(), getMatchDirection(), getMatchOptions());
- replaceButton.setEnabled(false);
- replaceFindButton.setEnabled(false);
- replaceAllButton.setFocus();
- }
-
- public void widgetDefaultSelected(SelectionEvent e) {
- }
- });
- }
-
- // Create the Cancel button.
- createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
- cancelButton = super.getButton(IDialogConstants.CANCEL_ID);
-
- findButton.setEnabled(false);
- replaceButton.setEnabled(false);
- replaceFindButton.setEnabled(false);
- replaceAllButton.setEnabled(false);
- }
-
- /**
- * Gets the user specified find text.
- *
- * @return the find text
- */
- public String getFindText() {
- return findText.getText();
- }
-
- /**
- * Gets the user specified replace text.
- *
- * @return the replace text
- */
- public String getReplaceText() {
- return replaceText.getText();
- }
-
- /**
- * Gets the text match direction.
- *
- * @return <code>FIND_FORWARD</code> or <code>FIND_BACKWARD</code>
- */
- public int getMatchDirection() {
- return searchForwardRadioButton.getSelection() ? FindReplaceAction.FORWARD_MATCH : FindReplaceAction.BACKWARD_MATCH;
- }
-
- /**
- * Gets the text match options.
- *
- * @return the text match options
- */
- public int getMatchOptions() {
- int options = 0;
- if(wholeWordCheckbox.getSelection() == true) {
- options |= FindReplaceAction.WHOLE_WORD_MATCH;
- }
- if(caseSensitiveCheckbox.getSelection() == true) {
- options |= FindReplaceAction.CASE_SENSITIVE_MATCH;
- }
- return options;
- }
-
- /**
- * Checks the find only option.
- *
- * @return <code>true</code> if find only option is enabled
- */
- public boolean isFindOnly() {
- return findOnly;
- }
-
- /**
- * Sets the find only option.
- *
- * @param findOnly
- * ,
- * if <code>true</code>, enable the find only option
- */
- public void setFindOnly(boolean findOnly) {
- this.findOnly = findOnly;
- }
-
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/dialogs/package.html b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/dialogs/package.html
deleted file mode 100644
index 2f5dd13698e..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/dialogs/package.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<html>
-<body>
-Provides editing dialogs for the rich text control and editor.
-</body>
-</html> \ No newline at end of file
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/package.html b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/package.html
deleted file mode 100644
index 604ddc565c1..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/package.html
+++ /dev/null
@@ -1,5 +0,0 @@
-<html>
-<body>
-Provides the interfaces and implementation for the rich text control and editor.
-</body>
-</html> \ No newline at end of file
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/properties/RichTextEditorWithReferences.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/properties/RichTextEditorWithReferences.java
deleted file mode 100644
index 91560869061..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/properties/RichTextEditorWithReferences.java
+++ /dev/null
@@ -1,207 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010, 2014 CEA LIST 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:
- * Mickael ADAM (ALL4TEC) mickael.adam@all4tec.net - Initial API and Implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.properties;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.jface.viewers.LabelProvider;
-import org.eclipse.jface.window.Window;
-import org.eclipse.papyrus.infra.emf.utils.TextReferencesHelper;
-import org.eclipse.papyrus.infra.widgets.editors.TreeSelectorDialog;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextValueEditor;
-import org.eclipse.papyrus.infra.widgets.providers.EmptyContentProvider;
-import org.eclipse.papyrus.infra.widgets.providers.EncapsulatedContentProvider;
-import org.eclipse.papyrus.infra.widgets.providers.IStaticContentProvider;
-import org.eclipse.papyrus.views.properties.Activator;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.layout.GridData;
-import org.eclipse.swt.layout.GridLayout;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * A RichText editor with support for inserting references to EObjects (Via a TextReferenceHelper).
- *
- * @author MickaŰl ADAM
- */
-public class RichTextEditorWithReferences extends RichTextValueEditor implements SelectionListener {
-
- /** The buttons bar. */
- protected Composite buttonsBar;
-
- /** The insert reference button. */
- protected Button insertReferenceButton;
-
- /** The reference content provider. */
- protected IStaticContentProvider referenceContentProvider = EmptyContentProvider.instance;
-
- /** The label provider. */
- protected ILabelProvider labelProvider = new LabelProvider();
-
- /** The reference helper. */
- protected TextReferencesHelper referenceHelper;
-
- /**
- * Instantiates a new rich text editor with references.
- *
- * @param parent
- * the parent
- * @param style
- * the style
- */
- public RichTextEditorWithReferences(Composite parent, int style) {
- super(parent, style | SWT.MULTI);
- setLayout(new GridLayout(1, false));
- createButtonsBar(this);
- }
-
- /**
- * Gets the default layout data.
- *
- * @return the default layout data
- * @see org.eclipse.papyrus.infra.widgets.editors.AbstractEditor#getDefaultLayoutData()
- */
- @Override
- protected GridData getDefaultLayoutData() {
- GridData defaultData = super.getDefaultLayoutData();
- defaultData.horizontalSpan = 2;
- return defaultData;
- }
-
- /**
- * Creates the buttons bar.
- *
- * @param wrapper
- * the wrapper
- */
- protected void createButtonsBar(Composite wrapper) {
- buttonsBar = new Composite(wrapper, SWT.NONE);
- GridLayout buttonsBarLayout = new GridLayout(1, true);
- buttonsBarLayout.marginWidth = 0;
- buttonsBarLayout.marginHeight = 0;
- buttonsBar.setLayout(buttonsBarLayout);
- buttonsBar.setLayoutData(new GridData(SWT.FILL, SWT.BEGINNING, true, false));
- buttonsBar.moveAbove(label);
- createButtons(buttonsBar);
- }
-
- /**
- * Creates the buttons.
- *
- * @param buttonsBar
- * the buttons bar
- */
- protected void createButtons(Composite buttonsBar) {
- createInsertReferenceButton(buttonsBar);
- }
-
- /**
- * Creates the insert reference button.
- *
- * @param buttonsBar
- * the buttons bar
- */
- protected void createInsertReferenceButton(Composite buttonsBar) {
- insertReferenceButton = new Button(buttonsBar, SWT.PUSH);
- insertReferenceButton.setToolTipText("Insert a dynamic reference to an Element");
- insertReferenceButton.setImage(org.eclipse.papyrus.infra.widgets.Activator.getDefault().getImage("/icons/hyperlink_16x16.gif")); //$NON-NLS-1$
- insertReferenceButton.addSelectionListener(this);
- insertReferenceButton.setLayoutData(new GridData(SWT.END, SWT.BEGINNING, true, false));
- }
-
- /**
- * Sets the reference browser content provider.
- *
- * @param provider
- * the new reference browser content provider
- * @see org.eclipse.papyrus.infra.widgets.editors.richtext.RichTextEditor#setReferenceBrowserContentProvider(org.eclipse.papyrus.infra.widgets.providers.IStaticContentProvider)
- */
- public void setReferenceBrowserContentProvider(IStaticContentProvider provider) {
- this.referenceContentProvider = provider;
- }
-
- /**
- * Sets the text references helper.
- *
- * @param helper
- * the new text references helper
- */
- public void setTextReferencesHelper(TextReferencesHelper helper) {
- this.referenceHelper = helper;
- }
-
- /**
- * Widget selected event.
- *
- * @param event
- * the event
- * @see org.eclipse.swt.events.SelectionListener#widgetSelected(org.eclipse.swt.events.SelectionEvent)
- */
- public void widgetSelected(SelectionEvent event) {
- if(event.widget == insertReferenceButton) {
- insertReferenceAction();
- }
- }
-
- /**
- * Insert reference action.
- */
- protected void insertReferenceAction() {
- if(referenceHelper == null) {
- //The widget is not properly set. We cannot handle references
- Activator.log.warn("This widget is not properly configured. It cannot handle reference insertion");
- return;
- }
- TreeSelectorDialog dialog = new TreeSelectorDialog(getShell());
- dialog.setContentProvider(new EncapsulatedContentProvider(referenceContentProvider));
- dialog.setLabelProvider(labelProvider);
- if(dialog.open() == Window.OK) {
- Object[] result = dialog.getResult();
- if(result.length == 0) {
- return;
- }
- Object resultElement = result[0];
- if(!(resultElement instanceof EObject)) {
- return;
- }
- EObject objectToReference = (EObject)resultElement;
- String newText = referenceHelper.insertReference(objectToReference, "", 0);
- getRichTextEditor().addHTML(newText);
- commit();
- }
- }
-
- /**
- * Widget default selected. Do nothing.
- *
- * @param event
- * the event
- * @see org.eclipse.swt.events.SelectionListener#widgetDefaultSelected(org.eclipse.swt.events.SelectionEvent)
- */
- public void widgetDefaultSelected(SelectionEvent event) {
- //Nothing
- }
-
- /**
- * Sets the label provider.
- *
- * @param labelProvider
- * the new label provider
- * @see org.eclipse.papyrus.infra.widgets.editors.richtext.RichTextEditor#setLabelProvider(org.eclipse.jface.viewers.ILabelProvider)
- */
- public void setLabelProvider(ILabelProvider labelProvider) {
- this.labelProvider = labelProvider;
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/properties/RichTextWithReferences.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/properties/RichTextWithReferences.java
deleted file mode 100644
index bd5b58aac29..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/properties/RichTextWithReferences.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010, 2014 CEA LIST 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:
- * Mickael ADAM (ALL4TEC) mickael.adam@all4tec.net - Initial API and Implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.properties;
-
-import org.eclipse.jface.viewers.ILabelProvider;
-import org.eclipse.papyrus.infra.emf.utils.TextReferencesHelper;
-import org.eclipse.papyrus.infra.widgets.editors.ICommitListener;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.RichTextValueEditor;
-import org.eclipse.papyrus.infra.widgets.providers.IStaticContentProvider;
-import org.eclipse.papyrus.infra.properties.ui.widgets.AbstractPropertyEditor;
-import org.eclipse.swt.widgets.Composite;
-
-/**
- * A rich text property editor with support for TextReferences.
- *
- * @author Mickael ADAM
- *
- * @see {@link org.eclipse.papyrus.infra.emf.utils.TextReferencesHelper}
- */
-public class RichTextWithReferences extends AbstractPropertyEditor {
-
- /** The text references helper. */
- protected TextReferencesHelper textReferencesHelper;
-
- /** The editor. */
- protected RichTextEditorWithReferences editor;
-
- /**
- * Instantiates a new rich text with references.
- *
- * @param parent
- * the parent
- * @param style
- * the style
- */
- public RichTextWithReferences(Composite parent, int style) {
- super();
- setEditor(editor = new RichTextEditorWithReferences(parent, style));
- }
-
- /**
- * Sets the text references helper.
- *
- * @param helper
- * the new text references helper
- */
- public void setTextReferencesHelper(TextReferencesHelper helper) {
- this.textReferencesHelper = helper;
- editor.setTextReferencesHelper(helper);
- // installDropListener();
- }
-
- /**
- * Do binding.
- *
- * @see org.eclipse.papyrus.views.properties.widgets.AbstractPropertyEditor#doBinding()
- */
- @Override
- protected void doBinding() {
- super.doBinding();
- IStaticContentProvider provider = input.getContentProvider(propertyPath);
- if(provider != null) {
- editor.setReferenceBrowserContentProvider(provider);
- }
- if(getInputObservableValue() instanceof ICommitListener) {
- editor.addCommitListener((ICommitListener)getInputObservableValue());
- }
- }
-
- /**
- * Gets the rich text editor.
- *
- * @return the rich text editor
- */
- protected RichTextValueEditor getRichTextEditor() {
- return (RichTextValueEditor)valueEditor;
- }
-
- /**
- * Sets the content provider.
- *
- * @param provider
- * the new content provider
- */
- protected void setContentProvider(IStaticContentProvider provider) {
- editor.setReferenceBrowserContentProvider(provider);
- }
-
- /**
- * Sets the label provider.
- *
- * @param labelProvider
- * the new label provider
- */
- protected void setLabelProvider(ILabelProvider labelProvider) {
- editor.setLabelProvider(labelProvider);
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/properties/uml/CommentBodyRichTextEditor.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/properties/uml/CommentBodyRichTextEditor.java
deleted file mode 100644
index d51f8f2710e..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/properties/uml/CommentBodyRichTextEditor.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/*****************************************************************************
- * Copyright (c) 2010, 2014 CEA LIST 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:
- * Mickael ADAM (ALL4TEC) mickael.adam@all4tec.net - Initial API and Implementation
- *
- *****************************************************************************/
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.properties.uml;
-
-import java.util.Collections;
-
-import org.eclipse.emf.ecore.EObject;
-import org.eclipse.emf.ecore.resource.Resource;
-import org.eclipse.emf.ecore.resource.ResourceSet;
-import org.eclipse.papyrus.infra.ui.emf.providers.EMFGraphicalContentProvider;
-import org.eclipse.papyrus.infra.widgets.epf.richtext.extension.properties.RichTextWithReferences;
-import org.eclipse.papyrus.uml.tools.namereferences.NameReferencesHelper;
-import org.eclipse.papyrus.uml.tools.providers.SemanticUMLContentProvider;
-import org.eclipse.papyrus.uml.tools.util.UMLProviderHelper;
-import org.eclipse.papyrus.infra.properties.ui.creation.CreationContext;
-import org.eclipse.papyrus.infra.properties.ui.creation.EcorePropertyEditorFactory;
-import org.eclipse.papyrus.infra.properties.ui.modelelement.EMFModelElement;
-import org.eclipse.papyrus.infra.properties.ui.modelelement.ModelElement;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.uml2.uml.UMLPackage;
-
-/**
- * A Widget for editing the Rich Text Body of Comments.
- *
- * @author Micka´┐Żl ADAM
- */
-public class CommentBodyRichTextEditor extends RichTextWithReferences {
-
- /**
- * Instantiates a new comment body rich text editor.
- *
- * @param parent
- * the parent
- * @param style
- * the style
- */
- public CommentBodyRichTextEditor(Composite parent, int style) {
- super(parent, style);
- }
-
- /**
- * @see org.eclipse.papyrus.infra.widgets.epf.richtext.extension.properties.RichTextWithReferences#doBinding()
- *
- */
- @Override
- protected void doBinding() {
- super.doBinding();
- ModelElement element = getInput().getModelElement(getProperty());
- ResourceSet resourceSet = null;
- Resource baseResource = null;
- if(element instanceof EMFModelElement) {
- EMFModelElement emfElement = (EMFModelElement)element;
- EObject editedElement = emfElement.getSource();
- resourceSet = (emfElement.getDomain() == null) ? null : emfElement.getDomain().getResourceSet();
- baseResource = editedElement.eResource();
- if(baseResource == null) {
- // Editing an object that is not yet added to the model? Try to locate the creation context
- CreationContext creationContext = EcorePropertyEditorFactory.getCreationContext(editedElement, false);
- if(creationContext != null) {
- baseResource = ((EObject)creationContext.getCreationContextElement()).eResource();
- }
- }
- if(resourceSet != null) {
- SemanticUMLContentProvider semanticProvider = new SemanticUMLContentProvider(editedElement, UMLPackage.eINSTANCE.getComment_Body(), resourceSet);
- semanticProvider.setWantedMetaclasses(Collections.singletonList(UMLPackage.eINSTANCE.getNamedElement()));
- EMFGraphicalContentProvider provider = UMLProviderHelper.encapsulateProvider(semanticProvider, editedElement, UMLPackage.eINSTANCE.getComment_Body(), resourceSet);
- setContentProvider(provider);
- setLabelProvider(element.getLabelProvider(propertyPath));
- }
- }
- setTextReferencesHelper(new NameReferencesHelper(baseResource));
- }
-}
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/ui/ButtonContributionItem.java b/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/ui/ButtonContributionItem.java
deleted file mode 100644
index b09cb3385d0..00000000000
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/src/org/eclipse/papyrus/infra/widgets/epf/richtext/extension/ui/ButtonContributionItem.java
+++ /dev/null
@@ -1,218 +0,0 @@
-//------------------------------------------------------------------------------
-// Copyright (c) 2005, 2007 IBM 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:
-// IBM Corporation - initial implementation
-//------------------------------------------------------------------------------
-package org.eclipse.papyrus.infra.widgets.epf.richtext.extension.ui;
-
-import java.util.Collection;
-
-import org.eclipse.jface.action.ContributionItem;
-import org.eclipse.jface.preference.ColorSelector;
-import org.eclipse.swt.SWT;
-import org.eclipse.swt.events.DisposeEvent;
-import org.eclipse.swt.events.DisposeListener;
-import org.eclipse.swt.events.SelectionEvent;
-import org.eclipse.swt.events.SelectionListener;
-import org.eclipse.swt.graphics.Point;
-import org.eclipse.swt.graphics.RGB;
-import org.eclipse.swt.widgets.Button;
-import org.eclipse.swt.widgets.Composite;
-import org.eclipse.swt.widgets.Control;
-import org.eclipse.swt.widgets.CoolBar;
-import org.eclipse.swt.widgets.CoolItem;
-import org.eclipse.swt.widgets.ToolBar;
-import org.eclipse.swt.widgets.ToolItem;
-
-/**
- * Wraps a CCombo in a ContributionItem for use in a toolbar
- *
- * Does not use a ComboViewer because of tabbing issues - see bug 78885
- * @author Jeff Hardy
- *
- */
-public class ButtonContributionItem extends ContributionItem {
-
- protected Button button;
-
- protected String color;
-
- public String getColor() {
- return color;
- }
-
- public void setColor(String color) {
- this.color = color;
- }
-
- protected RGB colorValue;
-
- public RGB getColorValue() {
- return colorValue;
- }
-
- public void setColorValue(RGB colorValue) {
- this.colorValue = colorValue;
- }
-
- protected ColorSelector colorSelector;
-
- public ColorSelector getColorSelector() {
- return colorSelector;
- }
-
- public void setColorSelector(ColorSelector colorSelector) {
- this.colorSelector = colorSelector;
- }
-
- protected ToolItem toolItem;
-
- protected CoolItem coolItem;
-
- protected int style;
-
- protected Collection<String> input;
-
- protected String toolTipText;
-
- /**
- * Creates a new instance.
- */
- public ButtonContributionItem(int style) {
- super();
- this.style = style;
- }
-
- /*
- * @see org.eclipse.jface.action.ContributionItem#fill(org.eclipse.swt.widgets.ToolBar,
- * int)
- */
- public void fill(ToolBar parent, int index) {
- toolItem = new ToolItem(parent, SWT.SEPARATOR);
- Control box = createControl(parent);
- toolItem.setControl(box);
- Point preferredSize = button.computeSize(SWT.DEFAULT, SWT.DEFAULT, true);
- toolItem.setWidth(preferredSize.x);
- }
-
- /*
- * @see org.eclipse.jface.action.ContributionItem#fill(org.eclipse.swt.widgets.CoolBar,
- * int)
- */
- public void fill(CoolBar coolBar, int index) {
- Control box = createControl(coolBar);
-
- if (index >= 0) {
- coolItem = new CoolItem(coolBar, SWT.DROP_DOWN, index);
- } else {
- coolItem = new CoolItem(coolBar, SWT.DROP_DOWN);
- }
-
- // Set the back reference.
- coolItem.setData(this);
-
- // Add the toolbar to the CoolItem widget.
- coolItem.setControl(box);
-
- // If the toolbar item exists then adjust the size of the cool item.
- Point toolBarSize = box.computeSize(SWT.DEFAULT, SWT.DEFAULT);
-
- // Set the preferred size to the size of the toolbar plus trim.
- coolItem.setMinimumSize(toolBarSize);
- coolItem.setPreferredSize(toolBarSize);
- coolItem.setSize(toolBarSize);
- }
-
- /*
- * @see org.eclipse.jface.action.ContributionItem#fill(org.eclipse.swt.widgets.Composite)
- */
- public void fill(Composite parent) {
- createControl(parent);
- }
-
- /**
- * Creates the control.
- */
- protected Control createControl(final Composite parent) {
- colorSelector = new ColorSelector(parent);
- button = colorSelector.getButton();
- button.setToolTipText(toolTipText);
- button.setEnabled(true);
- button.addDisposeListener(
- new DisposeListener() {
- public void widgetDisposed(DisposeEvent event) {
- dispose();
- }
- });
-
-
- button.addSelectionListener(new SelectionListener() {
- public void widgetSelected(SelectionEvent e) {
-
- StringBuilder stringBuilder = new StringBuilder();
- stringBuilder.append("rgb(");
- stringBuilder.append(colorSelector.getColorValue().red);
- stringBuilder.append(",");
- stringBuilder.append(colorSelector.getColorValue().green);
- stringBuilder.append(",");
- stringBuilder.append(colorSelector.getColorValue().blue);
- stringBuilder.append(")");
- color = stringBuilder.toString();
- performSelectionChanged();
-
-
-
-
-
- }
-
- public void widgetDefaultSelected(SelectionEvent e) {
- // TODO Auto-generated method stub
-
- }
- });
-
- return button;
- }
-
-
-
-
-
-
-
-
-
- protected void performSelectionChanged() {
- }
-
-
- /*
- * @see org.eclipse.jface.action.ContributionItem#dispose()
- */
- public void dispose() {
- super.dispose();
- }
-
- public Button getButton() {
- return button;
- }
-
- public ToolItem getToolItem() {
- return toolItem;
- }
-
- public CoolItem getCoolItem() {
- return coolItem;
- }
-
- protected void performTyping() {
- // TODO Auto-generated method stub
-
- }
-}
diff --git a/features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/pom.xml b/features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/pom.xml
index f6d2e2adce9..50c74a55a73 100644
--- a/features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/pom.xml
+++ b/features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/pom.xml
@@ -44,4 +44,4 @@
</plugin>
</plugins>
</build>
-</project> \ No newline at end of file
+</project>
diff --git a/features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/.project b/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/.project
index 169c0084c83..fc5f387a718 100644
--- a/features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/.project
+++ b/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/.project
@@ -1,17 +1,17 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<projectDescription>
- <name>org.eclipse.papyrus.extra.epf.richtext.feature</name>
- <comment></comment>
- <projects>
- </projects>
- <buildSpec>
- <buildCommand>
- <name>org.eclipse.pde.FeatureBuilder</name>
- <arguments>
- </arguments>
- </buildCommand>
- </buildSpec>
- <natures>
- <nature>org.eclipse.pde.FeatureNature</nature>
- </natures>
-</projectDescription>
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.eclipse.papyrus.extra.richtext.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/about.html b/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/about.html
index 82d49bf5f81..d35d5aed64c 100644
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/about.html
+++ b/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/about.html
@@ -1,28 +1,28 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
-<title>About</title>
-</head>
-<body lang="EN-US">
-<h2>About This Content</h2>
-
-<p>June 5, 2007</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
-and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
-
-</body>
-</html>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
+<title>About</title>
+</head>
+<body lang="EN-US">
+<h2>About This Content</h2>
+
+<p>June 5, 2007</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
+and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>
+
+</body>
+</html>
diff --git a/features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/build.properties b/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/build.properties
index cff2bd50c57..cff2bd50c57 100644
--- a/features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/build.properties
+++ b/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/build.properties
diff --git a/features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/epl-v10.html b/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/epl-v10.html
index cb1073a4bad..cb1073a4bad 100644
--- a/features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/epl-v10.html
+++ b/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/epl-v10.html
diff --git a/features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/feature.properties b/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/feature.properties
index e6487ce778d..ec69ad12ab9 100644
--- a/features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/feature.properties
+++ b/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/feature.properties
@@ -1,7 +1,7 @@
# NLS_MESSAGEFORMAT_VAR
# "featureName" property - name of the feature
-featureName=Papyrus EPF RichText (Incubation)
+featureName=Papyrus RichText (Incubation)
# "providerName" property - name of the company that provides the feature
providerName=Eclipse Modeling Project
diff --git a/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/feature.xml b/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/feature.xml
new file mode 100644
index 00000000000..894ddcc5775
--- /dev/null
+++ b/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/feature.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.eclipse.papyrus.extra.richtext.feature"
+ label="%featureName"
+ version="1.2.0.qualifier"
+ provider-name="%providerName">
+
+ <copyright url="http://www.eclipse.org/legal/epl-v10.html">
+ Copyright (c) 2013 CEA LIST.
+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.
+ </copyright>
+
+ <license url="%licenseURL">
+ %license
+ </license>
+
+ <plugin
+ id="org.eclipse.papyrus.infra.widgets.richtext"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"/>
+
+ <plugin
+ id="org.eclipse.nebula.widgets.richtext"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
diff --git a/features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/license.html b/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/license.html
index 0fd3dd13aac..c3d34c3c21e 100644
--- a/features/papyrus-extra-features/org.eclipse.papyrus.extra.epf.richtext.feature/license.html
+++ b/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/license.html
@@ -1,107 +1,107 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
-<head>
-<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
-<title>Eclipse Foundation Software User Agreement</title>
-</head>
-
-<body lang="EN-US">
-<h2>Eclipse Foundation Software User Agreement</h2>
-<p>April 9, 2014</p>
-
-<h3>Usage Of Content</h3>
-
-<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
- (COLLECTIVELY &quot;CONTENT&quot;). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
- CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
- OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
- NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
- CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p>
-
-<h3>Applicable Licenses</h3>
-
-<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation 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 provided with this Content and is also 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>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code
- repository (&quot;Repository&quot;) in software modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p>
-
-<ul>
- <li>Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;).</li>
- <li>Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java&trade; ARchive) in a directory named &quot;plugins&quot;.</li>
- <li>A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named &quot;features&quot;. Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of the Plug-ins
- and/or Fragments associated with that Feature.</li>
- <li>Features may also include other Features (&quot;Included Features&quot;). Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</li>
-</ul>
-
-<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and
-Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;). Abouts and Feature Licenses may be located in any directory of a Download or Module
-including, but not limited to the following locations:</p>
-
-<ul>
- <li>The top-level (root) directory</li>
- <li>Plug-in and Fragment directories</li>
- <li>Inside Plug-ins and Fragments packaged as JARs</li>
- <li>Sub-directories of the directory named &quot;src&quot; of certain Plug-ins</li>
- <li>Feature directories</li>
-</ul>
-
-<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license (&quot;Feature Update License&quot;) during the
-installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
-inform you where you can locate them. Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot; found within a Feature.
-Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
-that directory.</p>
-
-<p>THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
-OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p>
-
-<ul>
- <li>Eclipse Distribution License Version 1.0 (available at <a href="http://www.eclipse.org/licenses/edl-v10.html">http://www.eclipse.org/licenses/edl-v1.0.html</a>)</li>
- <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li>
- <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li>
- <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li>
- <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li>
-</ul>
-
-<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
-contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p>
-
-
-<h3>Use of Provisioning Technology</h3>
-
-<p>The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse
- Update Manager (&quot;Provisioning Technology&quot;) for the purpose of allowing users to install software, documentation, information and/or
- other materials (collectively &quot;Installable Software&quot;). This capability is provided with the intent of allowing such users to
- install, extend and update Eclipse-based products. Information about packaging Installable Software is available at <a
- href="http://eclipse.org/equinox/p2/repository_packaging.html">http://eclipse.org/equinox/p2/repository_packaging.html</a>
- (&quot;Specification&quot;).</p>
-
-<p>You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the
- applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology
- in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the
- Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:</p>
-
-<ol>
- <li>A series of actions may occur (&quot;Provisioning Process&quot;) in which a user may execute the Provisioning Technology
- on a machine (&quot;Target Machine&quot;) with the intent of installing, extending or updating the functionality of an Eclipse-based
- product.</li>
- <li>During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be
- accessed and copied to the Target Machine.</li>
- <li>Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable
- Software (&quot;Installable Software Agreement&quot;) and such Installable Software Agreement shall be accessed from the Target
- Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern
- the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such
- indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.</li>
-</ol>
-
-<h3>Cryptography</h3>
-
-<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
- another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
- possession, or use, and re-export of encryption software, to see if this is permitted.</p>
-
-<p><small>Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.</small></p>
-</body>
-</html>
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+<title>Eclipse Foundation Software User Agreement</title>
+</head>
+
+<body lang="EN-US">
+<h2>Eclipse Foundation Software User Agreement</h2>
+<p>April 9, 2014</p>
+
+<h3>Usage Of Content</h3>
+
+<p>THE ECLIPSE FOUNDATION MAKES AVAILABLE SOFTWARE, DOCUMENTATION, INFORMATION AND/OR OTHER MATERIALS FOR OPEN SOURCE PROJECTS
+ (COLLECTIVELY &quot;CONTENT&quot;). USE OF THE CONTENT IS GOVERNED BY THE TERMS AND CONDITIONS OF THIS AGREEMENT AND/OR THE TERMS AND
+ CONDITIONS OF LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW. BY USING THE CONTENT, YOU AGREE THAT YOUR USE
+ OF THE CONTENT IS GOVERNED BY THIS AGREEMENT AND/OR THE TERMS AND CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR
+ NOTICES INDICATED OR REFERENCED BELOW. IF YOU DO NOT AGREE TO THE TERMS AND CONDITIONS OF THIS AGREEMENT AND THE TERMS AND
+ CONDITIONS OF ANY APPLICABLE LICENSE AGREEMENTS OR NOTICES INDICATED OR REFERENCED BELOW, THEN YOU MAY NOT USE THE CONTENT.</p>
+
+<h3>Applicable Licenses</h3>
+
+<p>Unless otherwise indicated, all Content made available by the Eclipse Foundation 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 provided with this Content and is also 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>Content includes, but is not limited to, source code, object code, documentation and other files maintained in the Eclipse Foundation source code
+ repository (&quot;Repository&quot;) in software modules (&quot;Modules&quot;) and made available as downloadable archives (&quot;Downloads&quot;).</p>
+
+<ul>
+ <li>Content may be structured and packaged into modules to facilitate delivering, extending, and upgrading the Content. Typical modules may include plug-ins (&quot;Plug-ins&quot;), plug-in fragments (&quot;Fragments&quot;), and features (&quot;Features&quot;).</li>
+ <li>Each Plug-in or Fragment may be packaged as a sub-directory or JAR (Java&trade; ARchive) in a directory named &quot;plugins&quot;.</li>
+ <li>A Feature is a bundle of one or more Plug-ins and/or Fragments and associated material. Each Feature may be packaged as a sub-directory in a directory named &quot;features&quot;. Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of the Plug-ins
+ and/or Fragments associated with that Feature.</li>
+ <li>Features may also include other Features (&quot;Included Features&quot;). Within a Feature, files named &quot;feature.xml&quot; may contain a list of the names and version numbers of Included Features.</li>
+</ul>
+
+<p>The terms and conditions governing Plug-ins and Fragments should be contained in files named &quot;about.html&quot; (&quot;Abouts&quot;). The terms and conditions governing Features and
+Included Features should be contained in files named &quot;license.html&quot; (&quot;Feature Licenses&quot;). Abouts and Feature Licenses may be located in any directory of a Download or Module
+including, but not limited to the following locations:</p>
+
+<ul>
+ <li>The top-level (root) directory</li>
+ <li>Plug-in and Fragment directories</li>
+ <li>Inside Plug-ins and Fragments packaged as JARs</li>
+ <li>Sub-directories of the directory named &quot;src&quot; of certain Plug-ins</li>
+ <li>Feature directories</li>
+</ul>
+
+<p>Note: if a Feature made available by the Eclipse Foundation is installed using the Provisioning Technology (as defined below), you must agree to a license (&quot;Feature Update License&quot;) during the
+installation process. If the Feature contains Included Features, the Feature Update License should either provide you with the terms and conditions governing the Included Features or
+inform you where you can locate them. Feature Update Licenses may be found in the &quot;license&quot; property of files named &quot;feature.properties&quot; found within a Feature.
+Such Abouts, Feature Licenses, and Feature Update Licenses contain the terms and conditions (or references to such terms and conditions) that govern your use of the associated Content in
+that directory.</p>
+
+<p>THE ABOUTS, FEATURE LICENSES, AND FEATURE UPDATE LICENSES MAY REFER TO THE EPL OR OTHER LICENSE AGREEMENTS, NOTICES OR TERMS AND CONDITIONS. SOME OF THESE
+OTHER LICENSE AGREEMENTS MAY INCLUDE (BUT ARE NOT LIMITED TO):</p>
+
+<ul>
+ <li>Eclipse Distribution License Version 1.0 (available at <a href="http://www.eclipse.org/licenses/edl-v10.html">http://www.eclipse.org/licenses/edl-v1.0.html</a>)</li>
+ <li>Common Public License Version 1.0 (available at <a href="http://www.eclipse.org/legal/cpl-v10.html">http://www.eclipse.org/legal/cpl-v10.html</a>)</li>
+ <li>Apache Software License 1.1 (available at <a href="http://www.apache.org/licenses/LICENSE">http://www.apache.org/licenses/LICENSE</a>)</li>
+ <li>Apache Software License 2.0 (available at <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li>
+ <li>Mozilla Public License Version 1.1 (available at <a href="http://www.mozilla.org/MPL/MPL-1.1.html">http://www.mozilla.org/MPL/MPL-1.1.html</a>)</li>
+</ul>
+
+<p>IT IS YOUR OBLIGATION TO READ AND ACCEPT ALL SUCH TERMS AND CONDITIONS PRIOR TO USE OF THE CONTENT. If no About, Feature License, or Feature Update License is provided, please
+contact the Eclipse Foundation to determine what terms and conditions govern that particular Content.</p>
+
+
+<h3>Use of Provisioning Technology</h3>
+
+<p>The Eclipse Foundation makes available provisioning software, examples of which include, but are not limited to, p2 and the Eclipse
+ Update Manager (&quot;Provisioning Technology&quot;) for the purpose of allowing users to install software, documentation, information and/or
+ other materials (collectively &quot;Installable Software&quot;). This capability is provided with the intent of allowing such users to
+ install, extend and update Eclipse-based products. Information about packaging Installable Software is available at <a
+ href="http://eclipse.org/equinox/p2/repository_packaging.html">http://eclipse.org/equinox/p2/repository_packaging.html</a>
+ (&quot;Specification&quot;).</p>
+
+<p>You may use Provisioning Technology to allow other parties to install Installable Software. You shall be responsible for enabling the
+ applicable license agreements relating to the Installable Software to be presented to, and accepted by, the users of the Provisioning Technology
+ in accordance with the Specification. By using Provisioning Technology in such a manner and making it available in accordance with the
+ Specification, you further acknowledge your agreement to, and the acquisition of all necessary rights to permit the following:</p>
+
+<ol>
+ <li>A series of actions may occur (&quot;Provisioning Process&quot;) in which a user may execute the Provisioning Technology
+ on a machine (&quot;Target Machine&quot;) with the intent of installing, extending or updating the functionality of an Eclipse-based
+ product.</li>
+ <li>During the Provisioning Process, the Provisioning Technology may cause third party Installable Software or a portion thereof to be
+ accessed and copied to the Target Machine.</li>
+ <li>Pursuant to the Specification, you will provide to the user the terms and conditions that govern the use of the Installable
+ Software (&quot;Installable Software Agreement&quot;) and such Installable Software Agreement shall be accessed from the Target
+ Machine in accordance with the Specification. Such Installable Software Agreement must inform the user of the terms and conditions that govern
+ the Installable Software and must solicit acceptance by the end user in the manner prescribed in such Installable Software Agreement. Upon such
+ indication of agreement by the user, the provisioning Technology will complete installation of the Installable Software.</li>
+</ol>
+
+<h3>Cryptography</h3>
+
+<p>Content may contain encryption software. The country in which you are currently may have restrictions on the import, possession, and use, and/or re-export to
+ another country, of encryption software. BEFORE using any encryption software, please check the country's laws, regulations and policies concerning the import,
+ possession, or use, and re-export of encryption software, to see if this is permitted.</p>
+
+<p><small>Java and all Java-based trademarks are trademarks of Oracle Corporation in the United States, other countries, or both.</small></p>
+</body>
+</html>
diff --git a/extraplugins/epf-richtext/pom.xml b/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/pom.xml
index 09e9f341e20..7a567a9df21 100644
--- a/extraplugins/epf-richtext/pom.xml
+++ b/features/papyrus-extra-features/org.eclipse.papyrus.extra.richtext.feature/pom.xml
@@ -5,14 +5,10 @@
<artifactId>org.eclipse.papyrus.extra.releng</artifactId>
<groupId>org.eclipse.papyrus</groupId>
<version>1.2.0-SNAPSHOT</version>
- <relativePath>../../releng/extra</relativePath>
+ <relativePath>../../../releng/extra</relativePath>
</parent>
<groupId>org.eclipse.papyrus</groupId>
- <artifactId>org.eclipse.papyrus.infra.widgets.epf</artifactId>
+ <artifactId>org.eclipse.papyrus.extra.richtext.feature</artifactId>
<version>1.2.0-SNAPSHOT</version>
- <packaging>pom</packaging>
- <modules>
- <module>org.eclipse.papyrus.infra.widgets.epf.richtext.extension</module>
- </modules>
-
+ <packaging>eclipse-feature</packaging>
</project> \ No newline at end of file
diff --git a/features/papyrus-main-features/org.eclipse.papyrus.uml.nattable.feature/feature.xml b/features/papyrus-main-features/org.eclipse.papyrus.uml.nattable.feature/feature.xml
index 496fcaaf4a8..df552ef02c1 100644
--- a/features/papyrus-main-features/org.eclipse.papyrus.uml.nattable.feature/feature.xml
+++ b/features/papyrus-main-features/org.eclipse.papyrus.uml.nattable.feature/feature.xml
@@ -1,4 +1,9 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?><feature id="org.eclipse.papyrus.uml.nattable.feature" label="Papyrus UML Table - New Version" provider-name="Eclipse Modeling Project" version="2.0.0.qualifier">
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.eclipse.papyrus.uml.nattable.feature"
+ label="Papyrus UML Table - New Version"
+ version="2.0.0.qualifier"
+ provider-name="Eclipse Modeling Project">
<copyright url="http://www.eclipse.org/legal/epl-v10.html">
Copyright (c) 2012 CEA LIST
@@ -13,20 +18,67 @@ http://www.eclipse.org/legal/epl-v10.html
%license
</license>
- <plugin download-size="0" id="org.eclipse.papyrus.uml.nattable" install-size="0" unpack="false" version="0.0.0"/>
+ <plugin
+ id="org.eclipse.papyrus.uml.nattable"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
- <plugin download-size="0" id="org.eclipse.papyrus.uml.nattable.generic" install-size="0" unpack="false" version="0.0.0"/>
+ <plugin
+ id="org.eclipse.papyrus.uml.nattable.generic"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
- <plugin download-size="0" id="org.eclipse.papyrus.uml.nattable.generic.config" install-size="0" unpack="false" version="0.0.0"/>
+ <plugin
+ id="org.eclipse.papyrus.uml.nattable.generic.config"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
- <plugin download-size="0" id="org.eclipse.papyrus.uml.nattable.menu" install-size="0" unpack="false" version="0.0.0"/>
+ <plugin
+ id="org.eclipse.papyrus.uml.nattable.menu"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
- <plugin download-size="0" id="org.eclipse.papyrus.uml.nattable.xtext.integration" install-size="0" unpack="false" version="0.0.0"/>
+ <plugin
+ id="org.eclipse.papyrus.uml.nattable.xtext.integration"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
- <plugin download-size="0" id="org.eclipse.papyrus.uml.nattable.clazz.config" install-size="0" unpack="false" version="0.0.0"/>
+ <plugin
+ id="org.eclipse.papyrus.uml.nattable.clazz.config"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
- <plugin download-size="0" id="org.eclipse.papyrus.uml.nattable.xtext.valuespecification" install-size="0" unpack="false" version="0.0.0"/>
+ <plugin
+ id="org.eclipse.papyrus.uml.nattable.xtext.valuespecification"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
- <plugin download-size="0" id="org.eclipse.papyrus.uml.nattable.stereotype.display" install-size="0" unpack="false" version="0.0.0"/>
+ <plugin
+ id="org.eclipse.papyrus.uml.nattable.stereotype.display"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
-</feature> \ No newline at end of file
+ <plugin
+ id="org.eclipse.papyrus.uml.nattable.richtext"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
diff --git a/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/META-INF/MANIFEST.MF b/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/META-INF/MANIFEST.MF
index bb486e86d50..56cde3b6bb4 100644
--- a/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/META-INF/MANIFEST.MF
+++ b/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/META-INF/MANIFEST.MF
@@ -8,11 +8,13 @@ Require-Bundle: org.eclipse.core.databinding;bundle-version="[1.6.0,2.0.0)";visi
com.ibm.icu;bundle-version="4.4.2",
org.eclipse.papyrus.infra.services.labelprovider;bundle-version="[1.2.0,2.0.0)";visibility:=reexport,
org.eclipse.jface.text;bundle-version="[3.11.0,4.0.0)";visibility:=reexport,
- org.eclipse.emf.ecore;bundle-version="[2.12.0,3.0.0)";visibility:=reexport
+ org.eclipse.emf.ecore;bundle-version="[2.12.0,3.0.0)";visibility:=reexport,
+ org.eclipse.nebula.widgets.richtext;bundle-version="1.0.0"
Export-Package: org.eclipse.papyrus.infra.widgets,
org.eclipse.papyrus.infra.widgets.creation,
org.eclipse.papyrus.infra.widgets.databinding,
org.eclipse.papyrus.infra.widgets.editors,
+ org.eclipse.papyrus.infra.widgets.editors.richtext,
org.eclipse.papyrus.infra.widgets.messages,
org.eclipse.papyrus.infra.widgets.providers,
org.eclipse.papyrus.infra.widgets.selectors,
diff --git a/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/build.properties b/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/build.properties
index 8080cf00176..66e1ae538a3 100644
--- a/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/build.properties
+++ b/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/build.properties
@@ -5,7 +5,8 @@ bin.includes = META-INF/,\
icons/,\
plugin.properties,\
about.html,\
- plugin.xml
+ plugin.xml,\
+ files/
output..=bin/
src.includes = about.html
source..=src/
diff --git a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/files/dictionary.txt b/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/files/dictionary.txt
index 9dda718328b..fef2d774538 100644
--- a/extraplugins/epf-richtext/org.eclipse.papyrus.infra.widgets.epf.richtext.extension/files/dictionary.txt
+++ b/plugins/infra/ui/org.eclipse.papyrus.infra.widgets/files/dictionary.txt
@@ -1,138111 +1,138111 @@
-abs
-acos
-acosh
-addcslashes
-addslashes
-aggregate
-aggregate_info
-aggregate_methods
-aggregate_methods_by_list
-aggregate_methods_by_regexp
-aggregate_properties
-aggregate_properties_by_list
-aggregate_properties_by_regexp
-aggregation_info
-apache_child_terminate
-apache_get_modules
-apache_get_version
-apache_getenv
-apache_lookup_uri
-apache_note
-apache_request_headers
-apache_response_headers
-apache_setenv
-array
-array_change_key_case
-array_chunk
-array_combine
-array_count_values
-array_diff
-array_diff_assoc
-array_diff_uassoc
-array_fill
-array_filter
-array_flip
-array_intersect
-array_intersect_assoc
-array_key_exists
-array_keys
-array_map
-array_merge
-array_merge_recursive
-array_multisort
-array_pad
-array_pop
-array_push
-array_rand
-array_reduce
-array_reverse
-array_search
-array_shift
-array_slice
-array_splice
-array_sum
-array_udiff
-array_udiff_assoc
-array_udiff_uassoc
-array_unique
-array_unshift
-array_values
-array_walk
-arrayiterator::current
-arrayiterator::key
-arrayiterator::next
-arrayiterator::rewind
-arrayiterator::seek
-arrayiterator::valid
-arrayobject::__construct
-arrayobject::append
-arrayobject::count
-arrayobject::getiterator
-arsort
-ascii2ebcdic
-asin
-asinh
-asort
-aspell_check
-aspell_check_raw
-aspell_new
-aspell_suggest
-assert
-assert_options
-atan
-atan2
-atanh
-base64_decode
-base64_encode
-base_convert
-basename
-bcadd
-bccomp
-bcdiv
-bcmod
-bcmul
-bcpow
-bcpowmod
-bcscale
-bcsqrt
-bcsub
-bin2hex
-bind_textdomain_codeset
-bindec
-bindtextdomain
-bzclose
-bzcompress
-bzdecompress
-bzerrno
-bzerror
-bzerrstr
-bzflush
-bzopen
-bzread
-bzwrite
-cal_days_in_month
-cal_from_jd
-cal_info
-cal_to_jd
-call_user_func
-call_user_func_array
-call_user_method
-call_user_method_array
-ccvs_add
-ccvs_auth
-ccvs_command
-ccvs_count
-ccvs_delete
-ccvs_done
-ccvs_init
-ccvs_lookup
-ccvs_new
-ccvs_report
-ccvs_return
-ccvs_reverse
-ccvs_sale
-ccvs_status
-ccvs_textvalue
-ccvs_void
-ceil
-chdir
-checkdate
-checkdnsrr
-chgrp
-chmod
-chop
-chown
-chr
-chroot
-chunk_split
-class_exists
-clearstatcache
-closedir
-closelog
-collection
-append
-assign
-assignelem
-free
-getelem
-max
-size
-trim
-com
-com_addref
-com_get
-com_invoke
-com_isenum
-com_load
-com_load_typelib
-com_propget
-com_propput
-com_propset
-com_release
-com_set
-compact
-connection_aborted
-connection_status
-connection_timeout
-constant
-convert_cyr_string
-copy
-cos
-cosh
-count
-count_chars
-cpdf_add_annotation
-cpdf_add_outline
-cpdf_arc
-cpdf_begin_text
-cpdf_circle
-cpdf_clip
-cpdf_close
-cpdf_closepath
-cpdf_closepath_fill_stroke
-cpdf_closepath_stroke
-cpdf_continue_text
-cpdf_curveto
-cpdf_end_text
-cpdf_fill
-cpdf_fill_stroke
-cpdf_finalize
-cpdf_finalize_page
-cpdf_global_set_document_limits
-cpdf_import_jpeg
-cpdf_lineto
-cpdf_moveto
-cpdf_newpath
-cpdf_open
-cpdf_output_buffer
-cpdf_page_init
-cpdf_place_inline_image
-cpdf_rect
-cpdf_restore
-cpdf_rlineto
-cpdf_rmoveto
-cpdf_rotate
-cpdf_rotate_text
-cpdf_save
-cpdf_save_to_file
-cpdf_scale
-cpdf_set_action_url
-cpdf_set_char_spacing
-cpdf_set_creator
-cpdf_set_current_page
-cpdf_set_font
-cpdf_set_font_directories
-cpdf_set_font_map_file
-cpdf_set_horiz_scaling
-cpdf_set_keywords
-cpdf_set_leading
-cpdf_set_page_animation
-cpdf_set_subject
-cpdf_set_text_matrix
-cpdf_set_text_pos
-cpdf_set_text_rendering
-cpdf_set_text_rise
-cpdf_set_title
-cpdf_set_viewer_preferences
-cpdf_set_word_spacing
-cpdf_setdash
-cpdf_setflat
-cpdf_setgray
-cpdf_setgray_fill
-cpdf_setgray_stroke
-cpdf_setlinecap
-cpdf_setlinejoin
-cpdf_setlinewidth
-cpdf_setmiterlimit
-cpdf_setrgbcolor
-cpdf_setrgbcolor_fill
-cpdf_setrgbcolor_stroke
-cpdf_show
-cpdf_show_xy
-cpdf_stringwidth
-cpdf_stroke
-cpdf_text
-cpdf_translate
-crack_check
-crack_closedict
-crack_getlastmessage
-crack_opendict
-crc32
-create_function
-crypt
-ctype_alnum
-ctype_alpha
-ctype_cntrl
-ctype_digit
-ctype_graph
-ctype_lower
-ctype_print
-ctype_punct
-ctype_space
-ctype_upper
-ctype_xdigit
-curl_close
-curl_errno
-curl_error
-curl_exec
-curl_getinfo
-curl_init
-curl_multi_add_handle
-curl_multi_close
-curl_multi_exec
-curl_multi_getcontent
-curl_multi_info_read
-curl_multi_init
-curl_multi_remove_handle
-curl_multi_select
-curl_setopt
-curl_version
-current
-cybercash_base64_decode
-cybercash_base64_encode
-cybercash_decr
-cybercash_encr
-cyrus_authenticate
-cyrus_bind
-cyrus_close
-cyrus_connect
-cyrus_query
-cyrus_unbind
-date
-dba_close
-dba_delete
-dba_exists
-dba_fetch
-dba_firstkey
-dba_handlers
-dba_insert
-dba_key_split
-dba_list
-dba_nextkey
-dba_open
-dba_optimize
-dba_popen
-dba_replace
-dba_sync
-dbase_add_record
-dbase_close
-dbase_create
-dbase_delete_record
-dbase_get_header_info
-dbase_get_record
-dbase_get_record_with_names
-dbase_numfields
-dbase_numrecords
-dbase_open
-dbase_pack
-dbase_replace_record
-dblist
-dbmclose
-dbmdelete
-dbmexists
-dbmfetch
-dbmfirstkey
-dbminsert
-dbmnextkey
-dbmopen
-dbmreplace
-dbplus_add
-dbplus_aql
-dbplus_chdir
-dbplus_close
-dbplus_curr
-dbplus_errcode
-dbplus_errno
-dbplus_find
-dbplus_first
-dbplus_flush
-dbplus_freealllocks
-dbplus_freelock
-dbplus_freerlocks
-dbplus_getlock
-dbplus_getunique
-dbplus_info
-dbplus_last
-dbplus_lockrel
-dbplus_next
-dbplus_open
-dbplus_prev
-dbplus_rchperm
-dbplus_rcreate
-dbplus_rcrtexact
-dbplus_rcrtlike
-dbplus_resolve
-dbplus_restorepos
-dbplus_rkeys
-dbplus_ropen
-dbplus_rquery
-dbplus_rrename
-dbplus_rsecindex
-dbplus_runlink
-dbplus_rzap
-dbplus_savepos
-dbplus_setindex
-dbplus_setindexbynumber
-dbplus_sql
-dbplus_tcl
-dbplus_tremove
-dbplus_undo
-dbplus_undoprepare
-dbplus_unlockrel
-dbplus_unselect
-dbplus_update
-dbplus_xlockrel
-dbplus_xunlockrel
-dbx_close
-dbx_compare
-dbx_connect
-dbx_error
-dbx_escape_string
-dbx_fetch_row
-dbx_query
-dbx_sort
-dcgettext
-dcngettext
-deaggregate
-debug_backtrace
-debug_print_backtrace
-debugger_off
-debugger_on
-decbin
-dechex
-decoct
-define
-define_syslog_variables
-defined
-deg2rad
-delete
-descriptor
-free
-dgettext
-die
-dio_close
-dio_fcntl
-dio_open
-dio_read
-dio_seek
-dio_stat
-dio_tcsetattr
-dio_truncate
-dio_write
-dir
-directoryiterator
-__construct
-current
-fileatime
-filectime
-filegroup
-fileinode
-filemtime
-fileowner
-fileperms
-filesize
-filetype
-getfilename
-getpath
-getpathname
-hasmore
-isdir
-isdot
-isexecutable
-isfile
-islink
-isreadable
-iswritable
-key
-next
-rewind
-dirname
-disk_free_space
-disk_total_space
-diskfreespace
-dl
-dngettext
-dns_check_record
-dns_get_mx
-dns_get_record
-domattribute
-name
-domattribute
-specified
-value
-domdocument
-add_root
-create_attribute
-create_cdata_section
-create_comment
-create_element
-create_element_ns
-create_entity_reference
-create_processing_instruction
-create_text_node
-doctype
-document_element
-dump_file
-dump_mem
-get_element_by_id
-get_elements_by_tagname
-html_dump_mem
-xinclude
-domdocumenttype
-entities
-internal_subset
-name
-notations
-public_id
-system_id
-domelement
-get_attribute
-get_attribute_node
-get_elements_by_tagname
-has_attribute
-remove_attribute
-set_attribute
-tagname
-domnode
-add_namespace
-append_child
-append_sibling
-attributes
-child_nodes
-clone_node
-dump_node
-first_child
-get_content
-has_attributes
-has_child_nodes
-insert_before
-is_blank_node
-last_child
-next_sibling
-node_name
-node_type
-node_value
-owner_document
-parent_node
-prefix
-previous_sibling
-remove_child
-replace_child
-replace_node
-set_content
-set_name
-set_namespace
-unlink_node
-domprocessinginstruction
-data
-target
-domxml_new_doc
-domxml_open_file
-domxml_open_mem
-domxml_version
-domxml_xmltree
-domxml_xslt_stylesheet
-domxml_xslt_stylesheet_doc
-domxml_xslt_stylesheet_file
-domxsltstylesheet
-process
-result_dump_file
-result_dump_mem
-dotnet_load
-doubleval
-each
-easter_date
-easter_days
-ebcdic2ascii
-echo
-empty
-end
-ereg
-ereg_replace
-eregi
-eregi_replace
-error_log
-error_reporting
-escapeshellarg
-escapeshellcmd
-eval
-exec
-exif_imagetype
-exif_read_data
-exif_thumbnail
-exit
-exp
-explode
-expm1
-extension_loaded
-extract
-ezmlm_hash
-fam_cancel_monitor
-fam_close
-fam_monitor_collection
-fam_monitor_directory
-fam_monitor_file
-fam_next_event
-fam_open
-fam_pending
-fam_resume_monitor
-fam_suspend_monitor
-fbsql_affected_rows
-fbsql_autocommit
-fbsql_blob_size
-fbsql_change_user
-fbsql_clob_size
-fbsql_close
-fbsql_commit
-fbsql_connect
-fbsql_create_blob
-fbsql_create_clob
-fbsql_create_db
-fbsql_data_seek
-fbsql_database
-fbsql_database_password
-fbsql_db_query
-fbsql_db_status
-fbsql_drop_db
-fbsql_errno
-fbsql_error
-fbsql_fetch_array
-fbsql_fetch_assoc
-fbsql_fetch_field
-fbsql_fetch_lengths
-fbsql_fetch_object
-fbsql_fetch_row
-fbsql_field_flags
-fbsql_field_len
-fbsql_field_name
-fbsql_field_seek
-fbsql_field_table
-fbsql_field_type
-fbsql_free_result
-fbsql_get_autostart_info
-fbsql_hostname
-fbsql_insert_id
-fbsql_list_dbs
-fbsql_list_fields
-fbsql_list_tables
-fbsql_next_result
-fbsql_num_fields
-fbsql_num_rows
-fbsql_password
-fbsql_pconnect
-fbsql_query
-fbsql_read_blob
-fbsql_read_clob
-fbsql_result
-fbsql_rollback
-fbsql_select_db
-fbsql_set_lob_mode
-fbsql_set_password
-fbsql_set_transaction
-fbsql_start_db
-fbsql_stop_db
-fbsql_tablename
-fbsql_username
-fbsql_warnings
-fclose
-fdf_add_doc_javascript
-fdf_add_template
-fdf_close
-fdf_create
-fdf_enum_values
-fdf_errno
-fdf_error
-fdf_get_ap
-fdf_get_attachment
-fdf_get_encoding
-fdf_get_file
-fdf_get_flags
-fdf_get_opt
-fdf_get_status
-fdf_get_value
-fdf_get_version
-fdf_header
-fdf_next_field_name
-fdf_open
-fdf_open_string
-fdf_remove_item
-fdf_save
-fdf_save_string
-fdf_set_ap
-fdf_set_encoding
-fdf_set_file
-fdf_set_flags
-fdf_set_javascript_action
-fdf_set_opt
-fdf_set_status
-fdf_set_submit_form_action
-fdf_set_target_frame
-fdf_set_value
-fdf_set_version
-feof
-fflush
-fgetc
-fgetcsv
-fgets
-fgetss
-file
-file_exists
-file_get_contents
-file_put_contents
-fileatime
-filectime
-filegroup
-fileinode
-filemtime
-fileowner
-fileperms
-filepro
-filepro_fieldcount
-filepro_fieldname
-filepro_fieldtype
-filepro_fieldwidth
-filepro_retrieve
-filepro_rowcount
-filesize
-filetype
-floatval
-flock
-floor
-flush
-fmod
-fnmatch
-fopen
-fpassthru
-fprintf
-fputs
-fread
-frenchtojd
-fribidi_log2vis
-fscanf
-fseek
-fsockopen
-fstat
-ftell
-ftok
-ftp_alloc
-ftp_cdup
-ftp_chdir
-ftp_chmod
-ftp_close
-ftp_connect
-ftp_delete
-ftp_exec
-ftp_fget
-ftp_fput
-ftp_get
-ftp_get_option
-ftp_login
-ftp_mdtm
-ftp_mkdir
-ftp_nb_continue
-ftp_nb_fget
-ftp_nb_fput
-ftp_nb_get
-ftp_nb_put
-ftp_nlist
-ftp_pasv
-ftp_put
-ftp_pwd
-ftp_quit
-ftp_raw
-ftp_rawlist
-ftp_rename
-ftp_rmdir
-ftp_set_option
-ftp_site
-ftp_size
-ftp_ssl_connect
-ftp_systype
-ftruncate
-func_get_arg
-func_get_args
-func_num_args
-function_exists
-fwrite
-gd_info
-get_browser
-get_cfg_var
-get_class
-get_class_methods
-get_class_vars
-get_current_user
-get_declared_classes
-get_declared_interfaces
-get_defined_constants
-get_defined_functions
-get_defined_vars
-get_extension_funcs
-get_headers
-get_html_translation_table
-get_include_path
-get_included_files
-get_loaded_extensions
-get_magic_quotes_gpc
-get_magic_quotes_runtime
-get_meta_tags
-get_object_vars
-get_parent_class
-get_required_files
-get_resource_type
-getallheaders
-getcwd
-getdate
-getenv
-gethostbyaddr
-gethostbyname
-gethostbynamel
-getimagesize
-getlastmod
-getmxrr
-getmygid
-getmyinode
-getmypid
-getmyuid
-getopt
-getprotobyname
-getprotobynumber
-getrandmax
-getrusage
-getservbyname
-getservbyport
-gettext
-gettimeofday
-gettype
-glob
-gmdate
-gmmktime
-gmp_abs
-gmp_add
-gmp_and
-gmp_clrbit
-gmp_cmp
-gmp_com
-gmp_div
-gmp_div_q
-gmp_div_qr
-gmp_div_r
-gmp_divexact
-gmp_fact
-gmp_gcd
-gmp_gcdext
-gmp_hamdist
-gmp_init
-gmp_intval
-gmp_invert
-gmp_jacobi
-gmp_legendre
-gmp_mod
-gmp_mul
-gmp_neg
-gmp_or
-gmp_perfect_square
-gmp_popcount
-gmp_pow
-gmp_powm
-gmp_prob_prime
-gmp_random
-gmp_scan0
-gmp_scan1
-gmp_setbit
-gmp_sign
-gmp_sqrt
-gmp_sqrtrem
-gmp_strval
-gmp_sub
-gmp_xor
-gmstrftime
-gregoriantojd
-gzclose
-gzcompress
-gzdeflate
-gzencode
-gzeof
-gzfile
-gzgetc
-gzgets
-gzgetss
-gzinflate
-gzopen
-gzpassthru
-gzputs
-gzread
-gzrewind
-gzseek
-gztell
-gzuncompress
-gzwrite
-header
-headers_list
-headers_sent
-hebrev
-hebrevc
-hexdec
-highlight_file
-highlight_string
-html_entity_decode
-htmlentities
-htmlspecialchars
-http_build_query
-hw_api
-checkin
-checkout
-children
-content
-copy
-dbstat
-dcstat
-dstanchors
-dstofsrcanchors
-find
-ftstat
-hwstat
-identify
-info
-insert
-insertanchor
-insertcollection
-insertdocument
-link
-lock
-move
-object
-objectbyanchor
-parents
-remove
-replace
-setcommitedversion
-srcanchors
-srcsofdst
-unlock
-user
-userlist
-hw_api_attribute
-key
-langdepvalue
-value
-values
-hw_api_content
-mimetype
-read
-hw_api_error
-count
-reason
-assign
-attreditable
-count
-insert
-remove
-title
-value
-description
-type
-hw_array2objrec
-hw_changeobject
-hw_children
-hw_childrenobj
-hw_close
-hw_connect
-hw_connection_info
-hw_cp
-hw_deleteobject
-hw_docbyanchor
-hw_docbyanchorobj
-hw_document_attributes
-hw_document_bodytag
-hw_document_content
-hw_document_setcontent
-hw_document_size
-hw_dummy
-hw_edittext
-hw_error
-hw_errormsg
-hw_free_document
-hw_getanchors
-hw_getanchorsobj
-hw_getandlock
-hw_getchildcoll
-hw_getchildcollobj
-hw_getchilddoccoll
-hw_getchilddoccollobj
-hw_getobject
-hw_getobjectbyquery
-hw_getobjectbyquerycoll
-hw_getobjectbyquerycollobj
-hw_getobjectbyqueryobj
-hw_getparents
-hw_getparentsobj
-hw_getrellink
-hw_getremote
-hw_getremotechildren
-hw_getsrcbydestobj
-hw_gettext
-hw_getusername
-hw_identify
-hw_incollections
-hw_info
-hw_inscoll
-hw_insdoc
-hw_insertanchors
-hw_insertdocument
-hw_insertobject
-hw_mapid
-hw_modifyobject
-hw_mv
-hw_new_document
-hw_objrec2array
-hw_output_document
-hw_pconnect
-hw_pipedocument
-hw_root
-hw_setlinkroot
-hw_stat
-hw_unlock
-hw_who
-hwapi_hgcsp
-hypot
-ibase_add_user
-ibase_affected_rows
-ibase_backup
-ibase_blob_add
-ibase_blob_cancel
-ibase_blob_close
-ibase_blob_create
-ibase_blob_echo
-ibase_blob_get
-ibase_blob_import
-ibase_blob_info
-ibase_blob_open
-ibase_close
-ibase_commit
-ibase_commit_ret
-ibase_connect
-ibase_db_info
-ibase_delete_user
-ibase_drop_db
-ibase_errcode
-ibase_errmsg
-ibase_execute
-ibase_fetch_assoc
-ibase_fetch_object
-ibase_fetch_row
-ibase_field_info
-ibase_free_event_handler
-ibase_free_query
-ibase_free_result
-ibase_gen_id
-ibase_maintain_db
-ibase_modify_user
-ibase_name_result
-ibase_num_fields
-ibase_num_params
-ibase_param_info
-ibase_pconnect
-ibase_prepare
-ibase_query
-ibase_restore
-ibase_rollback
-ibase_rollback_ret
-ibase_server_info
-ibase_service_attach
-ibase_service_detach
-ibase_set_event_handler
-ibase_timefmt
-ibase_trans
-ibase_wait_event
-iconv
-iconv_get_encoding
-iconv_mime_decode
-iconv_mime_decode_headers
-iconv_mime_encode
-iconv_set_encoding
-iconv_strlen
-iconv_strpos
-iconv_strrpos
-iconv_substr
-idate
-ifx_affected_rows
-ifx_blobinfile_mode
-ifx_byteasvarchar
-ifx_close
-ifx_connect
-ifx_copy_blob
-ifx_create_blob
-ifx_create_char
-ifx_do
-ifx_error
-ifx_errormsg
-ifx_fetch_row
-ifx_fieldproperties
-ifx_fieldtypes
-ifx_free_blob
-ifx_free_char
-ifx_free_result
-ifx_get_blob
-ifx_get_char
-ifx_getsqlca
-ifx_htmltbl_result
-ifx_nullformat
-ifx_num_fields
-ifx_num_rows
-ifx_pconnect
-ifx_prepare
-ifx_query
-ifx_textasvarchar
-ifx_update_blob
-ifx_update_char
-ifxus_close_slob
-ifxus_create_slob
-ifxus_free_slob
-ifxus_open_slob
-ifxus_read_slob
-ifxus_seek_slob
-ifxus_tell_slob
-ifxus_write_slob
-ignore_user_abort
-image2wbmp
-image_type_to_mime_type
-imagealphablending
-imageantialias
-imagearc
-imagechar
-imagecharup
-imagecolorallocate
-imagecolorallocatealpha
-imagecolorat
-imagecolorclosest
-imagecolorclosestalpha
-imagecolorclosesthwb
-imagecolordeallocate
-imagecolorexact
-imagecolorexactalpha
-imagecolormatch
-imagecolorresolve
-imagecolorresolvealpha
-imagecolorset
-imagecolorsforindex
-imagecolorstotal
-imagecolortransparent
-imagecopy
-imagecopymerge
-imagecopymergegray
-imagecopyresampled
-imagecopyresized
-imagecreate
-imagecreatefromgd
-imagecreatefromgd2
-imagecreatefromgd2part
-imagecreatefromgif
-imagecreatefromjpeg
-imagecreatefrompng
-imagecreatefromstring
-imagecreatefromwbmp
-imagecreatefromxbm
-imagecreatefromxpm
-imagecreatetruecolor
-imagedashedline
-imagedestroy
-imageellipse
-imagefill
-imagefilledarc
-imagefilledellipse
-imagefilledpolygon
-imagefilledrectangle
-imagefilltoborder
-imagefilter
-imagefontheight
-imagefontwidth
-imageftbbox
-imagefttext
-imagegammacorrect
-imagegd
-imagegd2
-imagegif
-imageinterlace
-imageistruecolor
-imagejpeg
-imagelayereffect
-imageline
-imageloadfont
-imagepalettecopy
-imagepng
-imagepolygon
-imagepsbbox
-imagepscopyfont
-imagepsencodefont
-imagepsextendfont
-imagepsfreefont
-imagepsloadfont
-imagepsslantfont
-imagepstext
-imagerectangle
-imagerotate
-imagesavealpha
-imagesetbrush
-imagesetpixel
-imagesetstyle
-imagesetthickness
-imagesettile
-imagestring
-imagestringup
-imagesx
-imagesy
-imagetruecolortopalette
-imagettfbbox
-imagettftext
-imagetypes
-imagewbmp
-imagexbm
-imap_8bit
-imap_alerts
-imap_append
-imap_base64
-imap_binary
-imap_body
-imap_bodystruct
-imap_check
-imap_clearflag_full
-imap_close
-imap_createmailbox
-imap_delete
-imap_deletemailbox
-imap_errors
-imap_expunge
-imap_fetch_overview
-imap_fetchbody
-imap_fetchheader
-imap_fetchstructure
-imap_get_quota
-imap_get_quotaroot
-imap_getacl
-imap_getmailboxes
-imap_getsubscribed
-imap_header
-imap_headerinfo
-imap_headers
-imap_last_error
-imap_list
-imap_listmailbox
-imap_listscan
-imap_listsubscribed
-imap_lsub
-imap_mail
-imap_mail_compose
-imap_mail_copy
-imap_mail_move
-imap_mailboxmsginfo
-imap_mime_header_decode
-imap_msgno
-imap_num_msg
-imap_num_recent
-imap_open
-imap_ping
-imap_qprint
-imap_renamemailbox
-imap_reopen
-imap_rfc822_parse_adrlist
-imap_rfc822_parse_headers
-imap_rfc822_write_address
-imap_scanmailbox
-imap_search
-imap_set_quota
-imap_setacl
-imap_setflag_full
-imap_sort
-imap_status
-imap_subscribe
-imap_thread
-imap_timeout
-imap_uid
-imap_undelete
-imap_unsubscribe
-imap_utf7_decode
-imap_utf7_encode
-imap_utf8
-implode
-import_request_variables
-in_array
-ingres_autocommit
-ingres_close
-ingres_commit
-ingres_connect
-ingres_fetch_array
-ingres_fetch_object
-ingres_fetch_row
-ingres_field_length
-ingres_field_name
-ingres_field_nullable
-ingres_field_precision
-ingres_field_scale
-ingres_field_type
-ingres_num_fields
-ingres_num_rows
-ingres_pconnect
-ingres_query
-ingres_rollback
-ini_alter
-ini_get
-ini_get_all
-ini_restore
-ini_set
-intval
-ip2long
-iptcembed
-iptcparse
-ircg_channel_mode
-ircg_disconnect
-ircg_fetch_error_msg
-ircg_get_username
-ircg_html_encode
-ircg_ignore_add
-ircg_ignore_del
-ircg_invite
-ircg_is_conn_alive
-ircg_join
-ircg_kick
-ircg_list
-ircg_lookup_format_messages
-ircg_lusers
-ircg_msg
-ircg_nick
-ircg_nickname_escape
-ircg_nickname_unescape
-ircg_notice
-ircg_oper
-ircg_part
-ircg_pconnect
-ircg_register_format_messages
-ircg_set_current
-ircg_set_file
-ircg_set_on_die
-ircg_topic
-ircg_who
-ircg_whois
-is_a
-is_array
-is_bool
-is_callable
-is_dir
-is_double
-is_executable
-is_file
-is_finite
-is_float
-is_infinite
-is_int
-is_integer
-is_link
-is_long
-is_nan
-is_null
-is_numeric
-is_object
-is_readable
-is_real
-is_resource
-is_scalar
-is_soap_fault
-is_string
-is_subclass_of
-is_uploaded_file
-is_writable
-is_writeable
-isset
-java_last_exception_clear
-java_last_exception_get
-jddayofweek
-jdmonthname
-jdtofrench
-jdtogregorian
-jdtojewish
-jdtojulian
-jdtounix
-jewishtojd
-join
-jpeg2wbmp
-juliantojd
-key
-krsort
-ksort
-lcg_value
-ldap_8859_to_t61
-ldap_add
-ldap_bind
-ldap_close
-ldap_compare
-ldap_connect
-ldap_count_entries
-ldap_delete
-ldap_dn2ufn
-ldap_err2str
-ldap_errno
-ldap_error
-ldap_explode_dn
-ldap_first_attribute
-ldap_first_entry
-ldap_first_reference
-ldap_free_result
-ldap_get_attributes
-ldap_get_dn
-ldap_get_entries
-ldap_get_option
-ldap_get_values
-ldap_get_values_len
-ldap_list
-ldap_mod_add
-ldap_mod_del
-ldap_mod_replace
-ldap_modify
-ldap_next_attribute
-ldap_next_entry
-ldap_next_reference
-ldap_parse_reference
-ldap_parse_result
-ldap_read
-ldap_rename
-ldap_search
-ldap_set_option
-ldap_set_rebind_proc
-ldap_sort
-ldap_start_tls
-ldap_t61_to_8859
-ldap_unbind
-levenshtein
-link
-linkinfo
-list
-lob
-append
-close
-eof
-erase
-export
-flush
-getbuffering
-import
-load
-read
-rewind
-save
-seek
-setbuffering
-size
-tell
-truncate
-write
-writetemporary
-localeconv
-localtime
-log
-log10
-log1p
-long2ip
-lstat
-ltrim