Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-dev] Switching to custom perspective

I am using Facets in my project with the following entries in plugin.xml

 

<extension

         id="org.eclipse.wst.common.project.facet.core.facets"

         name="DesignFacet"

         point="org.eclipse.wst.common.project.facet.core.facets">

      <project-facet id="org.hs.project.design.designprojectfacet">        

         <label>

            Design Project Application

         </label>

         <description>

            Allows the creation of Design Project Application

         </description>

         <category id="org.hs.project.design.category">org.hs.project.design.category</category>

      </project-facet>

      <project-facet-version

            facet="org.hs.project.design.designprojectfacet "

            version="1.0">

         <constraint>                       

            <requires

                  facet="jst.web"

                  version="2.3,2.4"/>         

         </constraint>

      </project-facet-version>

      <action

            facet=" org.hs.project.design.designprojectfacet "

            id="designfacetinstall"

            type="INSTALL"

            version="1.0">

         <delegate class="org.hs.project.design.project.DesingProjectFacetInstallDelegate"/>

      </action>

      <category id="org.hs.project.design.category">

         <label>

            Design Project Application

         </label>

         <description>

            Creation of Design Project Application

         </description>

      </category>

      <preset id="org.hs.project.design.preset">

         <label>

                        Design Project Application

 

         </label>

         <description>

                        Design Project Application

         </description>

            <facet id="jst.java" version="5.0"/>

            <facet id="jst.web" version="2.3"/>

            <facet id="org.hs.project.design.designprojectfacet" version="1.0"/>

      </preset>

   </extension>

   <extension

         point="org.eclipse.wst.common.project.facet.core.runtimes">

      <supported>

         <runtime-component any="true"/>

         <facet id="org.hs.project.design.designprojectfacet" version="1.0"/>

      </supported>

   </extension>

 

Now when I create a new project it asks for switching the perspective to J2EE perspective. I want to override this behavior so that after project creation it asks for switching to the perspective that I’ve created.

 

<extension

         point="org.eclipse.ui.perspectives">

      <perspective

            class="org.hs.project.design.DesignPerspective"

            id=" org.hs.project.design.DesignPerspective "

            name="Design Perspective"/>

    </extension>

 

(All the java code files are in place)

 

How can I go about it?

Thanks

~Sunil

 


***The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review,retransmission,dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.***


Back to the top