Search in sources :

Example 1 with IConnectWizard

use of org.eclipse.ecf.ui.IConnectWizard in project ecf by eclipse.

the class AbstractURLHyperlink method open.

/*
	 * @see org.eclipse.jdt.internal.ui.javaeditor.IHyperlink#open()
	 */
public void open() {
    try {
        IWorkbench workbench = PlatformUI.getWorkbench();
        IWorkbenchWindow window = workbench.getActiveWorkbenchWindow();
        IContainer container = createContainer();
        Assert.isNotNull(container);
        IConnectWizard icw = createConnectWizard();
        Assert.isNotNull(icw);
        icw.init(workbench, container);
        WizardDialog dialog = new WizardDialog(window.getShell(), icw);
        dialog.open();
    } catch (Exception ex) {
        IStatus status = new Status(IStatus.ERROR, Activator.PLUGIN_ID, IStatus.ERROR, Messages.AbstractURIHyperlink_EXCEPTION_HYPERLINK, ex);
        ErrorDialog.openError(null, null, null, status);
        Activator.getDefault().getLog().log(status);
    }
}
Also used : IWorkbench(org.eclipse.ui.IWorkbench) Status(org.eclipse.core.runtime.Status) IStatus(org.eclipse.core.runtime.IStatus) IWorkbenchWindow(org.eclipse.ui.IWorkbenchWindow) IStatus(org.eclipse.core.runtime.IStatus) IContainer(org.eclipse.ecf.core.IContainer) IConnectWizard(org.eclipse.ecf.ui.IConnectWizard) WizardDialog(org.eclipse.jface.wizard.WizardDialog) ContainerCreateException(org.eclipse.ecf.core.ContainerCreateException)

Example 2 with IConnectWizard

use of org.eclipse.ecf.ui.IConnectWizard in project ecf by eclipse.

the class ConnectWizardNode method createWizard.

public IWizard createWizard() throws CoreException {
    IConnectWizard connectWizard = ((IConnectWizard) getWizardElement().createWizardForNode());
    connectWizard.init(getWorkbench(), containerToConnect);
    return connectWizard;
}
Also used : IConnectWizard(org.eclipse.ecf.ui.IConnectWizard)

Example 3 with IConnectWizard

use of org.eclipse.ecf.ui.IConnectWizard in project ecf by eclipse.

the class ContainerConnectWizardDialog method getWizard.

protected static IConnectWizard getWizard(IWorkbench workbench, ContainerConfigurationResult containerHolder) throws CoreException {
    IConnectWizard connectWizard = null;
    IConfigurationElement ce = findConnectWizardConfigurationElements(containerHolder)[0];
    connectWizard = (IConnectWizard) ce.createExecutableExtension(IWizardRegistryConstants.ATT_CLASS);
    connectWizard.init(workbench, containerHolder.getContainer());
    return connectWizard;
}
Also used : IConnectWizard(org.eclipse.ecf.ui.IConnectWizard)

Aggregations

IConnectWizard (org.eclipse.ecf.ui.IConnectWizard)3 IStatus (org.eclipse.core.runtime.IStatus)1 Status (org.eclipse.core.runtime.Status)1 ContainerCreateException (org.eclipse.ecf.core.ContainerCreateException)1 IContainer (org.eclipse.ecf.core.IContainer)1 WizardDialog (org.eclipse.jface.wizard.WizardDialog)1 IWorkbench (org.eclipse.ui.IWorkbench)1 IWorkbenchWindow (org.eclipse.ui.IWorkbenchWindow)1