maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r645509 - in /maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xdoc.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/...
Date Mon, 07 Apr 2008 13:25:22 GMT
Author: vsiveton
Date: Mon Apr  7 06:25:16 2008
New Revision: 645509

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

o added xdoc plugin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Added: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xdoc.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/xdoc/ui/wizard/new.xdoc
URL: http://svn.apache.org/viewvc/maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xdoc.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/xdoc/ui/wizard/new.xdoc?rev=645509&view=auto
==============================================================================
--- maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xdoc.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/xdoc/ui/wizard/new.xdoc
(added)
+++ maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xdoc.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/xdoc/ui/wizard/new.xdoc
Mon Apr  7 06:25:16 2008
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!-- http://maven.apache.org/doxia/references/xdoc-format.html -->
+
+<document>
+  <properties>
+    <title>Page Title</title>
+    <author email="user@company.com">John Doe</author>
+  </properties>
+
+  <!-- Optional HEAD element, which is copied as is into the XHTML <head> element
-->
+  <head>
+    <meta ... />
+  </head>
+
+  <body>
+    <!-- The body of the document contains a number of sections -->
+    <section name="section 1">
+
+      <!-- Within sections, any XHTML can be used -->
+      <p>Hi!</p>
+
+      <!-- in addition to XHTML, any number of subsections can be within a section -->
+      <subsection name="subsection 1">
+        <p>Subsection!</p>
+      </subsection>
+    </section>
+  </body>
+</document>
\ No newline at end of file

Propchange: maven/doxia/doxia-tools/trunk/doxia-ide/eclipse/plugins/org.apache.maven.doxia.ide.eclipse.xdoc.ui/src/main/resources/org/apache/maven/doxia/ide/eclipse/xdoc/ui/wizard/new.xdoc
------------------------------------------------------------------------------
    svn:eol-style = native

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



Mime
View raw message