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);
}
}
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;
}
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;
}
Aggregations