On Sun, Jul 20, 2014 at 10:46 AM, Awanthika Senarath <[email protected]> wrote:
> HI > > but extension point "navigatorcontent" does not provide the label we want > in to the projectrightclick->new-> options does it? we have to use the > extension point newWizard in order to get it under the new options on > project right click in project explorer. > Yes, you have to define your wizard configurations under newWizard extension-point, then you can refer it inside navigatorcontent as a commonWizard, under that you can use enablement tag. for a example if you right click on a JAX-RS project on DevS, there is a option 'JAX-RS service class'. Currently DevS list all possible project type under new option of project's context menu, It was a design decision to simulate nested project structure. > > regards > > > On Sat, Jul 19, 2014 at 9:56 PM, Awanthika Senarath <[email protected]> > wrote: > >> thank you, i was trying the enablement tag with the newWizard and it >> didnt work either.. will try it with navigatorcontent and let you know! >> >> thanks and regards >> >> awanthika >> >> >> On Sat, Jul 19, 2014 at 12:16 AM, Melan Nimesh <[email protected]> wrote: >> >>> 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 >>> >>> >> >> >> -- >> Awanthika Senarath >> Software Engineer, WSO2 Inc. >> Mobile: +94717681791 >> >> >> > > > -- > Awanthika Senarath > Software Engineer, WSO2 Inc. > Mobile: +94717681791 > > > -- *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
