View | Details | Raw Unified | Return to bug 96129 | Differences between
and this patch

Collapse All | Expand All

(-)plugin.xml (-14 / +14 lines)
Lines 598-603 Link Here
598
            name="org.eclipse.ui.tests.contentType2Editor">
598
            name="org.eclipse.ui.tests.contentType2Editor">
599
         <contentTypeBinding contentTypeId="org.eclipse.ui.tests.content-type2"/>
599
         <contentTypeBinding contentTypeId="org.eclipse.ui.tests.content-type2"/>
600
      </editor>
600
      </editor>
601
      <editor
602
            class="org.eclipse.ui.tests.multieditor.TiledEditor"
603
            default="false"
604
            icon="icons/editor.gif"
605
            id="org.eclipse.ui.tests.multieditor.TiledEditor"
606
            name="%Editors.TiledEditor"/>
607
      <editor
608
            class="org.eclipse.ui.tests.multieditor.TestEditor"
609
            contributorClass="org.eclipse.ui.tests.multieditor.TestActionBarContributor"
610
            default="false"
611
            extensions="etest"
612
            icon="icons/binary_co.gif"
613
            id="org.eclipse.ui.tests.multieditor.TestEditor"
614
            name="%Editors.TestEditor"/>
601
   </extension>
615
   </extension>
602
   <extension
616
   <extension
603
         point="org.eclipse.ui.actionSets">
617
         point="org.eclipse.ui.actionSets">
Lines 2079-2098 Link Here
2079
            name="Editor w/Outline"
2093
            name="Editor w/Outline"
2080
            id="org.eclipse.ui.tests.perf_outline"
2094
            id="org.eclipse.ui.tests.perf_outline"
2081
            extensions="perf_outline"/>
2095
            extensions="perf_outline"/>
2082
      <editor
2083
            class="org.eclipse.ui.tests.multieditor.TiledEditor"
2084
            default="false"
2085
            icon="icons/editor.gif"
2086
            id="org.eclipse.ui.tests.multieditor.TiledEditor"
2087
            name="%Editors.TiledEditor"/>
2088
      <editor
2089
            class="org.eclipse.ui.tests.multieditor.TestEditor"
2090
            contributorClass="org.eclipse.ui.tests.multieditor.TestActionBarContributor"
2091
            default="false"
2092
            extensions="etest"
2093
            icon="icons/binary_co.gif"
2094
            id="org.eclipse.ui.tests.multieditor.TestEditor"
2095
            name="%Editors.TestEditor"/>    
2096
   </extension>
2096
   </extension>
2097
   <extension
2097
   <extension
2098
         point="org.eclipse.ui.perspectives">
2098
         point="org.eclipse.ui.perspectives">
(-)Eclipse UI Tests/org/eclipse/ui/tests/UiTestSuite.java (+2 lines)
Lines 31-36 Link Here
31
import org.eclipse.ui.tests.keys.KeysTestSuite;
31
import org.eclipse.ui.tests.keys.KeysTestSuite;
32
import org.eclipse.ui.tests.leaks.LeakTests;
32
import org.eclipse.ui.tests.leaks.LeakTests;
33
import org.eclipse.ui.tests.menus.MenusTestSuite;
33
import org.eclipse.ui.tests.menus.MenusTestSuite;
34
import org.eclipse.ui.tests.multieditor.MultiEditorTestSuite;
34
import org.eclipse.ui.tests.multipageeditor.MultiPageEditorTestSuite;
35
import org.eclipse.ui.tests.multipageeditor.MultiPageEditorTestSuite;
35
import org.eclipse.ui.tests.navigator.NavigatorTestSuite;
36
import org.eclipse.ui.tests.navigator.NavigatorTestSuite;
36
import org.eclipse.ui.tests.operations.OperationsTestSuite;
37
import org.eclipse.ui.tests.operations.OperationsTestSuite;
Lines 84-88 Link Here
84
        addTest(new TestSuite(LeakTests.class));
85
        addTest(new TestSuite(LeakTests.class));
85
        addTest(new ConcurrencyTestSuite());
86
        addTest(new ConcurrencyTestSuite());
86
        addTest(new OperationsTestSuite());
87
        addTest(new OperationsTestSuite());
88
        addTest(new MultiEditorTestSuite());
87
    }
89
    }
88
}
90
}
(-)Eclipse UI Tests/org/eclipse/ui/tests/multieditor/MultiEditorTest.java (-5 / +19 lines)
Lines 1-3 Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
1
package org.eclipse.ui.tests.multieditor;
11
package org.eclipse.ui.tests.multieditor;
2
12
3
import java.io.IOException;
13
import java.io.IOException;
Lines 74-92 Link Here
74
	private static String[] gEditorOpenTrace = { "setInitializationData",
84
	private static String[] gEditorOpenTrace = { "setInitializationData",
75
			"init", "createPartControl", "createInnerPartControl",
85
			"init", "createPartControl", "createInnerPartControl",
76
			"createInnerPartControl", "setFocus", "updateGradient",
86
			"createInnerPartControl", "setFocus", "updateGradient",
77
			"updateGradient", "updateGradient", };
87
			"updateGradient", };
78
88
79
	private static String[] gEditorFocusTrace = { "setInitializationData",
89
	private static String[] gEditorFocusTrace = { "setInitializationData",
80
			"init", "createPartControl", "createInnerPartControl",
90
			"init", "createPartControl", "createInnerPartControl",
81
			"createInnerPartControl", "setFocus", "updateGradient",
91
			"createInnerPartControl", "setFocus", "updateGradient",
82
			"updateGradient", "updateGradient", "setFocus", "updateGradient",
92
			"updateGradient",  "updateGradient",
83
			"updateGradient", "updateGradient", };
93
			"updateGradient",  };
