beginning with adding finer details, cursor placement

This commit is contained in:
Manindra Moharana
2013-07-14 01:30:20 +05:30
parent 3e5a552402
commit 1903896f9d
4 changed files with 39 additions and 21 deletions

View File

@@ -242,14 +242,14 @@ public class ASTGenerator {
return;
jtree.setModel(new DefaultTreeModel(codeTree));
((DefaultTreeModel) jtree.getModel()).reload();
if (!frame2.isVisible()) {
frame2.setVisible(true);
}
if (!frameAutoComp.isVisible()) {
frameAutoComp.setVisible(true);
}
// if (!frame2.isVisible()) {
// frame2.setVisible(true);
// }
// if (!frameAutoComp.isVisible()) {
//
// frameAutoComp.setVisible(true);
//
// }
// if (!jdocWindow.isVisible()) {
// long t = System.currentTimeMillis();
// loadJars();
@@ -764,7 +764,7 @@ public class ASTGenerator {
// Bottom up traversal of the AST to look for possible definitions at
// higher levels.
nearestNode = nearestNode.getParent();
//nearestNode = nearestNode.getParent();
while (nearestNode != null) {
// If the current class has a super class, look inside it for
// definitions.
@@ -991,11 +991,11 @@ public class ASTGenerator {
DefaultTableModel tm = new DefaultTableModel(
candi,
new String[] { "Suggestions" });
tableAuto.setModel(tm);
tableAuto.validate();
tableAuto.repaint();
// CompletionCandidate[] candidatesArray = candidates
// .toArray(new CompletionCandidate[candidates.size()]);
if(tableAuto.isVisible()){
tableAuto.setModel(tm);
tableAuto.validate();
tableAuto.repaint();
}
errorCheckerService.getEditor().textArea()
.showSuggestion(defListModel,word);
}