plugins/org.wso2.developerstudio.eclipse.templates.dashboard/src/org/wso2/developerstudio/eclipse/templates/dashboard/handlers/PlatformEarlyStartUpHandler.java
/**
     * This method removes unwanted new wizard entries
     */
This method removes unwanted new wizard entries
This method removes unwanted new wizard entries
private void removeWizardEntries() {
        ArrayList<String> removableNewWizardCategoryIDs = new ArrayList<String>();
        removableNewWizardCategoryIDs.add("org.eclipse.jst.ejb.ui");
        removableNewWizardCategoryIDs.add("org.eclipse.emf.codegen.ecore.ui.wizardCategory");
        removableNewWizardCategoryIDs.add("org.eclipse.emf.ecore.Wizard.category.ID");
        removableNewWizardCategoryIDs.add("org.eclipse.emf.codegen.ui.JETNewWizards");
        removableNewWizardCategoryIDs.add("org.eclipse.emf.codegen.ecore.ui.mappingWizardCategory");
        removableNewWizardCategoryIDs.add("org.eclipse.pde.PDE");
        removableNewWizardCategoryIDs.add("org.eclipse.pde.userAssistance");
        removableNewWizardCategoryIDs.add("org.eclipse.ui.Examples");
        removableNewWizardCategoryIDs.add("org.eclipse.wst.xml.examples");
        removableNewWizardCategoryIDs.add("org.eclipse.datatools.connectivity");
        removableNewWizardCategoryIDs.add("org.eclipse.jst.j2ee.internal");
        removableNewWizardCategoryIDs.add("org.eclipse.ui.Basic");
        AbstractExtensionWizardRegistry wizardRegistry = (AbstractExtensionWizardRegistry) PlatformUI.getWorkbench()
                .getNewWizardRegistry();
        IWizardCategory[] categories = PlatformUI.getWorkbench().getNewWizardRegistry().getRootCategory()
                .getCategories();
        for (IWizardDescriptor wizard : getAllWizards(categories)) {
            if (removableNewWizardCategoryIDs.contains(wizard.getCategory().getId())) {
                WorkbenchWizardElement wizardElement = (WorkbenchWizardElement) wizard;
                wizardRegistry.removeExtension(wizardElement.getConfigurationElement().getDeclaringExtension(),
                        new Object[] { wizardElement });
            }
        }
    }
private void removeWizardEntries ( ) { ArrayList < String > removableNewWizardCategoryIDs = new ArrayList < String > ( ) ; removableNewWizardCategoryIDs . add ( "org.eclipse.jst.ejb.ui" ) ; removableNewWizardCategoryIDs . add ( "org.eclipse.emf.codegen.ecore.ui.wizardCategory" ) ; removableNewWizardCategoryIDs . add ( "org.eclipse.emf.ecore.Wizard.category.ID" ) ; removableNewWizardCategoryIDs . add ( "org.eclipse.emf.codegen.ui.JETNewWizards" ) ; removableNewWizardCategoryIDs . add ( "org.eclipse.emf.codegen.ecore.ui.mappingWizardCategory" ) ; removableNewWizardCategoryIDs . add ( "org.eclipse.pde.PDE" ) ; removableNewWizardCategoryIDs . add ( "org.eclipse.pde.userAssistance" ) ; removableNewWizardCategoryIDs . add ( "org.eclipse.ui.Examples" ) ; removableNewWizardCategoryIDs . add ( "org.eclipse.wst.xml.examples" ) ; removableNewWizardCategoryIDs . add ( "org.eclipse.datatools.connectivity" ) ; removableNewWizardCategoryIDs . add ( "org.eclipse.jst.j2ee.internal" ) ; removableNewWizardCategoryIDs . add ( "org.eclipse.ui.Basic" ) ; AbstractExtensionWizardRegistry wizardRegistry = ( AbstractExtensionWizardRegistry ) PlatformUI . getWorkbench ( ) . getNewWizardRegistry ( ) ; IWizardCategory [ ] categories = PlatformUI . getWorkbench ( ) . getNewWizardRegistry ( ) . getRootCategory ( ) . getCategories ( ) ; for ( IWizardDescriptor wizard : getAllWizards ( categories ) ) { if ( removableNewWizardCategoryIDs . contains ( wizard . getCategory ( ) . getId ( ) ) ) { WorkbenchWizardElement wizardElement = ( WorkbenchWizardElement ) wizard ; wizardRegistry . removeExtension ( wizardElement . getConfigurationElement ( ) . getDeclaringExtension ( ) , new Object [ ] { wizardElement } ) ; } } }
This method removes unwanted new wizard entries
This method removes unwanted new wizard entries
// Wizard category ids and the respective categories are below // org.eclipse.datatools.connectivity : Connection Profiles // org.eclipse.egit.ui.wizardCategory : Git // org.eclipse.emf.codegen.ecore.ui.wizardCategory : Eclipse Modeling Framework // org.eclipse.emf.codegen.ecore.ui.mappingWizardCategory : Mapping // org.eclipse.emf.codegen.ui.JETNewWizards : Java Emitter Templates // org.eclipse.emf.ecore.Wizard.category.ID : Example EMF Model Creation Wizards // org.eclipse.jdt.ui.java : Java // org.eclipse.jdt.debug.ui.java : Java Run/Debug // org.eclipse.jdt.junit : JUnit // org.eclipse.jst.ejb.ui : EJB // org.eclipse.jst.j2ee.internal : Java EE // org.eclipse.jst.ws.ui.new : Web Services // org.eclipse.m2e : Maven // org.eclipse.pde.PDE : Plug-in Development // org.eclipse.pde.userAssistance : User Assistance // org.eclipse.ui.Basic : General // org.eclipse.ui.Examples : Examples // org.eclipse.wst.xml.examples : XML // org.eclipse.wst.jsdt.ui.java : JavaScript // org.eclipse.wst.server.ui : Server // org.eclipse.wst.web.ui : Web // org.eclipse.wst.XMLCategory : XML // org.jboss.tools.smooks.configuration : Smooks // List of removable new wizard category IDs