Hi,

On Fri, Jul 18, 2014 at 10:57 AM, Awanthika Senarath <[email protected]>
wrote:

> Hi,
>
> Im trying to contextualize the eclipse new project option in
>
>  project (in projectExplorer) -> rightclick -> new -> wso2projects  (CEP
> project/ proxy service etc.)
>
>  to make it more meaningful.
>
> I have been trying with the <visiblewhen> tag inside the
>  <extensionpoint="org.eclipse.ui.newWizards"> filtering by project nature
> in plugin.xml with no success.
>

AFAIK, org.eclipse.ui.newWizards extension-point does not supports
visibleWhen or activeWhen attributes. you can use
org.eclipse.ui.navigator.navigatorContent extension point to achieve your
requirements I guess. we are using it in many places inside DevS. please
refer org.wso2.developerstudio.eclipse.artifact.axis2 component's
plugin.xml [1] for a example.

e.g.

 <extension point="org.eclipse.ui.navigator.navigatorContent">
            <commonWizard type="new"

menuGroupId="1org.wso2.developerstudio.eclipse.artifact.webservice1"

wizardId="org.wso2.developerstudio.eclipse.artifact.axis2.ui.wizard">
                <enablement>
                    <or>
                        <adapt type="org.eclipse.core.resources.IProject">
                            <test
property="org.eclipse.core.resources.projectNature"

value="org.wso2.developerstudio.eclipse.axis2.project.nature" />
                        </adapt>
                        <adapt type="org.eclipse.jdt.core.IPackageFragment">
                            <test
property="org.wso2.developerstudio.projectNature"

value="org.wso2.developerstudio.eclipse.axis2.project.nature" />
                        </adapt>
                    </or>
                </enablement>
            </commonWizard>
    </extension>

Thanks,
Melan

[1]
https://github.com/wso2-dev/developer-studio/blob/master/app-server/org.wso2.developerstudio.eclipse.artifact.axis2/plugin.xml



>
> is there anyone who has previous experience in using this tag? OR any
> other way of getting it done? I also tried with the property-tester in
> eclipse.
>
> thanks and regards
> --
> Awanthika Senarath
> Software Engineer, WSO2 Inc.
> Mobile: +94717681791
>
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Melan Nimesh*
Software Engineer;
WSO2 Inc.;  http://wso2.org
E-mail: melan AT wso2.com;
Mobile: +94 77 631 6759
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to