if (fIsDynamicProbe) {
String temp = fProbeEventNameText.getText();
- if (temp.isEmpty() ||
- fProbeText.getText().matches("\\s*") || //$NON-NLS-1$
+ if (temp.trim().isEmpty() ||
(!temp.matches("^[\\s]{0,}$") && !temp.matches("^[a-zA-Z0-9\\-\\_]{1,}$"))) { //$NON-NLS-1$ //$NON-NLS-2$
MessageDialog.openError(getShell(),
Messages.TraceControl_EnableEventsDialogTitle,
fFunctionString = null;
if (fIsDynamicFunctionProbe) {
String functionTemp = fFunctionEventNameText.getText();
- if (functionTemp.isEmpty() ||
- functionTemp.matches("\\s*") || //$NON-NLS-1$
+ if (functionTemp.trim().isEmpty() ||
(!functionTemp.matches("^[\\s]{0,}$") && !functionTemp.matches("^[a-zA-Z0-9\\-\\_]{1,}$"))) { //$NON-NLS-1$ //$NON-NLS-2$
MessageDialog.openError(getShell(),
Messages.TraceControl_EnableEventsDialogTitle,
if (fProviderGroup.isEventFilteringSupported(true)) {
String tempFilter = fFilterText.getText();
- if(!tempFilter.isEmpty() && !tempFilter.matches("\\s*")) { //$NON-NLS-1$
+ if(!tempFilter.trim().isEmpty()) {
fFilterExpression = tempFilter;
}
}
}
String temp = fLogLevelEventNameText.getText();
- if (temp.isEmpty() ||
- temp.matches("\\s*") || //$NON-NLS-1$
+ if (temp.trim().isEmpty() ||
(!temp.matches("^[\\s]{0,}$") && !temp.matches("^[a-zA-Z0-9\\-\\_]{1,}$"))) { //$NON-NLS-1$ //$NON-NLS-2$
MessageDialog.openError(getShell(),
Messages.TraceControl_EnableEventsDialogTitle,
fWildcard = null;
if (fIsWildcard) {
String tempWildcard = fWildcardText.getText();
- if (tempWildcard.isEmpty() ||
- tempWildcard.matches("\\s*") || //$NON-NLS-1$
+ if (tempWildcard.trim().isEmpty() ||
(!tempWildcard.matches("^[\\s]{0,}$") && !tempWildcard.matches("^[a-zA-Z0-9\\-\\_\\*\\\\\\']{1,}$"))) { //$NON-NLS-1$ //$NON-NLS-2$
MessageDialog.openError(getShell(),
Messages.TraceControl_EnableEventsDialogTitle,
if (fProviderGroup.isEventFilteringSupported(false)) {
String tempFilter = fFilterText.getText();
- if(!tempFilter.isEmpty() && !tempFilter.matches("\\s*")) { //$NON-NLS-1$
+ if(!tempFilter.trim().isEmpty()) {
fFilterExpression = tempFilter;
}
}
if (fSessions[0].isEventFilteringSupported(fIsKernel)) {
String tempFilter = fFilterText.getText();
- if(!tempFilter.isEmpty() && !tempFilter.matches("\\s*")) { //$NON-NLS-1$
+ if(!tempFilter.trim().isEmpty()) {
fFilterExpression = tempFilter;
}
}