diff options
Diffstat (limited to 'bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/cpd/CategoryCheckProvider.java')
-rw-r--r-- | bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/cpd/CategoryCheckProvider.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/cpd/CategoryCheckProvider.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/cpd/CategoryCheckProvider.java index 44bf88a4890..8637806818c 100644 --- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/cpd/CategoryCheckProvider.java +++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/dialogs/cpd/CategoryCheckProvider.java @@ -22,9 +22,8 @@ import org.eclipse.ui.internal.dialogs.cpd.TreeManager.TreeItem; /** * Provides the check logic for the categories viewer in the shortcuts tab. * Categories have a dual concept of children - their proper children - * (sub-Categories, as in the wizards), and the actual elements they - * contribute to the menu system. The check state must take this into - * account. + * (sub-Categories, as in the wizards), and the actual elements they contribute + * to the menu system. The check state must take this into account. * * @since 3.5 */ @@ -33,8 +32,7 @@ class CategoryCheckProvider implements ICheckStateProvider { public boolean isChecked(Object element) { Category category = (Category) element; - if (category.getChildren().isEmpty() - && category.getContributionItems().isEmpty()) { + if (category.getChildren().isEmpty() && category.getContributionItems().isEmpty()) { return false; } |