mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
removed deprecated dependency
This commit is contained in:
parent
899cce1891
commit
0628cc9ef9
3 changed files with 6 additions and 10 deletions
|
@ -154,7 +154,7 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe
|
||||||
|
|
||||||
// Register to the workspace;
|
// Register to the workspace;
|
||||||
ResourcesPlugin.getWorkspace().addResourceChangeListener(factory,
|
ResourcesPlugin.getWorkspace().addResourceChangeListener(factory,
|
||||||
IResourceChangeEvent.PRE_AUTO_BUILD
|
IResourceChangeEvent.PRE_BUILD
|
||||||
| IResourceChangeEvent.POST_CHANGE
|
| IResourceChangeEvent.POST_CHANGE
|
||||||
| IResourceChangeEvent.PRE_DELETE
|
| IResourceChangeEvent.PRE_DELETE
|
||||||
| IResourceChangeEvent.PRE_CLOSE);
|
| IResourceChangeEvent.PRE_CLOSE);
|
||||||
|
@ -679,7 +679,7 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case IResourceChangeEvent.PRE_AUTO_BUILD :
|
case IResourceChangeEvent.PRE_BUILD :
|
||||||
// No need now.
|
// No need now.
|
||||||
if(delta != null) {
|
if(delta != null) {
|
||||||
this.checkProjectsBeingAddedOrRemoved(delta);
|
this.checkProjectsBeingAddedOrRemoved(delta);
|
||||||
|
|
|
@ -151,9 +151,7 @@ public class Util implements ICLogConstants {
|
||||||
* Add a log entry
|
* Add a log entry
|
||||||
*/
|
*/
|
||||||
public static void log(Throwable e, String message, LogConst logType) {
|
public static void log(Throwable e, String message, LogConst logType) {
|
||||||
IStatus status = new Status(IStatus.ERROR, CCorePlugin.getDefault()
|
IStatus status = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, IStatus.ERROR, message,e);
|
||||||
.getDescriptor().getUniqueIdentifier(), IStatus.ERROR, message,
|
|
||||||
e);
|
|
||||||
Util.log(status, logType);
|
Util.log(status, logType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -166,9 +164,7 @@ public class Util implements ICLogConstants {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void log(String message, LogConst logType) {
|
public static void log(String message, LogConst logType) {
|
||||||
IStatus status = new Status(IStatus.INFO, CCorePlugin.getDefault()
|
IStatus status = new Status(IStatus.INFO, CCorePlugin.PLUGIN_ID, IStatus.INFO, message, null);
|
||||||
.getDescriptor().getUniqueIdentifier(), IStatus.INFO, message,
|
|
||||||
null);
|
|
||||||
Util.log(status, logType);
|
Util.log(status, logType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -105,7 +105,7 @@ public class CDescriptorManager implements ICDescriptorManager, IResourceChangeL
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
getWorkspace().addResourceChangeListener(this,
|
getWorkspace().addResourceChangeListener(this,
|
||||||
IResourceChangeEvent.PRE_AUTO_BUILD | IResourceChangeEvent.PRE_DELETE | IResourceChangeEvent.PRE_CLOSE);
|
IResourceChangeEvent.PRE_BUILD | IResourceChangeEvent.PRE_DELETE | IResourceChangeEvent.PRE_CLOSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -127,7 +127,7 @@ public class CDescriptorManager implements ICDescriptorManager, IResourceChangeL
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case IResourceChangeEvent.PRE_AUTO_BUILD :
|
case IResourceChangeEvent.PRE_BUILD :
|
||||||
IResourceDelta resDelta = event.getDelta();
|
IResourceDelta resDelta = event.getDelta();
|
||||||
if (resDelta == null) {
|
if (resDelta == null) {
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Add table
Reference in a new issue