Unable to Reformat a method

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to Reformat a method

F.Balaguer
Hello,

I am running D5.1 Standard Edition, suddenly I realized that the browser
is not able to reformat this method...

foo
^false

similar happened with other methods mainly because String MNU isSymbol
I can add those methods to those classes but I would like to know the
reason for this first. Any ideas?

Thanks


2:00:52 PM, Thursday, June 12, 2003: 'False does not understand #isSymbol'
False(Object)>>doesNotUnderstand:
StLiteralToken>>storeOn:
RBFormatter>>acceptLiteralNode:
StLiteralValueNode>>acceptVisitor:
RBFormatter>>visitNode:
RBFormatter>>acceptReturnNode:
StReturnNode>>acceptVisitor:
RBFormatter>>visitNode:
RBFormatter>>formatStatementsFor:
RBFormatter>>acceptSequenceNode:
StSequenceNode>>acceptVisitor:
RBFormatter>>visitNode:
[] in RBFormatter>>formatMethodBodyFor:
BlockClosure>>ifCurtailed:
BlockClosure>>ensure:
RBFormatter(RBSourceFormatter)>>indent:around:
RBFormatter>>indentWhile:
RBFormatter>>formatMethodBodyFor:
RBFormatter(RBSourceFormatter)>>acceptMethodNode:
StMethodNode>>acceptVisitor:
RBFormatter>>visitNode:
RBFormatter(RBSourceFormatter)>>format:
StMethodNode(StProgramNode)>>formattedCode
[] in MethodBrowser>>reformattedMethodSourceIn:
ExceptionHandler(ExceptionHandlerAbstract)>>markAndTry
[] in ExceptionHandler(ExceptionHandlerAbstract)>>try:
BlockClosure>>ifCurtailed:
BlockClosure>>ensure:
ExceptionHandler(ExceptionHandlerAbstract)>>try:
BlockClosure>>on:do:
MethodBrowser>>reformattedMethodSourceIn:
ClassBrowserShell(ClassBrowserAbstract)>>reformatAccept
Symbol>>forwardTo:
CommandDescription>>performAgainst:
[] in Command>>value
BlockClosure>>ifCurtailed:
BlockClosure>>ensure:
Command>>value
ShellView>>performCommand:
ClassBrowserShell(Shell)>>performCommand:
CommandQuery>>perform
DelegatingCommandPolicy(CommandPolicy)>>route:
[] in RichTextEdit(View)>>onCommand:
BlockClosure>>ifCurtailed:
BlockClosure>>ensure:
Cursor>>showWhile:
RichTextEdit(View)>>onCommand:
RichTextEdit(View)>>wmCommand:wParam:lParam:
RichTextEdit(View)>>dispatchMessage:wParam:lParam:
[] in InputState>>wndProc:message:wParam:lParam:cookie:


Reply | Threaded
Open this post in threaded view
|

Re: Unable to Reformat a method

Christopher J. Demers
"Federico Balaguer" <[hidden email]> wrote in message
news:[hidden email]...
> I am running D5.1 Standard Edition, suddenly I realized that the browser
> is not able to reformat this method...
>
> foo
> ^false
>
> similar happened with other methods mainly because String MNU isSymbol
> I can add those methods to those classes but I would like to know the
> reason for this first. Any ideas?

It works in D5PRO.  I have an isSymbol method up in object, and it is part
of the RBEnvironments package.  I suspect that because D5STD does not
include the refactoring browser that package has not been included.  I guess
OA needs to do some repackaging.  Blair posted a url to a page a few days
ago where one could download the refactoring browser, perhaps that would add
the missing methods.

Chris


Reply | Threaded
Open this post in threaded view
|

Re: Unable to Reformat a method

Blair McGlashan
"Christopher J. Demers" <[hidden email]> wrote in
message news:bcait5$guulo$[hidden email]...

> "Federico Balaguer" <[hidden email]> wrote in message
> news:[hidden email]...
> > I am running D5.1 Standard Edition, suddenly I realized that the browser
> > is not able to reformat this method...
> >
> > foo
> > ^false
> >
> > similar happened with other methods mainly because String MNU isSymbol
> > I can add those methods to those classes but I would like to know the
> > reason for this first. Any ideas?
>
> It works in D5PRO.  I have an isSymbol method up in object, and it is part
> of the RBEnvironments package.  I suspect that because D5STD does not
> include the refactoring browser that package has not been included.  I
guess
> OA needs to do some repackaging.  Blair posted a url to a page a few days
> ago where one could download the refactoring browser, perhaps that would
add
> the missing methods.
>

It would, or define #isSymbol in Object to answer false, overriding it in
Symbol to answer true. I'll record this as a bug for PL2 and get the methods
moved.

Thanks Chris and Federico.

Regards

Blair