本文整理匯總了Java中org.eclipse.jface.viewers.ISelectionChangedListener.selectionChanged方法的典型用法代碼示例。如果您正苦於以下問題:Java ISelectionChangedListener.selectionChanged方法的具體用法?Java ISelectionChangedListener.selectionChanged怎麽用?Java ISelectionChangedListener.selectionChanged使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.jface.viewers.ISelectionChangedListener
的用法示例。
在下文中一共展示了ISelectionChangedListener.selectionChanged方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: setSelection
import org.eclipse.jface.viewers.ISelectionChangedListener; //導入方法依賴的package包/類
/**
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's overall selection.
* Calling this result will notify the listeners.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSelection(ISelection selection) {
editorSelection = selection;
for (ISelectionChangedListener listener : selectionChangedListeners) {
listener.selectionChanged(new SelectionChangedEvent(this, selection));
}
setStatusLineManager(selection);
}
示例2: setSelection
import org.eclipse.jface.viewers.ISelectionChangedListener; //導入方法依賴的package包/類
/**
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's overall selection.
* Calling this result will notify the listeners.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
@Override
public void setSelection ( ISelection selection )
{
editorSelection = selection;
for ( ISelectionChangedListener listener : selectionChangedListeners )
{
listener.selectionChanged ( new SelectionChangedEvent ( this, selection ) );
}
setStatusLineManager ( selection );
}
示例3: setSelection
import org.eclipse.jface.viewers.ISelectionChangedListener; //導入方法依賴的package包/類
/**
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's overall selection.
* Calling this result will notify the listeners.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setSelection ( ISelection selection )
{
editorSelection = selection;
for ( ISelectionChangedListener listener : selectionChangedListeners )
{
listener.selectionChanged ( new SelectionChangedEvent ( this, selection ) );
}
setStatusLineManager ( selection );
}
示例4: fireSelection
import org.eclipse.jface.viewers.ISelectionChangedListener; //導入方法依賴的package包/類
/**
* Call to programmatically fire a selection. This should be called directly from outside
* this class to set the workbench selection when the elements in the selection are not
* in the wrapped selection provider (e.g. a {@link TableViewer}).
* @param selection selection to fire
*/
public void fireSelection(ISelection selection) {
if (listeners.isEmpty()) return;
SelectionChangedEvent e = new SelectionChangedEvent(this, selection);
ISelectionChangedListener[] sl = listeners.toArray(new ISelectionChangedListener[listeners.size()]);
for (ISelectionChangedListener s : sl) s.selectionChanged(e);
}
示例5: setSelection
import org.eclipse.jface.viewers.ISelectionChangedListener; //導入方法依賴的package包/類
@Override
public void setSelection(ISelection selection) {
currentEditorSelection = selection;
for (ISelectionChangedListener listener : selectionChangedListeners) {
listener.selectionChanged(new SelectionChangedEvent(this, selection));
}
}