JBoss Tools SVN: r34331 - trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/action.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-08-25 19:11:07 -0400 (Thu, 25 Aug 2011)
New Revision: 34331
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/action/AddJSFNatureActionDelegate.java
Log:
JBIDE-9198
https://issues.jboss.org/browse/JBIDE-9198
Added KB model/builder when adding JSF capabilities.
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/action/AddJSFNatureActionDelegate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/action/AddJSFNatureActionDelegate.java 2011-08-25 22:49:27 UTC (rev 34330)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.ui/src/org/jboss/tools/jsf/ui/action/AddJSFNatureActionDelegate.java 2011-08-25 23:11:07 UTC (rev 34331)
@@ -36,6 +36,9 @@
import org.jboss.tools.jsf.project.JSFNature;
import org.jboss.tools.jsf.ui.JsfUiPlugin;
import org.jboss.tools.jsf.ui.wizard.project.ImportProjectWizard;
+import org.jboss.tools.jst.web.WebModelPlugin;
+import org.jboss.tools.jst.web.kb.internal.KbBuilder;
+import org.jboss.tools.jst.web.kb.internal.KbProject;
public class AddJSFNatureActionDelegate extends AddNatureActionDelegate {
boolean showDialog = true;
@@ -82,6 +85,7 @@
}
if(web != null && jsf != null && wc.validate().isOK()) {
+ WebModelPlugin.addNatureToProjectWithValidationSupport(project, KbBuilder.BUILDER_ID, KbProject.NATURE_ID);
EclipseResourceUtil.addNatureToProject(project, JSFNature.NATURE_ID);
SharedWorkingCopyManager.releaseWorkingCopy(fp);
return;
14 years, 4 months
JBoss Tools SVN: r34330 - in branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime: META-INF and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-08-25 18:49:27 -0400 (Thu, 25 Aug 2011)
New Revision: 34330
Added:
branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/EsbHandler.java
Modified:
branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/META-INF/MANIFEST.MF
branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/plugin.xml
branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/JBossASHandler.java
Log:
JBIDE-8919 Recognize and define ESB Runtime from SOA-P product
Modified: branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/META-INF/MANIFEST.MF 2011-08-25 22:49:21 UTC (rev 34329)
+++ branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/META-INF/MANIFEST.MF 2011-08-25 22:49:27 UTC (rev 34330)
@@ -20,7 +20,8 @@
org.jboss.tools.common,
org.jboss.tools.runtime.core,
org.jboss.ide.eclipse.as.core,
- org.jboss.tools.jbpm.common
+ org.jboss.tools.jbpm.common,
+ org.jboss.tools.esb.project.core
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Bundle-Localization: plugin
Modified: branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/plugin.xml
===================================================================
--- branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/plugin.xml 2011-08-25 22:49:21 UTC (rev 34329)
+++ branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/plugin.xml 2011-08-25 22:49:27 UTC (rev 34330)
@@ -94,6 +94,16 @@
<extension
point="org.jboss.tools.runtime.core.runtimeDetectors">
<runtimeDetector
+ id="org.jboss.tools.runtime.handlers.EsbHandler"
+ name="Esb"
+ class="org.jboss.tools.runtime.handlers.EsbHandler"
+ preferenceId="org.jboss.tools.esb.project.runtime.preference"
+ priority="500"/>
+ </extension>
+
+ <extension
+ point="org.jboss.tools.runtime.core.runtimeDetectors">
+ <runtimeDetector
id="org.jboss.tools.runtime.handlers.SeamHandler"
name="Seam"
class="org.jboss.tools.runtime.handlers.SeamHandler"
Added: branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/EsbHandler.java
===================================================================
--- branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/EsbHandler.java (rev 0)
+++ branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/EsbHandler.java 2011-08-25 22:49:27 UTC (rev 34330)
@@ -0,0 +1,97 @@
+/*******************************************************************************
+ * Copyright (c) 2010 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.runtime.handlers;
+
+import java.io.File;
+import java.util.List;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.jboss.tools.esb.core.runtime.JBossESBRuntime;
+import org.jboss.tools.esb.core.runtime.JBossRuntimeManager;
+import org.jboss.tools.runtime.IJBossRuntimePluginConstants;
+import org.jboss.tools.runtime.core.model.AbstractRuntimeDetector;
+import org.jboss.tools.runtime.core.model.ServerDefinition;
+
+public class EsbHandler extends AbstractRuntimeDetector implements IJBossRuntimePluginConstants {
+
+ private static final String DEFAULT_CONFIGURATION = "default";
+
+ public void initializeRuntimes(List<ServerDefinition> serverDefinitions) {
+ for (ServerDefinition serverDefinition : serverDefinitions) {
+ String type = serverDefinition.getType();
+ if (serverDefinition.isEnabled() && !esbExists(serverDefinition)) {
+ if (SOA_P.equals(type) || SOA_P_STD.equals(type)) {
+ File esbRoot;
+ if (SOA_P.equals(type)) {
+ esbRoot = serverDefinition.getLocation();
+ } else {
+ esbRoot = new File(serverDefinition.getLocation(), "jboss-esb"); //$NON-NLS-1$
+ }
+ if (esbRoot.isDirectory()) {
+ JBossESBRuntime runtime = new JBossESBRuntime();
+ runtime.setName("ESB - " + serverDefinition.getName()); //$NON-NLS-1$
+ runtime.setHomeDir(esbRoot.getAbsolutePath());
+ runtime.setConfiguration(DEFAULT_CONFIGURATION);
+ String version = JBossRuntimeManager.getInstance().getVersion(esbRoot.getAbsolutePath(), DEFAULT_CONFIGURATION);
+ runtime.setVersion(version);
+ JBossRuntimeManager.getInstance().addRuntime(runtime);
+ }
+ }
+ }
+ }
+
+ }
+
+ /**
+ * @param serverDefinition
+ * @return
+ */
+ private static boolean esbExists(ServerDefinition serverDefinition) {
+ JBossESBRuntime[] runtimes = JBossRuntimeManager.getInstance().getRuntimes();
+ for (JBossESBRuntime runtime:runtimes) {
+ String location = runtime.getHomeDir();
+ if (location != null && location.equals(serverDefinition.getLocation().getAbsolutePath())) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public ServerDefinition getServerDefinition(File root,
+ IProgressMonitor monitor) {
+ if (monitor.isCanceled() || root == null) {
+ return null;
+ }
+ // standalone ESB runtime
+ return null;
+ }
+
+ public static String included(ServerDefinition serverDefinition) {
+ StringBuilder builder = new StringBuilder();
+ File esbRoot = serverDefinition.getLocation(); //$NON-NLS-1$
+ if (esbRoot.isDirectory()) {
+ builder.append("ESB");
+ if (serverDefinition.getVersion() != null && serverDefinition.getVersion().length() > 0) {
+ builder.append(" ");
+ builder.append(serverDefinition.getVersion());
+ }
+ }
+ return builder.toString();
+ }
+
+ @Override
+ public boolean exists(ServerDefinition serverDefinition) {
+ if (serverDefinition == null || serverDefinition.getLocation() == null) {
+ return false;
+ }
+ return esbExists(serverDefinition);
+ }
+}
Modified: branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/JBossASHandler.java
===================================================================
--- branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/JBossASHandler.java 2011-08-25 22:49:21 UTC (rev 34329)
+++ branches/jbosstools-3.2.x/runtime/plugins/org.jboss.tools.runtime/src/org/jboss/tools/runtime/handlers/JBossASHandler.java 2011-08-25 22:49:27 UTC (rev 34330)
@@ -394,6 +394,8 @@
append(builder, includeDrools);
String includeJbpm = JbpmHandler.included(serverDefinition);
append(builder, includeJbpm);
+ String includeEsb = EsbHandler.included(serverDefinition);
+ append(builder, includeEsb);
}
return builder.toString();
14 years, 4 months
JBoss Tools SVN: r34329 - in trunk/runtime: plugins/org.jboss.tools.runtime.as.detector/src/org/jboss/tools/runtime/handlers and 13 other directories.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-08-25 18:49:21 -0400 (Thu, 25 Aug 2011)
New Revision: 34329
Added:
trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/.project
trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/build.properties
trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/feature.properties
trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/feature.xml
trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/license.html
trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/pom.xml
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/.classpath
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/.project
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/.settings/
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/.settings/org.eclipse.jdt.core.prefs
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/META-INF/
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/META-INF/MANIFEST.MF
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/about.html
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/about.ini
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/about.mappings
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/about.properties
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/build.properties
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/jboss_about.png
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/plugin.properties
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/plugin.xml
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/pom.xml
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/src/
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/src/org/
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/src/org/jboss/
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/src/org/jboss/tools/
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/src/org/jboss/tools/runtime/
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/src/org/jboss/tools/runtime/esb/
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/src/org/jboss/tools/runtime/esb/detector/
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/src/org/jboss/tools/runtime/esb/detector/RuntimeEsbActivator.java
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/src/org/jboss/tools/runtime/handlers/
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/src/org/jboss/tools/runtime/handlers/EsbHandler.java
Modified:
trunk/runtime/plugins/org.jboss.tools.runtime.as.detector/src/org/jboss/tools/runtime/handlers/JBossASHandler.java
trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/RuntimeCoreActivator.java
trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/model/AbstractRuntimeDetector.java
trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/model/IRuntimeDetector.java
Log:
JBIDE-8919 Recognize and define ESB Runtime from SOA-P product
Added: trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/.project
===================================================================
--- trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/.project (rev 0)
+++ trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/.project 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.runtime.esb.detector.feature</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.pde.FeatureBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.FeatureNature</nature>
+ </natures>
+</projectDescription>
Added: trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/build.properties
===================================================================
--- trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/build.properties (rev 0)
+++ trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/build.properties 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,3 @@
+bin.includes = feature.xml,\
+ license.html,\
+ feature.properties
Added: trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/feature.properties
===================================================================
--- trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/feature.properties (rev 0)
+++ trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/feature.properties 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,55 @@
+###############################################################################
+# Copyright (c) 2009-2011 Red Hat, Inc. and others.
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Eclipse Public License v1.0
+# which accompanies this distribution, and is available at
+# http://www.eclipse.org/legal/epl-v10.html
+#
+# Contributors:
+# JBoss by Red Hat - Initial implementation.
+##############################################################################
+# feature.properties
+# contains externalized strings for feature.xml
+# "%foo" in feature.xml corresponds to the key "foo" in this file
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file should be translated.
+
+# "featureName" property - name of the feature
+featureName=JBoss Runtime ESB Detector
+
+# "providerName" property - name of the company that provides the feature
+providerName=JBoss by Red Hat
+
+# "updateSiteName" property - label for the update/discovery sites
+updateSiteName=JBoss Developer Studio Updates
+JBossToolsUpdatesSiteName=JBoss Tools Updates
+
+# "description" property - description of the feature
+description=JBoss Runtime ESB Detector
+
+# "copyright" property - text of the "Feature Update Copyright"
+copyright=Copyright (c) 2008-2011 Red Hat, Inc. and others.\nAll rights reserved. This program and the accompanying materials\n
+are made available under the terms of the Eclipse Public License v1.0\n\
+which accompanies this distribution, and is available at\n\
+http\://www.eclipse.org/legal/epl-v10.html\n\
+\n\
+Contributors\:\n\
+JBoss by Red Hat - Initial implementation.\n
+ ############### end of copyright property ####################################
+
+# "licenseURL" property - URL of the "Feature License"
+# do not translate value - just change to point to a locale-specific HTML page
+licenseURL=license.html
+
+# START NON-TRANSLATABLE
+# "license" property - text of the "Feature Update License"
+# should be plain text version of license agreement pointed to be "licenseURL"
+license=Red Hat, Inc. licenses these features and plugins to you under \
+certain open source licenses (or aggregations of such licenses), which \
+in a particular case may include the Eclipse Public License, the GNU \
+Lesser General Public License, and/or certain other open source \
+licenses. For precise licensing details, consult the corresponding \
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive, \
+Raleigh NC 27606 USA.
+# END NON-TRANSLATABLE
+########### end of license property ##########################################
Added: trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/feature.xml
===================================================================
--- trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/feature.xml (rev 0)
+++ trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/feature.xml 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.jboss.tools.runtime.esb.detector.feature"
+ label="%featureName"
+ version="1.0.0.qualifier"
+ provider-name="%providerName"
+ plugin="org.jboss.tools.runtime.esb.detector">
+
+ <description>
+ %description
+ </description>
+
+ <copyright>
+ %copyright
+ </copyright>
+
+ <license url="%licenseURL">
+ %license
+ </license>
+
+ <plugin
+ id="org.jboss.tools.runtime.esb.detector"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
Added: trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/license.html
===================================================================
--- trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/license.html (rev 0)
+++ trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/license.html 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,14 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
+<html>
+
+<body>
+<p>Red Hat, Inc. licenses these features and plugins to you under
+certain open source licenses (or aggregations of such licenses), which
+in a particular case may include the Eclipse Public License, the GNU
+Lesser General Public License, and/or certain other open source
+licenses. For precise licensing details, consult the corresponding
+source code, or contact Red Hat Legal Affairs, 1801 Varsity Drive,
+Raleigh NC 27606 USA.
+</p>
+</body>
+</html>
\ No newline at end of file
Added: trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/pom.xml
===================================================================
--- trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/pom.xml (rev 0)
+++ trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/pom.xml 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.tools.runtime</groupId>
+ <artifactId>features</artifactId>
+ <version>1.3.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.runtime.features</groupId>
+ <artifactId>org.jboss.tools.runtime.esb.detector.feature</artifactId>
+
+ <packaging>eclipse-feature</packaging>
+</project>
\ No newline at end of file
Modified: trunk/runtime/plugins/org.jboss.tools.runtime.as.detector/src/org/jboss/tools/runtime/handlers/JBossASHandler.java
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.as.detector/src/org/jboss/tools/runtime/handlers/JBossASHandler.java 2011-08-25 22:46:27 UTC (rev 34328)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.as.detector/src/org/jboss/tools/runtime/handlers/JBossASHandler.java 2011-08-25 22:49:21 UTC (rev 34329)
@@ -67,6 +67,7 @@
private static final int JBOSS_AS7_INDEX = 8;
private static String[] hasIncludedRuntimes = new String[] {SOA_P, EAP, EPP, EWP, SOA_P_STD};
private static final String DROOLS = "DROOLS"; // NON-NLS-1$
+ private static final String ESB = "ESB"; //$NON-NLS-1$
public void initializeRuntimes(List<ServerDefinition> serverDefinitions) {
// FIXME
@@ -434,27 +435,69 @@
serverDefinitions.addAll(definitions);
}
if (SOA_P.equals(type) || SOA_P_STD.equals(type)) {
- Bundle drools = Platform.getBundle("org.drools.eclipse");
- Bundle droolsDetector = Platform
- .getBundle("org.jboss.tools.runtime.drools.detector");
- if (drools != null && droolsDetector != null) {
- File droolsRoot = serverDefinition.getLocation();
- if (droolsRoot.isDirectory()) {
- String name = "Drools - " + serverDefinition.getName();
- ServerDefinition droolsDefinition = new ServerDefinition(
- name, serverDefinition.getVersion(), DROOLS,
- droolsRoot);
- droolsDefinition.setParent(serverDefinition);
- serverDefinition.getIncludedServerDefinitions().add(
- droolsDefinition);
- }
- }
+ addDrools(serverDefinition);
+ addEsb(serverDefinition);
}
} finally {
setEnabled(saved);
}
}
+ private void addDrools(ServerDefinition serverDefinition) {
+ if (serverDefinition == null) {
+ return;
+ }
+ Bundle drools = Platform.getBundle("org.drools.eclipse");
+ Bundle droolsDetector = Platform
+ .getBundle("org.jboss.tools.runtime.drools.detector");
+ if (drools != null && droolsDetector != null) {
+ File droolsRoot = serverDefinition.getLocation();
+ if (droolsRoot.isDirectory()) {
+ String name = "Drools - " + serverDefinition.getName();
+ ServerDefinition droolsDefinition = new ServerDefinition(
+ name, serverDefinition.getVersion(), DROOLS,
+ droolsRoot);
+ droolsDefinition.setParent(serverDefinition);
+ serverDefinition.getIncludedServerDefinitions().add(
+ droolsDefinition);
+ }
+ }
+ }
+
+ private void addEsb(ServerDefinition serverDefinition) {
+ if (serverDefinition == null) {
+ return;
+ }
+ Bundle esb = Platform.getBundle("org.jboss.tools.esb.project.core");
+ Bundle esbDetectorPlugin = Platform
+ .getBundle("org.jboss.tools.runtime.esb.detector");
+ if (esb != null && esbDetectorPlugin != null) {
+ String type = serverDefinition.getType();
+ File esbRoot;
+ if (SOA_P.equals(type)) {
+ esbRoot = serverDefinition.getLocation();
+ } else {
+ esbRoot = new File(serverDefinition.getLocation(), "jboss-esb"); //$NON-NLS-1$
+ }
+ if (esbRoot.isDirectory()) {
+ String name = "ESB - " + serverDefinition.getName();
+ String version="";
+ ServerDefinition esbDefinition = new ServerDefinition(
+ name, version, ESB,
+ esbRoot);
+ IRuntimeDetector esbDetector = RuntimeCoreActivator.getEsbDetector();
+ if (esbDetector != null) {
+ version = esbDetector.getVersion(esbDefinition);
+ esbDefinition.setVersion(version);
+ }
+
+ esbDefinition.setParent(serverDefinition);
+ serverDefinition.getIncludedServerDefinitions().add(
+ esbDefinition);
+ }
+ }
+ }
+
private boolean hasIncludedRuntimes(String type) {
for (String t:hasIncludedRuntimes) {
if (t.equals(type)) {
Modified: trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/RuntimeCoreActivator.java
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/RuntimeCoreActivator.java 2011-08-25 22:46:27 UTC (rev 34328)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/RuntimeCoreActivator.java 2011-08-25 22:49:21 UTC (rev 34329)
@@ -41,6 +41,8 @@
// The plug-in ID
public static final String PLUGIN_ID = "org.jboss.tools.runtime.core"; //$NON-NLS-1$
+
+ private static final String ESB_DETECTOR_ID = "org.jboss.tools.runtime.handlers.EsbHandler"; //$NON-NLS-1$
private static final String RUNTIME_DETECTOR_EXTENSION_ID = "org.jboss.tools.runtime.core.runtimeDetectors";
@@ -60,6 +62,8 @@
private static Set<IRuntimeDetector> runtimeDetectors;
+ private static IRuntimeDetector esbDetector;
+
// The shared instance
private static RuntimeCoreActivator plugin;
@@ -206,9 +210,20 @@
private static IEclipsePreferences getPreferences() {
if (prefs == null) {
- prefs = new ConfigurationScope().getNode(PLUGIN_ID);
+ prefs = ConfigurationScope.INSTANCE.getNode(PLUGIN_ID);
}
return prefs;
}
+
+ public static IRuntimeDetector getEsbDetector() {
+ if (esbDetector == null) {
+ for (IRuntimeDetector detector:getDeclaredRuntimeDetectors()) {
+ if (ESB_DETECTOR_ID.equals(detector.getId())) {
+ esbDetector = detector;
+ }
+ }
+ }
+ return esbDetector;
+ }
}
Modified: trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/model/AbstractRuntimeDetector.java
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/model/AbstractRuntimeDetector.java 2011-08-25 22:46:27 UTC (rev 34328)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/model/AbstractRuntimeDetector.java 2011-08-25 22:49:21 UTC (rev 34329)
@@ -137,4 +137,12 @@
public void setValid(boolean valid) {
this.valid = valid;
}
+
+ @Override
+ public String getVersion(ServerDefinition serverDefinition) {
+ if (serverDefinition != null) {
+ return serverDefinition.getVersion();
+ }
+ return null;
+ }
}
Modified: trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/model/IRuntimeDetector.java
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/model/IRuntimeDetector.java 2011-08-25 22:46:27 UTC (rev 34328)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.core/src/org/jboss/tools/runtime/core/model/IRuntimeDetector.java 2011-08-25 22:49:21 UTC (rev 34329)
@@ -51,4 +51,6 @@
boolean isValid();
void setValid(boolean valid);
+
+ String getVersion(ServerDefinition serverDefinition);
}
Added: trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/.classpath
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/.classpath (rev 0)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/.classpath 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/.project
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/.project (rev 0)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/.project 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.runtime.esb.detector</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/.settings/org.eclipse.jdt.core.prefs 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,8 @@
+#Thu Aug 25 03:56:51 CEST 2011
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
Added: trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/META-INF/MANIFEST.MF
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/META-INF/MANIFEST.MF (rev 0)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/META-INF/MANIFEST.MF 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,14 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %BundleName
+Bundle-SymbolicName: org.jboss.tools.runtime.esb.detector;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-Activator: org.jboss.tools.runtime.esb.detector.RuntimeEsbActivator
+Require-Bundle: org.eclipse.ui;bundle-version="3.7.0",
+ org.eclipse.core.runtime;bundle-version="3.7.0",
+ org.jboss.tools.esb.project.core,
+ org.jboss.tools.runtime.core
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Bundle-Localization: plugin
+Bundle-Vendor: %BundleVendor
Added: trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/about.html
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/about.html (rev 0)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/about.html 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
+<title>JBoss Runtime Detection</title>
+<style type="text/css" media="screen">
+<!--
+ body {
+ font-family: Sans-serif, Arial, Helvetica;
+ }
+
+-->
+</style>
+</head>
+<body>
+<h1>JBoss Runtime ESB Detector</h1>
+
+<p>
+This plugin is part of the JBoss Tools developed by the <a href="http://www.jboss.com">JBoss Inc.</a>
+</p>
+
+<p>Information about this plugin is available at <a href="http://www.jboss.org/tools">JBoss Tools project page</a></p>
+
+<p>
+This software is distributed under the terms of the Eclipse Public License - v 1.0
+(see <a href="www.eclipse.org/legal/epl-v10.html">Eclipse Public License - Version 1.0</a>).
+</p>
+</body>
+</html>
\ No newline at end of file
Added: trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/about.ini
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/about.ini (rev 0)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/about.ini 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,27 @@
+# about.ini
+# contains information about a feature
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# "%key" are externalized strings defined in about.properties
+# This file does not need to be translated.
+# test
+# Property "aboutText" contains blurb for "About" dialog (translated)
+aboutText=%blurb
+
+# Property "windowImage" contains path to window icon (16x16)
+# needed for primary features only
+
+# Property "featureImage" contains path to feature image (32x32)
+featureImage=jboss_about.png
+
+# Property "aboutImage" contains path to product image (500x330 or 115x164)
+# needed for primary features only
+
+# Property "appName" contains name of the application (not translated)
+# needed for primary features only
+
+# Property "welcomePerspective" contains the id of the perspective in which the
+# welcome page is to be opened.
+# optional
+
+
+
Added: trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/about.mappings
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/about.mappings (rev 0)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/about.mappings 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,5 @@
+# about.mappings
+# contains fill-ins for about.properties
+# java.io.Properties file (ISO 8859-1 with "\" escapes)
+# This file does not need to be translated.
+
Added: trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/about.properties
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/about.properties (rev 0)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/about.properties 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,2 @@
+blurb=JBoss Runtime ESB Detector\n\nVersion\: {featureVersion}\n\n(c) Copyright JBoss by Red Hat, contributors and others 2004 - 2011. All rights reserved.\nVisit http\://jboss.org/tools
+
Added: trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/build.properties
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/build.properties (rev 0)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/build.properties 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,11 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml,\
+ plugin.properties,\
+ about.html,\
+ about.ini,\
+ about.mappings,\
+ about.properties,\
+ jboss_about.png
Added: trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/jboss_about.png
===================================================================
(Binary files differ)
Property changes on: trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/jboss_about.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/plugin.properties
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/plugin.properties (rev 0)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/plugin.properties 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,3 @@
+#Properties file for org.jboss.tools.runtime.esb.detector
+BundleVendor = JBoss by Red Hat
+BundleName = JBoss Runtime ESB Detector
Added: trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/plugin.xml
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/plugin.xml (rev 0)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/plugin.xml 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+
+ <extension
+ point="org.jboss.tools.runtime.core.runtimeDetectors">
+ <runtimeDetector
+ id="org.jboss.tools.runtime.handlers.EsbHandler"
+ name="Esb"
+ class="org.jboss.tools.runtime.handlers.EsbHandler"
+ preferenceId="org.jboss.tools.esb.project.runtime.preference"
+ priority="500"/>
+ </extension>
+</plugin>
Added: trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/pom.xml
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/pom.xml (rev 0)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/pom.xml 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.jboss.tools.runtime</groupId>
+ <artifactId>plugins</artifactId>
+ <version>1.3.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.runtime.plugins</groupId>
+ <artifactId>org.jboss.tools.runtime.esb.detector</artifactId>
+
+ <packaging>eclipse-plugin</packaging>
+</project>
\ No newline at end of file
Added: trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/src/org/jboss/tools/runtime/esb/detector/RuntimeEsbActivator.java
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/src/org/jboss/tools/runtime/esb/detector/RuntimeEsbActivator.java (rev 0)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/src/org/jboss/tools/runtime/esb/detector/RuntimeEsbActivator.java 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,50 @@
+package org.jboss.tools.runtime.esb.detector;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class RuntimeEsbActivator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.runtime.esb.detector"; //$NON-NLS-1$
+
+ // The shared instance
+ private static RuntimeEsbActivator plugin;
+
+ /**
+ * The constructor
+ */
+ public RuntimeEsbActivator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static RuntimeEsbActivator getDefault() {
+ return plugin;
+ }
+
+}
Added: trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/src/org/jboss/tools/runtime/handlers/EsbHandler.java
===================================================================
--- trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/src/org/jboss/tools/runtime/handlers/EsbHandler.java (rev 0)
+++ trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/src/org/jboss/tools/runtime/handlers/EsbHandler.java 2011-08-25 22:49:21 UTC (rev 34329)
@@ -0,0 +1,84 @@
+/*******************************************************************************
+ * Copyright (c) 2010 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.runtime.handlers;
+
+import java.io.File;
+import java.util.List;
+
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.jboss.tools.esb.core.runtime.JBossESBRuntime;
+import org.jboss.tools.esb.core.runtime.JBossRuntimeManager;
+import org.jboss.tools.runtime.core.model.AbstractRuntimeDetector;
+import org.jboss.tools.runtime.core.model.ServerDefinition;
+
+public class EsbHandler extends AbstractRuntimeDetector {
+
+ private static final String DEFAULT_CONFIGURATION = "default";
+ private static final String ESB = "ESB"; //$NON-NLS-1$
+
+ public void initializeRuntimes(List<ServerDefinition> serverDefinitions) {
+ for (ServerDefinition serverDefinition : serverDefinitions) {
+ String type = serverDefinition.getType();
+ if (serverDefinition.isEnabled() && !esbExists(serverDefinition)) {
+ if (ESB.equals(type)) {
+ JBossESBRuntime runtime = new JBossESBRuntime();
+ runtime.setName("ESB - " + serverDefinition.getName()); //$NON-NLS-1$
+ runtime.setHomeDir(serverDefinition.getLocation()
+ .getAbsolutePath());
+ runtime.setConfiguration(DEFAULT_CONFIGURATION);
+ runtime.setVersion(serverDefinition.getVersion());
+ JBossRuntimeManager.getInstance().addRuntime(runtime);
+ }
+ }
+ initializeRuntimes(serverDefinition.getIncludedServerDefinitions());
+ }
+ }
+
+ /**
+ * @param serverDefinition
+ * @return
+ */
+ private static boolean esbExists(ServerDefinition serverDefinition) {
+ JBossESBRuntime[] runtimes = JBossRuntimeManager.getInstance().getRuntimes();
+ for (JBossESBRuntime runtime:runtimes) {
+ String location = runtime.getHomeDir();
+ if (location != null && location.equals(serverDefinition.getLocation().getAbsolutePath())) {
+ return true;
+ }
+ }
+ return false;
+ }
+
+ public ServerDefinition getServerDefinition(File root,
+ IProgressMonitor monitor) {
+ if (monitor.isCanceled() || root == null) {
+ return null;
+ }
+ // standalone ESB runtime
+ return null;
+ }
+
+ @Override
+ public boolean exists(ServerDefinition serverDefinition) {
+ if (serverDefinition == null || serverDefinition.getLocation() == null) {
+ return false;
+ }
+ return esbExists(serverDefinition);
+ }
+
+ @Override
+ public String getVersion(ServerDefinition serverDefinition) {
+ if (serverDefinition == null || serverDefinition.getLocation() == null) {
+ return null;
+ }
+ return JBossRuntimeManager.getInstance().getVersion(serverDefinition.getLocation().getAbsolutePath(), DEFAULT_CONFIGURATION);
+ }
+}
14 years, 4 months
JBoss Tools SVN: r34328 - trunk/runtime/features.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-08-25 18:46:27 -0400 (Thu, 25 Aug 2011)
New Revision: 34328
Added:
trunk/runtime/features/org.jboss.tools.runtime.esb.detector.feature/
Log:
Initial import.
14 years, 4 months
JBoss Tools SVN: r34327 - trunk/runtime/plugins.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2011-08-25 18:44:35 -0400 (Thu, 25 Aug 2011)
New Revision: 34327
Added:
trunk/runtime/plugins/org.jboss.tools.runtime.esb.detector/
Log:
Initial import.
14 years, 4 months
JBoss Tools SVN: r34326 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2011-08-25 18:43:09 -0400 (Thu, 25 Aug 2011)
New Revision: 34326
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF/MANIFEST.MF
Log:
added myfaces templates plug-in into test dependencies to fix coverage report
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF/MANIFEST.MF 2011-08-25 22:36:28 UTC (rev 34325)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF/MANIFEST.MF 2011-08-25 22:43:09 UTC (rev 34326)
@@ -12,7 +12,8 @@
org.jboss.tools.jsf.vpe.jsf;bundle-version="3.1.0",
org.jboss.tools.vpe.jsp;bundle-version="3.1.0",
org.jboss.tools.jsf.vpe.facelets;bundle-version="3.1.0",
- org.jboss.tools.jsf.vpe.richfaces;bundle-version="3.1.0"
+ org.jboss.tools.jsf.vpe.richfaces;bundle-version="3.1.0",
+ org.jboss.tools.jsf.vpe.myfaces;bundle-version="3.3.0"
Bundle-ActivationPolicy: lazy
Export-Package: org.jboss.tools.jsf.vpe.myfaces.test
Bundle-Vendor: %Bundle-Vendor.0
14 years, 4 months
JBoss Tools SVN: r34325 - branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2011-08-25 18:36:28 -0400 (Thu, 25 Aug 2011)
New Revision: 34325
Added:
branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.1_Release_Notes.ent
branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.1_Release_Notes.xml
Modified:
branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Article_Info.xml
branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Component_Versions.xml
branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Known_Issues.xml
branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Revision_History.xml
branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/master.xml
Log:
updated to begin 4.1.1 release notes
Added: branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.1_Release_Notes.ent
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.1_Release_Notes.ent (rev 0)
+++ branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.1_Release_Notes.ent 2011-08-25 22:36:28 UTC (rev 34325)
@@ -0,0 +1,4 @@
+<!ENTITY PRODUCT "JBoss Developer Studio">
+<!ENTITY BOOKID "4.1.1_Release_Notes">
+<!ENTITY YEAR "2011">
+<!ENTITY HOLDER "Red Hat">
Property changes on: branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.1_Release_Notes.ent
___________________________________________________________________
Added: svn:executable
+ *
Added: branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.1_Release_Notes.xml
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.1_Release_Notes.xml (rev 0)
+++ branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.1_Release_Notes.xml 2011-08-25 22:36:28 UTC (rev 34325)
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='utf-8' ?>
+
+<!-- This article will dsplay the release notes for version 4.0.0, and be found at http://docs.redhat.com/docs/en-US/JBoss_Developer_Studio/4.0/html-single/... -->
+
+<article>
+ <xi:include href="Article_Info.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+ <xi:include href="Overview.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+ <xi:include href="Component_Versions.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+ <xi:include href="Fixed_Issues.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+ <xi:include href="Known_Issues.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+ <xi:include href="Revision_History.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
+</article>
Property changes on: branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.1_Release_Notes.xml
___________________________________________________________________
Added: svn:executable
+ *
Modified: branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Article_Info.xml
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Article_Info.xml 2011-08-25 22:30:37 UTC (rev 34324)
+++ branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Article_Info.xml 2011-08-25 22:36:28 UTC (rev 34325)
@@ -3,7 +3,7 @@
<!-- Modify the title tag to change which book will be built -->
<articleinfo>
- <title>4.1.0 Release Notes</title>
+ <title>4.1.1 Release Notes</title>
<subtitle>Information about the changes made for this release of the JBoss Developer Studio.</subtitle>
<productname>JBoss Developer Studio</productname>
<productnumber>4.1</productnumber>
Modified: branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Component_Versions.xml
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Component_Versions.xml 2011-08-25 22:30:37 UTC (rev 34324)
+++ branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Component_Versions.xml 2011-08-25 22:36:28 UTC (rev 34325)
@@ -12,7 +12,7 @@
</listitem>
<listitem>
<para>
- JBoss Tools 3.2.1
+ JBoss Tools 3.2.2
</para>
</listitem>
<listitem>
Modified: branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2011-08-25 22:30:37 UTC (rev 34324)
+++ branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2011-08-25 22:36:28 UTC (rev 34325)
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='utf-8' ?>
<section id="Issues-fixed-in-this-release">
<title>
- Features added and issues fixed in version 4.1.0
+ Features added and issues fixed in version 4.1.1
</title>
<!-- <para>
The following list highlights new features that have been added to this release, as well as listing notable bug fixes. You can find a complete list of bug fixes <ulink url="https://issues.jboss.org/browse/JBIDE">here</ulink>.
@@ -56,28 +56,18 @@
</itemizedlist>
</para>
</formalpara> -->
- <formalpara>
+<!-- <formalpara>
<title>ESB</title>
<para>
<itemizedlist>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-8569">JBIDE-8569</ulink>: Classes within the JBoss ESB Editor and ESB Message Persister are now filtered within the <guilabel>Select class</guilabel> dialog that is invoked through the <guilabel>Browse</guilabel> button. Content assist proposals are also filtered within the text field instead of a drop-down list, providing a significant performance enhancement over previously voiced solutions.
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
</para>
</listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-8567">JBIDE-8567</ulink>: A drop-down list has been added to the JBoss ESB Editor and Route in order to allow selection of a predefined <guilabel>Service Category</guilabel> or <guilabel>Service Name</guilabel>.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-8466">JBIDE-8466</ulink>: The <guilabel>Rule Agent Properties</guilabel> property has been added to the <guilabel>Content Based Router Action</guilabel> section of the JBoss ESB Editor. The following actions are now also supported through drop-down lists: <property>org.jboss.soa.esb.actions.ContentBasedWiretap</property> and <property>org.jboss.soa.esb.actions.MessageFilter</property>.
- </para>
- </listitem>
</itemizedlist>
</para>
- </formalpara>
+ </formalpara> -->
<!-- Google Web Toolkit is only shipped with JBoss.org -->
<!--
<formalpara>
@@ -179,18 +169,18 @@
</itemizedlist>
</para>
</formalpara>-->
- <formalpara>
+<!-- <formalpara>
<title>RichFaces</title>
<para>
<itemizedlist>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-8617">JBIDE-8617</ulink>: A new RichFaces 4 palette is available to assist with RichFaces 4 components. This palette is hidden by default.
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
</para>
</listitem>
</itemizedlist>
</para>
- </formalpara>
+ </formalpara> -->
<!--<formalpara>
<title>Seam</title>
<para>
@@ -227,38 +217,18 @@
</itemizedlist>
</para>
</formalpara>-->
- <formalpara>
+<!-- <formalpara>
<title>Teiid Designer</title>
<para>
<itemizedlist>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-8399">JBIDE-8399</ulink>: The engine behind the incorporated project examples that are distributed with the tools can now recognize a Teiid instance within a JBoss server. This has allowed for Teiid requirements to be added to Teiid Designer project examples.
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
</para>
</listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/TEIIDDES-934">TEIIDDES-934</ulink>: An error was apparent in previous releases of Teiid Designer where the number of models added to a VDB could grow so large that data roles became inaccessible from the menu. This was caused because no scrollbar existed for the menu, meaning menu items would persist past the bottom of the screen without any way for the user to see them. This issue has been corrected in this latest release.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/TEIIDDES-877">TEIIDDES-877</ulink>: When creating a new Teiid project, the Teiid Designer perspective would not be opened by default. In this version, a user is asked if they would like to open the corresponding Teiid Designer perspective when they have created a new Teiid project.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/TEIIDDES-869">TEIIDDES-869</ulink>: The Web Service model that was generated by the <guilabel>New Model Wizard</guilabel> was incorrect, with errors in the <methodname>invoke</methodname> and <methodname>invokeHTTP</methodname> procedures. These errors meant that the resulting parameters from the methods would be modeled as <property>IN</property>, rather than as a <property>result</property>. It also meant that the <property>contenttype</property> of the <methodname>invokeHttp</methodname> should be an <property>OUT</property> parameter. These errors have been corrected in this release.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/TEIIDDES-859">TEIIDDES-859</ulink>: In an example project, the ability to preview data would fail due to the preview jobs starting before the auto-build and locking model resources. Scheduling of the preview jobs are now delayed in order to ensure there is enough time for the auto-build to start.
- </para>
- </listitem>
</itemizedlist>
</para>
- </formalpara>
+ </formalpara> -->
<!--<formalpara>
<title>Usage</title>
<para>
@@ -283,23 +253,18 @@
</itemizedlist>
</para>
</formalpara>-->
- <formalpara>
+<!-- <formalpara>
<title>Web Tools Platform</title>
<para>
<itemizedlist>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1602">JBDS-1602</ulink>: The Web Service Tester tool included as part of the Web Tools Platform contained an issue that would generate incorrect SOAP code, causing marshaling issues expressed as a <exceptionname>NullPointerException</exceptionname>. Multiple namespaces can now be handled without error and correct SOAP code is generated, removing marshaling issues.
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
</para>
</listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-8770">JBIDE-8770</ulink>: Sample input has been provided for Web Service Definition Language (WSDL) with a Simple Object Access Protocol (SOAP) header definition. This allows users a foundation to create their own WSDL applications that utilize SOAP definitions.
- </para>
- </listitem>
</itemizedlist>
</para>
- </formalpara>
+ </formalpara> -->
<!--<formalpara>
<title>XHTML Editor</title>
<para>
@@ -324,21 +289,16 @@
</itemizedlist>
</para>
</formalpara>-->
- <formalpara>
+<!-- <formalpara>
<title>General Issues</title>
<para>
<itemizedlist>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1268">JBDS-1268</ulink>: The JBoss Developer Studio can now be installed by passing the installer a settings file named <filename>InstallConfigRecord.xml</filename>. To undertake this, setup an <filename>InstallConfigRecord.xml</filename> and run the following on a command line: <code>java -jar jbdevstudio-4.1.0.GA.jar InstallConfigRecord.xml</code>. This allows for an automated and reproducible installation. For further information consult the <emphasis>Getting Started Guide</emphasis>.
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
</para>
</listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-8596">JBIDE-8596</ulink>: The Properties editor for project files has been improved by allowing the <keycap>Enter</keycap> key to be pressed on a cell to begin editing its contents. Likewise, by performing a single mouse click a user can also edit the contents of a cell (previously a user had to double click to edit a cell).
- </para>
- </listitem>
</itemizedlist>
</para>
- </formalpara>
+ </formalpara> -->
</section>
Modified: branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Known_Issues.xml
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Known_Issues.xml 2011-08-25 22:30:37 UTC (rev 34324)
+++ branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Known_Issues.xml 2011-08-25 22:36:28 UTC (rev 34325)
@@ -1,50 +1,21 @@
<?xml version='1.0' encoding='utf-8' ?>
<section id="Known_Issues_with_this_release">
<title>
- Known Issues in version 4.1.0
+ Known Issues in version 4.1.1
</title>
<para>
Following is a list of known issues at the time of release.
</para>
- <formalpara>
+<!-- <formalpara>
<title>General Known Issues</title>
<para>
<itemizedlist>
<listitem>
<para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1685">JBDS-1685</ulink>: Upon installing Subclipse from the JBoss Developer Studio Extras site and restarting your JBoss Developer Studio installation, an error exists that sets a default SVN property incorrectly. The workaround for this issue is to navigate to <menuchoice>
- <guimenuitem>Window</guimenuitem>
- <guimenuitem>Preferences</guimenuitem>
- <guimenuitem>Team</guimenuitem>
- <guimenuitem>SVN</guimenuitem>
- </menuchoice>.
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-0000">JBIDE-0000</ulink>:
</para>
- <para>
- If you then see an error window, click the <guibutton>OK</guibutton> button.
- </para>
- <para>
- On the SVN Preferences page, in the <guilabel>SVN interface</guilabel> section, change the drop-down list value of <guilabel>Client</guilabel> to <guimenuitem>SVNKit (Pure Java) SVNKit v1.3.5.7406</guimenuitem>.
- </para>
- <para>
- Click the <guibutton>Apply</guibutton> button and then the <guibutton>OK</guibutton> button.
- </para>
- <para>
- Subclipse will now function correctly.
- </para>
</listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBDS-1643">JBDS-1643</ulink> and <ulink url="http://jira.jboss.com/jira/browse/SOA-3051">SOA-3051</ulink>: JBoss Developer Studio 4.1 assumes the use of Drools 5.0 or above for project creation. If using an earlier version of Drools or JBoss Rules, code compatibility must be set to your version of Drools or JBoss Rules in the last page of the project creation wizard.
- </para>
- <para>
- If you need to set code compatibility to an older version of Drools or JBoss Rules, you may notice multiple warnings when creating a project relating to the new Drools 5 API. These warnings will not affect your project and can be turned off by navigating to <menuchoice>
- <guimenuitem>Window</guimenuitem>
- <guimenuitem>Preferences</guimenuitem>
- <guimenuitem>Drools</guimenuitem>
- </menuchoice> and setting the <guilabel>Internal Drools classes are</guilabel> drop-down box to <guilabel>Accessible</guilabel>.
- </para>
- </listitem>
</itemizedlist>
</para>
- </formalpara>
+ </formalpara> -->
</section>
Modified: branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Revision_History.xml
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Revision_History.xml 2011-08-25 22:30:37 UTC (rev 34324)
+++ branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/Revision_History.xml 2011-08-25 22:36:28 UTC (rev 34325)
@@ -6,7 +6,7 @@
<revhistory>
<revision>
<revnumber>0-0</revnumber>
- <date>Fri May 27 2011</date>
+ <date>Fri Aug 26 2011</date>
<author>
<firstname>Isaac</firstname>
<surname>Rooskov</surname>
Modified: branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/master.xml
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/master.xml 2011-08-25 22:30:37 UTC (rev 34324)
+++ branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/master.xml 2011-08-25 22:36:28 UTC (rev 34325)
@@ -25,7 +25,7 @@
<holder>JBoss by Red Hat</holder>
</copyright>
<releaseinfo>
- Version: 3.2.1.GA
+ Version: 3.2.2.GA
</releaseinfo>
14 years, 4 months
JBoss Tools SVN: r34324 - branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2011-08-25 18:30:37 -0400 (Thu, 25 Aug 2011)
New Revision: 34324
Removed:
branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.0_Release_Notes.ent
branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.0_Release_Notes.xml
Log:
removing for new release
Deleted: branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.0_Release_Notes.ent
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.0_Release_Notes.ent 2011-08-25 19:06:49 UTC (rev 34323)
+++ branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.0_Release_Notes.ent 2011-08-25 22:30:37 UTC (rev 34324)
@@ -1,4 +0,0 @@
-<!ENTITY PRODUCT "JBoss Developer Studio">
-<!ENTITY BOOKID "4.1.0_Release_Notes">
-<!ENTITY YEAR "2011">
-<!ENTITY HOLDER "Red Hat">
Deleted: branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.0_Release_Notes.xml
===================================================================
--- branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.0_Release_Notes.xml 2011-08-25 19:06:49 UTC (rev 34323)
+++ branches/jbosstools-3.2.x/documentation/guides/JBDS_Release_Notes/en-US/4.1.0_Release_Notes.xml 2011-08-25 22:30:37 UTC (rev 34324)
@@ -1,12 +0,0 @@
-<?xml version='1.0' encoding='utf-8' ?>
-
-<!-- This article will dsplay the release notes for version 4.0.0, and be found at http://docs.redhat.com/docs/en-US/JBoss_Developer_Studio/4.0/html-single/... -->
-
-<article>
- <xi:include href="Article_Info.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
- <xi:include href="Overview.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
- <xi:include href="Component_Versions.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
- <xi:include href="Fixed_Issues.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
- <xi:include href="Known_Issues.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
- <xi:include href="Revision_History.xml" xmlns:xi="http://www.w3.org/2001/XInclude"></xi:include>
-</article>
14 years, 4 months
JBoss Tools SVN: r34323 - in trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test: projects/CDIConfigValidationTest/src/org/jboss/beans/validation/test and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-08-25 15:06:49 -0400 (Thu, 25 Aug 2011)
New Revision: 34323
Added:
trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/projects/CDIConfigValidationTest/src/org/jboss/beans/validation/test/MyBean2.template
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/META-INF/MANIFEST.MF
trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/src/org/jboss/tools/cdi/seam/config/core/test/SeamConfigValidationTest.java
Log:
JBIDE-9186
https://issues.jboss.org/browse/JBIDE-9186
Test added to check that node becomes resolved when required type is added and unresolved when type is removed.
Modified: trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/META-INF/MANIFEST.MF 2011-08-25 19:04:43 UTC (rev 34322)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/META-INF/MANIFEST.MF 2011-08-25 19:06:49 UTC (rev 34323)
@@ -21,6 +21,7 @@
org.jboss.tools.jst.web.kb,
org.jboss.tools.cdi.xml,
org.jboss.tools.cdi.seam.solder.core,
+ org.jboss.tools.cdi.seam.solder.core.test,
org.eclipse.jst.standard.schemas,
org.jboss.tools.jst.jsp.test,
org.eclipse.wst.validation,
Added: trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/projects/CDIConfigValidationTest/src/org/jboss/beans/validation/test/MyBean2.template
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/projects/CDIConfigValidationTest/src/org/jboss/beans/validation/test/MyBean2.template (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/projects/CDIConfigValidationTest/src/org/jboss/beans/validation/test/MyBean2.template 2011-08-25 19:06:49 UTC (rev 34323)
@@ -0,0 +1,5 @@
+package org.jboss.beans.validation.test;
+
+public class MyBean2 {
+
+}
Modified: trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/src/org/jboss/tools/cdi/seam/config/core/test/SeamConfigValidationTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/src/org/jboss/tools/cdi/seam/config/core/test/SeamConfigValidationTest.java 2011-08-25 19:04:43 UTC (rev 34322)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam.config.core.test/src/org/jboss/tools/cdi/seam/config/core/test/SeamConfigValidationTest.java 2011-08-25 19:06:49 UTC (rev 34323)
@@ -19,10 +19,12 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.Path;
import org.jboss.tools.cdi.core.CDICorePlugin;
import org.jboss.tools.cdi.core.ICDIProject;
import org.jboss.tools.cdi.seam.config.core.CDISeamConfigPreferences;
import org.jboss.tools.cdi.seam.config.core.validation.SeamConfigValidationMessages;
+import org.jboss.tools.cdi.seam.solder.core.test.GenericBeanValidationTest;
import org.jboss.tools.common.base.test.validation.TestUtil;
import org.jboss.tools.common.preferences.SeverityPreferences;
import org.jboss.tools.test.util.ResourcesUtils;
@@ -97,6 +99,15 @@
AbstractResourceMarkerTest.assertMarkerIsNotCreated(f, MessageFormat.format(SeamConfigValidationMessages.UNRESOLVED_MEMBER, "v:field1"));
}
+ public void testAddClassToResolveNode() throws CoreException {
+ String path = "src/org/jboss/beans/validation/test/MyBean2.java";
+ GenericBeanValidationTest.writeFile(project, "src/org/jboss/beans/validation/test/MyBean2.template", path);
+ AbstractResourceMarkerTest.assertMarkerIsNotCreated(f, MessageFormat.format(SeamConfigValidationMessages.UNRESOLVED_TYPE, "v:MyBean2"), 8);
+
+ GenericBeanValidationTest.removeFile(project, path);
+ AbstractResourceMarkerTest.assertMarkerIsCreated(f, MessageFormat.format(SeamConfigValidationMessages.UNRESOLVED_TYPE, "v:MyBean2"), 8);
+ }
+
/**
* Check that marker disappears when preference is set to IGNORE and appears again
* when preference is set back to WARNING. Check that marker for another preference
14 years, 4 months
JBoss Tools SVN: r34322 - trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-08-25 15:04:43 -0400 (Thu, 25 Aug 2011)
New Revision: 34322
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/GenericBeanValidationTest.java
Log:
JBIDE-9186
https://issues.jboss.org/browse/JBIDE-9186
Shared methods for rewriting/deleting resources in test project.
Modified: trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/GenericBeanValidationTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/GenericBeanValidationTest.java 2011-08-25 18:42:29 UTC (rev 34321)
+++ trunk/cdi/tests/org.jboss.tools.cdi.seam.solder.core.test/src/org/jboss/tools/cdi/seam/solder/core/test/GenericBeanValidationTest.java 2011-08-25 19:04:43 UTC (rev 34322)
@@ -170,7 +170,7 @@
AbstractResourceMarkerTest.assertMarkerIsCreated(file, CDIValidationMessages.DUPLCICATE_EL_NAME.substring(0, 11) + ".*", 10, 17);
}
- static void writeFile(IProject project, String sourcePath, String targetPath) throws CoreException {
+ public static void writeFile(IProject project, String sourcePath, String targetPath) throws CoreException {
boolean saveAutoBuild = ResourcesUtils.setBuildAutomatically(false);
try {
IFile target = project.getFile(new Path(targetPath));
@@ -188,10 +188,14 @@
}
}
- void removeFile(String targetPath) throws CoreException {
+ public void removeFile(String targetPath) throws CoreException {
+ removeFile(getTestProject(), targetPath);
+ }
+
+ public static void removeFile(IProject project, String targetPath) throws CoreException {
boolean saveAutoBuild = ResourcesUtils.setBuildAutomatically(false);
try {
- IFile target = getTestProject().getFile(new Path(targetPath));
+ IFile target = project.getFile(new Path(targetPath));
assertTrue(target.exists());
target.delete(true, new NullProgressMonitor());
TestUtil.validate(target);
14 years, 4 months