}
/**
- * Validates the kernel composite input data.
+ * Validates the UST composite input data.
* @return true if configured data is valid and can be retrieved.
*/
public boolean isValid() {
fLogLevelEventName = temp;
}
+ TraceLogLevel[] levels = TraceLogLevel.values();
+ int id = fLogLevelCombo.getSelectionIndex();
+ if ((id < 0) && fIsLogLevel) {
+ MessageDialog.openError(getShell(),
+ Messages.TraceControl_EnableEventsDialogTitle,
+ Messages.TraceControl_InvalidLogLevel + " (" + temp + ") \n"); //$NON-NLS-1$ //$NON-NLS-2$
+
+ return false;
+ } else {
+ fLogLevel = levels[id];
+ }
+
// initialize log level event name string
fWildcard = null;
temp = fWildcardText.getText();
/**
* Content provider for the tracepoints tree.
*/
- final public class UstContentProvider extends TraceControlContentProvider {
+ final static public class UstContentProvider extends TraceControlContentProvider {
@Override
public Object[] getChildren(Object parentElement) {
if (parentElement instanceof TargetNodeComponent) {
/**
* Content label for the tracepoints tree.
*/
- final public class UstLabelProvider extends TraceControlLabelProvider {
+ final static public class UstLabelProvider extends TraceControlLabelProvider {
@Override
public Image getImage(Object element) {
return null;