當前位置: 首頁>>代碼示例>>Java>>正文


Java ISelectionChangedListener.selectionChanged方法代碼示例

本文整理匯總了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);
}
 
開發者ID:polarsys,項目名稱:time4sys,代碼行數:16,代碼來源:GqamEditor.java

示例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 );
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:19,代碼來源:ProtocolEditor.java

示例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 );
}
 
開發者ID:eclipse,項目名稱:neoscada,代碼行數:18,代碼來源:ConfigurationEditor.java

示例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);
}
 
開發者ID:eclipse,項目名稱:scanning,代碼行數:13,代碼來源:DelegatingSelectionProvider.java

示例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));
	}
}
 
開發者ID:gw4e,項目名稱:gw4e.project,代碼行數:8,代碼來源:GW4EEditor.java


注:本文中的org.eclipse.jface.viewers.ISelectionChangedListener.selectionChanged方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。