/**
* Constructor
* @param shell - a shell for the display of the dialog
- * @param parent - trace control parent for validation of session name
*/
- public CreateSessionDialog(Shell shell, TraceSessionGroup parent) {
+ public CreateSessionDialog(Shell shell) {
super(shell);
- fParent = parent;
}
// ------------------------------------------------------------------------
return fIsDefaultPath;
}
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.linuxtools.lttng.ui.views.control.dialogs.ICreateSessionDialog#setTraceSessionGroup(org.eclipse.linuxtools.lttng.ui.views.control.model.impl.TraceSessionGroup)
+ */
+ @Override
+ public void setTraceSessionGroup(TraceSessionGroup group) {
+ fParent = group;
+ }
+
// ------------------------------------------------------------------------
// Operations
// ------------------------------------------------------------------------
}
// Check for invalid names
- if (!fSessionName.matches("^[a-zA-Z0-9\\-\\_]{2,}$")) { //$NON-NLS-1$
+ if (!fSessionName.matches("^[a-zA-Z0-9\\-\\_]{1,}$")) { //$NON-NLS-1$
MessageDialog.openError(getShell(),
Messages.TraceControl_CreateSessionDialogTitle,
Messages.TraceControl_InvalidSessionNameError + " (" + fSessionName + ") \n"); //$NON-NLS-1$ //$NON-NLS-2$