How to make new FoldRegions permanent ?
Problem : additional fold regions, created/added with the code below,
disappear when you close the editor.
Question: how to make them permanent, like the system "Fold Selection"
(for example)?
Please sign in to leave a comment.
There is no such API yet. Why do you need it?
--
Valentin Kipiatkov
JetBrains, Inc
http://www.intellij.com
"Develop with pleasure!"
"Alain Ravet" <alain.ravet.list@wanadoo.be> wrote in message
news:bnivcb$mtn$1@is.intellij.net...
>
>
>
>
>
>
Valentin Kipiatkov (JetBrains) wrote:
>There is no such API yet. Why do you need it?
1/
Without this, the whole CamouflagePlugin is on one leg: as soon as you close an editor, all the manually added "camouflages" are lost. So, it's kind of half useless and half pointless.
2/
I implemented :
Fold selection : add a dialog to enter/replace the default placeholder
http://www.intellij.net/tracker/idea/viewSCR?publicId=19850
, that overrides the default behaviour.
It's as useful a feature as it was trivial to implement
- intercept the default action
- pop-up a dialog
- fold the selected region, with the entered text as placeholder
, but the result is as useless as it can be : as soon as you close the editor panel, you loose the comment and the folding you've just created.
As you can see, I really need it. Please, open it.
Alain
Valentin Kipiatkov (JetBrains) wrote:
> There is no such API yet. Why do you need it?
I guess you mean
no "Published" API
, as IDEA fold regions are permanent, even when added by the user (with
"Fold Selection").
Alain
Any comment on my reply?