bit of refactoring and tidying things up

This commit is contained in:
Manindra Moharana
2013-12-07 02:56:12 +05:30
parent ceb59def37
commit 788cec41c8
2 changed files with 22 additions and 17 deletions

View File

@@ -60,7 +60,7 @@ public class CompletionPanel {
textarea.requestFocusInWindow();
popupMenu.show(textarea, location.x, textarea.getBaseline(0, 0)
+ location.y);
log("Suggestion constructed" + System.nanoTime());
//log("Suggestion constructed" + System.nanoTime());
}
public boolean isVisible() {
@@ -130,7 +130,7 @@ public class CompletionPanel {
completionList.setSelectedIndex(0);
scrollPane.setViewportView(completionList);
popupMenu.setPopupSize(popupMenu.getSize().width, setHeight(items.getSize()));
log("Suggestion updated" + System.nanoTime());
//log("Suggestion updated" + System.nanoTime());
textarea.requestFocusInWindow();
popupMenu.show(textarea, location.x, textarea.getBaseline(0, 0)
+ location.y);
@@ -176,7 +176,7 @@ public class CompletionPanel {
public void hide() {
popupMenu.setVisible(false);
log("Suggestion hidden" + System.nanoTime());
//log("Suggestion hidden" + System.nanoTime());
//textarea.errorCheckerService.getASTGenerator().jdocWindowVisible(false);
}