Search in sources :

Example 6 with MarketplaceWizardCommand

use of org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand in project epp.mpc by eclipse.

the class MarketplaceClientService method open.

public void open(IMarketplaceClientConfiguration configuration) {
    MarketplaceWizardCommand command = new MarketplaceWizardCommand();
    command.setConfiguration(configuration);
    WizardState wizardState = new WizardState();
    setInitialContentType(configuration, wizardState);
    wizardState.setProceedWithInstallation(false);
    command.setWizardDialogState(wizardState);
    execute(command);
}
Also used : AbstractMarketplaceWizardCommand(org.eclipse.epp.internal.mpc.ui.commands.AbstractMarketplaceWizardCommand) MarketplaceWizardCommand(org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand) WizardState(org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceWizard.WizardState)

Example 7 with MarketplaceWizardCommand

use of org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand in project epp.mpc by eclipse.

the class MarketplaceClientService method openSelected.

public void openSelected(IMarketplaceClientConfiguration configuration) {
    checkInitialState(configuration);
    MarketplaceWizardCommand command = new MarketplaceWizardCommand();
    command.setConfiguration(configuration);
    WizardState wizardState = new WizardState();
    wizardState.setContentType(ContentType.SELECTION);
    wizardState.setProceedWithInstallation(false);
    command.setWizardDialogState(wizardState);
    execute(command);
}
Also used : AbstractMarketplaceWizardCommand(org.eclipse.epp.internal.mpc.ui.commands.AbstractMarketplaceWizardCommand) MarketplaceWizardCommand(org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand) WizardState(org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceWizard.WizardState)

Example 8 with MarketplaceWizardCommand

use of org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand in project epp.mpc by eclipse.

the class MarketplaceClientService method openSearch.

public void openSearch(IMarketplaceClientConfiguration configuration, IMarket market, ICategory category, String query) {
    MarketplaceWizardCommand command = new MarketplaceWizardCommand();
    command.setConfiguration(configuration);
    WizardState wizardState = new WizardState();
    wizardState.setContentType(ContentType.SEARCH);
    wizardState.setFilterMarket(market);
    wizardState.setFilterCategory(category);
    wizardState.setFilterQuery(query);
    wizardState.setProceedWithInstallation(false);
    command.setWizardDialogState(wizardState);
    execute(command);
}
Also used : AbstractMarketplaceWizardCommand(org.eclipse.epp.internal.mpc.ui.commands.AbstractMarketplaceWizardCommand) MarketplaceWizardCommand(org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand) WizardState(org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceWizard.WizardState)

Example 9 with MarketplaceWizardCommand

use of org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand in project epp.mpc by eclipse.

the class MarketplaceClientService method openFavorites.

public void openFavorites(IMarketplaceClientConfiguration configuration) {
    MarketplaceWizardCommand command = new MarketplaceWizardCommand();
    command.setConfiguration(configuration);
    WizardState wizardState = new WizardState();
    wizardState.setContentType(ContentType.FAVORITES);
    wizardState.setProceedWithInstallation(false);
    command.setWizardDialogState(wizardState);
    execute(command);
}
Also used : AbstractMarketplaceWizardCommand(org.eclipse.epp.internal.mpc.ui.commands.AbstractMarketplaceWizardCommand) MarketplaceWizardCommand(org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand) WizardState(org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceWizard.WizardState)

Example 10 with MarketplaceWizardCommand

use of org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand in project epp.mpc by eclipse.

the class MarketplaceClientService method open.

public void open(IMarketplaceClientConfiguration configuration, Set<INode> nodes) {
    MarketplaceWizardCommand command = new MarketplaceWizardCommand();
    command.setConfiguration(configuration);
    WizardState wizardState = new WizardState();
    setInitialContentType(configuration, wizardState);
    wizardState.setContent(nodes);
    wizardState.setProceedWithInstallation(false);
    command.setWizardDialogState(wizardState);
    execute(command);
}
Also used : AbstractMarketplaceWizardCommand(org.eclipse.epp.internal.mpc.ui.commands.AbstractMarketplaceWizardCommand) MarketplaceWizardCommand(org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand) WizardState(org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceWizard.WizardState)

Aggregations

MarketplaceWizardCommand (org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand)11 WizardState (org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceWizard.WizardState)8 AbstractMarketplaceWizardCommand (org.eclipse.epp.internal.mpc.ui.commands.AbstractMarketplaceWizardCommand)7 ExecutionEvent (org.eclipse.core.commands.ExecutionEvent)3 ExecutionException (org.eclipse.core.commands.ExecutionException)3 IStatus (org.eclipse.core.runtime.IStatus)3 UnsupportedEncodingException (java.io.UnsupportedEncodingException)2 URL (java.net.URL)1 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1 Status (org.eclipse.core.runtime.Status)1 ServiceLocator (org.eclipse.epp.internal.mpc.core.ServiceLocator)1 DefaultCatalogService (org.eclipse.epp.internal.mpc.core.service.DefaultCatalogService)1 INode (org.eclipse.epp.mpc.core.model.INode)1 ICatalogService (org.eclipse.epp.mpc.core.service.ICatalogService)1 CatalogDescriptor (org.eclipse.epp.mpc.ui.CatalogDescriptor)1 MarketplaceUrlHandler (org.eclipse.epp.mpc.ui.MarketplaceUrlHandler)1 SolutionInstallationInfo (org.eclipse.epp.mpc.ui.MarketplaceUrlHandler.SolutionInstallationInfo)1 VoidResult (org.eclipse.swtbot.swt.finder.results.VoidResult)1 Test (org.junit.Test)1