本文整理汇总了Java中org.eclipse.wst.server.core.internal.ServerPlugin类的典型用法代码示例。如果您正苦于以下问题:Java ServerPlugin类的具体用法?Java ServerPlugin怎么用?Java ServerPlugin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ServerPlugin类属于org.eclipse.wst.server.core.internal包,在下文中一共展示了ServerPlugin类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: logModules
import org.eclipse.wst.server.core.internal.ServerPlugin; //导入依赖的package包/类
private static void logModules(IProject project) {
System.out.println(" #### Testing getModules(" + project.getName() + ") ####");
ModuleFactory[] factories = ServerPlugin.getModuleFactories();
assertNotNull(factories);
assertNotEquals(0, factories.length);
for (ModuleFactory factory : factories) {
boolean factoryEnabled = factory.isEnabled(project, null);
System.out.println(" * " + factory + (!factoryEnabled? " (not enabled, skipping)" : ""));
System.out.print(" - All factory modules:");
printModules(factory.getDelegate(null).getModules());
if (factoryEnabled) {
System.out.print(" - Project modules:");
printModules(factory.getModules(project, null));
}
}
}
开发者ID:GoogleCloudPlatform,项目名称:google-cloud-eclipse,代码行数:21,代码来源:LocalAppEnginePublishOperationTest.java
示例2: setDefaults
import org.eclipse.wst.server.core.internal.ServerPlugin; //导入依赖的package包/类
@Override
public void setDefaults(IProgressMonitor monitor) {
super.setDefaults(monitor);
String typeName = CloudFoundryBrandingExtensionPoint.getServerDisplayName(serverTypeId);
if (typeName == null || typeName.trim().length() == 0) {
typeName = getServer().getServerType().getName();
}
String name = typeName;
int i = 2;
while (ServerPlugin.isNameInUse(getServerWorkingCopy().getOriginal(), name)) {
name = NLS.bind("{0} ({1})", new String[] { typeName, String.valueOf(i) }); //$NON-NLS-1$
i++;
}
getServerWorkingCopy().setName(name);
getServerWorkingCopy().setHost("Cloud"); //$NON-NLS-1$
setAttribute("auto-publish-setting", 1); //$NON-NLS-1$
}
开发者ID:eclipse,项目名称:cft,代码行数:20,代码来源:CloudFoundryServer.java
示例3: setDefaults
import org.eclipse.wst.server.core.internal.ServerPlugin; //导入依赖的package包/类
@Override
public void setDefaults(IProgressMonitor monitor) {
super.setDefaults(monitor);
String typeName = DockerFoundryBrandingExtensionPoint.getServerDisplayName(serverTypeId);
if (typeName == null || typeName.trim().length() == 0) {
typeName = getServer().getServerType().getName();
}
String name = typeName;
int i = 2;
while (ServerPlugin.isNameInUse(getServerWorkingCopy().getOriginal(), name)) {
name = NLS.bind("{0} ({1})", new String[] { typeName, String.valueOf(i) }); //$NON-NLS-1$
i++;
}
getServerWorkingCopy().setName(name);
getServerWorkingCopy().setHost("Cloud"); //$NON-NLS-1$
setAttribute("auto-publish-setting", 1); //$NON-NLS-1$
}
开发者ID:osswangxining,项目名称:dockerfoundry,代码行数:19,代码来源:DockerFoundryServer.java
示例4: setRuntime
import org.eclipse.wst.server.core.internal.ServerPlugin; //导入依赖的package包/类
protected void setRuntime(IRuntimeWorkingCopy newRuntime)
{
if (newRuntime == null)
{
_runtimeWC = null;
_jettyRuntimeWC = null;
}
else
{
_runtimeWC = newRuntime;
_jettyRuntimeWC = (IJettyRuntimeWorkingCopy)newRuntime.loadAdapter(IJettyRuntimeWorkingCopy.class,null);
}
if (_runtimeWC == null)
{
_installableRuntime = null;
_installButton.setEnabled(false);
_installLabel.setText("");
}
else
{
_installableRuntime = ServerPlugin.findInstallableRuntime(_runtimeWC.getRuntimeType().getId());
if (_installableRuntime != null)
{
_installButton.setEnabled(true);
_installLabel.setText(_installableRuntime.getName());
}
}
init();
validate();
}
开发者ID:bengalaviz,项目名称:JettyWTPPlugin,代码行数:33,代码来源:JettyRuntimeComposite.java
注:本文中的org.eclipse.wst.server.core.internal.ServerPlugin类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论