Search in sources :

Example 6 with ISourceReconcilingListener

use of org.eclipse.wst.sse.ui.reconcile.ISourceReconcilingListener in project webtools.sourceediting by eclipse.

the class DocumentRegionProcessor method addReconcilingListener.

public void addReconcilingListener(ISourceReconcilingListener listener) {
    Set listeners = new HashSet(Arrays.asList(fReconcileListeners));
    listeners.add(listener);
    fReconcileListeners = (ISourceReconcilingListener[]) listeners.toArray(new ISourceReconcilingListener[listeners.size()]);
}
Also used : HashSet(java.util.HashSet) Set(java.util.Set) ISourceReconcilingListener(org.eclipse.wst.sse.ui.reconcile.ISourceReconcilingListener) HashSet(java.util.HashSet)

Aggregations

ISourceReconcilingListener (org.eclipse.wst.sse.ui.reconcile.ISourceReconcilingListener)6 IFile (org.eclipse.core.resources.IFile)3 IProgressMonitor (org.eclipse.core.runtime.IProgressMonitor)3 IDocument (org.eclipse.jface.text.IDocument)3 IAnnotationModel (org.eclipse.jface.text.source.IAnnotationModel)3 IEditorPart (org.eclipse.ui.IEditorPart)3 IWorkbenchPage (org.eclipse.ui.IWorkbenchPage)3 StructuredTextEditor (org.eclipse.wst.sse.ui.StructuredTextEditor)3 HashSet (java.util.HashSet)2 Set (java.util.Set)2 ArrayList (java.util.ArrayList)1 List (java.util.List)1 ListenerList (org.eclipse.core.runtime.ListenerList)1 IReconciler (org.eclipse.jface.text.reconciler.IReconciler)1 Point (org.eclipse.swt.graphics.Point)1 IShowInTargetList (org.eclipse.ui.part.IShowInTargetList)1 DocumentRegionProcessor (org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor)1