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;
|
||||
ResourcesPlugin.getWorkspace().addResourceChangeListener(factory,
|
||||
IResourceChangeEvent.PRE_AUTO_BUILD
|
||||
IResourceChangeEvent.PRE_BUILD
|
||||
| IResourceChangeEvent.POST_CHANGE
|
||||
| IResourceChangeEvent.PRE_DELETE
|
||||
| IResourceChangeEvent.PRE_CLOSE);
|
||||
|
@ -679,7 +679,7 @@ public class CModelManager implements IResourceChangeListener, ICDescriptorListe
|
|||
}
|
||||
break;
|
||||
|
||||
case IResourceChangeEvent.PRE_AUTO_BUILD :
|
||||
case IResourceChangeEvent.PRE_BUILD :
|
||||
// No need now.
|
||||
if(delta != null) {
|
||||
this.checkProjectsBeingAddedOrRemoved(delta);
|
||||
|
|
|
@ -151,9 +151,7 @@ public class Util implements ICLogConstants {
|
|||
* Add a log entry
|
||||
*/
|
||||
public static void log(Throwable e, String message, LogConst logType) {
|
||||
IStatus status = new Status(IStatus.ERROR, CCorePlugin.getDefault()
|
||||
.getDescriptor().getUniqueIdentifier(), IStatus.ERROR, message,
|
||||
e);
|
||||
IStatus status = new Status(IStatus.ERROR, CCorePlugin.PLUGIN_ID, IStatus.ERROR, message,e);
|
||||
Util.log(status, logType);
|
||||
}
|
||||
|
||||
|
@ -166,9 +164,7 @@ public class Util implements ICLogConstants {
|
|||
}
|
||||
|
||||
public static void log(String message, LogConst logType) {
|
||||
IStatus status = new Status(IStatus.INFO, CCorePlugin.getDefault()
|
||||
.getDescriptor().getUniqueIdentifier(), IStatus.INFO, message,
|
||||
null);
|
||||
IStatus status = new Status(IStatus.INFO, CCorePlugin.PLUGIN_ID, IStatus.INFO, message, null);
|
||||
Util.log(status, logType);
|
||||
}
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ public class CDescriptorManager implements ICDescriptorManager, IResourceChangeL
|
|||
}
|
||||
});
|
||||
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;
|
||||
case IResourceChangeEvent.PRE_AUTO_BUILD :
|
||||
case IResourceChangeEvent.PRE_BUILD :
|
||||
IResourceDelta resDelta = event.getDelta();
|
||||
if (resDelta == null) {
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue