maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r645506 - in /maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui: ./ icons/ src/ src/main/ src/main/java/ src/main/java/org/ src/main/java/org/apache/ src/main/java/org/apache/maven/ src/ma...
Date Mon, 07 Apr 2008 13:22:56 GMT
Author: vsiveton
Date: Mon Apr  7 06:22:50 2008
New Revision: 645506

URL: http://svn.apache.org/viewvc?rev=645506&view=rev
Log:
DOXIA-233: Create an Eclipse plugin to edit Doxia files

o added docbook plugin

Added:
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/.classpath
  (with props)
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/.project
  (with props)
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/build.properties
  (with props)
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/icons/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/icons/doxia.gif
  (with props)
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/plugin.properties
  (with props)
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/plugin.xml
  (with props)
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.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.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/DocbookPlugin.java
  (with props)
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/editor/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/editor/DocbookEditor.java
  (with props)
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/editor/DocbookEditorContributor.java
  (with props)
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/wizard/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/wizard/DocbookWizard.java
  (with props)
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/resources/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/resources/org/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/resources/org/apache/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/resources/org/apache/maven/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/resources/org/apache/maven/doxia/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/resources/org/apache/maven/doxia/ide/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.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.docbook.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/docbook/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/docbook/ui/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/docbook/ui/wizard/
    maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/docbook/ui/wizard/new.docbook

Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/.classpath
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/.classpath?rev=645506&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/.classpath
(added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/.classpath
Mon Apr  7 06:22:50 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.docbook.ui/.classpath
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/.classpath
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/.project
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/.project?rev=645506&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/.project
(added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/.project
Mon Apr  7 06:22:50 2008
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>org.apache.maven.doxia.ide.eclipse.docbook.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.docbook.ui/.project
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/.project
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/build.properties
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/build.properties?rev=645506&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/build.properties
(added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/build.properties
Mon Apr  7 06:22:50 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.docbook.ui/build.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.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.docbook.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.docbook.ui/icons/doxia.gif?rev=645506&view=auto
==============================================================================
Binary file - no diff available.

Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.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.docbook.ui/plugin.properties
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/plugin.properties?rev=645506&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/plugin.properties
(added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/plugin.properties
Mon Apr  7 06:22:50 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 Docbook Plug-in
+plugin.provider.name=Apache Maven
+
+#
+# Doxia Editor
+#
+editor.name=Doxia Docbook Editor
+
+#
+# Doxia Wizard
+#
+wizard.category.name=Apache Doxia
+wizard.name=Docbook 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.docbook.ui/plugin.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.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.docbook.ui/plugin.xml
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/plugin.xml?rev=645506&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/plugin.xml
(added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/plugin.xml
Mon Apr  7 06:22:50 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.docbook.ui"
+   name="%plugin.name"
+   version="1.0"
+   provider-name="%plugin.provider.name"
+   class="org.apache.maven.doxia.ide.eclipse.docbook.ui.DocbookPlugin">
+
+   <runtime>
+      <library name="target/classes/">
+         <export
+               name="org.apache.maven.doxia.ide.eclipse.docbook.ui.*">
+         </export>
+         <export
+               name="org.apache.maven.doxia.ide.eclipse.docbook.ui.editor.*">
+         </export>
+         <export
+               name="org.apache.maven.doxia.ide.eclipse.docbook.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="docbook, xml"
+            icon="icons/doxia.gif"
+            contributorClass="org.apache.maven.doxia.ide.eclipse.docbook.ui.editor.DocbookEditorContributor"
+            class="org.apache.maven.doxia.ide.eclipse.docbook.ui.editor.DocbookEditor"
+            id="org.apache.maven.doxia.ide.eclipse.docbook.ui.editor.DocbookEditor">
+      </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.docbook.ui.wizard.DocbookWizard"
+            id="org.apache.maven.doxia.ide.eclipse.docbook.ui.wizard.DocbookWizard">
+      </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.docbook.ui.editor.DocbookEditor.EditorContext"
+            targetID="org.apache.maven.doxia.ide.eclipse.docbook.ui.editor.DocbookEditor.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.docbook.ui.editor.DocbookEditor"
+            targetID="org.apache.maven.doxia.ide.eclipse.docbook.ui.editor.DocbookEditor">
+         <!-- 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.docbook.ui/plugin.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.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.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/DocbookPlugin.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/DocbookPlugin.java?rev=645506&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/DocbookPlugin.java
(added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/DocbookPlugin.java
Mon Apr  7 06:22:50 2008
@@ -0,0 +1,96 @@
+package org.apache.maven.doxia.ide.eclipse.docbook.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;
+
+/**
+ * Docbook plug-in.
+ *
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ * @since 1.0
+ */
+public class DocbookPlugin
+    extends AbstractDoxiaPlugin
+{
+    /** The plug-in ID */
+    public static final String PLUGIN_ID = "org.apache.maven.doxia.ide.eclipse.docbook.ui";
+
+    /** The shared instance */
+    private static DocbookPlugin plugin;
+
+    /**
+     * The constructor
+     */
+    public DocbookPlugin()
+    {
+        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 DocbookPlugin 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 "docbook";
+    }
+}

Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/DocbookPlugin.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/DocbookPlugin.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/editor/DocbookEditor.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/editor/DocbookEditor.java?rev=645506&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/editor/DocbookEditor.java
(added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/editor/DocbookEditor.java
Mon Apr  7 06:22:50 2008
@@ -0,0 +1,51 @@
+package org.apache.maven.doxia.ide.eclipse.docbook.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.docbook.ui.DocbookPlugin;
+
+/**
+ * Docbook editor.
+ *
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ * @since 1.0
+ */
+public class DocbookEditor
+    extends AbstractXmlMultiPageEditorPart
+{
+    public DocbookEditor()
+    {
+        super();
+    }
+
+    @Override
+    public String getFormat()
+    {
+        return DocbookPlugin.getDoxiaFormat();
+    }
+
+    @Override
+    public String getEditorId()
+    {
+        return "org.apache.maven.doxia.ide.eclipse.docbook.ui.editor.DocbookEditor";
+    }
+}

Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/editor/DocbookEditor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/editor/DocbookEditor.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/editor/DocbookEditorContributor.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/editor/DocbookEditorContributor.java?rev=645506&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/editor/DocbookEditorContributor.java
(added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/editor/DocbookEditorContributor.java
Mon Apr  7 06:22:50 2008
@@ -0,0 +1,38 @@
+package org.apache.maven.doxia.ide.eclipse.docbook.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;
+
+/**
+ * Docbook contributor.
+ *
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ * @since 1.0
+ */
+public class DocbookEditorContributor
+    extends AbstractEditorContributor
+{
+    public DocbookEditorContributor()
+    {
+        super();
+    }
+}

Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/editor/DocbookEditorContributor.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/editor/DocbookEditorContributor.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/wizard/DocbookWizard.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/wizard/DocbookWizard.java?rev=645506&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/wizard/DocbookWizard.java
(added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/wizard/DocbookWizard.java
Mon Apr  7 06:22:50 2008
@@ -0,0 +1,63 @@
+package org.apache.maven.doxia.ide.eclipse.docbook.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.docbook.ui.DocbookPlugin;
+import org.eclipse.jface.viewers.ISelection;
+
+/**
+ * Docbook wizard.
+ *
+ * @author <a href="mailto:vincent.siveton@gmail.com">Vincent Siveton</a>
+ * @version $Id$
+ * @since 1.0
+ */
+public class DocbookWizard
+    extends AbstractWizard
+{
+    @Override
+    public AbstractWizardPage getWizardPage( ISelection selection )
+    {
+        return new DocbookWizardPage( selection );
+    }
+
+    @Override
+    public String getWizardTemplate()
+    {
+        return "new.docbook";
+    }
+
+    class DocbookWizardPage
+        extends AbstractWizardPage
+    {
+        public DocbookWizardPage( ISelection selection )
+        {
+            super( selection );
+        }
+
+        @Override
+        public String getExtension()
+        {
+            return DocbookPlugin.getDoxiaFormat();
+        }
+    }
+}

Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/wizard/DocbookWizard.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/java/org/apache/maven/doxia/ide/eclipse/docbook/ui/wizard/DocbookWizard.java
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/docbook/ui/wizard/new.docbook
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/docbook/ui/wizard/new.docbook?rev=645506&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/docbook/ui/wizard/new.docbook
(added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.docbook.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/docbook/ui/wizard/new.docbook
Mon Apr  7 06:22:50 2008
@@ -0,0 +1,16 @@
+<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.4//EN" "http://www.oasis-open.org/docbook/sgml/4.4/docbookx.dtd">
+<article>
+    <articleinfo>
+        <title>Title</title>
+        <corpauthor>Author</corpauthor>
+        <date>Date</date>
+    </articleinfo>
+    <section>
+        <title>Section title</title>
+        <section>
+          <title>Sub-section title</title>
+          <para>Paragraph 1, line 1. Paragraph 1, line 2.</para>
+          <para>Paragraph 2, line 1. Paragraph 2, line 2.</para>
+        </section>
+    </section>
+</article>
\ No newline at end of file



Mime
View raw message