Author Topic: Problem with plusminus  (Read 1890 times)

Wanderer

  • Senior Community Member
  • Posts: 558
  • Hero Points: 23
Problem with plusminus
« on: July 07, 2010, 05:54:57 pm »
SlickEdit Version 15.0.0.6    Build Date: May 07, 2010    Emulation: Vim
OS: Windows Vista    OS Version: 6.00.6002  Service Pack 2
Project Type:
Language: .cs (C#)
Hotfixes:
C:\Users\Administrator\Documents\My SlickEdit Config\15.0.0\hotfixes\hotfix_se1500_7_cumulative.zip (Revision: 7)

In the code below, putting the cursor inside either the if block, the else if block, or the main block and invoking plusminus produces a message on the staus line:  "Nothing to expand or collapse".

Code: [Select]
void main()
{
        if (Model.ConnectorStyle.Equals(LinkConnectorStyle.BezierSegment))
        {
            if (_bSeg == null)
                _bSeg = new BezierSegment();
            _bSeg.Point1 = new Point(midX, Model.StartY);
            _bSeg.Point2 = new Point(midX, Model.EndY);
            _bSeg.Point3 = new Point(Model.EndX, Model.EndY);
            _pathFigure.Segments.Add(_bSeg);
        }
        else if(false)
        {
            // do something
        }
 
}


shadowbane

  • Community Member
  • Posts: 85
  • Hero Points: 4
Re: Problem with plusminus
« Reply #1 on: July 07, 2010, 10:13:18 pm »
The cursor needs to be right after the { for plusminus to create a new selective display block.  Try hide-code-block if you want to hide it from anywhere in the block.

-shad

Wanderer

  • Senior Community Member
  • Posts: 558
  • Hero Points: 23
Re: Problem with plusminus
« Reply #2 on: July 07, 2010, 10:55:56 pm »
"Code  block not found or language not supported"

shadowbane

  • Community Member
  • Posts: 85
  • Hero Points: 4
Re: Problem with plusminus
« Reply #3 on: July 08, 2010, 03:43:07 pm »
Interesting.  I created a file called blah.cs and pasted your code in to it.  hide-code-block worked, though plusminus reported the same issue you are seeing.  I do have a c++ project open, but I'm sitting in the C# file when I do the command, so I doubt it has any influence.  Does it work with a clean configuration? (on the command line -sc delmeconfig and then after the test go delete the delmeconfig folder)

-- for comparison, here's my install info --
SlickEdit Version 15.0.0.5   Build Date: April 26, 2010   Emulation: CUA
OS: Windows 7   OS Version: 6.01.7600 
Project Type:
Language: .cs (C#)
Hotfixes:
d:\mydata\SE\15.0.0\hotfixes\hotfix_se1500_7_cumulative.zip (Revision: 7)




-shad

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 2152
  • Hero Points: 273
Re: Problem with plusminus
« Reply #4 on: July 12, 2010, 07:11:27 pm »

Part of the reason for this is that statement tagging is not support for C# yet.  The other parse is a minor bug in the way plusminus is implemented for languages that do not have statement tagging.  There will be a fix for this problem in 15.0.1.