- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.eclipse.wst.common.frameworks.internal.WTPPlugin
类的一些代码示例,展示了WTPPlugin
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WTPPlugin
类的具体详情如下:
包路径:org.eclipse.wst.common.frameworks.internal.WTPPlugin
类名称:WTPPlugin
暂无
代码示例来源:origin: org.eclipse/org.eclipse.jst.jsf.core
/**
* This method is called upon plug-in activation
* @param context
* @throws Exception
*/
public void start(BundleContext context) throws Exception {
super.start(context);
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.webservice
/**
* Called once by the platform when this plugin is unloaded.
*
* @throws CoreException
* If this plugin fails to shutdown.
*/
public void stop(BundleContext context) throws Exception {
super.stop(context);
}
public String getString(String key, boolean translate) {
代码示例来源:origin: org.eclipse/org.eclipse.wst.common.frameworks
public Logger getLogger() {
return getMsgLogger();
}
public static boolean isPlatformCaseSensitive() {
代码示例来源:origin: org.eclipse/org.eclipse.wst.common.frameworks
public Logger getMsgLogger() {
if (logger == null) {
logger = Logger.getLogger(getPluginID());
setRenderer(logger);
}
return logger;
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.ui
public static String findMatchingProjectName(String projectName) {
if (projectName.trim().length() > 0) {
IWorkspaceRoot root = J2EEPlugin.getWorkspace().getRoot();
IProject[] projects = root.getProjects();
String lowerCaseName = projectName.toLowerCase();
// iterate through all projects a compare lowercase names
if (projectName == null || projectName.length() == 0) {
if (projects.length == 1)
return projects[0].getName();
return null;
}
for (int i = 0; i < projects.length; i++) {
if (projects[i].exists()) {
if (WTPPlugin.isPlatformCaseSensitive()) {
if (projects[i].getName().equals(projectName))
return projects[i].getName();
} else {
if (projects[i].getName().toLowerCase().equals(lowerCaseName))
return projects[i].getName();
}
}
}
}
return projectName;
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee
if (getBooleanProperty(CREATE_APPCLIENT)) {
actualProjectName = clientModel.getStringProperty(IFacetProjectCreationDataModelProperties.FACET_PROJECT_NAME);
projectName = WTPPlugin.isPlatformCaseSensitive() ? actualProjectName : actualProjectName.toLowerCase();
list.add(projectName);
errorNoSelection = false;
projectName = WTPPlugin.isPlatformCaseSensitive() ? actualProjectName : actualProjectName.toLowerCase();
if (!list.contains(projectName)) {
list.add(projectName);
projectName = WTPPlugin.isPlatformCaseSensitive() ? actualProjectName : actualProjectName.toLowerCase();
if (!list.contains(projectName)) {
list.add(projectName);
projectName = WTPPlugin.isPlatformCaseSensitive() ? actualProjectName : actualProjectName.toLowerCase();
if (!list.contains(projectName)) {
list.add(projectName);
代码示例来源:origin: org.eclipse/org.eclipse.jst.jee
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.jsf.core
/**
* This method is called when the plug-in is stopped
* @param context
* @throws Exception
*/
public void stop(BundleContext context) throws Exception {
super.stop(context);
plugin = null;
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.common.frameworks
public static IStatus validateName(String name) {
IStatus status = validateProjectName(name);
if (!status.isOK())
return status;
IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(name);
if (project.exists()) {
return WTPCommonPlugin.createErrorStatus(WTPCommonPlugin.getResourceString(WTPCommonMessages.PROJECT_EXISTS_SAMENAME_ERROR, new Object[]{name}));
}
if (!WTPPlugin.isPlatformCaseSensitive()) {
// now look for a matching case variant in the tree
IResource variant = ((Resource) project).findExistingResourceVariant(project.getFullPath());
if (variant != null) {
return WTPCommonPlugin.createErrorStatus(WTPResourceHandler.getString("42")); //$NON-NLS-1$
}
}
return OK_STATUS;
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.webservice
/**
* Called once by the platform when this plugin is first loaded.
*
* @throws CoreException
* If this plugin fails to start.
*/
public void start(BundleContext context) throws Exception {
super.start(context);
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.jee
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee
return WTPCommonPlugin.createWarningStatus(EARCreationResourceHandler.bind(EARCreationResourceHandler.EARImportDataModel_UI_1, new Object[] { tempProjectName,
tempArchive.getPath() }));
} else if (!WTPPlugin.isPlatformCaseSensitive()) {
if (tempProjectName.toLowerCase().equals(earProjectName.toLowerCase())) {
return WTPCommonPlugin.createWarningStatus(EARCreationResourceHandler.bind(EARCreationResourceHandler.EARImportDataModel_UI_1a, new Object[] { earProjectName,
return WTPCommonPlugin.createErrorStatus(EARCreationResourceHandler.bind(EARCreationResourceHandler.EARImportDataModel_UI_1, new Object[] { tempProjectName,
tempArchive.getPath() }));
} else if (!WTPPlugin.isPlatformCaseSensitive()) {
if (tempProjectName.toLowerCase().equals(earProjectName.toLowerCase())) {
return WTPCommonPlugin.createErrorStatus(EARCreationResourceHandler.bind(EARCreationResourceHandler.EARImportDataModel_UI_1a, new Object[] { earProjectName,
return WTPCommonPlugin.createErrorStatus(EARCreationResourceHandler.bind(EARCreationResourceHandler.EARImportDataModel_UI_2, new Object[] { tempProjectName,
tempArchive.getPath(), ((Archive) projects.get(tempProjectName)).getURI() }));
} else if (!WTPPlugin.isPlatformCaseSensitive()) {
String lowerCaseProjectName = tempProjectName.toLowerCase();
String currentKey = null;
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.ejb
public void start(BundleContext context) throws Exception {
super.start(context);
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.validation
/**
* @see org.eclipse.core.runtime.Plugin#stop(BundleContext context)
*/
public void stop(BundleContext context) throws Exception {
super.stop(context);
ResourcesPlugin.getWorkspace().removeResourceChangeListener( EventManager.getManager() );
EventManager.getManager().shutdown();
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.common.frameworks
private IStatus validateName() {
String name = getStringProperty(PROJECT_NAME);
IStatus status = validateProjectName(name);
if (!status.isOK())
return status;
if (getProject().exists())
return WTPCommonPlugin.createErrorStatus(WTPCommonPlugin.getResourceString(WTPCommonMessages.PROJECT_EXISTS_ERROR, new Object[]{name}));
if (!WTPPlugin.isPlatformCaseSensitive()) {
// now look for a matching case variant in the tree
IResource variant = ((Resource) getProject()).findExistingResourceVariant(getProject().getFullPath());
if (variant != null) {
// TODO Fix this string
return WTPCommonPlugin.createErrorStatus("Resource already exists with a different case."); //$NON-NLS-1$
}
}
return OK_STATUS;
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.validation
/**
* @see Plugin#startup()
*/
public void start(BundleContext context) throws Exception {
super.start(context);
ResourcesPlugin.getWorkspace().addResourceChangeListener(EventManager.getManager(), IResourceChangeEvent.PRE_CLOSE | IResourceChangeEvent.PRE_DELETE | IResourceChangeEvent.POST_BUILD | IResourceChangeEvent.PRE_BUILD | IResourceChangeEvent.POST_CHANGE);
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee
public void stop(BundleContext context) throws Exception {
super.stop(context);
ResourcesPlugin.getWorkspace().removeResourceChangeListener(J2EEComponentClasspathUpdater.getInstance());
try {
org.eclipse.core.runtime.Platform.getJobManager().join( J2EEElementChangedListener.PROJECT_COMPONENT_UPDATE_JOB_FAMILY,
new NullProgressMonitor() );
} catch (OperationCanceledException e) {
Logger.getLogger().logError(e.getMessage());
} catch (InterruptedException e) {
Logger.getLogger().logError(e.getMessage());
}
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee
public void start(BundleContext context) throws Exception {
super.start(context);
J2EEXmlDtDEntityResolver.INSTANCE = new CatalogJ2EEXmlDtDEntityResolver();
DOMUtilities.setDefaultEntityResolver(J2EEXmlDtDEntityResolver.INSTANCE);
//Have to do the next line immediately to fix timing problems with factory registration
ArchiveInit.init(false);
//ModuleMaps are the maps from modules in an ear project to the j2ee projects for the
// modules
org.eclipse.jst.j2ee.internal.earcreation.modulemap.ModulemapInit.init(false);
ensureFactoryRegistration();
ValidatorManager.setResourceUtilClass(ResourceUtil.class);
IAdapterManager manager = Platform.getAdapterManager();
manager.registerAdapters(new EarEditAdapterFactory(), ArtifactEditModel.class);
manager.registerAdapters(new AppClientEditAdapterFactory(), ArtifactEditModel.class);
manager.registerAdapters(new VirtualArchiveComponentAdapterFactory(), VirtualArchiveComponent.class );
final ProjectRefactoringListener listener = new ProjectRefactoringListener();//ProjectDependencyCache.getCache());
// register the project rename/delete refactoring listener
ResourcesPlugin.getWorkspace().addResourceChangeListener(listener,
IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_DELETE);
// register the IElementChangedLister that updates the .component file in
// response to .classpath changes
JavaCore.addElementChangedListener(new J2EEElementChangedListener(), ElementChangedEvent.POST_CHANGE);
ResourcesPlugin.getWorkspace().addResourceChangeListener(J2EEComponentClasspathUpdater.getInstance(), IResourceChangeEvent.POST_CHANGE | IResourceChangeEvent.PRE_CLOSE | IResourceChangeEvent.PRE_DELETE);
}
这个问题在这里已经有了答案: How to make a property protected AND internal in C#? (8 个答案) 关闭 9 年前。 我需要声明一个既受又 内部保
我对在 Kotlin 1.3 中使用 Strings.isNullOrEmpty 导入 jdk.internal.joptsimple.internal.Strings.isNullOrEmpty 的
我有一个项目,实习生单元测试应该位于与被测源代码不同的目录树中。有点像这样: projectRoot projectRoot/src projectRoot/tests projectRoot/tes
如何在功能测试中访问浏览器的主要 JavaScript 范围?例如,我想获取对 Dojo 小部件的引用并检查它的属性。例如,在浏览器 JavaScript 控制台中,我可以运行: dijit.
public class TestClass { protected internal int FieldA; internal protected int FieldB; }
我想创建一个内部自动属性: internal bool IP { get; protected internal set; } 我认为可以使 setter protected 或 protected
java.lang.NoSuchMethodError: okhttp3.internal.Internal.initializeInstanceForTests() When creating a
我正在尝试使用 intern 来测试在 node.js 下运行的 dojo 应用程序 我的 intern.js 配置文件是这样的: define({ loader: {
我在 Raspbian wheezy 上的 nginx 1.2.1-2.2 有点问题。我认为它是在我更改站点可用/默认文件中的索引后开始的。以下是相关文件: nginx.conf user www-d
我在尝试加载 Visual studio 2012 时遇到了此错误,遇到了异常。这可能是由扩展引起的,并且在 C:\Users\~\AppData 中给出了附加信息的位置\Roaming\Micros
我正在将一个项目迁移到 Java9,在我切换到新的 Java 版本后,测试开始失败,看起来 PowerMock 正在尝试访问一些它无法访问的类。 Tests run: 1, Failures: 0,
该触发器用于检测进度中的顺序是否已更新,并有助于更新进度的概览状态和完成时间。 但是当发生内部错误时,它并不总是有效,如下所示: Error: 13 INTERNAL: An internal err
当我尝试将包含一些 JavaScript 的项目导入工作区时(使用 Eclipse 的 Neon.M6 版本),出现此错误: eclipse.buildId=4.6.0.I20160317-0200
我在尝试访问 FullContact API 服务器时收到此错误。我正在使用 okhttp 2.7.5 和 okhttp-urlconnection 2.7.5 以及改造 1.9.0。 Caused
当我试图读取一个以前版本的 pandas 保存的 pickle 文件时,它产生了一个 ImportError。 ImportError: No module named 'pandas.core.in
我正在将一个项目迁移到 Java9,在我切换到新的 Java 版本后测试开始失败,似乎 PowerMock 正在尝试访问它无法访问的一些类。 Tests run: 1, Failures: 0, Er
我正在尝试设置 Lumen - 建立在 Laravel 组件之上的“微框架”。服务器端有 nginx + php-fpm。 这是我的 nginx 配置: server { server_nam
在我们的项目中,我们决定在我们的项目中使用最新的 fmt 版本 (6.2.0) 并主要使用 printf 功能,因为我们在广泛使用 printf 的地方进行日志记录。 我使用 fmt 包中包含的 CM
我正在使用 Mockito jar 为 Groovy 编写 Junit 测试用例,但它给了我以下异常: java.lang.NoSuchMethodError: org.mockito.interna
我们的应用程序使用 Google 集合中的 MapMaker 类,并且我们遇到了以下异常,但仅限于使用 webstart 的 OS X 10.4。从应用程序包启动时以及在 OS X 10.5 和 Wi
我是一名优秀的程序员,十分优秀!