package com.wheany;

import com.vaadin.navigator.View;
import com.vaadin.navigator.ViewChangeListener;
import com.vaadin.server.SystemError;
import com.vaadin.server.UserError;
import com.vaadin.shared.ui.label.ContentMode;
import com.vaadin.spring.annotation.SpringView;
import com.vaadin.ui.*;
import com.wheany.generated.rss.Rss;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Element;

import javax.annotation.PostConstruct;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.nio.file.StandardCopyOption;

@SpringView(name = DefaultView.VIEW_NAME)
public class DefaultView extends VerticalLayout implements View {
    public static final String VIEW_NAME = "";

    private TextField urlField;
    private Button fetchButton;

    private TextField selectorField;
    private Label itemPreview;
    private TextField linkSelectorField;
    private TextField linkAttributeField;
    private Label linkPreview;
    private Label urlPreview;
    private TextField nextPageSelectorField;
    private TextField nextPageAttributeField;
    private Label nextPagePreview;
    private Label nextPageUrlPreview;

    private RssGenerator generator;

    @PostConstruct
    void init() {
        addComponent(new SelectorUI());
    }

    @Override
    public void enter(ViewChangeListener.ViewChangeEvent event) {
        // the view is constructed in the init() method()
    }
}

@@ -944,487 +944,8 @@
 %22;%0A%0A
-    private TextField urlField;%0A    private Button fetchButton;%0A%0A    private TextField selectorField;%0A    private Label itemPreview;%0A    private TextField linkSelectorField;%0A    private TextField linkAttributeField;%0A    private Label linkPreview;%0A    private Label urlPreview;%0A    private TextField nextPageSelectorField;%0A    private TextField nextPageAttributeField;%0A    private Label nextPagePreview;%0A    private Label nextPageUrlPreview;%0A%0A    private RssGenerator generator;%0A%0A
     

Remove unused components