/[svn]/jsampler/trunk/src/org/jsampler/task/SetServerAddress.java
ViewVC logotype

Diff of /jsampler/trunk/src/org/jsampler/task/SetServerAddress.java

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

revision 1866 by iliev, Mon Apr 2 21:18:31 2007 UTC revision 1867 by iliev, Mon Mar 16 22:12:32 2009 UTC
# Line 1  Line 1 
1  /*  /*
2   *   JSampler - a java front-end for LinuxSampler   *   JSampler - a java front-end for LinuxSampler
3   *   *
4   *   Copyright (C) 2005-2006 Grigor Iliev <grigor@grigoriliev.com>   *   Copyright (C) 2005-2009 Grigor Iliev <grigor@grigoriliev.com>
5   *   *
6   *   This file is part of JSampler.   *   This file is part of JSampler.
7   *   *
# Line 22  Line 22 
22    
23  package org.jsampler.task;  package org.jsampler.task;
24    
 import java.util.logging.Level;  
   
25  import org.jsampler.CC;  import org.jsampler.CC;
 import org.jsampler.HF;  
26    
27    
28  /**  /**
# Line 47  public class SetServerAddress extends En Line 44  public class SetServerAddress extends En
44           */           */
45          public          public
46          SetServerAddress(String address, int port) {          SetServerAddress(String address, int port) {
47                    setSilent(true);
48                  setTitle("");                  setTitle("");
49                  setDescription("");                  setDescription("");
50                  this.address = address;                  this.address = address;
# Line 54  public class SetServerAddress extends En Line 52  public class SetServerAddress extends En
52          }          }
53                    
54          /** The entry point of the task. */          /** The entry point of the task. */
55            @Override
56          public void          public void
57          run() {          exec() throws Exception {
58                  try {                  CC.getClient().setServerAddress(address);
59                          CC.getClient().setServerAddress(address);                  CC.getClient().setServerPort(port);
                         CC.getClient().setServerPort(port);  
                 } catch(Exception x) {  
                         CC.getLogger().log(Level.FINE, HF.getErrorMessage(x), x);  
                 }  
60          }          }
61  }  }

Legend:
Removed from v.1866  
changed lines
  Added in v.1867

  ViewVC Help
Powered by ViewVC