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:25:59 UTC
svn commit: r645511 - in
/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui:
./ icons/ src/ src/main/ src/main/java/ src/main/java/org/
src/main/java/org/apache/ src/main/java/org/apache/maven/ src/main...
Author: vsiveton
Date: Mon Apr 7 06:25:56 2008
New Revision: 645511
URL: http://svn.apache.org/viewvc?rev=645511&view=rev
Log:
DOXIA-233: Create an Eclipse plugin to edit Doxia files
o added xhtml plugin
Added:
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/.classpath (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/.project (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/build.properties (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/icons/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/icons/doxia.gif (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/plugin.properties (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/plugin.xml (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.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.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/XhtmlPlugin.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/editor/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/editor/XhtmlEditor.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/editor/XhtmlEditorContributor.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/wizard/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/wizard/XhtmlWizard.java (with props)
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/resources/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/resources/org/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/resources/org/apache/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/resources/org/apache/maven/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/resources/org/apache/maven/doxia/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/resources/org/apache/maven/doxia/ide/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.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.xhtml.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/xhtml/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/xhtml/ui/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/xhtml/ui/wizard/
maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/xhtml/ui/wizard/new.xhtml
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/.classpath
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/.classpath?rev=645511&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/.classpath (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/.classpath Mon Apr 7 06:25:56 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="target/classes/"/>
+ <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.xhtml.ui/.classpath
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/.classpath
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/.project
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/.project?rev=645511&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/.project (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/.project Mon Apr 7 06:25:56 2008
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.apache.maven.doxia.ide.eclipse.xhtml.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.xhtml.ui/.project
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/.project
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/build.properties
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/build.properties?rev=645511&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/build.properties (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/build.properties Mon Apr 7 06:25:56 2008
@@ -0,0 +1,8 @@
+source.. = src/main/java/,\
+ src/main/resources
+output.. = target/classes/
+bin.includes = .,\
+ plugin.properties,\
+ plugin.xml,\
+ target/classes/
+jars.compile.order = .
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/build.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.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.xhtml.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.xhtml.ui/icons/doxia.gif?rev=645511&view=auto
==============================================================================
Binary file - no diff available.
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.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.xhtml.ui/plugin.properties
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/plugin.properties?rev=645511&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/plugin.properties (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/plugin.properties Mon Apr 7 06:25:56 2008
@@ -0,0 +1,38 @@
+# 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 Xhtml Plug-in
+plugin.provider.name=Apache Maven
+
+#
+# Doxia Editor
+#
+editor.name=Doxia Xhtml Editor
+
+#
+# Doxia Wizard
+#
+wizard.category.name=Apache Doxia
+wizard.name=Xhtml file
+
+#
+# Doxia popupMenus
+#
+menu.styles=&Styles
\ No newline at end of file
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/plugin.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.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.xhtml.ui/plugin.xml
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/plugin.xml?rev=645511&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/plugin.xml (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/plugin.xml Mon Apr 7 06:25:56 2008
@@ -0,0 +1,195 @@
+<?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.xhtml.ui"
+ name="%plugin.name"
+ version="1.0"
+ provider-name="%plugin.provider.name"
+ class="org.apache.maven.doxia.ide.eclipse.xhtml.ui.XhtmlPlugin">
+
+ <runtime>
+ <library name="target/classes/">
+ <export
+ name="org.apache.maven.doxia.ide.eclipse.xhtml.ui.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.ide.eclipse.xhtml.ui.editor.*">
+ </export>
+ <export
+ name="org.apache.maven.doxia.ide.eclipse.xhtml.ui.wizard.*">
+ </export>
+ </library>
+ <library name="."/>
+ </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"/>
+ <import plugin="org.apache.maven.doxia.ide.eclipse.common.ui"/>
+ </requires>
+
+ <!-- Doxia Plugin Text Editors -->
+ <extension
+ point="org.eclipse.ui.editors">
+ <editor
+ name="%editor.name"
+ extensions="xhtml, xml"
+ icon="icons/doxia.gif"
+ contributorClass="org.apache.maven.doxia.ide.eclipse.xhtml.ui.editor.XhtmlEditorContributor"
+ class="org.apache.maven.doxia.ide.eclipse.xhtml.ui.editor.XhtmlEditor"
+ id="org.apache.maven.doxia.ide.eclipse.xhtml.ui.editor.XhtmlEditor">
+ </editor>
+ </extension>
+
+ <!-- Doxia Wizards -->
+ <extension
+ point="org.eclipse.ui.newWizards">
+ <category
+ name="%wizard.category.name"
+ id="org.apache.maven.doxia.ide.eclipse.ui.wizard.DoxiaWizard">
+ </category>
+ <wizard
+ name="%wizard.name"
+ icon="icons/doxia.gif"
+ category="org.apache.maven.doxia.ide.eclipse.ui.wizard.DoxiaWizard"
+ class="org.apache.maven.doxia.ide.eclipse.xhtml.ui.wizard.XhtmlWizard"
+ id="org.apache.maven.doxia.ide.eclipse.xhtml.ui.wizard.XhtmlWizard">
+ </wizard>
+ </extension>
+
+ <!-- http://www.eclipse.org/articles/article.php?file=Article-action-contribution/index.html -->
+ <extension point="org.eclipse.ui.popupMenus">
+ <viewerContribution
+ id="org.apache.maven.doxia.ide.eclipse.xhtml.ui.editor.XhtmlEditor.EditorContext"
+ targetID="org.apache.maven.doxia.ide.eclipse.xhtml.ui.editor.XhtmlEditor.EditorContext">
+ <menu
+ id="subMenu"
+ label="%menu.styles"
+ path="additions">
+ <separator name="styles"/>
+ </menu>
+ <!-- Actions should be ordered -->
+ <action
+ id="org.apache.maven.doxia.ide.eclipse.common.ui.popup.actions.MonospacedAction"
+ label="%action.monospaced.label"
+ tooltip="%action.monospaced.tooltip"
+ menubarPath="subMenu/styles"
+ class="org.apache.maven.doxia.ide.eclipse.common.ui.actions.MonospacedActionDelegate">
+ </action>
+ <action
+ id="org.apache.maven.doxia.ide.eclipse.common.ui.popup.actions.ItalicAction"
+ label="%action.italic.label"
+ tooltip="%action.italic.tooltip"
+ menubarPath="subMenu/styles"
+ class="org.apache.maven.doxia.ide.eclipse.common.ui.actions.ItalicActionDelegate">
+ </action>
+ <action
+ id="org.apache.maven.doxia.ide.eclipse.common.ui.popup.actions.BoldAction"
+ label="%action.bold.label"
+ tooltip="%action.bold.tooltip"
+ menubarPath="subMenu/styles"
+ class="org.apache.maven.doxia.ide.eclipse.common.ui.actions.BoldActionDelegate">
+ </action>
+ </viewerContribution>
+ </extension>
+ <extension point="org.eclipse.ui.editorActions">
+ <editorContribution
+ id="org.apache.maven.doxia.ide.eclipse.xhtml.ui.editor.XhtmlEditor"
+ targetID="org.apache.maven.doxia.ide.eclipse.xhtml.ui.editor.XhtmlEditor">
+ <!-- Contributing ordered actions to toolbar -->
+ <action
+ id="org.apache.maven.doxia.ide.eclipse.common.ui.contribution.actions.toolbar.TableAction"
+ label="%action.table.label"
+ tooltip="%action.table.tooltip"
+ toolbarPath="Normal/additions"
+ class="org.apache.maven.doxia.ide.eclipse.common.ui.actions.TableActionDelegate">
+ </action>
+ <action
+ id="org.apache.maven.doxia.ide.eclipse.common.ui.contribution.actions.toolbar.LinkAction"
+ label="%action.link.label"
+ tooltip="%action.link.tooltip"
+ toolbarPath="Normal/additions"
+ class="org.apache.maven.doxia.ide.eclipse.common.ui.actions.LinkActionDelegate">
+ </action>
+ <action
+ id="org.apache.maven.doxia.ide.eclipse.common.ui.contribution.actions.toolbar.MonospacedAction"
+ label="%action.monospaced.label"
+ tooltip="%action.monospaced.tooltip"
+ toolbarPath="Normal/additions"
+ class="org.apache.maven.doxia.ide.eclipse.common.ui.actions.MonospacedActionDelegate">
+ </action>
+ <action
+ id="org.apache.maven.doxia.ide.eclipse.common.ui.contribution.actions.toolbar.ItalicAction"
+ label="%action.italic.label"
+ tooltip="%action.bold.tooltip"
+ toolbarPath="Normal/additions"
+ class="org.apache.maven.doxia.ide.eclipse.common.ui.actions.ItalicActionDelegate">
+ </action>
+ <action
+ id="org.apache.maven.doxia.ide.eclipse.common.ui.contribution.actions.toolbar.BoldAction"
+ label="%action.bold.label"
+ tooltip="%action.bold.tooltip"
+ toolbarPath="Normal/additions"
+ class="org.apache.maven.doxia.ide.eclipse.common.ui.actions.BoldActionDelegate">
+ </action>
+
+ <!-- Contributing ordererd actions to menu -->
+ <menu
+ id="editStyles"
+ label="%menu.styles"
+ path="edit/additions">
+ <separator name="styles"/>
+ </menu>
+ <action
+ id="org.apache.maven.doxia.ide.eclipse.common.ui.contribution.editor.menu.MonospacedAction"
+ label="%action.monospaced.label"
+ tooltip="%action.monospaced.tooltip"
+ menubarPath="edit/editStyles/styles"
+ class="org.apache.maven.doxia.ide.eclipse.common.ui.actions.MonospacedActionDelegate">
+ </action>
+ <action
+ id="org.apache.maven.doxia.ide.eclipse.common.ui.contribution.editor.menu.ItalicAction"
+ label="%action.italic.label"
+ tooltip="%action.bold.tooltip"
+ menubarPath="edit/editStyles/styles"
+ class="org.apache.maven.doxia.ide.eclipse.common.ui.actions.ItalicActionDelegate">
+ </action>
+ <action
+ id="org.apache.maven.doxia.ide.eclipse.common.ui.contribution.actions.menu.BoldAction"
+ label="%action.bold.label"
+ tooltip="%action.bold.tooltip"
+ menubarPath="edit/editStyles/styles"
+ class="org.apache.maven.doxia.ide.eclipse.common.ui.actions.BoldActionDelegate">
+ </action>
+ </editorContribution>
+ </extension>
+</plugin>
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/plugin.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.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.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/XhtmlPlugin.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/XhtmlPlugin.java?rev=645511&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/XhtmlPlugin.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/XhtmlPlugin.java Mon Apr 7 06:25:56 2008
@@ -0,0 +1,96 @@
+package org.apache.maven.doxia.ide.eclipse.xhtml.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.apache.maven.doxia.ide.eclipse.common.ui.AbstractDoxiaPlugin;
+import org.codehaus.plexus.util.StringUtils;
+import org.osgi.framework.BundleContext;
+
+/**
+ * Xhtml plug-in.
+ *
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ * @since 1.0
+ */
+public class XhtmlPlugin
+ extends AbstractDoxiaPlugin
+{
+ /** The plug-in ID */
+ public static final String PLUGIN_ID = "org.apache.maven.doxia.ide.eclipse.xhtml.ui";
+
+ /** The shared instance */
+ private static XhtmlPlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public XhtmlPlugin()
+ {
+ plugin = this;
+ }
+
+ @Override
+ public void start( BundleContext context )
+ throws Exception
+ {
+ super.start( context );
+ plugin = this;
+ }
+
+ @Override
+ public void stop( BundleContext context )
+ throws Exception
+ {
+ plugin = null;
+ super.stop( context );
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static XhtmlPlugin getDefault()
+ {
+ return plugin;
+ }
+
+ /**
+ * @return the plugin ID
+ */
+ public static String getPluginId()
+ {
+ if ( StringUtils.isEmpty( getDefault().getBundle().getSymbolicName() ) )
+ {
+ return PLUGIN_ID;
+ }
+
+ return getDefault().getBundle().getSymbolicName();
+ }
+
+ /**
+ * @return the Doxia format
+ */
+ public static String getDoxiaFormat()
+ {
+ return "xhtml";
+ }
+}
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/XhtmlPlugin.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/XhtmlPlugin.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/editor/XhtmlEditor.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/editor/XhtmlEditor.java?rev=645511&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/editor/XhtmlEditor.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/editor/XhtmlEditor.java Mon Apr 7 06:25:56 2008
@@ -0,0 +1,51 @@
+package org.apache.maven.doxia.ide.eclipse.xhtml.ui.editor;
+
+/*
+ * 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.editors.AbstractXmlMultiPageEditorPart;
+import org.apache.maven.doxia.ide.eclipse.xhtml.ui.XhtmlPlugin;
+
+/**
+ * Xhtml editor.
+ *
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ * @since 1.0
+ */
+public class XhtmlEditor
+ extends AbstractXmlMultiPageEditorPart
+{
+ public XhtmlEditor()
+ {
+ super();
+ }
+
+ @Override
+ public String getFormat()
+ {
+ return XhtmlPlugin.getDoxiaFormat();
+ }
+
+ @Override
+ public String getEditorId()
+ {
+ return "org.apache.maven.doxia.ide.eclipse.xhtml.ui.editor.XhtmlEditor";
+ }
+}
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/editor/XhtmlEditor.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/editor/XhtmlEditor.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/editor/XhtmlEditorContributor.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/editor/XhtmlEditorContributor.java?rev=645511&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/editor/XhtmlEditorContributor.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/editor/XhtmlEditorContributor.java Mon Apr 7 06:25:56 2008
@@ -0,0 +1,38 @@
+package org.apache.maven.doxia.ide.eclipse.xhtml.ui.editor;
+
+/*
+ * 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.editors.AbstractEditorContributor;
+
+/**
+ * Xhtml contributor.
+ *
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ * @since 1.0
+ */
+public class XhtmlEditorContributor
+ extends AbstractEditorContributor
+{
+ public XhtmlEditorContributor()
+ {
+ super();
+ }
+}
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/editor/XhtmlEditorContributor.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/editor/XhtmlEditorContributor.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/wizard/XhtmlWizard.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/wizard/XhtmlWizard.java?rev=645511&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/wizard/XhtmlWizard.java (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/wizard/XhtmlWizard.java Mon Apr 7 06:25:56 2008
@@ -0,0 +1,63 @@
+package org.apache.maven.doxia.ide.eclipse.xhtml.ui.wizard;
+
+/*
+ * 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.wizards.AbstractWizard;
+import org.apache.maven.doxia.ide.eclipse.common.ui.wizards.AbstractWizardPage;
+import org.apache.maven.doxia.ide.eclipse.xhtml.ui.XhtmlPlugin;
+import org.eclipse.jface.viewers.ISelection;
+
+/**
+ * Xhtml wizard.
+ *
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ * @since 1.0
+ */
+public class XhtmlWizard
+ extends AbstractWizard
+{
+ @Override
+ public AbstractWizardPage getWizardPage( ISelection selection )
+ {
+ return new XhtmlWizardPage( selection );
+ }
+
+ @Override
+ public String getWizardTemplate()
+ {
+ return "new.xhtml";
+ }
+
+ class XhtmlWizardPage
+ extends AbstractWizardPage
+ {
+ public XhtmlWizardPage( ISelection selection )
+ {
+ super( selection );
+ }
+
+ @Override
+ public String getExtension()
+ {
+ return XhtmlPlugin.getDoxiaFormat();
+ }
+ }
+}
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/wizard/XhtmlWizard.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/xhtml/ui/wizard/XhtmlWizard.java
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/xhtml/ui/wizard/new.xhtml
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/xhtml/ui/wizard/new.xhtml?rev=645511&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/xhtml/ui/wizard/new.xhtml (added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xhtml.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/xhtml/ui/wizard/new.xhtml Mon Apr 7 06:25:56 2008
@@ -0,0 +1,17 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <title>Title</title>
+ <meta name="author" content="Author"/>
+ <meta name="date" content="Date"/>
+ </head>
+ <body>
+ <div class="section">
+ <h2>Section title</h2>
+ <div class="section">
+ <p>Paragraph 1, line 1. Paragraph 1, line 2.</p>
+ <p>Paragraph 2, line 1. Paragraph 2, line 2.</p>
+ </div>
+ </div>
+ </body>
+</html>