本文整理匯總了Java中org.eclipse.ui.IStartup類的典型用法代碼示例。如果您正苦於以下問題:Java IStartup類的具體用法?Java IStartup怎麽用?Java IStartup使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
IStartup類屬於org.eclipse.ui包,在下文中一共展示了IStartup類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: testStartupExtension
import org.eclipse.ui.IStartup; //導入依賴的package包/類
@Test
public void testStartupExtension() {
Extension extension = getEarlyStartup();
IStartup startup = extension.createExecutableExtension( "class", IStartup.class );
assertThat( startup ).isInstanceOf( DynamicWorkingSetStartup.class );
assertThat( startup ).isNotInstanceOf( BundleActivator.class );
}
示例2: testStartupExtension
import org.eclipse.ui.IStartup; //導入依賴的package包/類
@Test
public void testStartupExtension() {
Extension extension = getEarlyStartup();
IStartup startup = extension.createExecutableExtension( "class", IStartup.class );
assertThat( startup ).isInstanceOf( LaunchExtrasStartup.class );
assertThat( startup ).isNotInstanceOf( BundleActivator.class );
}
示例3: extensionRegistration
import org.eclipse.ui.IStartup; //導入依賴的package包/類
@Test
public void extensionRegistration() {
IStartup actual = new RegistryAdapter()
.createExecutableExtension( "org.eclipse.ui.startup", IStartup.class )
.thatMatches( attribute( "class", FontOnStartupLoader.class.getName() ) )
.process();
assertThat( actual ).isInstanceOf( FontOnStartupLoader.class );
}