added support for compilation output in mote type creation exception
This commit is contained in:
parent
915b7d4d36
commit
afcbbac7b7
|
@ -24,7 +24,7 @@
|
||||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||||
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
* $Id: MoteType.java,v 1.6 2007/04/02 12:45:20 fros4943 Exp $
|
* $Id: MoteType.java,v 1.7 2007/05/10 17:00:03 fros4943 Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package se.sics.cooja;
|
package se.sics.cooja;
|
||||||
|
@ -34,6 +34,8 @@ import javax.swing.JFrame;
|
||||||
import javax.swing.JPanel;
|
import javax.swing.JPanel;
|
||||||
import org.jdom.Element;
|
import org.jdom.Element;
|
||||||
|
|
||||||
|
import se.sics.cooja.dialogs.MessageList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The mote type defines properties common for several motes. These properties
|
* The mote type defines properties common for several motes. These properties
|
||||||
* may differ between different implementations, but typically includes how a
|
* may differ between different implementations, but typically includes how a
|
||||||
|
@ -149,9 +151,19 @@ public interface MoteType {
|
||||||
Collection<Element> configXML, boolean visAvailable) throws MoteTypeCreationException;
|
Collection<Element> configXML, boolean visAvailable) throws MoteTypeCreationException;
|
||||||
|
|
||||||
public class MoteTypeCreationException extends Exception {
|
public class MoteTypeCreationException extends Exception {
|
||||||
|
private MessageList compilationOutput = null;
|
||||||
public MoteTypeCreationException(String message) {
|
public MoteTypeCreationException(String message) {
|
||||||
super(message);
|
super(message);
|
||||||
}
|
}
|
||||||
|
public boolean hasCompilationOutput() {
|
||||||
|
return compilationOutput != null;
|
||||||
|
}
|
||||||
|
public void setCompilationOutput(MessageList compilationOutput) {
|
||||||
|
this.compilationOutput = compilationOutput;
|
||||||
|
}
|
||||||
|
public MessageList getCompilationOutput() {
|
||||||
|
return compilationOutput;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue