You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "huo (Jira)" <ji...@apache.org> on 2021/07/21 11:40:00 UTC
[jira] [Created] (NETBEANS-5868) how to create a text/x-java file?
huo created NETBEANS-5868:
-----------------------------
Summary: how to create a text/x-java file?
Key: NETBEANS-5868
URL: https://issues.apache.org/jira/browse/NETBEANS-5868
Project: NetBeans
Issue Type: Bug
Components: editor - Completion & Templates
Affects Versions: 8.2
Reporter: huo
Hi!
I want to known how Java Code Completion works.
I have a package which contain some java files.
* someone create a skeleton file which name end with jcs.
* and create a body file which name end with jcb.
* I can use JavaKit.java class to read it. I think it's main propose is to make indexing faster. the editor can find related codes without scanning related source jars.
but, I try to save one jcs and jcb file, it works but can not reading.
I find that in JCFileProvider.java getClasses() method. skels.getInteger() will return opcode. but the code is not OPCODE_ADD or OPCODE_REMOVE. which results can' read it successfully.
Could you please tell me something as following:
# where can I find the oldest version source code.
# is there some protocol about text/x-java MINI type.
# is jcb and jcs file belons to text/x-java type ? do you have some document which records methods to generate it correctly.
Thanks very much!
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists