mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
cosmetics
This commit is contained in:
parent
97615f231b
commit
73f79ca04a
1 changed files with 7 additions and 7 deletions
|
@ -566,11 +566,11 @@ public class LanguageSettingsEntriesTab extends AbstractCPropertyTab {
|
||||||
*/
|
*/
|
||||||
private void updateStatusLine() {
|
private void updateStatusLine() {
|
||||||
IStatus status=null;
|
IStatus status=null;
|
||||||
if (enableProvidersCheckBox.getSelection()==true) {
|
if (enableProvidersCheckBox.getSelection() == true) {
|
||||||
ICConfigurationDescription cfgDescription = getConfigurationDescription();
|
ICConfigurationDescription cfgDescription = getConfigurationDescription();
|
||||||
status = LanguageSettingsImages.getStatus(getSelectedEntry(), cfgDescription);
|
status = LanguageSettingsImages.getStatus(getSelectedEntry(), cfgDescription);
|
||||||
}
|
}
|
||||||
if (status==null || status==Status.OK_STATUS) {
|
if (status == null || status == Status.OK_STATUS) {
|
||||||
ILanguageSettingsProvider provider = getSelectedProvider();
|
ILanguageSettingsProvider provider = getSelectedProvider();
|
||||||
boolean isAllowedEditing = provider instanceof ILanguageSettingsEditableProvider
|
boolean isAllowedEditing = provider instanceof ILanguageSettingsEditableProvider
|
||||||
&& LanguageSettingsProviderAssociationManager.isAllowedToEditEntries(provider);
|
&& LanguageSettingsProviderAssociationManager.isAllowedToEditEntries(provider);
|
||||||
|
@ -579,8 +579,8 @@ public class LanguageSettingsEntriesTab extends AbstractCPropertyTab {
|
||||||
status = new Status(IStatus.INFO, CUIPlugin.PLUGIN_ID, msg);
|
status = new Status(IStatus.INFO, CUIPlugin.PLUGIN_ID, msg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (status==null || status==Status.OK_STATUS) {
|
if (status == null || status == Status.OK_STATUS) {
|
||||||
if (treeLanguages.getItemCount()<=0) {
|
if (treeLanguages.getItemCount() <= 0) {
|
||||||
String msg = "Cannot determine toolchain languages.";
|
String msg = "Cannot determine toolchain languages.";
|
||||||
status = new Status(IStatus.ERROR, CUIPlugin.PLUGIN_ID, msg);
|
status = new Status(IStatus.ERROR, CUIPlugin.PLUGIN_ID, msg);
|
||||||
}
|
}
|
||||||
|
@ -878,7 +878,7 @@ public class LanguageSettingsEntriesTab extends AbstractCPropertyTab {
|
||||||
*/
|
*/
|
||||||
private List<ILanguageSettingsProvider> getProviders(String languageSettingId) {
|
private List<ILanguageSettingsProvider> getProviders(String languageSettingId) {
|
||||||
List<ILanguageSettingsProvider> itemsList = new LinkedList<ILanguageSettingsProvider>();
|
List<ILanguageSettingsProvider> itemsList = new LinkedList<ILanguageSettingsProvider>();
|
||||||
if (currentLanguageId!=null) {
|
if (currentLanguageId != null) {
|
||||||
IResource rc = getResource();
|
IResource rc = getResource();
|
||||||
ICConfigurationDescription cfgDescription = getConfigurationDescription();
|
ICConfigurationDescription cfgDescription = getConfigurationDescription();
|
||||||
if (rc != null && cfgDescription instanceof ILanguageSettingsProvidersKeeper) {
|
if (rc != null && cfgDescription instanceof ILanguageSettingsProvidersKeeper) {
|
||||||
|
@ -888,7 +888,7 @@ public class LanguageSettingsEntriesTab extends AbstractCPropertyTab {
|
||||||
if (rawProvider instanceof LanguageSettingsBaseProvider) {
|
if (rawProvider instanceof LanguageSettingsBaseProvider) {
|
||||||
// filter out providers incapable of providing entries for this language
|
// filter out providers incapable of providing entries for this language
|
||||||
List<String> languageIds = ((LanguageSettingsBaseProvider)rawProvider).getLanguageScope();
|
List<String> languageIds = ((LanguageSettingsBaseProvider)rawProvider).getLanguageScope();
|
||||||
if (languageIds!=null && !languageIds.contains(currentLanguageId)) {
|
if (languageIds != null && !languageIds.contains(currentLanguageId)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -921,7 +921,7 @@ public class LanguageSettingsEntriesTab extends AbstractCPropertyTab {
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
String langName = language.getName();
|
String langName = language.getName();
|
||||||
if (langName == null || langName.length()==0)
|
if (langName == null || langName.length() == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
TreeItem t = new TreeItem(treeLanguages, SWT.NONE);
|
TreeItem t = new TreeItem(treeLanguages, SWT.NONE);
|
||||||
|
|
Loading…
Add table
Reference in a new issue