Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TEIIDDES-2589 Added quick fix to update REST MED version.
* Upped rest.mxd to version 2 since "DESCRIPTION" property was added previously
- Loading branch information
Showing
6 changed files
with
55 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...rc/org/teiid/designer/relational/ui/extension/RestExtensionMarkerResolutionGenerator.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.teiid.designer.relational.ui.extension; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Collection; | ||
|
||
import org.eclipse.core.resources.IMarker; | ||
import org.eclipse.ui.IMarkerResolution; | ||
import org.eclipse.ui.IMarkerResolutionGenerator; | ||
|
||
public class RestExtensionMarkerResolutionGenerator implements IMarkerResolutionGenerator { | ||
private static final String IS_OLD_REST_VERSION_MED = "isOldRestVersionMed"; //$NON-NLS-1$ | ||
@Override | ||
public IMarkerResolution[] getResolutions(IMarker marker) { | ||
Collection<IMarkerResolution> resolutions = new ArrayList<IMarkerResolution>(); | ||
|
||
if( marker.getAttribute(IS_OLD_REST_VERSION_MED, false) ) { | ||
resolutions.add(new RelationalExtensionVersionResolution("rest")); | ||
} | ||
|
||
return resolutions.toArray(new IMarkerResolution[resolutions.size()]); | ||
} | ||
} |