/*******************************************************************************
- * Copyright (c) 2009, 2010, 2012 Ericsson
+ * Copyright (c) 2009, 2012 Ericsson
*
* All rights reserved. This program and the accompanying materials are
* made available under the terms of the Eclipse Public License v1.0 which
private final String fName;
/**
* Action class for pinning of TmfView.
- * @since 1.2
+ * @since 2.0
*/
protected PinTmfViewAction fPinAction;
}
/**
- * Disposes this view and deregisters itself from the signal manager
+ * Disposes this view and de-registers itself from the signal manager
+ *
* @see org.eclipse.ui.part.WorkbenchPart#dispose()
*/
@Override
TmfSignalManager.dispatchSignal(signal);
}
+ // ------------------------------------------------------------------------
+ // View pinning support
+ // ------------------------------------------------------------------------
+
/**
* Returns whether the pin flag is set.
* For example, this flag can be used to ignore time synchronization signals from other TmfViews.
*
* @return pin flag
- * @since 1.2
+ * @since 2.0
*/
public boolean isPinned() {
return ((fPinAction != null) && (fPinAction.isChecked()));
* Method adds a pin action to the TmfView. The pin action allows to toggle the <code>fIsPinned</code> flag.
* For example, this flag can be used to ignore time synchronization signals from other TmfViews.
*
- * @since 1.2
+ * @since 2.0
*/
protected void contributePinActionToToolBar() {
if (fPinAction == null) {
toolBarManager.add(fPinAction);
}
}
+
}