[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [wtp-dev] RE: XDoclet Facet, and a tutorial
|
Kosta
I tried a simple facet, but I cannot add it via the UI. I attached the
plugin.xml . I am trying to add it to the list of available facets for
a dynamic web project...
Any ideas pointer?
---
<extension point="org.eclipse.wst.common.project.facet.core.facets">
<project-facet id="jst.web.xdoclet">
<label>WebDoclet facet (XDoclet)</label>
<description>Enables the project to run webdoclet post processing
on annotated servlets.</description>
<icon>icons/xdoclet.gif</icon>
</project-facet>
<project-facet-version facet="jst.web.xdoclet" version="1.2.3">
<constraint>
<and>
<requires facet="jst.web" version="2.2" allow-newer="true"/>
<conflicts group="modules"/>
</and>
</constraint>
<group-member id="modules"/>
</project-facet-version>
<project-facet-version facet="jst.web.xdoclet" version="1.3.0">
<constraint>
<and>
<requires facet="jst.web" version="2.2" allow-newer="true"/>
<conflicts group="modules"/>
</and>
</constraint>
<group-member id="modules"/>
</project-facet-version>
<action type="install" facet="jst.web.xdoclet"
version=">=1.2.3,<=1.3.0">
<delegate
class="org.eclipse.jst.j2ee.ejb.annotations.internal.xdoclet.facet.XDocletWebFacetInstallDelegate"/>
<config-factory
class="org.eclipse.jst.j2ee.ejb.annotations.internal.xdoclet.facet.XDocletWebFacetInstallDataModelProvider"/>
</action>
<action type="runtime-changed" facet="jst.web.xdoclet"
version=">=1.2.1,<=1.3.0">
<delegate
class="org.eclipse.jst.j2ee.ejb.annotations.internal.xdoclet.facet.XDocletWebFacetRuntimeChangedDelegate"/>
</action>
<!-- I AMNOT SURE ABOUT THIS ???? -->
<template id="template.jst.web">
<label>Dynamic Web Project with XDoclet</label>
<fixed facet="jst.java"/>
<fixed facet="jst.web"/>
<fixed facet="jst.web.xdoclet" />
</template>
</extension>
<!-- I AMNOT SURE ABOUT THIS ???? -->
<extension point="org.eclipse.wst.common.project.facet.ui.wizard">
<wizard-pages facet="jst.web.xdoclet" version="2.2">
<install>
<page class="??????"/> <!-- What wizard page WEB?-->
</install>
</wizard-pages>
</extension>
Naci,
The facet api can be found in:
org.eclipse.wst.common.project.facet.core
org.eclipse.jst.common.project.facet.core
You could probably use the web facet as an example:
org.eclipse.jst.j2ee.web
plugin.xml
project.facet.IWebFacetInstallDataModelProperties
project.facet.WebFacetInstallDataModelProvider
project.facet.WebFacetInstallDelegate
project.facet.WebFacetRuntimeChangedDelegate
project.facet.WebFacetVersionChangeDelegate
org.eclipse.jst.servlet.ui
plugin.xml
project.facet.WebFacetInstallPage
- Konstantin
-----Original Message-----
From: Naci Dai [mailto:naci.dai@xxxxxxxxxxxxx]
Sent: Tuesday, November 08, 2005 12:36 AM
To: Konstantin Komissarchik
Cc: Ted Bashor; Chuck Bridgham; General discussion of project-wide or
architectural issues.
Subject: XDoclet Facet, and a tutorial
Hi Kosta,
I would like to get this work started. However, I need some pointers to
code, maybe a good pattern to follow when I implement the
xdoclet-facet. As a follow-up, I want to turn it into a tutorial for
wanna be facet developers.
_______________________________________________
wtp-dev mailing list
wtp-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/wtp-dev
--
Naci Dai,
eteration a.s.
Inonu cad. Sumer sok. Zitas D1-15
Kozyatagi, Istanbul 34742
+90 (533) 580 2393 (cell)
+90 (216) 361 5434 (phone)
+90 (216) 361 2034 (fax)
http://www.eteration.com/
mailto:nacidai@xxxxxxx
mailto:naci@xxxxxxxxxxxxx