* The text widget for the session path.
*/
private Text fSessionPathText = null;
+ /**
+ * The button widget to select a snapshot session
+ */
+ private Button fSnapshotButton = null;
/**
* The Group for stream configuration.
*/
* The session path string.
*/
private String fSessionPath = null;
+ /**
+ * The session path string.
+ */
+ private boolean fIsSnapshot = false;
/**
* Flag whether default location (path) shall be used or not
*/
fStreamingComposite = null;
fSessionName = null;
fSessionPath = null;
+ fIsSnapshot = false;
fIsDefaultPath = true;
fIsStreamedTrace = false;
fNetworkUrl = null;
public String getDataUrl() {
return fDataUrl;
}
-
+ @Override
+ public boolean isSnapshot() {
+ return fIsSnapshot;
+ }
// ------------------------------------------------------------------------
// Operations
// ------------------------------------------------------------------------
fSessionPathText = new Text(sessionGroup, SWT.NONE);
fSessionPathText.setToolTipText(Messages.TraceControl_CreateSessionPathTooltip);
+ if (fParent.isSnapshotSupported()) {
+ fSnapshotButton = new Button(sessionGroup, SWT.CHECK);
+ fSnapshotButton.setText(Messages.TraceControl_CreateSessionSnapshotLabel);
+ fSnapshotButton.setToolTipText(Messages.TraceControl_CreateSessionSnapshotTooltip);
+ GridData data = new GridData(GridData.FILL_HORIZONTAL);
+ data.horizontalSpan = 4;
+ fSnapshotButton.setData(data);
+ }
+
// layout widgets
GridData data = new GridData(GridData.FILL_HORIZONTAL);
data.horizontalSpan = 3;
fIsDefaultPath = false;
}
+ if(fParent.isSnapshotSupported()) {
+ fIsSnapshot = fSnapshotButton.getSelection();
+ }
+
fNetworkUrl = null;
fControlUrl = null;
fDataUrl = null;