NetBeans Forums

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

Standalone App with Indent API

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



Joined: 19 Mar 2012
Posts: 4

PostPosted: Tue Mar 20, 2012 1:24 pm    Post subject: Standalone App with Indent API Reply with quote

Hi all.

I want one standalone indent tool based in Netbeans awesome indentation engine. I'm trying to create it, but it works only with small files. For some reason, after some size, some blanks are inserted incorrectly in the output.

Could someone help me?

My experimental project can be donwload from here:

http://ubuntuone.com/40qS9skPU3Rjtjij8C0dTh

Thanks.
Back to top
emi



Joined: 14 Aug 2009
Posts: 154

PostPosted: Wed Mar 21, 2012 8:33 am    Post subject: [platform-dev] Re: Standalone App with Indent API Reply with quote

It would be nicer if you would present your project in an easier to use way.

The way I see it (after removing the wrong hardcoded working directory) it seems to run and produce an output. What exactly is wrong? I'm not going to hunt down the output and see if the blanks are perfect or not.


Make a testcase and show it failing.


Anyhow, what you are trying to do is quite non-standard so you are going to have a hard time getting help because nobody is using the code this way.


You are not using the Platform, you are just using modules as JAR dependencies and a simple MimeDataProvider to bootstrap the indenter somehow. There are a lot of things that could be crashing there.


It's a nice hack but I wonder if it wouldn't be easier to use
Back to top
mkanada



Joined: 19 Mar 2012
Posts: 4

PostPosted: Wed Mar 21, 2012 12:34 pm    Post subject: Yes, non standard. Reply with quote

Thanks emi for your replay.

You are right. It's a lot non starndard. Maybe what I'm trying to create is not possible. What I thought was use the Netbeans code without modify anything that already exists there.

I'm very busy now with another tasks. I'll investigate more this problem later.

Thanks.
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