本文整理匯總了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)
}