2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
9 package eu
.etaxonomy
.taxeditor
.local
.view
.datasource
.e4
.handler
;
11 import org
.eclipse
.core
.runtime
.IStatus
;
12 import org
.eclipse
.jface
.wizard
.Wizard
;
13 import org
.eclipse
.jface
.wizard
.WizardDialog
;
14 import org
.eclipse
.swt
.widgets
.Shell
;
16 import eu
.etaxonomy
.taxeditor
.local
.datasource
.wizard
.CdmRemoteServerWizard
;
17 import eu
.etaxonomy
.taxeditor
.local
.view
.datasource
.e4
.CdmRemoteServerViewPart
;
18 import eu
.etaxonomy
.taxeditor
.remoting
.source
.CdmServerInfoConfig
;
25 public class EditRemoteServerHandler
extends AbstractRemoteServerHandler
{
28 public boolean specificExecute(CdmRemoteServerViewPart remoteServerViewPart
, CdmServerInfoConfig container
, Shell shell
) {
30 //FIXME:Remoting we need another wizard for ICdmRemoteSource
31 Wizard wizard
= new CdmRemoteServerWizard(container
, CdmRemoteServerWizard
.Mode
.EDIT
);
32 WizardDialog dialog
= new WizardDialog(shell
, wizard
);
34 int result
= dialog
.open();
36 if(result
== IStatus
.OK
){
37 if(remoteServerViewPart
!= null){
39 remoteServerViewPart
.getViewer().update(container
, null);