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() {
        init();
    }

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

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

    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)
     */
    public void modifyTestElement(TestElement modifier) {
        configureTestElement(modifier);
    }

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

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

        add(makeTitlePanel(), BorderLayout.NORTH);
    }
}

@@ -57,16 +57,78 @@
 Layout;%0A
+import javax.swing.JScrollPane;%0Aimport javax.swing.JTextArea;%0A
 import k
@@ -160,16 +160,16 @@
 sUtils;%0A
-
 import o
@@ -583,32 +583,46 @@
 essor%22);%0A    %7D%0A%0A
+    @Override%0A
     public Strin
@@ -689,24 +689,38 @@
 e();%0A    %7D%0A%0A
+    @Override%0A
     public T
@@ -1069,16 +1069,30 @@
      */%0A
+    @Override%0A
     publ
@@ -1404,28 +1404,471 @@
     
-add(makeTitlePanel()
+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 item will create a HTTP request to all links found in a page.%22);%0A%0A        add(jScrollPane1
 , Bo
@@ -1878,21 +1878,22 @@
 rLayout.
-NORTH
+CENTER
 );%0A    %7D

Fix help link not displayed in Spider pre preocessor Add quick description