package annis.gui.admin.reflinks;

import com.vaadin.ui.FormLayout;
import com.vaadin.ui.Panel;
import com.vaadin.ui.TextField;

public class MigrationPanel extends Panel {

  /**
   * 
   */
  private static final long serialVersionUID = -6893786947746535332L;


  @Override
  public void attach() {
    super.attach();


    TextField serviceUrl = new TextField("ANNIS service URL");
    TextField serviceUsername = new TextField("Username for ANNIS service");
    TextField servicePassword = new TextField("Password for ANNIS service");


    FormLayout layout = new FormLayout(serviceUrl, serviceUsername, servicePassword);
    setContent(layout);
  }

}

@@ -28,16 +28,76 @@
 links;%0A%0A
+import com.vaadin.ui.Button;%0Aimport com.vaadin.ui.CheckBox;%0A
 import c
@@ -180,16 +180,53 @@
 xtField;
+%0Aimport com.vaadin.ui.VerticalLayout;
 %0A%0Apublic
@@ -409,24 +409,25 @@
 attach();%0A%0A%0A
+%0A
     TextFiel
@@ -631,16 +631,81 @@
 vice%22);%0A
+    CheckBox skipExisting = new CheckBox(%22Skip existing UUIDs%22);%0A
 %0A%0A    Fo
@@ -717,16 +717,28 @@
 out 
-l
+formL
 ayout =
+%0A       
  new
@@ -793,16 +793,157 @@
 Password
+, skipExisting);%0A%0A    Button btMigrate = new Button(%22Start migration%22);%0A%0A    VerticalLayout layout = new VerticalLayout(formLayout, btMigrate
 );%0A    s

Add more fields to the migration panel