1
edit
Changes
no edit summary
::
a) import java.util.Calendar;
import java.util.Date;
import cs.dps914.osgi.lab.chatinterface.IMessage;
public String getSource() {
return source;
}
public void setTime(Date time) {
if (time!=null) {
this.time=time;
} else {
this.time=Calendar.getInstance().getTime();
}
}
public Date getTime() {
return time;
}
public void setMessage(String msg) {
if (msg!=null) {
message=msg;
} else {
message="";
}
}
public String getMessage() {
return message;
}
}
b) In the Runtime tab select Add