/*******************************************************************************
- * Copyright (c) 2009, 2012 Ericsson
+ * Copyright (c) 2009, 2014 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
import org.eclipse.linuxtools.tmf.core.signal.TmfSignal;
import org.eclipse.linuxtools.tmf.core.signal.TmfSignalManager;
import org.eclipse.linuxtools.tmf.core.trace.ITmfTrace;
+import org.eclipse.linuxtools.tmf.core.trace.TmfTraceManager;
import org.eclipse.linuxtools.tmf.ui.editors.ITmfTraceEditor;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IWorkbenchActionConstants;
public abstract class TmfView extends ViewPart implements ITmfComponent {
private final String fName;
+
/**
* Action class for pinning of TmfView.
- *
* @since 2.0
*/
protected PinTmfViewAction fPinAction;
+ /**
+ * Reference to the trace manager
+ * @since 2.0
+ */
+ protected final TmfTraceManager fTraceManager;
+
// ------------------------------------------------------------------------
// Constructor
// ------------------------------------------------------------------------
public TmfView(String viewName) {
super();
fName = viewName;
+ fTraceManager = TmfTraceManager.getInstance();
TmfSignalManager.register(this);
}
TmfSignalManager.dispatchSignal(signal);
}
+ /**
+ * @since 3.0
+ */
+ @Override
+ public void broadcastAsync(TmfSignal signal) {
+ TmfSignalManager.dispatchSignalAsync(signal);
+ }
+
// ------------------------------------------------------------------------
// View pinning support
// ------------------------------------------------------------------------