1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-18 13:45:45 +02:00

[180994] ensure that we don't do redundant activations and that environment miner variables are cleaned up at the end

This commit is contained in:
David McKnight 2007-04-05 00:16:22 +00:00
parent 5003230df0
commit 1d9c8e7d4b
3 changed files with 10 additions and 5 deletions

View file

@ -279,6 +279,8 @@ public class DStoreProcessService extends AbstractProcessService implements IPro
{
_minerElement = null;
_procMinerStatus = null;
_minerElement = null;
_statusMonitor = null;
}
public boolean isInitialized()
@ -308,6 +310,8 @@ public class DStoreProcessService extends AbstractProcessService implements IPro
}
}
protected void initMiner(IProgressMonitor monitor)
{
DataElement fsElement = getMinerElement();
@ -321,8 +325,8 @@ public class DStoreProcessService extends AbstractProcessService implements IPro
DataStore ds = getDataStore();
if (_minerElement == null || _minerElement.getDataStore() != ds)
{
if (ds != null)
{
if (ds != null && _procMinerStatus == null)
{
_procMinerStatus = ds.activateMiner(minerId);
}

View file

@ -162,7 +162,8 @@ public class DStoreShellService extends AbstractDStoreService implements IShellS
public void uninitService(IProgressMonitor monitor)
{
super.uninitService(monitor);
_envMinerElement = null;
_envMinerStatus = null;
}
protected void initMiner(IProgressMonitor monitor)
@ -177,7 +178,7 @@ public class DStoreShellService extends AbstractDStoreService implements IShellS
DataStore ds = getDataStore();
if (_envMinerElement == null || _envMinerElement.getDataStore() != ds)
{
if (ds != null)
if (ds != null && _envMinerStatus == null)
{
_envMinerStatus = ds.activateMiner(minerId);
/*

View file

@ -285,7 +285,7 @@ public abstract class AbstractDStoreService implements IDStoreService
DataStore ds = getDataStore();
if (_minerElement == null || _minerElement.getDataStore() != ds)
{
if (ds != null)
if (ds != null && _initializeStatus == null)
{
_initializeStatus = ds.activateMiner(minerId);
/*