1 |
/* |
/* |
2 |
* JSampler - a java front-end for LinuxSampler |
* JSampler - a java front-end for LinuxSampler |
3 |
* |
* |
4 |
* Copyright (C) 2005 Grigor Kirilov Iliev |
* Copyright (C) 2005, 2006 Grigor Kirilov Iliev |
5 |
* |
* |
6 |
* This file is part of JSampler. |
* This file is part of JSampler. |
7 |
* |
* |
31 |
|
|
32 |
|
|
33 |
/** |
/** |
34 |
* |
* This task removes the specified sampler channel. |
35 |
* @author Grigor Iliev |
* @author Grigor Iliev |
36 |
*/ |
*/ |
37 |
public class RemoveChannel extends EnhancedTask { |
public class RemoveChannel extends EnhancedTask { |
38 |
private int channel; |
private int channel; |
39 |
|
|
40 |
|
/** |
41 |
|
* Creates new instance of <code>RemoveChannel</code>. |
42 |
|
* @param channel The numerical ID of the channel to remove. |
43 |
|
*/ |
44 |
public |
public |
45 |
RemoveChannel(int channel) { |
RemoveChannel(int channel) { |
46 |
setTitle("RemoveChannel_task"); |
setTitle("RemoveChannel_task"); |
47 |
setDescription(i18n.getMessage("RemoveChannel.description")); |
setDescription(i18n.getMessage("RemoveChannel.description", channel)); |
48 |
|
|
49 |
this.channel = channel; |
this.channel = channel; |
50 |
} |
} |
51 |
|
|
52 |
|
/** The entry point of the task. */ |
53 |
public void |
public void |
54 |
run() { |
run() { |
55 |
try { CC.getClient().removeSamplerChannel(channel); } |
try { CC.getClient().removeSamplerChannel(channel); } |