Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Technical Support
 Refactoring Extract Method
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mike ONeill
Tomato Guru

South Africa
103 Posts

Posted - Apr 12 2007 :  07:02:46 AM  Show Profile  Reply with Quote
How do I set up to format the look of a refactored method

The Auto Text tremplate looks like

Private Sub $SymbolName$( $ParameterList$ )

$MethodBody$

End Sub

when I select Extract Method I get the dialog for MyMethod , the preview in the grey shows

bool MyMethod(Dim param As New param, ByVal processID As Int32, ByVal processStepID As Int32, ByVal parameterTypeID As Int32, ByVal active As processID, ByVal processStepID As Int32, ByVal parameterTypeID As Int32, ByVal active As processStepID, ByVal parameterTypeID As Int32, ByVal active As parameterTypeID, ByVal active As active)

before is

ParametersListDataSet1 = param.ParametersListDataSet(processID, processStepID, parameterTypeID, active)
ParametersDataGridView.DataSource = ParametersListDataSet1



After IS

Private Sub MyMethod( Dim param As New param, ByVal processID As Int32, ByVal processStepID As Int32, ByVal parameterTypeID As Int32, ByVal active As processID, ByVal processStepID As Int32, ByVal parameterTypeID As Int32, ByVal active As processStepID, ByVal parameterTypeID As Int32, ByVal active As parameterTypeID, ByVal active As active )

Return ParametersListDataSet1 = param.ParametersListDataSet(processID, processStepID, parameterTypeID, active)
ParametersDataGridView.DataSource = ParametersListDataSet1
;

End Sub

this throws all sorts of syntax errors

How can I format it be

Private Sub MyMethod(ByVal processID As Int32, ByVal processStepID As Int32, ByVal parameterTypeID As Int32, ByVal active As Boolean)

ParametersListDataSet1 = param.ParametersListDataSet(processID, processStepID, parameterTypeID, active)
ParametersDataGridView.DataSource = ParametersListDataSet1


End Sub

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Apr 12 2007 :  11:22:00 AM  Show Profile  Reply with Quote
Unfortunately Extract Method in VB.NET is currently broken:

case=4089

we are hoping for a fix in the next few builds.

zen is the art of being at one with the two'ness
Go to Top of Page

Mike ONeill
Tomato Guru

South Africa
103 Posts

Posted - Apr 16 2007 :  01:16:43 AM  Show Profile  Reply with Quote
Does build 1553 fix this , I have just downloaded to try
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Apr 16 2007 :  08:06:41 AM  Show Profile  Reply with Quote
Unfortunately no. This thread will be updated when this bug is fixed, letting you know which build contains the fix.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000