diff --git a/org.eclipse.epp.mpc.ui/OSGI-INF/l10n/bundle.properties b/org.eclipse.epp.mpc.ui/OSGI-INF/l10n/bundle.properties index 5205105b..0ffc372f 100644 --- a/org.eclipse.epp.mpc.ui/OSGI-INF/l10n/bundle.properties +++ b/org.eclipse.epp.mpc.ui/OSGI-INF/l10n/bundle.properties @@ -17,6 +17,8 @@ command.open.label = Eclipse &Marketplace... command.open.tooltip = Open the Eclipse Marketplace wizard command.importFavorites.description = Import another user's Marketplace Favorites List command.importFavorites.name = Import Marketplace Favorites +command.installed.description = Update or uninstall plug-ins installed from the Marketplace +command.installed.name = Manage installed plug-ins command.favorites.description = Open Marketplace Favorites command.favorites.name = Eclipse Marketplace Favorites command.favorites.label = Eclipse Marketplace &Favorites... diff --git a/org.eclipse.epp.mpc.ui/plugin.xml b/org.eclipse.epp.mpc.ui/plugin.xml index 5a815fce..ad2fe1eb 100644 --- a/org.eclipse.epp.mpc.ui/plugin.xml +++ b/org.eclipse.epp.mpc.ui/plugin.xml @@ -27,6 +27,10 @@ class="org.eclipse.epp.internal.mpc.ui.commands.ShowFavoritesCommand" commandId="org.eclipse.epp.mpc.ui.command.showFavorites"> + + @@ -50,6 +54,11 @@ id="org.eclipse.epp.mpc.ui.command.showFavorites" name="%command.favorites.name"> + + diff --git a/org.eclipse.epp.mpc.ui/src/org/eclipse/epp/internal/mpc/ui/commands/ShowInstalledSolutionsCommand.java b/org.eclipse.epp.mpc.ui/src/org/eclipse/epp/internal/mpc/ui/commands/ShowInstalledSolutionsCommand.java new file mode 100644 index 00000000..ff9aa296 --- /dev/null +++ b/org.eclipse.epp.mpc.ui/src/org/eclipse/epp/internal/mpc/ui/commands/ShowInstalledSolutionsCommand.java @@ -0,0 +1,29 @@ +/******************************************************************************* + * Copyright (c) 2010 The Eclipse Foundation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * The Eclipse Foundation - initial API and implementation + *******************************************************************************/ +package org.eclipse.epp.internal.mpc.ui.commands; + +import org.eclipse.core.commands.AbstractHandler; +import org.eclipse.core.commands.ExecutionEvent; +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.epp.mpc.ui.IMarketplaceClientConfiguration; +import org.eclipse.epp.mpc.ui.IMarketplaceClientService; +import org.eclipse.epp.mpc.ui.MarketplaceClient; + +public class ShowInstalledSolutionsCommand extends AbstractHandler { + + public Object execute(ExecutionEvent event) throws ExecutionException { + IMarketplaceClientService marketplaceClientService = MarketplaceClient.getMarketplaceClientService(); + IMarketplaceClientConfiguration config = marketplaceClientService.newConfiguration(); + marketplaceClientService.openInstalled(config); + return null; + } + +}