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


Java ListenerList.IDENTITY屬性代碼示例

本文整理匯總了Java中org.eclipse.core.runtime.ListenerList.IDENTITY屬性的典型用法代碼示例。如果您正苦於以下問題:Java ListenerList.IDENTITY屬性的具體用法?Java ListenerList.IDENTITY怎麽用?Java ListenerList.IDENTITY使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在org.eclipse.core.runtime.ListenerList的用法示例。


在下文中一共展示了ListenerList.IDENTITY屬性的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: PartListenerGroup

public PartListenerGroup(ITextEditor editorPart) {
	fPart= editorPart;
	fCurrentJob= null;
	fAstListeners= new ListenerList(ListenerList.IDENTITY);

	fSelectionListener= new ISelectionChangedListener() {
		public void selectionChanged(SelectionChangedEvent event) {
			ISelection selection= event.getSelection();
			if (selection instanceof ITextSelection) {
				fireSelectionChanged((ITextSelection) selection);
			}
		}
	};

	fPostSelectionListener= new ISelectionListener() {
		public void selectionChanged(IWorkbenchPart part, ISelection selection) {
			if (part == fPart && selection instanceof ITextSelection)
				firePostSelectionChanged((ITextSelection) selection);
		}
	};
}
 
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:21,代碼來源:SelectionListenerWithASTManager.java

示例2: addPropertyChangeListener

/**
 * @see org.eclipse.jface.action.ExternalActionManager.ICallback#addPropertyChangeListener(String,
 *      IPropertyChangeListener)
 */
public final void addPropertyChangeListener(final String commandId,
		final IPropertyChangeListener listener) {
	Object existing = registeredListeners.get(commandId);
	if (existing instanceof ListenerList) {
		((ListenerList) existing).add(listener);
	} else if (existing != null) {
		ListenerList listeners = new ListenerList(ListenerList.IDENTITY);
		listeners.add(existing);
		listeners.add(listener);
		registeredListeners.put(commandId, listeners);
	} else {
		registeredListeners.put(commandId, listener);
	}
	if (!bindingManagerListenerAttached) {
		bindingManager.addBindingManagerListener(this);
		bindingManagerListenerAttached = true;
	}
}
 
開發者ID:ghillairet,項目名稱:gef-gwt,代碼行數:22,代碼來源:ExternalActionManager.java

示例3: ScriptConsole

public ScriptConsole(String consoleName, String consoleType, IScriptConsoleInterpreter interpreterArg) {
    super(consoleName, consoleType, null, true);

    this.interpreter = interpreterArg;

    this.consoleListeners = new ListenerList(ListenerList.IDENTITY);
    this.prompt = createConsolePrompt();
    this.history = new ScriptConsoleHistory();

    this.session = new ScriptConsoleSession();
    addListener(this.session);

    partitioner = new ScriptConsolePartitioner();
    getDocument().setDocumentPartitioner(partitioner);
    partitioner.connect(getDocument());
}
 
開發者ID:fabioz,項目名稱:Pydev,代碼行數:16,代碼來源:ScriptConsole.java

示例4: addListenersToWorkingSetManagers

private void addListenersToWorkingSetManagers() {
	fListeners= new ListenerList(ListenerList.IDENTITY);
	fWorkingSetManagerListener= new IPropertyChangeListener() {
		public void propertyChange(PropertyChangeEvent event) {
			workingSetManagerChanged(event);
		}
	};
	PlatformUI.getWorkbench().getWorkingSetManager().addPropertyChangeListener(fWorkingSetManagerListener);
	fLocalWorkingSetManager.addPropertyChangeListener(fWorkingSetManagerListener);
}
 
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:10,代碼來源:WorkingSetModel.java

示例5: GlobalAnnotationModelListener

public GlobalAnnotationModelListener() {
	fListenerList= new ListenerList(ListenerList.IDENTITY);
}
 
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:3,代碼來源:CompilationUnitDocumentProvider.java

示例6: PackageViewerWrapper

public PackageViewerWrapper() {
	fListenerList= new ListenerList(ListenerList.IDENTITY);
	fPostSelectionChangedListenerList= new ListenerList(ListenerList.IDENTITY);
	fSelectionChangedListenerList= new ListenerList(ListenerList.IDENTITY);
}
 
開發者ID:trylimits,項目名稱:Eclipse-Postfix-Code-Completion,代碼行數:5,代碼來源:PackageViewerWrapper.java


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