Skip to content

Commit

Permalink
Add enabled to JSON Compilation Database Generator prop page (eclipse…
Browse files Browse the repository at this point in the history
…-cdt#847)

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

fixes eclipse-cdt#847
  • Loading branch information
ghentschke committed Jun 28, 2024
1 parent 3875408 commit 7a80091
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.300.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 7a80091

Please sign in to comment.