issue_id int64 2.04k 425k | title stringlengths 9 251 | body stringlengths 4 32.8k ⌀ | status stringclasses 6
values | after_fix_sha stringlengths 7 7 | project_name stringclasses 6
values | repo_url stringclasses 6
values | repo_name stringclasses 6
values | language stringclasses 1
value | issue_url null | before_fix_sha null | pull_url null | commit_datetime timestamp[us, tz=UTC] | report_datetime timestamp[us, tz=UTC] | updated_file stringlengths 23 187 | chunk_content stringlengths 1 22k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestSuiteCreationWizardPage.java | public NewTestSuiteCreationWizardPage() {
super(true, PAGE_NAME);
fSuiteNameStatus= new JUnitStatus();
fSuiteNameTextInitialValue= "";
setTitle(Messages.getString("NewTestSuiteWizPage.title"));
setDescription(Messages.getString("NewTestSuiteWizPage.description"));
fClassesInSuiteStatus= new JUnitStatus()... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestSuiteCreationWizardPage.java | }
/**
* Should be called from the wizard with the input element.
*/
public void init(IStructuredSelection selection) {
IJavaElement jelem= getInitialJavaElement(selection);
initContainerPage(jelem);
initTypePage(jelem);
updateStatus(findMostSevereStatus());
}
/**
* Finds the most severe error (if th... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestSuiteCreationWizardPage.java | updateClassesInSuiteTable();
} else if (fieldName.equals(CLASSES_IN_SUITE)) {
fClassesInSuiteStatus= classesInSuiteChanged();
updateSelectedClassesLabel();
} else if (fieldName.equals(SUITE_NAME)) {
fSuiteNameStatus= testSuiteChanged();
}
updateStatus(findMostSevereStatus());
}
public void setVisible... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestSuiteCreationWizardPage.java | protected void createClassesInSuiteControl(Composite parent, int nColumns) {
if (fClassesInSuiteTable == null) {
Label label = new Label(parent, SWT.LEFT);
label.setText(Messages.getString("NewTestSuiteWizPage.classes_in_suite.label"));
GridData gd= new GridData();
gd.horizontalAlignment = GridData.FILL;... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestSuiteCreationWizardPage.java | GridData bgd= new GridData(GridData.FILL_HORIZONTAL | GridData.VERTICAL_ALIGN_BEGINNING);
fSelectAllButton.setLayoutData(bgd);
fSelectAllButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
fClassesInSuiteTable.setAllChecked(true);
handleFieldChanged(CL... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestSuiteCreationWizardPage.java | private Object[] fTypes;
public ClassesInSuitContentProvider() {
super();
}
public Object[] getElements(Object parent) {
try {
if (parent instanceof IPackageFragment) {
IPackageFragment pack= (IPackageFragment) parent;
ICompilationUnit[] cuArray= pack.getCompilationUnits();
ArrayLi... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestSuiteCreationWizardPage.java | public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
}
}
/*
* @see TypePage#evalMethods
*/
protected void createTypeMembers(IType type, IImportsStructure imports, IProgressMonitor monitor) throws CoreException {
writeImports(imports);
type.createMethod(getSuiteMethodString(), null, f... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestSuiteCreationWizardPage.java | suite.append("suite.addTest("+testType.getElementName()+".suite());");
}
}
}
suite.append("\n"+endMarker);
return suite.toString();
}
public IRunnableWithProgress getRunnable() {
return new IRunnableWithProgress() {
public void run(IProgressMonitor monitor) throws InvocationTargetException, Interr... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestSuiteCreationWizardPage.java | return;
}
IType suiteType= cu.getType(getTypeName());
monitor.beginTask(Messages.getString("NewTestSuiteWizPage.createType.beginTask"), 10);
IMethod suiteMethod= suiteType.getMethod("suite", new String[] {});
monitor.worked(1);
String lineDelimiter= JUnitStubUtility.getLineDelimiterUsed(cu);... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestSuiteCreationWizardPage.java | monitor.worked(1);
String formattedContent=
JUnitStubUtility.codeFormat(originalContent, 0, lineDelimiter);
buf.replace(0, buf.getLength(), formattedContent);
monitor.worked(1);
cu.save(new SubProgressMonitor(monitor, 1), false);
} else {
cannotUpdateSuiteError();
... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestSuiteCreationWizardPage.java | e.printStackTrace();
}
}
public boolean hasUpdatedExistingClass() {
return fUpdatedExistingClassButton;
}
private IStatus classesInSuiteChanged() {
JUnitStatus status= new JUnitStatus();
if (fClassesInSuiteTable.getCheckedElements().length <= 0)
status.setWarning(Messages.getString("NewTestSuiteWizPage... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestSuiteCreationWizardPage.java | public void modifyText(ModifyEvent e) {
handleFieldChanged(SUITE_NAME);
}
});
gd= new GridData();
gd.horizontalAlignment= gd.FILL;
gd.grabExcessHorizontalSpace= true;
gd.horizontalSpan= nColumns - 2;
fSuiteNameText.setLayoutData(gd);
Label space= new Label(composite, SWT.LEFT);
space.setText("... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestSuiteCreationWizardPage.java | fSuiteNameTextInitialValue= name;
} else {
fSuiteNameText.setText(name);
fSuiteNameText.setEnabled(canBeModified);
}
}
/**
* Called when the type name has changed.
* The method validates the type name and returns the status of the validation.
* Can be extended to add more validation
*/
protected I... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestSuiteCreationWizardPage.java | }
IPackageFragment pack= getPackageFragment();
if (pack != null) {
ICompilationUnit cu= pack.getCompilationUnit(typeName + ".java");
if (cu.exists()) {
status.setWarning(Messages.getString("NewTestSuiteWizPage.typeName.warning.already_exists"));
return status;
}
}
return status;
}
/**
*... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestSuiteCreationWizardPage.java | }
/*
}
}
} |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/UpdateTestSuite.java | /*
* (c) Copyright 2001 MyCorporation.
* All Rights Reserved.
*/
package org.eclipse.jdt.junit.wizards;
import java.lang.reflect.InvocationTargetException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus; |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/UpdateTestSuite.java | import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.SubProgressMonitor;
import org.eclipse.jdt.core.IBuffer;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.core.IJavaElement;
import org.eclipse.jdt.core.IMethod;
import org.eclipse.jdt.core.IPackageFragment;
import ... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/UpdateTestSuite.java | private Shell fShell;
private IPackageFragment fPack;
private ICompilationUnit fTestSuite;
private IMethod fSuiteMethod;
private static boolean fEmptySelectionAllowed= false;
private Object[] fSelectedTestCases;
private class UpdateAllTestsValidator implements ISelectionValidator {
/*
* @see ISelectionValid... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/UpdateTestSuite.java | }
}
public UpdateTestSuite() {
super();
}
/*
* @see IObjectActionDelegate#setActivePart(IAction, IWorkbenchPart)
*/
public void setActivePart(IAction action, IWorkbenchPart targetPart) {
}
/*
* @see IActionDelegate#run(IAction)
*/
public void run(IAction action) {
ILabelProvider lprovider= new JavaE... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/UpdateTestSuite.java | dialog.setTitle(Messages.getString("UpdateAllTests.title"));
dialog.setMessage(Messages.getString("UpdateAllTests.message"));
dialog.setInitialSelections(cprovider.getElements(fPack));
dialog.setSize(60, 25);
dialog.setInput(fPack);
if (dialog.open() == dialog.OK) {
fSelectedTestCases= ... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/UpdateTestSuite.java | public void selectionChanged(IAction action, ISelection selection) {
fShell= JUnitPlugin.getActiveWorkbenchShell();
if (selection instanceof IStructuredSelection) {
Object testSuiteObj= ((IStructuredSelection) selection).getFirstElement();
if (testSuiteObj != null && testSuiteObj instanceof ICompilationUnit... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/UpdateTestSuite.java | end += NewTestSuiteCreationWizardPage.endMarker.length();
source.replace(start, end, getUpdatableString());
buf.replace(range.getOffset(), range.getLength(), source.toString());
monitor.worked(1);
fTestSuite.reconcile();
originalContent= buf.getText(0, buf.getLength());
monitor.worke... |
11,866 | Bug 11866 Wrong labels in Update Test Suite dialog | "Test Classes to be included" is written with TestClasses (missing space) The status line talks about methods being selected instead of types. The action name is written together (TestSuite) instead of Test Suite | resolved fixed | 790bdf0 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:02:02Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/UpdateTestSuite.java | }
};
}
public String getUpdatableString() throws JavaModelException {
StringBuffer suite= new StringBuffer();
suite.append(NewTestSuiteCreationWizardPage.startMarker+"\n");
for (int i= 0; i < fSelectedTestCases.length; i++) {
if (fSelectedTestCases[i] instanceof IType) {
IType testType= (IType) fSel... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizard.java | /*
* (c) Copyright 2001 MyCorporation.
* All Rights Reserved.
*/
package org.eclipse.jdt.junit.wizards;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.co... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizard.java | private NewTestCaseCreationWizardPage fPage;
private NewTestCaseCreationWizardPage2 fPage2;
public NewTestCaseCreationWizard() {
super();
setWindowTitle("JUnit TestCase");
}
/*
* @see Wizard#createPages
*/
public void addPages() {
super.addPages();
IWorkspace workspace= ResourcesPlugin.getWork... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizard.java | fPage= new NewTestCaseCreationWizardPage();
fPage2= new NewTestCaseCreationWizardPage2(fPage);
addPage(fPage);
fPage.init(getSelection(),fPage2);
addPage(fPage2);
}
/*
* @see Wizard#performFinish
*/
public boolean performFinish() {
if (finishPage(fPage.getRunnable())) {
IType newClass= fPage.getC... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | package org.eclipse.jdt.junit.wizards;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.ListIterator;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | import org.eclipse.jdt.internal.corext.util.JavaModelUtil;
import org.eclipse.jdt.internal.junit.ui.JUnitPlugin;
import org.eclipse.jdt.internal.junit.util.JUnitStatus;
import org.eclipse.jdt.internal.junit.util.JUnitStubUtility;
import org.eclipse.jdt.internal.junit.util.LayoutUtil;
import org.eclipse.jdt.internal.jun... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | protected final static String PAGE_NAME= "NewTestCaseCreationWizardPage";
protected final static String CLASS_TO_TEST= PAGE_NAME + ".classtotest";
protected final static String TEST_CLASS= PAGE_NAME + ".testclass";
protected final static String TEST_SUFFIX= "Test";
protected final static String SETUP= "setUp"; ... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | private Text fClassToTestText;
private Button fClassToTestButton;
private Label fTestClassLabel;
private Text fTestClassText;
private String fTestClassTextInitialValue;
private IMethod[] fTestMethods;
private IType fCreatedType;
private boolean fFirstTime;
public NewTestCaseCreationWizardPage() {
super(true... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | }
});
fClassToTestStatus= new JUnitStatus();
fTestClassStatus= new JUnitStatus();
fDefaultClassToTest= "";
}
/**
* Should be called from the wizard with the input element.
*/
public void init(IStructuredSelection selection, NewTestCaseCreationWizardPage2 page2) {
fPage2= page2;
IJavaElement ele... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | if (cu != null)
enclosingType= JavaModelUtil.findPrimaryType(cu);
}
if (enclosingType != null) {
try {
if (!TestSearchEngine.isTestImplementor(enclosingType)) {
fDefaultClassToTest= enclosingType.getFullyQualifiedName();
}
} catch (JavaModelException e) {
JUnitPlugin.log(e);
... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | fSuperClassStatus
});
}
/*
* @see ContainerPage#handleFieldChanged
*/
protected void handleFieldChanged(String fieldName) {
super.handleFieldChanged(fieldName);
if (fieldName.equals(CLASS_TO_TEST)) {
fClassToTestStatus= classToTestClassChanged();
updateDefaultName();
} else if (fieldName.equals(SUP... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | if (s.length() > 0)
setTypeName(s + TEST_SUFFIX, true);
}
/*
* @see IDialogPage#createControl(Composite)
*/
public void createControl(Composite parent) {
initializeDialogUnits(parent);
Composite composite= new Composite(parent, SWT.NONE);
int nColumns= 4;
GridLayout layout= new GridLayout()... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | setFocus();
}
protected void createMethodStubSelectionControls(Composite composite, int nColumns) {
LayoutUtil.setHorizontalSpan(fMethodStubsButtons.getLabelControl(composite), nColumns);
LayoutUtil.createEmptySpace(composite,1);
LayoutUtil.setHorizontalSpan(fMethodStubsButtons.getSelectionButtonsGroup(composit... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | fClassToTestButton.setEnabled(true);
fClassToTestButton.addSelectionListener(new SelectionListener() {
public void widgetDefaultSelected(SelectionEvent e) {
classToTestButtonPressed();
}
public void widgetSelected(SelectionEvent e) {
classToTestButtonPressed();
}
});
gd= new GridData();
gd.... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | IType type= null;
try {
SelectionDialog dialog= JavaUI.createTypeDialog(getShell(), getWizard().getContainer(), scope, IJavaElementSearchConstants.CONSIDER_CLASSES, false, null);
dialog.setTitle(Messages.getString("NewTestClassWizPage.class_to_test.dialog.title"));
dialog.setMessage(Messages.getString("NewT... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | public IType getClassToTest() {
return fClassToTest;
}
/**
* Sets the class to test name.
* @param canBeModified Selects if the super class can be changed by the user
*/
public void setClassToTest(String name) {
fClassToTestText.setText(name);
}
/*
* @see TypePage#evalMethods
*/
protected void cr... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | }
protected void createConstructor(IType type) throws JavaModelException {
String constr= "public "+getTypeName()+"(String name) {super(name);}\n\n";
type.createMethod(constr, null, false, null);
fIndexOfFirstTestMethod++;
}
protected void createMain(IType type) throws JavaModelException {
StringBuffer main... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | protected void createSetUp(IType type, IImportsStructure imports) throws JavaModelException {
ITypeHierarchy typeHierarchy= null;
IType[] superTypes= null;
String setUp;
IMethod methodTemplate= null;
if (type.exists()) {
typeHierarchy= type.newSupertypeHierarchy(null);
superTypes= typeHierarchy.getAllSu... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | }
protected void createTearDown(IType type, IImportsStructure imports) throws JavaModelException {
ITypeHierarchy typeHierarchy= null;
IType[] superTypes= null;
String tearDown;
IMethod methodTemplate= null;
if (type.exists()) {
if (typeHierarchy == null) {
typeHierarchy= type.newSupertypeHierarchy(... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | "protected void "+TEARDOWN+"() throws Exception {}\n\n";
}
type.createMethod(tearDown, null, false, null);
fIndexOfFirstTestMethod++;
}
protected void createTestMethodStubs(IType type) throws JavaModelException {
IMethod[] methods= fPage2.getCheckedMethods();
if (methods.length > 0) {
ArrayList... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | }
}
/* used when for example both sum and Sum methods are present. Then
* sum -> testSum
* Sum -> testSum1
*/
ArrayList newMethodsNames= new ArrayList();
for (int i = 0; i < methods.length; i++) {
String elementName= methods[i].getElementName();
StringBuffer methodName= new Strin... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | if (param.startsWith( (new Character(Signature.C_ARRAY)).toString() ))
start= 1;
if (param.endsWith((new Character(Signature.C_NAME_END)).toString() ))
end--;
if (param.startsWith((new Character(Signature.C_UNRESOLVED)).toString() ,start))
start++;
else if (param.sta... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | }
}
protected static GridData gridDataForDefaultForTypeName(int span) {
GridData gd= new GridData();
gd.horizontalSpan= span;
return gd;
}
public static Control createEmptySpace(Composite parent, int span) {
Label label= new Label(parent, SWT.LEFT);
GridData gd= new GridData();
gd.horizontalAlignment= g... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | /**
* Creates a type using the current field values.
*/
public void createType(IProgressMonitor monitor) throws CoreException, InterruptedException {
super.createType(monitor);
if (fPage2.getCreateTasksButtonSelection()) {
createTaskMarkers();
}
}
private void createTaskMarkers() throws CoreException... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | fMethodStubsButtons.setEnabled(3, true);
String superClassName= getSuperClass();
if (superClassName != null && !superClassName.equals("") && getPackageFragmentRoot() != null) {
try {
IType type= NewTestCaseCreationWizardPage.resolveClassNameToType(getPackageFragmentRoot().getJavaProject(), getPackageFragmen... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | }
protected void createTestClassControls(Composite composite, int nColumns) {
fTestClassLabel= new Label(composite, SWT.LEFT | SWT.WRAP);
fTestClassLabel.setFont(composite.getFont());
fTestClassLabel.setText(Messages.getString("NewTestClassWizPage.testcase.label"));
GridData gd= new GridData();
gd.horizon... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | * Gets the type name.
*/
public String getTypeName() {
return (fTestClassText==null)?fTestClassTextInitialValue:fTestClassText.getText();
}
/**
* Sets the type name.
*/
public void setTypeName(String name, boolean canBeModified) {
if (fTestClassText == null) {
fTestClassTextInitialValue= name;
}
... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | }
if (typeName.indexOf('.') != -1) {
status.setError(Messages.getString("NewTestClassWizPage.error.testcase.name_qualified"));
return status;
}
IStatus val= JavaConventions.validateJavaTypeName(typeName);
if (val.getSeverity() == IStatus.ERROR) {
status.setError(Messages.getString("NewTestClassWizPage... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | protected boolean isNextPageValid() {
return !getClassToTestText().equals("");
}
protected JUnitStatus validateClassToTest() {
IPackageFragmentRoot root= getPackageFragmentRoot();
IPackageFragment pack= getPackageFragment();
String classToTestName= fClassToTestText.getText();
JUnitStatus status= new JUnitS... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | return status;
}
if (pack != null && !JavaModelUtil.isVisible(type, pack)) {
status.setWarning(Messages.getFormattedString("NewTestClassWizPage.warning.class_to_test.interface_not_visible",classToTestName));
return status;
}
}
fClassToTest= type;
} catch (JavaModelException e) {
... |
11,863 | Bug 11863 Update Test Suite action does not allow to remove | What the action actually does is RECREATE the test suite based on the selection in the dialog. I do an update on a test suite which contains X. It is no clear that if I only select Y in the dialog that I'll end up with X being removed. Normally "Update" shows the content of the existing stuff (dir, zip) and allows to m... | resolved fixed | 7b3c35c | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T12:54:45Z | 2002-03-20T16:00:00Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | if (type == null) {
type= JavaModelUtil.findType(jproject, classToTestName);
}
return type;
}
/**
* Finds the most severe status from a array of stati.
* An error is more severe than a warning, and a warning is more severe
* than ok.
*/
public static IStatus getMostSevere(IStatus[] status) {
IStatus... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizard.java | /*
* (c) Copyright 2001 MyCorporation.
* All Rights Reserved.
*/
package org.eclipse.jdt.junit.wizards;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.IWorkspace;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.jdt.core.ICompilationUnit;
import org.eclipse.jdt.co... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizard.java | IWorkspace workspace= ResourcesPlugin.getWorkspace();
fPage= new NewTestCaseCreationWizardPage();
fPage2= new NewTestCaseCreationWizardPage2(fPage);
addPage(fPage);
fPage.init(getSelection(),fPage2);
addPage(fPage2);
}
/*
* @see Wizard#performFinish
*/
public boolean performFinish() {
if (finishPa... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | package org.eclipse.jdt.junit.wizards;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.ListIterator;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
import org.... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | import org.eclipse.jdt.internal.corext.util.JavaModelUtil;
import org.eclipse.jdt.internal.junit.ui.JUnitPlugin;
import org.eclipse.jdt.internal.junit.util.JUnitStatus;
import org.eclipse.jdt.internal.junit.util.JUnitStubUtility;
import org.eclipse.jdt.internal.junit.util.LayoutUtil;
import org.eclipse.jdt.internal.jun... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | protected final static String PAGE_NAME= "NewTestCaseCreationWizardPage";
protected final static String CLASS_TO_TEST= PAGE_NAME + ".classtotest";
protected final static String TEST_CLASS= PAGE_NAME + ".testclass";
protected final static String TEST_SUFFIX= "Test";
protected final static String SETUP= "setUp"; ... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | private int fIndexOfFirstTestMethod;
private Label fClassToTestLabel;
private Text fClassToTestText;
private Button fClassToTestButton;
private Label fTestClassLabel;
private Text fTestClassText;
private String fTestClassTextInitialValue;
private IMethod[] fTestMethods;
private IType fCreatedType;
private bo... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | public void groupChanged(SelectionButtonGroup field) {
field.setEnabled(1, field.isSelected(0));
}
});
fClassToTestStatus= new JUnitStatus();
fTestClassStatus= new JUnitStatus();
fDefaultClassToTest= "";
}
/**
* Should be called from the wizard with the input element.
*/
public void init(ISt... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | } else {
ICompilationUnit cu= (ICompilationUnit) JavaModelUtil.findElementOfKind(element, IJavaElement.COMPILATION_UNIT);
if (cu != null)
enclosingType= JavaModelUtil.findPrimaryType(cu);
}
if (enclosingType != null) {
try {
if (!TestSearchEngine.isTestImplementor(enclosingType)) {
fD... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | fClassToTestStatus,
fModifierStatus,
fSuperClassStatus
});
}
/*
* @see ContainerPage#handleFieldChanged
*/
protected void handleFieldChanged(String fieldName) {
super.handleFieldChanged(fieldName);
if (fieldName.equals(CLASS_TO_TEST)) {
fClassToTestStatus= classToTestClassChanged();
updateDefau... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | if (s.lastIndexOf('.') > -1)
s= s.substring(s.lastIndexOf('.') + 1);
if (s.length() > 0)
setTypeName(s + TEST_SUFFIX, true);
}
/*
* @see IDialogPage#createControl(Composite)
*/
public void createControl(Composite parent) {
initializeDialogUnits(parent);
Composite composite= new Composite(parent,... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | fClassToTestText.setText(fDefaultClassToTest);
setFocus();
}
protected void createMethodStubSelectionControls(Composite composite, int nColumns) {
LayoutUtil.setHorizontalSpan(fMethodStubsButtons.getLabelControl(composite), nColumns);
LayoutUtil.createEmptySpace(composite,1);
LayoutUtil.setHorizontalSpan(fMet... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | fClassToTestButton= new Button(composite, SWT.PUSH);
fClassToTestButton.setText(Messages.getString("NewTestClassWizPage.class_to_test.browse"));
fClassToTestButton.setEnabled(true);
fClassToTestButton.addSelectionListener(new SelectionListener() {
public void widgetDefaultSelected(SelectionEvent e) {
clas... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | IJavaElement[] elements= new IJavaElement[] { root.getJavaProject() };
IJavaSearchScope scope= SearchEngine.createJavaSearchScope(elements);
IType type= null;
try {
SelectionDialog dialog= JavaUI.createTypeDialog(getShell(), getWizard().getContainer(), scope, IJavaElementSearchConstants.CONSIDER_CLASSES, fa... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | }
public IType getClassToTest() {
return fClassToTest;
}
/**
* Sets the class to test name.
* @param canBeModified Selects if the super class can be changed by the user
*/
public void setClassToTest(String name) {
fClassToTestText.setText(name);
}
/*
* @see TypePage#evalMethods
*/
protected vo... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | createTestMethodStubs(type);
}
}
protected void createConstructor(IType type) throws JavaModelException {
String constr= "public "+getTypeName()+"(String name) {super(name);}\n\n";
type.createMethod(constr, null, false, null);
fIndexOfFirstTestMethod++;
}
protected void createMain(IType type) throws JavaMo... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | fIndexOfFirstTestMethod++;
}
protected void createSetUp(IType type, IImportsStructure imports) throws JavaModelException {
ITypeHierarchy typeHierarchy= null;
IType[] superTypes= null;
String setUp;
IMethod methodTemplate= null;
if (type.exists()) {
typeHierarchy= type.newSupertypeHierarchy(null);
s... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | type.createMethod(setUp, null, false, null);
fIndexOfFirstTestMethod++;
}
protected void createTearDown(IType type, IImportsStructure imports) throws JavaModelException {
ITypeHierarchy typeHierarchy= null;
IType[] superTypes= null;
String tearDown;
IMethod methodTemplate= null;
if (type.exists()) {
... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | } else {
tearDown="/**\n * Tears down the fixture, for example, close a network connection.\n * This method is called after a test is executed.\n * @throws Exception\n */\n" +
"protected void "+TEARDOWN+"() throws Exception {}\n\n";
}
type.createMethod(tearDown, null, false, null);
fIndexOfFirstTest... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | iter.remove();
}
}
}
/* used when for example both sum and Sum methods are present. Then
* sum -> testSum
* Sum -> testSum1
*/
ArrayList newMethodsNames= new ArrayList();
for (int i = 0; i < methods.length; i++) {
String elementName= methods[i].getElementName();
StringBu... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | String param= params[j];
int start= 0, end= param.length();
if (param.startsWith( (new Character(Signature.C_ARRAY)).toString() ))
start= 1;
if (param.endsWith((new Character(Signature.C_NAME_END)).toString() ))
end--;
if (param.startsWith((new Character... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | }
}
protected static GridData gridDataForDefaultForTypeName(int span) {
GridData gd= new GridData();
gd.horizontalSpan= span;
return gd;
}
public static Control createEmptySpace(Composite parent, int span) {
Label label= new Label(parent, SWT.LEFT);
GridData gd= new GridData();
gd.horizontalAlignment= g... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | /**
* Creates a type using the current field values.
*/
public void createType(IProgressMonitor monitor) throws CoreException, InterruptedException {
super.createType(monitor);
if (fPage2.getCreateTasksButtonSelection()) {
createTaskMarkers();
}
}
private void createTaskMarkers() throws CoreException... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | fMethodStubsButtons.setEnabled(3, true);
String superClassName= getSuperClass();
if (superClassName != null && !superClassName.equals("") && getPackageFragmentRoot() != null) {
try {
IType type= NewTestCaseCreationWizardPage.resolveClassNameToType(getPackageFragmentRoot().getJavaProject(), getPackageFragmen... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | }
protected void createTestClassControls(Composite composite, int nColumns) {
fTestClassLabel= new Label(composite, SWT.LEFT | SWT.WRAP);
fTestClassLabel.setFont(composite.getFont());
fTestClassLabel.setText(Messages.getString("NewTestClassWizPage.testcase.label"));
GridData gd= new GridData();
gd.horizon... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | * Gets the type name.
*/
public String getTypeName() {
return (fTestClassText==null)?fTestClassTextInitialValue:fTestClassText.getText();
}
/**
* Sets the type name.
*/
public void setTypeName(String name, boolean canBeModified) {
if (fTestClassText == null) {
fTestClassTextInitialValue= name;
}
... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | }
if (typeName.indexOf('.') != -1) {
status.setError(Messages.getString("NewTestClassWizPage.error.testcase.name_qualified"));
return status;
}
IStatus val= JavaConventions.validateJavaTypeName(typeName);
if (val.getSeverity() == IStatus.ERROR) {
status.setError(Messages.getString("NewTestClassWizPage... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | protected boolean isNextPageValid() {
return !getClassToTestText().equals("");
}
protected JUnitStatus validateClassToTest() {
IPackageFragmentRoot root= getPackageFragmentRoot();
IPackageFragment pack= getPackageFragment();
String classToTestName= fClassToTestText.getText();
JUnitStatus status= new JUnitS... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | return status;
}
if (pack != null && !JavaModelUtil.isVisible(type, pack)) {
status.setWarning(Messages.getFormattedString("NewTestClassWizPage.warning.class_to_test.interface_not_visible",classToTestName));
return status;
}
}
fClassToTest= type;
} catch (JavaModelException e) {
... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/NewTestCaseCreationWizardPage.java | if (type == null) {
type= JavaModelUtil.findType(jproject, classToTestName);
}
return type;
}
/**
* Finds the most severe status from a array of stati.
* An error is more severe than a warning, and a warning is more severe
* than ok.
*/
public static IStatus getMostSevere(IStatus[] status) {
IStatus... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/SelectionButtonGroup.java | /*
* (c) Copyright 2001 MyCorporation.
* All Rights Reserved.
*/
package org.eclipse.jdt.junit.wizards;
import org.eclipse.jdt.internal.junit.util.*;
import org.eclipse.jface.util.Assert;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.events.SelectionListener;
import... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/SelectionButtonGroup.java | private Label fLabel;
protected String fLabelText;
private SelectionButtonGroupListener fGroupListener;
private boolean fEnabled;
private Composite fButtonComposite;
private Button[] fButtons;
private String[] fButtonNames;
private boolean[] fButtonsSelected;
private boolean[] fButtonsEnabled;
private Co... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/SelectionButtonGroup.java | /**
* The dialog field has changed.
*/
void groupChanged(SelectionButtonGroup field);
}
/**
* Creates a group without border.
*/
public SelectionButtonGroup(int buttonsStyle, String[] buttonNames, int nColumns) {
this(buttonsStyle, buttonNames, nColumns, SWT.NONE);
}
/**
* Creates a group w... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/SelectionButtonGroup.java | fEnabled= true;
fLabel= null;
fLabelText= "";
Assert.isTrue(buttonsStyle == SWT.RADIO || buttonsStyle == SWT.CHECK || buttonsStyle == SWT.TOGGLE);
fButtonNames= buttonNames;
int nButtons= buttonNames.length;
fButtonsSelected= new boolean[nButtons];
fButtonsEnabled= new boolean[nButtons];
for (int... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/SelectionButtonGroup.java | if (fGroupBorderStyle == SWT.NONE) {
Label label= getLabelControl(parent);
label.setLayoutData(gridDataForLabel(1));
Composite buttonsgroup= getSelectionButtonsGroup(parent);
GridData gd= new GridData();
gd.horizontalSpan= nColumns - 1;
buttonsgroup.setLayoutData(gd);
return new Control[] { labe... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/SelectionButtonGroup.java | button.setSelection(fButtonsSelected[index]);
button.addSelectionListener(listener);
button.setLayoutData(new GridData());
return button;
}
private Button createMainCombo(int index, Composite group, SelectionListener listener) {
Composite buttonComboGroup= new Composite(group, 0);
GridLayout layout= new G... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/SelectionButtonGroup.java | * Returns the group widget. When called the first time, the widget will be created.
* @param The parent composite when called the first time, or <code>null</code>
* after.
*/
public Composite getSelectionButtonsGroup(Composite parent) {
if (fButtonComposite == null) {
assertCompositeNotNull(parent);
... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/SelectionButtonGroup.java | doWidgetSelected(e);
}
};
int nButtons= fButtonNames.length;
fButtons= new Button[nButtons];
fButtons[0]= createSelectionButton(0, fButtonComposite, listener);
fButtons[1]= createMainCombo(1, fButtonComposite, listener);
for (int i= 2; i < nButtons; i++) {
fButtons[i]= createSelectionButton(i,... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/SelectionButtonGroup.java | for (int i= 0; i < fButtons.length; i++) {
if (fButtons[i] == button) {
fButtonsSelected[i]= button.getSelection();
dialogFieldChanged();
return;
}
}
}
/**
* Returns the selection state of a button contained in the group.
* @param The index of the button
*/
public boolean isSelected(int ... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/SelectionButtonGroup.java | button.setSelection(selected);
}
}
}
}
}
/**
* Returns the enabled state of a button contained in the group.
* @param The index of the button
*/
public boolean isEnabled(int index) {
if (index >= 0 && index < fButtonsEnabled.length) {
return fButtonsEnabled[index];
}
return false;
}
... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/SelectionButtonGroup.java | if (index == 1)
fMainCombo.setEnabled(enabled);
}
}
}
}
}
protected void updateEnableState() {
if (fLabel != null) {
fLabel.setEnabled(fEnabled);
}
if (fButtons != null) {
boolean enabled= isEnabled();
for (int i= 0; i < fButtons.length; i++) {
Button button= fButtons[i];
i... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/SelectionButtonGroup.java | fLabelText= labeltext;
}
/**
* Defines the listener for this dialog field.
*/
public final void setSelectionGroupListener(SelectionButtonGroupListener listener) {
fGroupListener= listener;
}
/**
* Programatical invocation of a dialog field change.
*/
public void dialogFieldChanged() {
if (fGroup... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/SelectionButtonGroup.java | if (display != null) {
display.asyncExec(
new Runnable() {
public void run() {
setFocus();
}
}
);
}
}
protected static GridData gridDataForLabel(int span) {
GridData gd= new GridData();
gd.horizontalSpan= span;
return gd;
}
/**
* Creates or returns the created label wid... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/SelectionButtonGroup.java | fLabel.setText(fLabelText);
} else {
fLabel.setText(".");
fLabel.setVisible(false);
}
}
return fLabel;
}
/**
* Creates a spacer control.
* @param parent The parent composite
*/
public static Control createEmptySpace(Composite parent) {
return createEmptySpace(parent, 1);
}
/**
... |
11,844 | Bug 11844 new TestCase does not store settings | All checkboxes are not persisted | resolved fixed | 3a0f07f | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:01:27Z | 2002-03-20T13:13:20Z | org.eclipse.jdt.junit/src/org/eclipse/jdt/junit/wizards/SelectionButtonGroup.java | return (control != null) && !(control.isDisposed());
}
/**
* Sets the enable state of the dialog field.
*/
public final void setEnabled(boolean enabled) {
if (enabled != fEnabled) {
fEnabled= enabled;
updateEnableState();
}
}
/**
* Gets the enable state of the dialog field.
*/
public fi... |
11,770 | Bug 11770 java browsing: multi-selection disabled in 2 of 4 views | multi selection is disabled in the package and type views but it's enabled in project and member views | verified fixed | 3839f03 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:41:17Z | 2002-03-20T10:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | /*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
package org.eclipse.jdt.internal.ui.browsing;
import java.util.Collection;
import java.util.Comparator;
import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IResource; |
11,770 | Bug 11770 java browsing: multi-selection disabled in 2 of 4 views | multi selection is disabled in the package and type views but it's enabled in project and member views | verified fixed | 3839f03 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:41:17Z | 2002-03-20T10:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.KeyAdapter;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Menu;
import o... |
11,770 | Bug 11770 java browsing: multi-selection disabled in 2 of 4 views | multi selection is disabled in the package and type views but it's enabled in project and member views | verified fixed | 3839f03 | JDT | https://github.com/eclipse-jdt/eclipse.jdt.ui | eclipse-jdt/eclipse.jdt.ui | java | null | null | null | 2002-03-25T15:41:17Z | 2002-03-20T10:26:40Z | org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/JavaBrowsingPart.java | import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.IFileEditorInput;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.IPartListener;
import org.eclipse.ui.ISelectionListener;
import org.eclipse.ui.IViewSite;
import org.eclipse.ui.IWorkben... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.