1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[252688] - [update policy] Refresh All action is not always properly enabled.

This commit is contained in:
Pawel Piech 2008-10-30 04:52:16 +00:00
parent 404bddfa60
commit fdf91dc35d
2 changed files with 6 additions and 6 deletions

View file

@ -55,13 +55,13 @@ public class UpdatePoliciesContribution extends CompoundContributionItem impleme
private IServiceLocator fServiceLocator;
private static IContributionItem[] NO_BREAKPOINT_TYPES_CONTRIBUTION_ITEMS = new IContributionItem[] {
private static IContributionItem[] NO_UPDATE_POLICIES_CONTRIBUTION_ITEMS = new IContributionItem[] {
new ContributionItem() {
@Override
public void fill(Menu menu, int index) {
MenuItem item = new MenuItem(menu, SWT.NONE);
item.setEnabled(false);
item.setText(MessagesForVMActions.UpdateScopesContribution_EmptyScopesList_label);
item.setText(MessagesForVMActions.UpdatePoliciesContribution_EmptyPoliciesList_label);
}
@Override
@ -77,7 +77,7 @@ public class UpdatePoliciesContribution extends CompoundContributionItem impleme
// If no part or selection, disable all.
if (provider == null || !(provider instanceof ICachingVMProvider)) {
return NO_BREAKPOINT_TYPES_CONTRIBUTION_ITEMS;
return NO_UPDATE_POLICIES_CONTRIBUTION_ITEMS;
}
ICachingVMProvider cachingProvider = (ICachingVMProvider)provider;
@ -94,7 +94,7 @@ public class UpdatePoliciesContribution extends CompoundContributionItem impleme
}
if ( actions.isEmpty() ) {
return NO_BREAKPOINT_TYPES_CONTRIBUTION_ITEMS;
return NO_UPDATE_POLICIES_CONTRIBUTION_ITEMS;
}
IContributionItem[] items = new IContributionItem[actions.size()];

View file

@ -12,5 +12,5 @@
RetargetDebugContextAction_ErrorDialog_title=Error
RetargetDebugContextAction_ErrorDialog_message=Operation failed
UpdatePoliciesContribution_EmptyPoliciesList_label=No update policies available
UpdateScopesContribution_EmptyScopesList_label=No update scopes available
UpdatePoliciesContribution_EmptyPoliciesList_label=No update policies for current selection
UpdateScopesContribution_EmptyScopesList_label=No update scopes for current selection