Skip to content

Commit

Permalink
Removes IEventListener as it is never used, fixes build loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Kogoro committed Feb 11, 2018
1 parent 0ac3ba6 commit 5366e89
Showing 1 changed file with 1 addition and 32 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
* @author Tom Brosch
* @author Marcus Pinnecke (Feature Interface)
*/
public class FeatureProject extends BuilderMarkerHandler implements IFeatureProject, IResourceChangeListener, IEventListener {
public class FeatureProject extends BuilderMarkerHandler implements IFeatureProject, IResourceChangeListener {

private static final CorePlugin LOGGER = CorePlugin.getDefault();

Expand All @@ -150,7 +150,6 @@ public void propertyChange(FeatureIDEEvent evt) {
renameFeature((IFeatureModel) evt.getSource(), oldName, newName);
break;
case MODEL_DATA_SAVED:
case MODEL_DATA_OVERRIDDEN:
try {
checkFeatureCoverage();
checkConfigurations(getAllConfigurations());
Expand Down Expand Up @@ -1544,36 +1543,6 @@ public IFileManager<IFeatureModel> getFeatureModelManager() {
return featureModelManager;
}

@Override
public void propertyChange(FeatureIDEEvent event) {
switch (event.getEventType()) {
case MODEL_DATA_OVERRIDDEN:
final Job job = new Job(LOAD_MODEL) {

@Override
protected IStatus run(IProgressMonitor monitor) {
if (loadModel()) {
final IComposerExtensionClass composerExtension = getComposer();
if (composerExtension.isInitialized()) {
composerExtension.postModelChanged();
if (!configurationUpdate) {
checkConfigurations(getAllConfigurations());
}
checkFeatureCoverage();
return Status.OK_STATUS;
}
}
return Status.CANCEL_STATUS;
}
};
job.setPriority(Job.INTERACTIVE);
job.schedule();
break;
default:
break;
}
}

/**
* Checks for problems in feature model, configurations, feature coverage and feature folders
*/
Expand Down

0 comments on commit 5366e89

Please sign in to comment.