Re: Api Editor

From: Ulrich Köster (ulric..bjectstyle.org)
Date: Tue Aug 16 2005 - 10:13:40 EDT

  • Next message: Mike Schrag: "hot code replacement"

    Moin Mike,

    I've replaced the builder. The new builder are plugable. Two plugins
    are the incremental and the ant builder we all know.

     From the org.objectstyle.wolips.builder plugin.xml.

    <!--
    ========================================================================
    =========== -->
    <!-- Extension:
    Builder
       -->
    <!--
    ========================================================================
    =========== -->

        <extension point="org.objectstyle.wolips.builders">
           <builder
             id="org.objectstyle.wolips.projectbuild.builder.antbuilder"
              name="Ant Builder"
               
    class="org.objectstyle.wolips.projectbuild.builder.WOAntBuilder"
              context="ant"/>
          <builder
              
    id="org.objectstyle.wolips.projectbuild.builder.incrementalbuilder"
              name="Incremental Builder"
               
    class="org.objectstyle.wolips.projectbuild.builder.WOIncrementalBuilder"
              context="incremental"/>
        </extension>

     From org.objectstyle.wolips.builder plugin.xml:

    .....

    <?xml version="1.0" encoding="UTF-8"?>
    <?eclipse version="3.0"?>
    <plugin>
    <!--
    ========================================================================
    =========== -->
    <!-- Extension:
    Builder
      -->
    <!--
    ========================================================================
    =========== -->
        <extension point="org.objectstyle.wolips.builders">
          ...
          ...
          ...
          <builder
             id="org.objectstyle.wolips.builder.dotxcodebuilder"
              name="DotXcode Builder"
               
    class="org.objectstyle.wolips.builder.internal.DotXcodeBuilder"
              context="never"/>
          <builder
             id="org.objectstyle.wolips.builder.pbdotprojectbuilder"
              name="PB.project Builder"
               
    class="org.objectstyle.wolips.builder.internal.PBDotProjectBuilder"/>
        </extension>
    </plugin>

    The first builder is a sceleton for the Xcode builder(inactive). The
    second is the PB.project builder(active).
    The XCode builder has the invalid context "never". Due to that the
    builder is not active. Valid contexts are "ant" "incremental" or no
    context at all.

     From the DotXcodeBuilder:

    public class DotXcodeBuilder implements IBuilder {

         public DotXcodeBuilder() {
             super();
         }

         public void buildStarted(int kind, Map args, IProgressMonitor
    monitor, IProject project) {
             // TODO Auto-generated method stub

         }

         public void visitingDeltasDone(int kind, Map args,
    IProgressMonitor monitor, IProject project) {
             // TODO Auto-generated method stub

         }

         public void handleClassesDelta(IResourceDelta delta) {
             // TODO Auto-generated method stub

         }

         public void handleWoappResourcesDelta(IResourceDelta delta) {
             // TODO Auto-generated method stub

         }

         public void handleWebServerResourcesDelta(IResourceDelta delta) {
             // TODO Auto-generated method stub

         }

         public void handleOtherDelta(IResourceDelta delta) {
             // TODO Auto-generated method stub

         }

    One thing that you should know: .java files are under the OtherDelta
    category. The PBDotProjectBuilder is a "good" example.

    One possible solution is to check if a delta was added or removed and
    then invoke ant with a predefined ant script in the
    visitingDeltasDone method.

    Let me know if you need further info.

    Uli

    Am 15.08.2005 um 13:32 schrieb Mike Schrag:

    > It looks like the new build system was checked in too (you've been
    > a busy bee this weekend, by the way :) )? Can you post just a
    > quick overview of what changed and what I would look at to hook in
    > the xcode project writer into it?
    >
    > thanks -- ms
    >
    > On Aug 15, 2005, at 5:58 AM, Ulrich Köster wrote:
    >
    >
    >> Moin,
    >>
    >> the Api editor is not ready for prime time. As allways: Feedback
    >> is welcome.
    >>
    >> Uli
    >>
    >>
    >>
    >>
    >>
    >



    This archive was generated by hypermail 2.0.0 : Tue Aug 16 2005 - 10:13:31 EDT