use of org.eclipse.wst.sse.ui.internal.IReleasable in project webtools.sourceediting by eclipse.
the class DocumentRegionProcessor method uninstall.
/**
* @see org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor#uninstall()
*/
public void uninstall() {
if (isInstalled()) {
IReconcilingStrategy validatorStrategy = getValidatorStrategy();
if (validatorStrategy != null) {
if (validatorStrategy instanceof IReleasable)
((IReleasable) validatorStrategy).release();
}
if (fSpellcheckStrategy != null) {
fSpellcheckStrategy.setDocument(null);
fSpellcheckStrategy = null;
}
fReconcileListeners = new ISourceReconcilingListener[0];
if (getDocument() instanceof IStructuredDocument) {
RegionParser parser = ((IStructuredDocument) getDocument()).getParser();
if (parser instanceof StructuredDocumentRegionParser) {
((StructuredDocumentRegionParser) parser).removeStructuredDocumentRegionHandler(fResetHandler);
}
}
}
super.uninstall();
}
use of org.eclipse.wst.sse.ui.internal.IReleasable in project webtools.sourceediting by eclipse.
the class JSPContentAssistProcessor method releaseMap.
protected void releaseMap(HashMap map) {
if (map != null) {
if (!map.isEmpty()) {
Iterator it = map.keySet().iterator();
Object key = null;
while (it.hasNext()) {
key = it.next();
if (map.get(key) instanceof IReleasable) {
((IReleasable) map.get(key)).release();
}
}
}
map.clear();
map = null;
}
}
use of org.eclipse.wst.sse.ui.internal.IReleasable in project webtools.sourceediting by eclipse.
the class NoRegionContentAssistProcessor method releaseMap.
protected void releaseMap(HashMap map) {
if ((map != null) && !map.isEmpty()) {
Iterator it = map.keySet().iterator();
Object key = null;
while (it.hasNext()) {
key = it.next();
if (map.get(key) instanceof IReleasable) {
((IReleasable) map.get(key)).release();
}
}
map.clear();
map = null;
}
}
use of org.eclipse.wst.sse.ui.internal.IReleasable in project webtools.sourceediting by eclipse.
the class ValidatorStrategy method release.
public void release() {
super.release();
fIsCancelled = true;
Iterator it = fVidToVStepMap.values().iterator();
IReconcileStep step = null;
while (it.hasNext()) {
step = (IReconcileStep) it.next();
if (step instanceof IReleasable)
((IReleasable) step).release();
}
fFile = null;
}
Aggregations