Skip to main content
summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMarkus Schorn2009-07-09 06:19:14 -0400
committerMarkus Schorn2009-07-09 06:19:14 -0400
commit88953023fffdf879cc4731ea620043dbe28bd12f (patch)
treeae530e6d09997ff3738bab9f141d03cce9611680 /core
parentf24d70e641b2bb494899512b7b413d3a7f2b5221 (diff)
downloadorg.eclipse.cdt-88953023fffdf879cc4731ea620043dbe28bd12f.tar.gz
org.eclipse.cdt-88953023fffdf879cc4731ea620043dbe28bd12f.tar.xz
org.eclipse.cdt-88953023fffdf879cc4731ea620043dbe28bd12f.zip
Remove runtime dependency of PDOM, bug 282576.
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java3
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMManager.java1
2 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java
index 3d5fde8bca..8253bc4fb2 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOM.java
@@ -87,7 +87,6 @@ import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.OperationCanceledException;
-import org.eclipse.core.runtime.Platform;
import org.eclipse.core.runtime.PlatformObject;
import org.eclipse.core.runtime.Status;
@@ -96,7 +95,7 @@ import org.eclipse.core.runtime.Status;
*/
public class PDOM extends PlatformObject implements IPDOM {
private static final int BLOCKED_WRITELOCK_OUTPUT_INTERVAL = 30000;
- static boolean sDEBUG_LOCKS= "true".equals(Platform.getDebugOption(CCorePlugin.PLUGIN_ID + "/debug/index/locks")); //$NON-NLS-1$//$NON-NLS-2$
+ static boolean sDEBUG_LOCKS= false; // initialized in the PDOMManager, because IBM needs PDOM independent of runtime plugin.
/**
* Identifier for PDOM format
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMManager.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMManager.java
index 88431c62ae..d7c4d04c59 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMManager.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/pdom/PDOMManager.java
@@ -189,6 +189,7 @@ public class PDOMManager implements IWritableIndexManager, IListener {
private int fLastNotifiedState= IndexerStateEvent.STATE_IDLE;
public PDOMManager() {
+ PDOM.sDEBUG_LOCKS= "true".equals(Platform.getDebugOption(CCorePlugin.PLUGIN_ID + "/debug/index/locks")); //$NON-NLS-1$//$NON-NLS-2$
fProjectDescriptionListener= new CProjectDescriptionListener(this);
fJobChangeListener= new JobChangeListener(this);
fPreferenceChangeListener= new IPreferenceChangeListener() {

Back to the top