NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Reusing Netbeans editor

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
vsitnikov



Joined: 01 Nov 2011
Posts: 9

PostPosted: Sat Dec 24, 2011 5:12 pm    Post subject: Reusing Netbeans editor Reply with quote

Hi all

I'm developing an application on top of Netbeans platform and I'd like that my application has such cool text editor as Netbeans has. How could I get this cool editor in my application? All things related to parsing describe how to add new language support to Netbeans editor for exampe this tutorial http://wiki.netbeans.org/How_to_create_support_for_a_new_language. But they don't explain how to reuse that wonderful component which treats all interesting things such as error highlighting, code folding, brace matching etc. in another application built on top of Netbeans platform. I've already grasped that Parsing API is the bridge between my language parser and the rest of IDE, JEditorPane is that component which provides editing feature and syntax coloring feature but how could I supply the rest of parsing stuff?
Back to top
Segman



Joined: 01 Jun 2012
Posts: 9

PostPosted: Fri Jun 01, 2012 2:40 pm    Post subject: Reply with quote

Hi,

I am encountering the same situation, I need to use netbean editor into a Swing application, without being completly based on Netbeans Platform. I just want to take some parts of Netbeans.

I've seen a standalone netbeans editor based on Netbeans 5.5 : http://www.antonioshome.net/kitchen/netbeans/nbms-standalone.php

I tried to port it to Netbeans 7.1, but some classes seem to disapppear/change since 5.5 and it can't be launch.

I googled a lot, but I can't find how to reuse netbeans editor in a standalone editor.
Thus, I am wondering if it's possible.
Some ideas ?
Back to top
emi



Joined: 14 Aug 2009
Posts: 151

PostPosted: Mon Jun 04, 2012 10:57 pm    Post subject: [platform-dev] Re: Reusing Netbeans editor Reply with quote

@Segman:
Back to top
Segman



Joined: 01 Jun 2012
Posts: 9

PostPosted: Thu Jun 07, 2012 9:23 am    Post subject: Reply with quote

Quote:
@Segman: This is seen as too low priority for Oracle so it's not supported anymore: see bug #113326 from 5(!) years ago. Anything is possible if you invest enough time/money into it.

@vsitnikov: If you are developing a NetBeans Platform app and you want to use the editor then it shouldn't be that hard. http://enclojure.org/ is an example or a dedicated IDE built on top of NetBeans Platform/IDE. Right now I see they just distribute the nbm but long ago I think they distributed the whole IDE.

--emi


Ok, thank you for your reply, things are clear !
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo