Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » MultiLineRule - wrong endSequence
MultiLineRule - wrong endSequence [message #496235] Mon, 09 November 2009 12:34 Go to next message
StefanK  is currently offline StefanK Friend
Messages: 25
Registered: July 2009
Junior Member
Hi there,

I need to provide a special content assist for the following partition:

private final static String PARAMETER="__parameter";

IToken lParameter=new Token(PARAMETER);


rules[5] = new MultiLineRule("(", ")", lParameter);


This works fine for the basic brakets (), but if there is a function call like this:

println(getText(), "test");


the partition ends at the first close braket and the needed content assist isn´t available anymore. Is there a smarter way to reach my goal?

Thanks
Best regards
StefanK
Re: MultiLineRule - wrong endSequence [message #499514 is a reply to message #496235] Mon, 23 November 2009 07:29 Go to previous messageGo to next message
StefanK  is currently offline StefanK Friend
Messages: 25
Registered: July 2009
Junior Member
Hello everyone,

does really anybody know a proper solution for my problem?


Best regards
StefanK
Re: MultiLineRule - wrong endSequence [message #500686 is a reply to message #496235] Fri, 27 November 2009 14:10 Go to previous message
StefanK  is currently offline StefanK Friend
Messages: 25
Registered: July 2009
Junior Member
Hi there,

solved the problem like this:

I created my own FunctionRule, which counts ++ for all { and -- for all }. Only if the variable is 0, the token will be returned.

This works fine for now, but it is possible to partition that partition again? For example: check if the function partition has any comment partitions, which starts with //


public function test(){
//this is a comment

}

Any help will be appreciated.
Best regards

StefanK

[Updated on: Fri, 27 November 2009 14:10]

Report message to a moderator

Previous Topic:TextEditor functionality in a view
Next Topic:[Databinding] WidgetProperties.focused() value property not working
Goto Forum:
  


Current Time: Fri Sep 20 14:49:14 GMT 2024

Powered by FUDForum. Page generated in 0.04064 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top