/[gcjwebplugin]/gcjwebplugin/src/gnu/gcjwebplugin/AppletViewer.java
ViewVC logotype

Diff of /gcjwebplugin/src/gnu/gcjwebplugin/AppletViewer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.10 by fitzsim, Thu Nov 13 06:11:56 2003 UTC revision 1.11 by fitzsim, Fri Nov 14 04:52:58 2003 UTC
# Line 362  class PluginAppletViewer extends AppletV Line 362  class PluginAppletViewer extends AppletV
362      String input = read ();      String input = read ();
363      PluginInstance currentInstance = null;      PluginInstance currentInstance = null;
364    
365      while (!input.equals ("shutdown"))      while (true)
366        {        {
         // FIXME: this instance scheme won't work.  
367          if (input.equals ("instance"))          if (input.equals ("instance"))
368            {            {
369              // Read applet instance identifier.              // Read applet instance identifier.
# Line 388  class PluginAppletViewer extends AppletV Line 387  class PluginAppletViewer extends AppletV
387    
388              currentInstance.setFrame (xid);              currentInstance.setFrame (xid);
389            }            }
390            else if (input.equals ("destroy"))
391              {
392                appletWindows.remove (currentInstance);
393              }
394          input = read ();          input = read ();
395        }        }
396    }    }
# Line 411  class PluginAppletViewer extends AppletV Line 414  class PluginAppletViewer extends AppletV
414    
415      System.err.println ("  PIPE: appletviewer read: " + input);      System.err.println ("  PIPE: appletviewer read: " + input);
416    
417        if (input.equals ("shutdown"))
418          {
419            stdin.close ();
420            stdout.close ();
421            System.exit (0);
422          }
423    
424      // Return confirmation string to plugin.      // Return confirmation string to plugin.
425      write (input);      write (input);
426    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26