1 /*******************************************************************************
2  *  Copyright (c) 2005, 2019 IBM Corporation and others.
3  *
4  *  This program and the accompanying materials
5  *  are made available under the terms of the Eclipse Public License 2.0
6  *  which accompanies this distribution, and is available at
7  *  https://www.eclipse.org/legal/epl-2.0/
8  *
9  *  SPDX-License-Identifier: EPL-2.0
10  *
11  *  Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.pde.internal.ui.correction;
15 
16 import org.eclipse.core.resources.IMarker;
17 import org.eclipse.pde.core.IBaseModel;
18 import org.eclipse.pde.internal.core.ibundle.IBundlePluginModelBase;
19 import org.eclipse.pde.internal.core.text.bundle.BundleModel;
20 
21 public abstract class AbstractManifestMarkerResolution extends AbstractPDEMarkerResolution {
22 
AbstractManifestMarkerResolution(int type)23 	public AbstractManifestMarkerResolution(int type) {
24 		super(type);
25 	}
26 
AbstractManifestMarkerResolution(int type, IMarker marker)27 	public AbstractManifestMarkerResolution(int type, IMarker marker) {
28 		super(type, marker);
29 	}
30 
createChange(BundleModel model)31 	protected abstract void createChange(BundleModel model);
32 
33 	@Override
createChange(IBaseModel model)34 	protected void createChange(IBaseModel model) {
35 		if (model instanceof IBundlePluginModelBase)
36 			model = ((IBundlePluginModelBase) model).getBundleModel();
37 		if (model instanceof BundleModel)
38 			createChange((BundleModel) model);
39 	}
40 
41 }
42