title: How to connect to a server through eclipse plugin and perform operations
body: <p>I am writing an eclipse plugin using java as language. The plugin is an interface to a tool present in the server. The user writes text in eclipse. The server should parse it and give an output. This should be displayed back in eclipse.</p>
  
  <p>The above simple steps must be performed by my application. Currently, I have the backend tool to parse is ready. The front-end in eclipse has a dummy GUI ready. My problem is with connection between the server and eclipse plugin.</p>
  
  <p>How can I send text in eclipse (say when a user presses a button present in the interface) to the server. I know the server details and like server address on the LAN and userid/password.</p>
  
  <p>Which interfaces/ what type of programming should i use to accomplish this.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Here is how i run my command on the server:</p>
  
  <pre><code>mycommand -f [filename] [optional arguments]
  </code></pre>
  
  <p>My frontend has the GUI ready in eclipse to form the <code>[optional arguments]</code> part. Now i have to send the text to <code>mycommand</code> and get its output.</p>