84
94
85
	private static String[] gEditorCloseTrace = { "setInitializationData",
95
	private static String[] gEditorCloseTrace = { "setInitializationData",
86
			"init", "createPartControl", "createInnerPartControl",
96
			"init", "createPartControl", "createInnerPartControl",
87
			"createInnerPartControl", "setFocus", "updateGradient",
97
			"createInnerPartControl", "setFocus", "updateGradient",
88
			"updateGradient", "updateGradient", "setFocus", "updateGradient",
98
			"updateGradient",  "updateGradient",
89
			"updateGradient", "updateGradient", "widgetsDisposed", "dispose" };
99
			"updateGradient",  "widgetsDisposed", "dispose" };
90
100
91
	public static TestSuite suite() {
101
	public static TestSuite suite() {
92
		return new TestSuite(MultiEditorTest.class);
102
		return new TestSuite(MultiEditorTest.class);
Lines 159-164 Link Here
159
		// listHistory(((TiledEditor) multiEditor).callHistory);
169
		// listHistory(((TiledEditor) multiEditor).callHistory);
160
170
161
		// check the public API called for opening the TiledEditor
171
		// check the public API called for opening the TiledEditor
172
//		((TiledEditor) multiEditor).callHistory.printToConsole();
162
		assertTrue("The editor open trace was incorrect",
173
		assertTrue("The editor open trace was incorrect",
163
				((TiledEditor) multiEditor).callHistory
174
				((TiledEditor) multiEditor).callHistory
164
						.verifyOrder(gEditorOpenTrace));
175
						.verifyOrder(gEditorOpenTrace));
Lines 170-175 Link Here
170
181
171
		chewUpEvents();
182
		chewUpEvents();
172
183
184
//		((TiledEditor) multiEditor).callHistory.printToConsole();
173
		assertTrue("Editor setFocus trace was incorrect",
185
		assertTrue("Editor setFocus trace was incorrect",
174
				((TiledEditor) multiEditor).callHistory
186
				((TiledEditor) multiEditor).callHistory
175
						.verifyOrder(gEditorFocusTrace));
187
						.verifyOrder(gEditorFocusTrace));
Lines 178-183 Link Here
178
190
179
		chewUpEvents();
191
		chewUpEvents();
180
192
193
//		((TiledEditor) multiEditor).callHistory.printToConsole();
181
		assertTrue("Editor close trace was incorrect",
194
		assertTrue("Editor close trace was incorrect",
182
				((TiledEditor) multiEditor).callHistory
195
				((TiledEditor) multiEditor).callHistory
183
						.verifyOrder(gEditorCloseTrace));
196
						.verifyOrder(gEditorCloseTrace));
Lines 305-310 Link Here
305
	 * @return the IContributionItem for the test editor cool bar.
318
	 * @return the IContributionItem for the test editor cool bar.
306
	 */
319
	 */
307
	private IContributionItem findMyCoolBar(WorkbenchPage page) {
320
	private IContributionItem findMyCoolBar(WorkbenchPage page) {
321
		//listItems(page);
308
		IContributionItem contribution = ((IActionBars2) page.getActionBars())
322
		IContributionItem contribution = ((IActionBars2) page.getActionBars())
309
				.getCoolBarManager().find(TESTEDITOR_COOLBAR);
323
				.getCoolBarManager().find(TESTEDITOR_COOLBAR);
310
		// assertNotNull(contribution);
324
		// assertNotNull(contribution);
(-)Eclipse UI Tests/org/eclipse/ui/tests/multieditor/TestActionBarContributor.java (+10 lines)
Lines 1-3 Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
1
package org.eclipse.ui.tests.multieditor;
11
package org.eclipse.ui.tests.multieditor;
2
12
3
import org.eclipse.jface.action.ICoolBarManager;
13
import org.eclipse.jface.action.ICoolBarManager;
(-)Eclipse UI Tests/org/eclipse/ui/tests/multieditor/TestEditor.java (+10 lines)
Lines 1-3 Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
1
package org.eclipse.ui.tests.multieditor;
11
package org.eclipse.ui.tests.multieditor;
2
12
3
import org.eclipse.core.runtime.IProgressMonitor;
13
import org.eclipse.core.runtime.IProgressMonitor;
(-)Eclipse UI Tests/org/eclipse/ui/tests/multieditor/TiledEditor.java (-4 / +10 lines)
Lines 1-7 Link Here
1
/*
1
/*******************************************************************************
2
 * (c) Copyright 2001 MyCorporation.
2
 * Copyright (c) 2000, 2005 IBM Corporation and others.
3
 * All Rights Reserved.
3
 * All rights reserved. This program and the accompanying materials
4
 */
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
5
package org.eclipse.ui.tests.multieditor;
11
package org.eclipse.ui.tests.multieditor;
6
12
7
import org.eclipse.core.runtime.IConfigurationElement;
13
import org.eclipse.core.runtime.IConfigurationElement;
(-)Eclipse (+27 lines)
Added Link Here
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2005 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
6
 * http://www.eclipse.org/legal/epl-v10.html
7
 *
8
 * Contributors:
9
 *     IBM Corporation - initial API and implementation
10
 *******************************************************************************/
11
package org.eclipse.ui.tests.multieditor;
12
13
import junit.framework.Test;
14
import junit.framework.TestSuite;
15
16
public class MultiEditorTestSuite extends TestSuite {
17
18
	public static Test suite() {
19
		return new MultiEditorTestSuite();
20
	}
21
    /**
22
     * Construct the test suite.
23
     */
24
    public MultiEditorTestSuite() {
25
        addTestSuite(MultiEditorTest.class);
26
    }
27
}

Return to bug 96129