Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
default is now mxunit, changed icon to match.
Browse files Browse the repository at this point in the history
  • Loading branch information
denuno committed Jul 3, 2012
1 parent 45a21e5 commit 3e73138
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 22 deletions.
8 changes: 4 additions & 4 deletions org.cfeclipse.cfml.cfunit/fragment.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
class="org.cfeclipse.cfml.cfunit.wizards.NewCFUnitWizard"
finalPerspective="org.cfeclipse.cfml.perspective.CFML"
hasPages="true"
helpHref="http://cfunit.sourceforge.net/docs.php"
icon="icons/obj16/cfunit.png"
helpHref="http://mxunit.org"
icon="icons/obj16/mxunit.png"
id="org.cfeclipse.cfml.cfunit.wizards.NewCFUnitWizard"
name="CFUnit Test"
name="MXUnit Test"
preferredPerspectives="org.cfeclipse.cfml.perspective.CFML"
project="false"/>
</extension>
Expand All @@ -22,7 +22,7 @@
allowMultiple="false"
category="org.cfeclipse.cfml"
class="org.cfeclipse.cfml.cfunit.views.CFUnitView"
icon="icons/obj16/cfunit.png"
icon="icons/obj16/mxunit.png"
id="org.cfeclipse.cfml.cfunit.views.CFUnitTest"
name="CFUnit"/>
</extension>
Expand Down
Binary file added org.cfeclipse.cfml.cfunit/icons/obj16/mxunit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@
*/
public class NewCFUnitWizard extends Wizard implements INewWizard {

public final static String TITLE = "New CFUnit Testcase";
public final static String TITLE = "New MXUnit Testcase";
public final static String PREFERENCES_PAGE_NAME = "preferencesPage";
public final static String METHODS_PAGE_NAME = "methodsPage";
public final static String PAGE_TITLE = "CFUnit Wizard";
public final static String PAGE_DESCRIPTION = "For help or documentation: http://cfunit.sf.net";
public final ImageDescriptor PAGE_TITLE_IMG = ImageDescriptor.createFromFile( getClass(), "../../../../../../icons/obj16/cfunit_descriptor.gif" );
public final static String PAGE_TITLE = "MXUnit Wizard";
public final static String PAGE_DESCRIPTION = "For help or documentation: http://mxunit.org";
public final ImageDescriptor PAGE_TITLE_IMG = ImageDescriptor.createFromFile( getClass(), "../../../../../../icons/obj16/mxunit_descriptor.gif" );

private NewCFUnitWizardPage1 preferencesPage;
private NewCFUnitWizardPage2 methodsPage;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public void modifyText(ModifyEvent e) {
dialogChanged();
}
});
frameworkExtendsPath.setText("net.sourceforge.cfunit.framework");
frameworkExtendsPath.setText("mxunit.framework");

Button button2 = new Button(parent, SWT.PUSH);
button2.setText(" Browse... ");
Expand Down Expand Up @@ -202,14 +202,25 @@ public void createFrameworkControls( Composite parent ) {
gd = new GridData();
gd.horizontalIndent = 5;

fwMxUnit = new Button(panel, SWT.RADIO);
fwMxUnit.setText("New MXUnit Test");
fwMxUnit.setLayoutData(gd);
fwMxUnit.setSelection( true );
fwMxUnit.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
dialogChanged();
frameworkChanged(TestFrameworkType.MXUNIT);
}
public void widgetDefaultSelected(SelectionEvent e) {}
});

fwCFUnit = new Button(panel, SWT.RADIO);
fwCFUnit.setText("New CFUnit Test");
fwCFUnit.setLayoutData(gd);
fwCFUnit.setSelection( true );
fwCFUnit.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
dialogChanged();
frameworkChanged(TestFrameworkType.CFUNIT);
dialogChanged();
}
public void widgetDefaultSelected(SelectionEvent e) {}
});
Expand All @@ -225,17 +236,6 @@ public void widgetSelected(SelectionEvent e) {
public void widgetDefaultSelected(SelectionEvent e) {}
});

fwMxUnit = new Button(panel, SWT.RADIO);
fwMxUnit.setText("New MXUnit Test");
fwMxUnit.setLayoutData(gd);
fwMxUnit.addSelectionListener(new SelectionListener() {
public void widgetSelected(SelectionEvent e) {
frameworkChanged(TestFrameworkType.MXUNIT);
dialogChanged();
}
public void widgetDefaultSelected(SelectionEvent e) {}
});


}

Expand Down

0 comments on commit 3e73138

Please sign in to comment.