Further work on #2755

This commit is contained in:
Manindra Moharana
2014-08-08 12:39:02 +05:30
parent ee206f85dd
commit 992bd94510
3 changed files with 36 additions and 21 deletions

View File

@@ -214,7 +214,7 @@ public class CompletionPanel {
public void mouseClicked(MouseEvent e) {
if (e.getClickCount() == 2) {
insertSelection();
hide();
//hide();
}
}
});
@@ -295,12 +295,19 @@ public class CompletionPanel {
textarea.setCaretPosition(insertionPosition
+ selectedSuggestion.length());
}
//log("Suggestion inserted: " + System.currentTimeMillis());
log("Suggestion inserted: " + System.currentTimeMillis());
if (((CompletionCandidate) completionList.getSelectedValue())
.getLabel().contains("...")) {
// log("No hide");
// Why not hide it? Coz this is the case of
// overloaded methods. See #2755
} else {
hide();
}
return true;
} catch (BadLocationException e1) {
e1.printStackTrace();
}
catch (Exception e) {
} catch (Exception e) {
e.printStackTrace();
}
hide();