本文整理汇总了Java中org.eclipse.ui.internal.ErrorEditorPart类的典型用法代码示例。如果您正苦于以下问题:Java ErrorEditorPart类的具体用法?Java ErrorEditorPart怎么用?Java ErrorEditorPart使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ErrorEditorPart类属于org.eclipse.ui.internal包,在下文中一共展示了ErrorEditorPart类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testSetActivePart_1
import org.eclipse.ui.internal.ErrorEditorPart; //导入依赖的package包/类
/**
* Run the void setActivePart(IAction,IWorkbenchPart) method test.
*
* @throws Exception
*
* @generatedBy CodePro at 8/31/11 6:19 PM
*/
@Test
public void testSetActivePart_1()
throws Exception {
GenerateXML fixture = new GenerateXML();
fixture.selectionChanged(new NewWizardAction(), new TreeSelection());
IAction action = new NewWizardAction();
IWorkbenchPart targetPart = new ErrorEditorPart();
fixture.setActivePart(action, targetPart);
// add additional test code here
// An unexpected exception was thrown in user code while executing this test:
// java.lang.IllegalArgumentException
// at org.eclipse.ui.actions.NewWizardAction.<init>(NewWizardAction.java:95)
// at org.eclipse.ui.actions.NewWizardAction.<init>(NewWizardAction.java:116)
}