Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Issue #307: Don't clear out language if project type changed #309

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,19 @@ public void checkStateChanged(CheckStateChangedEvent event) {

String[] languages = getLanguageArray(type);
if (languages != null && languages.length > 1) {
language = null;
if (language != null) {
boolean found = false;
for (String lang : languages) {
if (language.equals(lang)) {
languageViewer.setCheckedElements(new Object[] {language});
found = true;
break;
}
}
if (!found) {
language = null;
}
}
languageLabel.setVisible(true);
languageViewer.setInput(languages);
languageViewer.getTable().setVisible(true);
Expand Down