-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
511217: Open MPC directly on Favorites list
Bug: 511217 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=511217
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...eclipse.epp.mpc.ui/src/org/eclipse/epp/internal/mpc/ui/commands/ShowFavoritesCommand.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ShowFavoritesCommand extends AbstractHandler { | ||
|
||
public Object execute(ExecutionEvent event) throws ExecutionException { | ||
IMarketplaceClientService marketplaceClientService = MarketplaceClient.getMarketplaceClientService(); | ||
IMarketplaceClientConfiguration config = marketplaceClientService.newConfiguration(); | ||
marketplaceClientService.openFavorites(config); | ||
return null; | ||
} | ||
|
||
} |