This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 42068 - JMI-based Java Code Completion
Summary: JMI-based Java Code Completion
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks: 3549 8154 35195 35404 35473 36397 37074 37481 41104 41704 41730 42817 42960 43294 43520 43593 52173
  Show dependency tree
 
Reported: 2004-04-16 09:11 UTC by Miloslav Metelka
Modified: 2007-11-05 13:38 UTC (History)
0 users

See Also:
Issue Type: TASK
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miloslav Metelka 2004-04-16 09:11:55 UTC
This task will track the changes made towards the
new JMI-based java completion.
The development related to this is done in
meta_stavbicka branch.

Requirements:
1) Abandon support for code completion databases
creation and updating completely. Everything will
be handled by java/mdr.
2) All the queries done to the parser DBs will now
be redirected to java JMI model either directly or
through a compatibly JCFinder (currently present
as MDRFinder).
3) Support new JDK1.5 features.
4) Retain compatibility of the original completion
for JSPs.

Notes:
1) Ideally we would like to query just the java
JMI model. To retain an acceptable performance of
the code completion the JMI model would have to be
updated just partially e.g. with an individual
method granularity.
 Unfortunately this requirement will probably be
addressed by the java team later than in promoD.

2) Until 1) gets done we will remain to use our
local expression parser. We will enahnce it by
JDK1.5 features.

3) We will remove the support for the code
completion updating completely in promoD. We will
retain support for reading of the existing parser
databases (e.g. created in NB3.6) into JCClass-es.
Comment 1 Martin Roskanin 2004-04-19 11:07:58 UTC
In accordance with the item 1 of the requirements the following
classes (forms) have been removed:

src\org\netbeans\modules\editor\java\
   AutoUpdateQuestionPanel.form
   AutoUpdateQuestionPanel.java
   JCLevelPanel.form
   JCLevelPanel.java
   JCProgressPanel.form
   JCProgressPanel.java
   JCProviderPanel.form
   JCProviderPanel.java
   JCStorage.java - will be deprecated 
   JCStorageElement.java
   JCUpdateAction.java
   JCUpdater.java
   ParserThread.java
   PDCustomizer.java
   PDCustomizerAction.java
   PDCustomizerDialog.form
   PDCustomizerDialog.java
   PDCustomizerEditor.java
   StandaloneJCDBCreator.java - will be deprecated
   NbJCCellRenderer.java - deprecated
Comment 2 Dusan Balek 2004-04-19 13:24:00 UTC
Another set of changes:

Checking in JCExpression.java;
/cvs/editor/libsrc/org/netbeans/editor/ext/java/JCExpression.java,v 
<--  JCExpression.java
new revision: 1.9.230.1; previous revision: 1.9
done
Checking in JCTokenProcessor.java;
/cvs/editor/libsrc/org/netbeans/editor/ext/java/JCTokenProcessor.java,v
 <--  JCTokenProcessor.java
new revision: 1.17.142.1; previous revision: 1.17
done
Checking in JavaCompletion.java;
/cvs/editor/libsrc/org/netbeans/editor/ext/java/JavaCompletion.java,v
 <--  JavaCompletion.java
new revision: 1.15.12.2; previous revision: 1.15.12.1
done
Checking in JavaCompletionQuery.java;
/cvs/editor/libsrc/org/netbeans/editor/ext/java/JavaCompletionQuery.java,v
 <--  JavaCompletionQuery.java
new revision: 1.43.12.2; previous revision: 1.43.12.1
done
Checking in JavaSyntaxSupport.java;
/cvs/editor/libsrc/org/netbeans/editor/ext/java/JavaSyntaxSupport.java,v
 <--  JavaSyntaxSupport.java
new revision: 1.30.12.1; previous revision: 1.30
done
RCS file:
/cvs/editor/src/org/netbeans/modules/editor/java/Attic/NbJavaJMISyntaxSupport.java,v
done
Checking in NbJavaJMISyntaxSupport.java;
/cvs/editor/src/org/netbeans/modules/editor/java/Attic/NbJavaJMISyntaxSupport.java,v
 <--  NbJavaJMISyntaxSupport.java
new revision: 1.1.2.1; previous revision: 1.1
done
Checking in NbJavaJMICompletionQuery.java;
/cvs/editor/src/org/netbeans/modules/editor/java/Attic/NbJavaJMICompletionQuery.java,v
 <--  NbJavaJMICompletionQuery.java
new revision: 1.1.2.2; previous revision: 1.1.2.1
done
Checking in NbJavaSyntaxSupport.java;
/cvs/editor/src/org/netbeans/modules/editor/java/NbJavaSyntaxSupport.java,v
 <--  NbJavaSyntaxSupport.java
new revision: 1.50.8.4; previous revision: 1.50.8.3
done
RCS file:
/cvs/editor/src/org/netbeans/modules/editor/java/Attic/NbJMIResultItem.java,v
done
Checking in NbJMIResultItem.java;
/cvs/editor/src/org/netbeans/modules/editor/java/Attic/NbJMIResultItem.java,v
 <--  NbJMIResultItem.java
new revision: 1.1.2.1; previous revision: 1.1
done
RCS file:
/cvs/editor/src/org/netbeans/modules/editor/java/Attic/NbJMIPaintComponent.java,v
done
Checking in NbJMIPaintComponent.java;
/cvs/editor/src/org/netbeans/modules/editor/java/Attic/NbJMIPaintComponent.java,v
 <--  NbJMIPaintComponent.java
new revision: 1.1.2.1; previous revision: 1.1
done
Checking in JavaKit.java;
/cvs/editor/src/org/netbeans/modules/editor/java/JavaKit.java,v  <-- 
JavaKit.java
new revision: 1.74.8.5; previous revision: 1.74.8.4
done
RCS file:
/cvs/editor/src/org/netbeans/modules/editor/java/Attic/JMIUtils.java,v
done
Checking in JMIUtils.java;
/cvs/editor/src/org/netbeans/modules/editor/java/Attic/JMIUtils.java,v
 <--  JMIUtils.java
new revision: 1.1.2.1; previous revision: 1.1
done
Comment 3 Roman Strobl 2004-12-07 15:28:46 UTC
Changing subcomponent to code completion.
Comment 4 Miloslav Metelka 2004-12-08 21:50:01 UTC
The completion was rewritten to use JMI.
Comment 5 Roman Strobl 2005-01-04 16:30:49 UTC
Verified in 200501031900.