title: plugin development in eclipse
body: <p>i have this problem with my project these days. i'm developing a plugin in eclipse,
  i need to write a text on the active window(coding area) when i click a button.</p>
  
  <p>i use the following code in my button.java class</p>
  
  <pre><code>public class Button implements IWorkbenchWindowActionDelegate {
  private IWorkbenchWindow window;
  /**
   * The constructor.
   */
  public Button() {
  }
  
  /**
   * The action has been activated. The argument of the
   * method represents the 'real' action sitting
   * in the workbench UI.
   * @see IWorkbenchWindowActionDelegate#run
   */
  public void run(IAction action) {
      MessageDialog.openInformation(
          window.getShell(),
          "Button",
          "Code of the Button goes here");
  }
  </code></pre>
  
  <p>how can i do it inside the run method? here I'm displaying a message, instead of showing a message i want to display some text in the text editor pane. please help me to achieve this.</p>
  
  <p>if you guys can please give me some links to understand about eclipse plug-in developments? any blog posts that are easy to understand will be much better? </p>