Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Refactoring Extract Method

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Mike ONeill Posted - Apr 12 2007 : 07:02:46 AM
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
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Apr 16 2007 : 08:06:41 AM
Unfortunately no. This thread will be updated when this bug is fixed, letting you know which build contains the fix.
Mike ONeill Posted - Apr 16 2007 : 01:16:43 AM
Does build 1553 fix this , I have just downloaded to try
feline Posted - Apr 12 2007 : 11:22:00 AM
Unfortunately Extract Method in VB.NET is currently broken:

case=4089

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

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000