/*
   * (non-Javadoc)
   * Initializes the editor part with a site and input.
   */
  public void init(IEditorSite site, IEditorInput input) {
    super.init(site, input);

    GenericServer gserver = (GenericServer) server.getOriginal().getAdapter(GenericServer.class);
    try {
      gserver.getServerInstanceProperties();
      int a = 10;
    } catch (Exception e) {
      log.error(e);
    }
    addChangeListener();
    initialize();
  }
 public ServerPort[] getServerPorts(IServer server) {
   GenericServer gserver = (GenericServer) server.getAdapter(GenericServer.class);
   return gserver.getServerPorts();
 }