Skip to content

Commit

Permalink
[cdt_11_6] Add enabled to JSON Compilation Database Generator prop pa…
Browse files Browse the repository at this point in the history
…ge (#847)

Show the JSON Compilation Database Generator properties page only for
managed build projects.

fixes #847

(cherry picked from commit 597eda2)

Co-authored-by: G. Hentschke <[email protected]>
Co-authored-by: Jonah Graham <[email protected]>
  • Loading branch information
3 people authored Jun 28, 2024
1 parent e94778b commit 54e9f2f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-SymbolicName: org.eclipse.cdt.managedbuilder.ui; singleton:=true
Bundle-Version: 9.4.200.qualifier
Bundle-Version: 9.4.201.qualifier
Bundle-Activator: org.eclipse.cdt.managedbuilder.ui.properties.ManagedBuilderUIPlugin
Bundle-Vendor: %providerName
Bundle-Localization: plugin
Expand Down
6 changes: 6 additions & 0 deletions build/org.eclipse.cdt.managedbuilder.ui/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -820,6 +820,12 @@
class="org.eclipse.cdt.managedbuilder.internal.ui.compilationdatabase.CompilationDatabaseGeneratorBlock"
id="org.eclipse.cdt.managedbuilder.ui.properties.Page_JsonCompilationDatabaseGenerator"
name="%JSONCompilatioDatabaseGeneratorPage.name">
<enabledWhen>
<adapt type="org.eclipse.core.resources.IProject">
<test property="org.eclipse.core.resources.projectNature"
value="org.eclipse.cdt.managedbuilder.core.managedBuildNature"/>
</adapt>
</enabledWhen>
</page>

</extension>
Expand Down

0 comments on commit 54e9f2f

Please sign in to comment.