You are viewing a plain text version of this content. The canonical link for it is here.
Posted to doxia-commits@maven.apache.org by vs...@apache.org on 2008/04/07 15:18:37 UTC
svn commit: r645502 [1/4] - in
/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui:
./ icons/ icons/dtool16/ icons/etool16/ lib/ src/ src/main/ src/main/java/
src/main/java/org/ src/main/java/org/apache...
Author: vsiveton
Date: Mon Apr 7 06:18:18 2008
New Revision: 645502
URL: http://svn.apache.org/viewvc?rev=645502&view=rev
Log:
DOXIA-233: Create an Eclipse plugin to edit Doxia files
o added common
Added:
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/.classpath (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/.project (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/build.properties (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/back.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/doxia.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/AddLink.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/AddTable.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/Bold.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/Indent.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/Italic.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/Monospaced.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/AddLink.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/AddTable.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/Bold.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/Indent.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/Italic.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/Monospaced.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/forward.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/refresh.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/stop.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/lib/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/plugin.properties (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/plugin.xml (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/AbstractDoxiaPlugin.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/ColorManager.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/CommonPlugin.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/CommonPluginMessages.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/DoxiaWrapper.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractActionDelegate.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractBoldAction.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractItalicAction.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractLinkAction.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractMonospacedAction.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractStyleAction.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractTableAction.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/BoldActionDelegate.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/IActionConstants.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/ItalicActionDelegate.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/LinkActionDelegate.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/MonospacedActionDelegate.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/TableActionDelegate.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/composites/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/composites/BrowserComposite.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/contentassist/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/contentassist/AbstractContentAssistProcessor.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/dialogs/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/dialogs/AbstractDialog.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/dialogs/AddLinkDialog.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/dialogs/AddTableDialog.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/editors/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/editors/AbstractEditorContributor.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/editors/AbstractMultiPageEditorPart.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/editors/AbstractTextMultiPageEditorPart.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/editors/AbstractXmlMultiPageEditorPart.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/editors/text/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/editors/text/AbstractTextDocumentProvider.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/editors/text/AbstractTextEditor.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/editors/text/AbstractTextSourceViewerConfiguration.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/editors/text/source/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/editors/text/source/TextPairMatcher.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/editors/xml/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/editors/xml/AbstractXmlEditor.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/rules/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/rules/AbstractTextPartitionScanner.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/rules/AbstractTextScanner.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/wizards/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/wizards/AbstractWizard.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/wizards/AbstractWizardPage.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/resources/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/resources/org/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/resources/org/apache/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/resources/org/apache/maven/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/resources/org/apache/maven/doxia/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/resources/org/apache/maven/doxia/ide/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/common/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/common/ui/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/common/ui/CommonPluginMessages.properties (with props)
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/.classpath
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/.classpath?rev=645502&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/.classpath (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/.classpath Mon Apr 7 06:18:18 2008
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="src" path="src/main/resources"/>
+ <classpathentry exported="true" kind="lib" path="lib/apache-doxia-1.0-SNAPSHOT-jar-with-dependencies.jar"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="target/classes"/>
+</classpath>
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/.classpath
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/.classpath
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/.project
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/.project?rev=645502&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/.project (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/.project Mon Apr 7 06:18:18 2008
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.apache.maven.doxia.ide.eclipse.common.ui</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>
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/.project
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/.project
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/build.properties
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/build.properties?rev=645502&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/build.properties (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/build.properties Mon Apr 7 06:18:18 2008
@@ -0,0 +1,8 @@
+source.. = src/main/java/,\
+ src/main/resources
+output.. = target/classes/
+bin.includes = .,\
+ plugin.properties,\
+ plugin.xml,\
+ lib/apache-doxia-1.0-SNAPSHOT-jar-with-dependencies.jar,\
+ target/classes/
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/build.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/build.properties
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/back.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/back.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/back.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/doxia.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/doxia.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/doxia.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/AddLink.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/AddLink.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/AddLink.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/AddTable.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/AddTable.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/AddTable.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/Bold.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/Bold.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/Bold.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/Indent.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/Indent.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/Indent.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/Italic.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/Italic.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/Italic.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/Monospaced.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/Monospaced.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/dtool16/Monospaced.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/AddLink.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/AddLink.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/AddLink.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/AddTable.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/AddTable.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/AddTable.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/Bold.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/Bold.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/Bold.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/Indent.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/Indent.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/Indent.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/Italic.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/Italic.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/Italic.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/Monospaced.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/Monospaced.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/etool16/Monospaced.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/forward.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/forward.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/forward.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/refresh.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/refresh.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/refresh.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/stop.gif
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/stop.gif?rev=645502&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/icons/stop.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/plugin.properties
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/plugin.properties?rev=645502&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/plugin.properties (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/plugin.properties Mon Apr 7 06:18:18 2008
@@ -0,0 +1,41 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+#
+# Plugin
+#
+plugin.name=Apache Doxia Core Plug-in
+plugin.provider.name=Apache Maven
+
+#
+# Doxia Actions
+#
+action.bold.label=&Bold
+action.bold.tooltip=Bold
+action.italic.label=&Italic
+action.italic.tooltip=Italic
+action.monospaced.label=&Monospaced
+action.monospaced.tooltip=Monospaced
+action.table.label=&Table
+action.table.tooltip=Table
+action.link.label=&Link
+action.link.tooltip=Link
+
+#
+# Doxia popupMenus
+#
+menu.styles=&Styles
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/plugin.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/plugin.properties
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/plugin.xml
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/plugin.xml?rev=645502&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/plugin.xml (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/plugin.xml Mon Apr 7 06:18:18 2008
@@ -0,0 +1,207 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements. See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership. The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied. See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+<?eclipse version="3.2"?>
+<plugin
+ id="org.apache.maven.doxia.ide.eclipse.common.ui"
+ name="%plugin.name"
+ version="1.0"
+ provider-name="%plugin.provider.name"
+ class="org.apache.maven.doxia.ide.eclipse.common.ui.CommonPlugin">
+
+ <runtime>
+ <library name="lib/apache-doxia-1.0-SNAPSHOT-jar-with-dependencies.jar">
+ <export
+ name="*">
+ </export>
+ </library>
+ <library name=".">
+ <export
+ name="org.apache.maven.doxia.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.cli.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.document.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.document.io.xpp3.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.ide.eclipse.common.ui.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.ide.eclipse.common.ui.actions.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.ide.eclipse.common.ui.composites.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.ide.eclipse.common.ui.contentassist.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.ide.eclipse.common.ui.dialogs.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.ide.eclipse.common.ui.editors.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.ide.eclipse.common.ui.editors.text.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.ide.eclipse.common.ui.editors.text.source.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.ide.eclipse.common.ui.editors.xml.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.ide.eclipse.common.ui.rules.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.ide.eclipse.common.ui.wizards.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.index.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.logging.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.macro.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.macro.manager.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.macro.snippet.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.macro.toc.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.markup.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.apt.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.confluence.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.confluence.parser.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.confluence.parser.list.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.confluence.parser.table.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.docbook.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.fml.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.fml.model.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.fo.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.itext.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.latex.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.rtf.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.site.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.site.manager.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.twiki.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.twiki.parser.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.xdoc.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.xhtml.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.module.xhtml.decoration.render.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.parser.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.parser.manager.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.sink.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.util.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.wrapper.*">
+ </export>
+ </library>
+ </runtime>
+
+ <requires>
+ <import plugin="org.eclipse.ui"/>
+ <import plugin="org.eclipse.core.resources"/>
+ <import plugin="org.eclipse.core.runtime"/>
+ <import plugin="org.eclipse.jface.text"/>
+ <import plugin="org.eclipse.ui.editors"/>
+ <import plugin="org.eclipse.ui.ide"/>
+ <import plugin="org.eclipse.wst.sse.core"/>
+ <import plugin="org.eclipse.wst.sse.ui"/>
+ <import plugin="org.eclipse.wst.xml.core"/>
+ <import plugin="org.eclipse.wst.xml.ui"/>
+ <import plugin="org.eclipse.wst.common.ui"/>
+ </requires>
+
+ <extension
+ id="doxiaide.product"
+ point="org.eclipse.core.runtime.products">
+ <product
+ application="org.eclipse.ui.ide.workbench"
+ description="The defacto IDE for Doxia development"
+ name="Doxia Eclipse IDE">
+ <property
+ name="windowImages"
+ value="icons/doxia.gif"/>
+ <property
+ name="appName"
+ value="DoxiaIDE"/>
+ </product>
+ </extension>
+</plugin>
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/plugin.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/plugin.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/AbstractDoxiaPlugin.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/AbstractDoxiaPlugin.java?rev=645502&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/AbstractDoxiaPlugin.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/AbstractDoxiaPlugin.java Mon Apr 7 06:18:18 2008
@@ -0,0 +1,223 @@
+package org.apache.maven.doxia.ide.eclipse.common.ui;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.net.MalformedURLException;
+import java.net.URL;
+
+import org.eclipse.core.runtime.Assert;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.resource.ImageRegistry;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+
+/**
+ * Abstract Doxia Eclipse Plugin.
+ *
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ * @since 1.0
+ */
+public abstract class AbstractDoxiaPlugin
+ extends AbstractUIPlugin
+{
+ // Images
+ public static final String IMG_DOXIA = "icons/doxia.gif";
+
+ public static final String IMG_BROWSER_FORWARD = "icons/forward.gif";
+
+ public static final String IMG_BROWSER_BACK = "icons/back.gif";
+
+ public static final String IMG_BROWSER_STOP = "icons/stop.gif";
+
+ public static final String IMG_BROWSER_REFRESH = "icons/refresh.gif";
+
+ public static final String IMG_BOLD = "icons/etool16/Bold.gif";
+
+ public static final String IMG_BOLD_DISABLED = "icons/dtool16/Bold.gif";
+
+ public static final String IMG_ITALIC = "icons/etool16/Italic.gif";
+
+ public static final String IMG_ITALIC_DISABLED = "icons/dtool16/Italic.gif";
+
+ public static final String IMG_MONOSPACED = "icons/etool16/Monospaced.gif";
+
+ public static final String IMG_MONOSPACED_DISABLED = "icons/dtool16/Monospaced.gif";
+
+ public static final String IMG_LINK = "icons/etool16/AddLink.gif";
+
+ public static final String IMG_LINK_DISABLED = "icons/dtool16/AddLink.gif";
+
+ public static final String IMG_TABLE = "icons/etool16/AddTable.gif";
+
+ public static final String IMG_TABLE_DISABLED = "icons/dtool16/AddTable.gif";
+
+ /** The shared instance */
+ private static ImageRegistry IMAGE_REGISTRY;
+
+ private static AbstractDoxiaPlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public AbstractDoxiaPlugin()
+ {
+ plugin = this;
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static AbstractDoxiaPlugin getDefault()
+ {
+ return plugin;
+ }
+
+ @Override
+ protected void initializeImageRegistry( ImageRegistry registry )
+ {
+ if ( registry != null )
+ {
+ registry.put( IMG_DOXIA, registerImage( IMG_DOXIA ) );
+
+ registry.put( IMG_BROWSER_FORWARD, registerImage( IMG_BROWSER_FORWARD ) );
+ registry.put( IMG_BROWSER_BACK, registerImage( IMG_BROWSER_BACK ) );
+ registry.put( IMG_BROWSER_STOP, registerImage( IMG_BROWSER_STOP ) );
+ registry.put( IMG_BROWSER_REFRESH, registerImage( IMG_BROWSER_REFRESH ) );
+
+ registry.put( IMG_BOLD, registerImage( IMG_BOLD ) );
+ registry.put( IMG_BOLD_DISABLED, registerImage( IMG_BOLD_DISABLED ) );
+ registry.put( IMG_ITALIC, registerImage( IMG_ITALIC ) );
+ registry.put( IMG_ITALIC_DISABLED, registerImage( IMG_ITALIC_DISABLED ) );
+ registry.put( IMG_MONOSPACED, registerImage( IMG_MONOSPACED ) );
+ registry.put( IMG_MONOSPACED_DISABLED, registerImage( IMG_MONOSPACED_DISABLED ) );
+ registry.put( IMG_LINK, registerImage( IMG_LINK ) );
+ registry.put( IMG_LINK_DISABLED, registerImage( IMG_LINK_DISABLED ) );
+ registry.put( IMG_TABLE, registerImage( IMG_TABLE ) );
+ registry.put( IMG_TABLE_DISABLED, registerImage( IMG_TABLE_DISABLED ) );
+
+ IMAGE_REGISTRY = registry;
+ }
+ }
+
+ /**
+ * @return the plugin ID
+ */
+ public static String getPluginId()
+ {
+ return getDefault().getBundle().getSymbolicName();
+ }
+
+ public static Image getImage( String key )
+ {
+ Assert.isNotNull( IMAGE_REGISTRY, "IMAGE_REGISTRY is not initialized." );
+
+ return IMAGE_REGISTRY.get( key );
+ }
+
+ // ----------------------------------------------------------------------
+ // Private methods
+ // ----------------------------------------------------------------------
+
+ private ImageDescriptor registerImage( String path )
+ {
+ Assert.isNotNull( path, "path is not initialized." );
+
+ ImageDescriptor imageDescriptor = null;
+ try
+ {
+ URL url = new URL( getBundle().getEntry( "/" ), path );
+
+ imageDescriptor = ImageDescriptor.createFromURL( url );
+ }
+ catch ( MalformedURLException e )
+ {
+ log( e.getMessage(), e, IStatus.ERROR, true );
+ }
+
+ Assert.isNotNull( imageDescriptor, "imageDescriptor is not initialized." );
+
+ return imageDescriptor;
+ }
+
+ // ----------------------------------------------------------------------
+ // Utilities methods
+ // ----------------------------------------------------------------------
+
+ public static void log( String message, Throwable e, int severity, boolean tellUser )
+ {
+ final IStatus status = new Status( severity, getPluginId(), severity, message, e );
+
+ plugin.getLog().log( status );
+
+ if ( status.getException() != null )
+ {
+ status.getException().printStackTrace( System.err );
+ }
+
+ if ( tellUser )
+ {
+ Display.getDefault().syncExec( new Runnable()
+ {
+ /** {@inheritDoc} */
+ public void run()
+ {
+ MessageDialog.openError( null, " Error in " + getPluginId(), status.getMessage() );
+ }
+ } );
+ }
+ }
+
+ public static void logInfo( String message, Throwable e )
+ {
+ log( message, e, IStatus.INFO, false );
+ }
+
+ public static void logInfo( String message, Throwable e, boolean tellUser )
+ {
+ log( message, e, IStatus.INFO, tellUser );
+ }
+
+ public static void logError( String message, Throwable e )
+ {
+ log( message, e, IStatus.ERROR, false );
+ }
+
+ public static void logError( String message, Throwable e, boolean tellUser )
+ {
+ log( message, e, IStatus.ERROR, tellUser );
+ }
+
+ public static void logWarning( String message, Throwable e )
+ {
+ log( message, e, IStatus.WARNING, false );
+ }
+
+ public static void logWarning( String message, Throwable e, boolean tellUser )
+ {
+ log( message, e, IStatus.WARNING, tellUser );
+ }
+}
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/AbstractDoxiaPlugin.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/AbstractDoxiaPlugin.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/ColorManager.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/ColorManager.java?rev=645502&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/ColorManager.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/ColorManager.java Mon Apr 7 06:18:18 2008
@@ -0,0 +1,95 @@
+package org.apache.maven.doxia.ide.eclipse.common.ui;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+
+import org.eclipse.swt.graphics.Color;
+import org.eclipse.swt.graphics.RGB;
+import org.eclipse.swt.widgets.Display;
+
+/**
+ * This class provides several colors mainly uses by the <code>IToken</code> classes.
+ *
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ * @since 1.0
+ */
+public class ColorManager
+{
+ /** green color */
+ public static final RGB COMMENT = new RGB( 63, 127, 95 );
+
+ /** red color */
+ public static final RGB KEYWORD = new RGB( 127, 0, 85 );
+
+ /** black color */
+ public static final RGB STRING = new RGB( 0, 0, 0 );
+
+ /** blue color */
+ public static final RGB LINK = new RGB( 0, 0, 255 );
+
+ /** cached map */
+ protected Map<RGB, Color> colorMap = new HashMap<RGB, Color>( 5 );
+
+ /** singleton pattern */
+ private static final ColorManager INSTANCE = new ColorManager();
+
+ private ColorManager()
+ {
+ // nop
+ }
+
+ public static ColorManager getInstance()
+ {
+ return INSTANCE;
+ }
+
+ /**
+ * Disposes of the operating system resources associated with the color map.
+ */
+ public void dispose()
+ {
+ Iterator<Color> e = colorMap.values().iterator();
+ while ( e.hasNext() )
+ {
+ e.next().dispose();
+ }
+ }
+
+ /**
+ * @param rgb
+ * @return the color object from the rgb object
+ */
+ public Color getColor( RGB rgb )
+ {
+ Color color = (Color) colorMap.get( rgb );
+
+ if ( color == null )
+ {
+ color = new Color( Display.getCurrent(), rgb );
+ colorMap.put( rgb, color );
+ }
+
+ return color;
+ }
+}
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/ColorManager.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/ColorManager.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/CommonPlugin.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/CommonPlugin.java?rev=645502&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/CommonPlugin.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/CommonPlugin.java Mon Apr 7 06:18:18 2008
@@ -0,0 +1,73 @@
+package org.apache.maven.doxia.ide.eclipse.common.ui;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.osgi.framework.BundleContext;
+
+/**
+ * This class controls the Common plug-in life cycle.
+ *
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ * @since 1.0
+ */
+public class CommonPlugin
+ extends AbstractDoxiaPlugin
+{
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.apache.maven.doxia.ide.eclipse.common.ui";
+
+ // The shared instance
+ private static CommonPlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public CommonPlugin()
+ {
+ plugin = this;
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static CommonPlugin getDefault()
+ {
+ return plugin;
+ }
+
+ @Override
+ public void start( BundleContext context )
+ throws Exception
+ {
+ super.start( context );
+ }
+
+ @Override
+ public void stop( BundleContext context )
+ throws Exception
+ {
+ super.stop( context );
+
+ ColorManager.getInstance().dispose();
+ }
+}
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/CommonPlugin.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/CommonPlugin.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/CommonPluginMessages.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/CommonPluginMessages.java?rev=645502&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/CommonPluginMessages.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/CommonPluginMessages.java Mon Apr 7 06:18:18 2008
@@ -0,0 +1,92 @@
+package org.apache.maven.doxia.ide.eclipse.common.ui;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.text.MessageFormat;
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+/**
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ * @since 1.0
+ */
+public class CommonPluginMessages
+{
+ private static final String RESOURCE_BUNDLE = CommonPluginMessages.class.getName();
+
+ private static ResourceBundle singleton = ResourceBundle.getBundle( RESOURCE_BUNDLE );
+
+ /**
+ * Private constructor.
+ */
+ private CommonPluginMessages()
+ {
+ // nop
+ }
+
+ /**
+ * @param key
+ * @return the value of the key
+ * @see ResourceBundle#getString(String)
+ */
+ public static String getString( String key )
+ {
+ try
+ {
+ return singleton.getString( key );
+ }
+ catch ( MissingResourceException e )
+ {
+ CommonPlugin.logError( "MissingResourceException: " + e.getMessage(), e, true );
+ return key;
+ }
+ }
+
+ /**
+ * @param key
+ * @param arg
+ * @return
+ * @see #getFormattedString(String, Object[])
+ */
+ public static String getFormattedString( String key, Object arg )
+ {
+ return getFormattedString( key, new Object[] { arg } );
+ }
+
+ /**
+ * @param key
+ * @param args
+ * @return
+ * @see MessageFormat#format(String, Object...)
+ */
+ public static String getFormattedString( String key, Object[] args )
+ {
+ return MessageFormat.format( getString( key ), args );
+ }
+
+ /**
+ * @return an instance of {@link ResourceBundle}
+ */
+ public static ResourceBundle getResourceBundle()
+ {
+ return singleton;
+ }
+}
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/CommonPluginMessages.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/CommonPluginMessages.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/DoxiaWrapper.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/DoxiaWrapper.java?rev=645502&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/DoxiaWrapper.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/DoxiaWrapper.java Mon Apr 7 06:18:18 2008
@@ -0,0 +1,276 @@
+package org.apache.maven.doxia.ide.eclipse.common.ui;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.io.FileNotFoundException;
+import java.io.FileReader;
+import java.io.Reader;
+import java.io.StringReader;
+import java.io.StringWriter;
+import java.io.Writer;
+
+import org.apache.maven.doxia.Converter;
+import org.apache.maven.doxia.ConverterException;
+import org.apache.maven.doxia.DefaultConverter;
+import org.apache.maven.doxia.UnsupportedFormatException;
+import org.apache.maven.doxia.parser.ParseException;
+import org.apache.maven.doxia.wrapper.InputReaderWrapper;
+import org.apache.maven.doxia.wrapper.OutputWriterWrapper;
+import org.codehaus.plexus.util.IOUtil;
+import org.codehaus.plexus.util.StringUtils;
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IMarker;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.CoreException;
+
+/**
+ * Wraps some Doxia operations for Eclipse.
+ *
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ * @since 1.0
+ */
+public class DoxiaWrapper
+{
+ private static final String DEFAULT_OUTPUT = "xhtml";
+
+ /**
+ * Convert a content using Doxia {@link Converter}. All errors are specified as <code>IMarker</code>
+ * for the given file.
+ *
+ * @param content the content to convert
+ * @param file the file associated with the content
+ * @param format the wanted format
+ */
+ public static void convert( String content, IFile file, String format )
+ {
+ Reader reader = new StringReader( content );
+
+ convert( reader, file, format );
+ }
+
+ /**
+ * Convert a file using Doxia {@link Converter}.
+ *
+ * @param file the file to convert
+ * @param format the wanted format
+ * @return the file content converted
+ */
+ public static String convert( IFile file, String format )
+ {
+ Reader reader;
+ try
+ {
+ reader = new FileReader( file.getLocation().toFile() );
+ }
+ catch ( FileNotFoundException e )
+ {
+ CommonPlugin.logError( "FileNotFoundException: " + e.getMessage(), e, true );
+
+ try
+ {
+ IMarker marker = file.createMarker( IMarker.PROBLEM );
+ if ( marker.exists() )
+ {
+ marker.setAttribute( IMarker.TRANSIENT, true );
+ marker.setAttribute( IMarker.MESSAGE, e.getMessage() );
+ marker.setAttribute( IMarker.SEVERITY, IMarker.SEVERITY_ERROR );
+ }
+ }
+ catch ( CoreException ce )
+ {
+ CommonPlugin.logError( "CoreException: " + ce.getMessage(), ce, true );
+
+ return "CoreException: " + ce.getMessage();
+ }
+
+ return "FileNotFoundException: " + e.getMessage();
+ }
+
+ return convert( reader, file, format );
+ }
+
+ // ----------------------------------------------------------------------
+ // Private methods
+ // ----------------------------------------------------------------------
+
+ /**
+ * Internal Doxia converter.
+ *
+ * @param reader
+ * @param file
+ * @param format
+ * @return the result of the Doxia conversion or an exception message if any
+ */
+ private static String convert( Reader reader, IFile file, String format )
+ {
+ Writer writer = new StringWriter();
+ Converter converter = new DefaultConverter();
+ try
+ {
+ InputReaderWrapper input = InputReaderWrapper.valueOf( reader, format, converter.getInputFormats() );
+ OutputWriterWrapper output = OutputWriterWrapper.valueOf( writer, DEFAULT_OUTPUT, converter
+ .getOutputFormats() );
+
+ converter.convert( input, output );
+ }
+ catch ( UnsupportedFormatException e )
+ {
+ String msg = ( StringUtils.isEmpty( e.getMessage() ) ? e.getClass().getName() : e.getMessage() );
+ CommonPlugin.logError( "Doxia Unsupported Format Exception: " + msg, e, true );
+
+ try
+ {
+ clearMarkers( file );
+
+ IMarker marker = file.createMarker( IMarker.PROBLEM );
+ if ( marker.exists() )
+ {
+ marker.setAttribute( IMarker.TRANSIENT, true );
+ marker.setAttribute( IMarker.MESSAGE, msg );
+ marker.setAttribute( IMarker.SEVERITY, IMarker.SEVERITY_ERROR );
+ }
+ }
+ catch ( CoreException ce )
+ {
+ String msgCe = ( StringUtils.isEmpty( ce.getMessage() ) ? ce.getClass().getName() : ce.getMessage() );
+ CommonPlugin.logError( "CoreException: " + msgCe, ce, true );
+
+ return "CoreException: " + msgCe;
+ }
+
+ return "Doxia Unsupported Format Exception: " + e.getMessage();
+ }
+ catch ( ConverterException e )
+ {
+ String msg = ( StringUtils.isEmpty( e.getMessage() ) ? e.getClass().getName() : e.getMessage() );
+
+ try
+ {
+ clearMarkers( file );
+
+ IMarker marker = file.createMarker( IMarker.PROBLEM );
+ if ( marker.exists() )
+ {
+ marker.setAttribute( CommonPlugin.PLUGIN_ID, CommonPlugin.PLUGIN_ID );
+ marker.setAttribute( IMarker.TRANSIENT, true );
+ marker.setAttribute( IMarker.MESSAGE, msg );
+ if ( ParseException.class.isAssignableFrom( e.getCause().getClass() ) )
+ {
+ ParseException ex = (ParseException) e.getCause();
+ marker.setAttribute( IMarker.LINE_NUMBER, ex.getLineNumber() );
+ marker.setAttribute( IMarker.LOCATION, ex.getLineNumber() );
+ }
+ marker.setAttribute( IMarker.SEVERITY, IMarker.SEVERITY_ERROR );
+ }
+ }
+ catch ( CoreException ce )
+ {
+ String msgCe = ( StringUtils.isEmpty( ce.getMessage() ) ? ce.getClass().getName() : ce.getMessage() );
+ CommonPlugin.logError( "CoreException: " + msgCe, ce, true );
+
+ return "CoreException: " + msgCe;
+ }
+
+ return "Doxia Converter Exception: " + msg;
+ }
+ catch ( Throwable t )
+ {
+ String msg = ( StringUtils.isEmpty( t.getMessage() ) ? t.getClass().getName() : t.getMessage() );
+
+ CommonPlugin.logError( "Doxia Converter Throwable: " + msg, t, true );
+
+ try
+ {
+ clearMarkers( file );
+
+ IMarker marker = file.createMarker( IMarker.PROBLEM );
+ if ( marker.exists() )
+ {
+ marker.setAttribute( IMarker.TRANSIENT, true );
+ marker.setAttribute( IMarker.MESSAGE, msg );
+ marker.setAttribute( IMarker.SEVERITY, IMarker.SEVERITY_ERROR );
+ }
+ }
+ catch ( CoreException ce )
+ {
+ String msgCe = ( StringUtils.isEmpty( ce.getMessage() ) ? ce.getClass().getName() : ce.getMessage() );
+ CommonPlugin.logError( "CoreException: " + msgCe, ce, true );
+
+ return "CoreException: " + msgCe;
+ }
+
+ return "Doxia Converter Throwable: " + t.getMessage();
+ }
+ finally
+ {
+ IOUtil.close( reader );
+ IOUtil.close( writer );
+ }
+
+ try
+ {
+ file.deleteMarkers( IMarker.PROBLEM, true, IResource.DEPTH_INFINITE );
+ }
+ catch ( CoreException ce )
+ {
+ String msgCe = ( StringUtils.isEmpty( ce.getMessage() ) ? ce.getClass().getName() : ce.getMessage() );
+ CommonPlugin.logError( "CoreException: " + msgCe, ce, true );
+
+ return "CoreException: " + msgCe;
+ }
+
+ return writer.toString();
+ }
+
+ /**
+ * @param iFile
+ * @throws CoreException
+ */
+ private static void clearMarkers( IFile iFile )
+ throws CoreException
+ {
+ IMarker[] markers = iFile.findMarkers( null, true, IResource.DEPTH_ZERO );
+ IMarker[] deleteMarkers = new IMarker[markers.length];
+ int deleteindex = 0;
+ Object owner;
+
+ for ( int i = markers.length - 1; i >= 0; i-- )
+ {
+ IMarker marker = markers[i];
+ owner = marker.getAttribute( CommonPlugin.PLUGIN_ID );
+
+ if ( owner != null && owner instanceof String )
+ {
+ if ( owner.equals( CommonPlugin.PLUGIN_ID ) )
+ {
+ deleteMarkers[deleteindex++] = markers[i];
+ }
+ }
+ }
+
+ if ( deleteindex > 0 )
+ {
+ IMarker[] todelete = new IMarker[deleteindex];
+ System.arraycopy( deleteMarkers, 0, todelete, 0, deleteindex );
+ iFile.getWorkspace().deleteMarkers( todelete );
+ }
+ }
+}
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/DoxiaWrapper.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/DoxiaWrapper.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractActionDelegate.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractActionDelegate.java?rev=645502&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractActionDelegate.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractActionDelegate.java Mon Apr 7 06:18:18 2008
@@ -0,0 +1,135 @@
+package org.apache.maven.doxia.ide.eclipse.common.ui.actions;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.net.MalformedURLException;
+import java.net.URL;
+import java.util.PropertyResourceBundle;
+import java.util.ResourceBundle;
+
+import org.apache.maven.doxia.ide.eclipse.common.ui.CommonPlugin;
+import org.codehaus.plexus.util.IOUtil;
+import org.eclipse.core.runtime.Assert;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.jface.action.IAction;
+import org.eclipse.jface.resource.ImageRegistry;
+import org.eclipse.ui.IEditorActionDelegate;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.actions.ActionDelegate;
+
+/**
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ * @since 1.0
+ */
+public abstract class AbstractActionDelegate
+ extends ActionDelegate
+ implements IEditorActionDelegate
+{
+ public AbstractActionDelegate()
+ {
+ Assert.isNotNull( getActionId(), "getActionId() should be defined" );
+ }
+
+ @Override
+ public void run( IAction action )
+ {
+ // see AbstractEditorContributor#setActivePage(IEditorPart)
+ action = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor().getEditorSite()
+ .getActionBars().getGlobalActionHandler( getActionId() );
+ Assert.isNotNull( action, "action should be defined" );
+ action.run();
+ }
+
+ @Override
+ public void init( IAction action )
+ {
+ super.init( action );
+
+ Assert.isNotNull( getBundleKey(), "getBundleKey() should be defined" );
+ Assert.isNotNull( getImageDescriptorKey(), "getImageDescriptorKey() should be defined" );
+ Assert.isTrue( getImageDescriptorKey().length == 2, "getImageDescriptorKey() should be an array of 2 elements" );
+
+ // Standardize common texts, icons
+ ImageRegistry imageRegistry = CommonPlugin.getDefault().getImageRegistry();
+ action.setImageDescriptor( imageRegistry.getDescriptor( getImageDescriptorKey()[0] ) );
+ // TODO activate me!
+ action.setDisabledImageDescriptor( imageRegistry.getDescriptor( getImageDescriptorKey()[1] ) );
+
+ action.setText( getString( "action." + getBundleKey() + ".label" ) );
+ action.setToolTipText( getString( "action." + getBundleKey() + ".tooltip" ) );
+ }
+
+ /** {@inheritDoc} */
+ public void setActiveEditor( IAction action, IEditorPart targetEditor )
+ {
+ }
+
+ /**
+ * @return the given actionId
+ */
+ public abstract String getActionId();
+
+ /**
+ * @return the given bundle key in the plugin.properties
+ */
+ public abstract String getBundleKey();
+
+ /**
+ * @return an array of 2 elements for the enabled and disabled images descriptor.
+ */
+ public abstract String[] getImageDescriptorKey();
+
+ // ----------------------------------------------------------------------
+ // Private methods
+ // ----------------------------------------------------------------------
+
+ private static String getString( String key )
+ {
+ Assert.isNotNull( key, "key is not specified." );
+
+ InputStream is = null;
+ try
+ {
+ URL url = Platform.getBundle( CommonPlugin.PLUGIN_ID ).getResource( "plugin.properties" );
+ is = url.openStream();
+ ResourceBundle bundle = new PropertyResourceBundle( is );
+ return bundle.getString( key );
+ }
+ catch ( MalformedURLException e )
+ {
+ CommonPlugin.log( e.getMessage(), e, IStatus.ERROR, true );
+ }
+ catch ( IOException e )
+ {
+ CommonPlugin.log( e.getMessage(), e, IStatus.ERROR, true );
+ }
+ finally
+ {
+ IOUtil.close( is );
+ }
+
+ return "!" + key + "!";
+ }
+}
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractActionDelegate.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractActionDelegate.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractBoldAction.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractBoldAction.java?rev=645502&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractBoldAction.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractBoldAction.java Mon Apr 7 06:18:18 2008
@@ -0,0 +1,54 @@
+package org.apache.maven.doxia.ide.eclipse.common.ui.actions;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.apache.maven.doxia.ide.eclipse.common.ui.CommonPlugin;
+import org.apache.maven.doxia.ide.eclipse.common.ui.CommonPluginMessages;
+import org.eclipse.jface.resource.ImageRegistry;
+import org.eclipse.ui.texteditor.ITextEditor;
+
+/**
+ * Abstract <code>bold</code> action.
+ *
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ * @since 1.0
+ * @see IActionConstants#BOLD_ACTION for the action Key
+ */
+public abstract class AbstractBoldAction
+ extends AbstractStyleAction
+{
+ /**
+ * Default constructor.
+ *
+ * @param editor
+ */
+ public AbstractBoldAction( ITextEditor editor )
+ {
+ super( CommonPluginMessages.getResourceBundle(), "Bold.", editor );
+
+ setId( IActionConstants.BOLD_ACTION );
+
+ ImageRegistry imageRegistry = CommonPlugin.getDefault().getImageRegistry();
+ setImageDescriptor( imageRegistry.getDescriptor( CommonPlugin.IMG_BOLD ) );
+ // TODO activate me!
+ setDisabledImageDescriptor( imageRegistry.getDescriptor( CommonPlugin.IMG_BOLD_DISABLED ) );
+ }
+}
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractBoldAction.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractBoldAction.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractItalicAction.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractItalicAction.java?rev=645502&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractItalicAction.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractItalicAction.java Mon Apr 7 06:18:18 2008
@@ -0,0 +1,54 @@
+package org.apache.maven.doxia.ide.eclipse.common.ui.actions;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import org.apache.maven.doxia.ide.eclipse.common.ui.CommonPlugin;
+import org.apache.maven.doxia.ide.eclipse.common.ui.CommonPluginMessages;
+import org.eclipse.jface.resource.ImageRegistry;
+import org.eclipse.ui.texteditor.ITextEditor;
+
+/**
+ * Abstract <code>italic</code> action.
+ *
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ * @since 1.0
+ * @see IActionConstants#ITALIC_ACTION for the action Key
+ */
+public abstract class AbstractItalicAction
+ extends AbstractStyleAction
+{
+ /**
+ * Default constructor
+ *
+ * @param editor
+ */
+ public AbstractItalicAction( ITextEditor editor )
+ {
+ super( CommonPluginMessages.getResourceBundle(), "Italic.", editor );
+
+ setId( IActionConstants.ITALIC_ACTION );
+
+ ImageRegistry imageRegistry = CommonPlugin.getDefault().getImageRegistry();
+ setImageDescriptor( imageRegistry.getDescriptor( CommonPlugin.IMG_ITALIC ) );
+ // TODO activate me!
+ setDisabledImageDescriptor( imageRegistry.getDescriptor( CommonPlugin.IMG_ITALIC_DISABLED ) );
+ }
+}
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractItalicAction.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.common.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/common/ui/actions/AbstractItalicAction.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision