Search in sources :

Example 6 with WizardState

use of org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceWizard.WizardState 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 7 with WizardState

use of org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceWizard.WizardState 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 8 with WizardState

use of org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceWizard.WizardState 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 9 with WizardState

use of org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceWizard.WizardState 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

WizardState (org.eclipse.epp.internal.mpc.ui.wizards.MarketplaceWizard.WizardState)9 MarketplaceWizardCommand (org.eclipse.epp.internal.mpc.ui.commands.MarketplaceWizardCommand)8 AbstractMarketplaceWizardCommand (org.eclipse.epp.internal.mpc.ui.commands.AbstractMarketplaceWizardCommand)7 ExecutionEvent (org.eclipse.core.commands.ExecutionEvent)1 ExecutionException (org.eclipse.core.commands.ExecutionException)1 CoreException (org.eclipse.core.runtime.CoreException)1 INode (org.eclipse.epp.mpc.core.model.INode)1 VoidResult (org.eclipse.swtbot.swt.finder.results.VoidResult)1