package kg.apc.jmeter.modifiers;

import java.awt.BorderLayout;
import kg.apc.jmeter.JMeterPluginsUtils;
import org.apache.jmeter.processor.gui.AbstractPreProcessorGui;
import org.apache.jmeter.testelement.TestElement;

public class AnchorModifierGui extends AbstractPreProcessorGui {

    private static final String WIKIPAGE = "SpiderPreProcessor";

    public AnchorModifierGui() {
        super();
        init();
    }

    @Override
    public String getStaticLabel() {
        return JMeterPluginsUtils.prefixLabel("Spider PreProcessor");
    }

    @Override
    public String getLabelResource() {
        return this.getClass().getName();
    }

    @Override
    public TestElement createTestElement() {
        AnchorModifier modifier = new AnchorModifier();
        modifyTestElement(modifier);
        return modifier;
    }

    /**
     * Modifies a given TestElement to mirror the data in the gui components.
     *
     * @see
     * org.apache.jmeter.gui.JMeterGUIComponent#modifyTestElement(TestElement)
     */
    @Override
    public void modifyTestElement(TestElement modifier) {
        configureTestElement(modifier);
    }

    private void init() {
        setLayout(new BorderLayout(0, 5));
        setBorder(makeBorder());

        add(JMeterPluginsUtils.addHelpLinkToPanel(makeTitlePanel(), WIKIPAGE), BorderLayout.NORTH);
    }
}

@@ -57,16 +57,78 @@
 Layout;%0A
+import javax.swing.JScrollPane;%0Aimport javax.swing.JTextArea;%0A
 import k
@@ -1407,16 +1407,518 @@
 .NORTH);
+%0A%0A        JTextArea info = new JTextArea();%0A        info.setEditable(false);%0A        info.setWrapStyleWord(true);%0A        info.setOpaque(false);%0A        info.setLineWrap(true);%0A        info.setColumns(20);%0A%0A        JScrollPane jScrollPane1 = new javax.swing.JScrollPane();%0A        jScrollPane1.setViewportView(info);%0A        jScrollPane1.setBorder(null);%0A%0A        info.setText(%22This is a place holder.%5CnTODO: We should add a small description here...%22);%0A%0A        add(jScrollPane1, BorderLayout.CENTER);
 %0A    %7D%0A%7D

Add place holder to Spider pre preocessor GUI for description. TODO: We should add a small description here...