~ubuntu-branches/ubuntu/raring/zeroc-icee-java/raring

« back to all changes in this revision

Viewing changes to test/IceE/common/CollocatedWrapper.java

  • Committer: Bazaar Package Importer
  • Author(s): Francisco Moya
  • Date: 2008-08-07 23:05:39 UTC
  • mfrom: (3.1.2 gutsy)
  • Revision ID: james.westby@ubuntu.com-20080807230539-iiuezo41bclg5yxy
Tags: 1.2.0-3
* Upgraded packaging standards.
* Removed unsatisfiable build dependency (Closes: #487027).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// **********************************************************************
2
 
//
3
 
// Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved.
4
 
//
5
 
// This copy of Ice-E is licensed to you under the terms described in the
6
 
// ICEE_LICENSE file included in this distribution.
7
 
//
8
 
// **********************************************************************
9
 
 
10
 
public class CollocatedWrapper 
11
 
    extends TestApplication
12
 
    implements Runnable
13
 
{
14
 
    protected void
15
 
    startApp()
16
 
        throws javax.microedition.midlet.MIDletStateChangeException
17
 
    {
18
 
        super.startApp();
19
 
        new Thread(this).start();
20
 
    }
21
 
 
22
 
    public void
23
 
    run()
24
 
    {
25
 
        try
26
 
        {
27
 
            if(_communicator != null)
28
 
            {
29
 
                Collocated.run(new String[0], _communicator, _out); 
30
 
            }
31
 
            done();
32
 
        }
33
 
        catch(Exception ex)
34
 
        {
35
 
            _out.println(ex.toString());
36
 
            ex.printStackTrace();
37
 
        }
38
 
    }
39
 
}