JBoss Tools SVN: r41374 - cdi/features/org.jboss.tools.cdi.deltaspike.feature.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2012-05-24 15:18:55 -0400 (Thu, 24 May 2012)
New Revision: 41374
Added:
cdi/features/org.jboss.tools.cdi.deltaspike.feature/.project
cdi/features/org.jboss.tools.cdi.deltaspike.feature/build.properties
cdi/features/org.jboss.tools.cdi.deltaspike.feature/feature.properties
cdi/features/org.jboss.tools.cdi.deltaspike.feature/feature.xml
cdi/features/org.jboss.tools.cdi.deltaspike.feature/license.html
cdi/features/org.jboss.tools.cdi.deltaspike.feature/pom.xml
Log:
https://issues.jboss.org/browse/JBIDE-11552 Share project "org.jboss.tools.cdi.deltaspike.feature" into "https://svn.jboss.org/repos/jbosstools"
Added: cdi/features/org.jboss.tools.cdi.deltaspike.feature/.project
===================================================================
--- cdi/features/org.jboss.tools.cdi.deltaspike.feature/.project (rev 0)
+++ cdi/features/org.jboss.tools.cdi.deltaspike.feature/.project 2012-05-24 19:18:55 UTC (rev 41374)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.cdi.deltaspike.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>
Property changes on: cdi/features/org.jboss.tools.cdi.deltaspike.feature/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/features/org.jboss.tools.cdi.deltaspike.feature/build.properties
===================================================================
--- cdi/features/org.jboss.tools.cdi.deltaspike.feature/build.properties (rev 0)
+++ cdi/features/org.jboss.tools.cdi.deltaspike.feature/build.properties 2012-05-24 19:18:55 UTC (rev 41374)
@@ -0,0 +1,3 @@
+bin.includes = feature.xml,\
+ feature.properties,\
+ license.html
Property changes on: cdi/features/org.jboss.tools.cdi.deltaspike.feature/build.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/features/org.jboss.tools.cdi.deltaspike.feature/feature.properties
===================================================================
--- cdi/features/org.jboss.tools.cdi.deltaspike.feature/feature.properties (rev 0)
+++ cdi/features/org.jboss.tools.cdi.deltaspike.feature/feature.properties 2012-05-24 19:18:55 UTC (rev 41374)
@@ -0,0 +1,29 @@
+featureName=Apache Deltaspike Tools
+featureProvider=JBoss by Red Hat
+
+# "updateSiteName" property - label for the update site
+updateSiteName=JBossTools Update Site
+
+# "description" property - description of the feature
+description=Apache Deltasipke Tools provides tooling for the CDI components released as part of Deltaspike modules.
+
+# "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.
+copyright=JBoss, Home of Professional Open Source\n\
+Copyright (c) 2006-2012 Red Hat, Inc., and individual contributors \
+as indicated by the @authors tag. See the copyright.txt in the distribution \
+for a full listing of individual contributors.
+# END NON-TRANSLATABLE
+########### end of license property ##########################################
Property changes on: cdi/features/org.jboss.tools.cdi.deltaspike.feature/feature.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/features/org.jboss.tools.cdi.deltaspike.feature/feature.xml
===================================================================
--- cdi/features/org.jboss.tools.cdi.deltaspike.feature/feature.xml (rev 0)
+++ cdi/features/org.jboss.tools.cdi.deltaspike.feature/feature.xml 2012-05-24 19:18:55 UTC (rev 41374)
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature id="org.jboss.tools.cdi.deltaspike.feature" label="%featureName" version="1.2.0.qualifier" provider-name="%featureProvider">
+
+ <description>
+ %description
+ </description>
+
+ <copyright>
+ %copyright
+ </copyright>
+
+ <license url="%licenseURL">
+ %license
+ </license>
+
+ <requires>
+ <import feature="org.jboss.tools.cdi.feature" version="1.2.0" match="greaterOrEqual"/>
+ <import feature="org.jboss.tools.common.feature" version="3.3.0" match="greaterOrEqual" />
+ <import feature="org.jboss.tools.jst.feature" version="3.3.0" match="greaterOrEqual" />
+ </requires>
+
+ <plugin id="org.jboss.tools.cdi.deltaspike.core" download-size="0" install-size="0" version="0.0.0" unpack="false" />
+</feature>
Property changes on: cdi/features/org.jboss.tools.cdi.deltaspike.feature/feature.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/features/org.jboss.tools.cdi.deltaspike.feature/license.html
===================================================================
--- cdi/features/org.jboss.tools.cdi.deltaspike.feature/license.html (rev 0)
+++ cdi/features/org.jboss.tools.cdi.deltaspike.feature/license.html 2012-05-24 19:18:55 UTC (rev 41374)
@@ -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
Property changes on: cdi/features/org.jboss.tools.cdi.deltaspike.feature/license.html
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/features/org.jboss.tools.cdi.deltaspike.feature/pom.xml
===================================================================
--- cdi/features/org.jboss.tools.cdi.deltaspike.feature/pom.xml (rev 0)
+++ cdi/features/org.jboss.tools.cdi.deltaspike.feature/pom.xml 2012-05-24 19:18:55 UTC (rev 41374)
@@ -0,0 +1,46 @@
+<?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.cdi</groupId>
+ <artifactId>features</artifactId>
+ <version>1.2.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.cdi.features</groupId>
+ <artifactId>org.jboss.tools.cdi.deltaspike.feature</artifactId>
+
+ <packaging>eclipse-feature</packaging>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.eclipse.tycho.extras</groupId>
+ <artifactId>tycho-source-feature-plugin</artifactId>
+ <version>${tychoExtrasVersion}</version>
+ <executions>
+ <execution>
+ <id>source-feature</id>
+ <phase>package</phase>
+ <goals>
+ <goal>source-feature</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-p2-plugin</artifactId>
+ <version>${tychoVersion}</version>
+ <executions>
+ <execution>
+ <id>attached-p2-metadata</id>
+ <phase>package</phase>
+ <goals>
+ <goal>p2-metadata</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Property changes on: cdi/features/org.jboss.tools.cdi.deltaspike.feature/pom.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
12 years, 7 months
JBoss Tools SVN: r41372 - in cdi/tests/org.jboss.tools.cdi.deltaspike.core.test: META-INF and 11 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2012-05-24 15:16:22 -0400 (Thu, 24 May 2012)
New Revision: 41372
Added:
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.classpath
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.project
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/META-INF/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/META-INF/MANIFEST.MF
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/build.properties
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/pom.xml
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.classpath
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.project
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/src/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreAllTests.java
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTest.java
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTestSetup.java
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/validation/
cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/validation/DeltaspikeValidationTest.java
Log:
https://issues.jboss.org/browse/JBIDE-11552 Share project "org.jboss.tools.cdi.deltaspike.core.test" into "https://svn.jboss.org/repos/jbosstools"
Added: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.classpath
===================================================================
--- cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.classpath (rev 0)
+++ cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.classpath 2012-05-24 19:16:22 UTC (rev 41372)
@@ -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>
Property changes on: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.classpath
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.project
===================================================================
--- cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.project (rev 0)
+++ cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.project 2012-05-24 19:16:22 UTC (rev 41372)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.cdi.deltaspike.core.test</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>
Property changes on: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/META-INF/MANIFEST.MF
===================================================================
--- cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/META-INF/MANIFEST.MF (rev 0)
+++ cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/META-INF/MANIFEST.MF 2012-05-24 19:16:22 UTC (rev 41372)
@@ -0,0 +1,30 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Deltaspike Core Test
+Bundle-SymbolicName: org.jboss.tools.cdi.deltaspike.core.test;singleton:=true
+Bundle-Version: 1.2.0.qualifier
+Bundle-Vendor: JBoss by Red Hat
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Require-Bundle: org.jboss.tools.cdi.seam.core,
+ org.eclipse.jdt.core,
+ org.junit,
+ org.jboss.tools.jst.web.kb,
+ org.eclipse.core.resources;bundle-version="3.7.100",
+ org.jboss.tools.tests,
+ org.eclipse.core.runtime;bundle-version="3.7.0",
+ org.jboss.tools.cdi.core,
+ org.jboss.tools.jst.jsp.base.test,
+ org.jboss.tools.cdi.core.test,
+ org.jboss.tools.common,
+ org.eclipse.ui;bundle-version="3.7.0",
+ org.jboss.tools.common.base.test,
+ org.eclipse.jface.text;bundle-version="3.7.0",
+ org.jboss.tools.common.el.core,
+ org.jboss.tools.common.text.ext,
+ org.jboss.tools.jst.text.ext,
+ org.jboss.tools.jst.text.ext.test,
+ org.jboss.tools.cdi.seam.solder.core.test,
+ org.eclipse.wst.validation;bundle-version="1.2.300",
+ org.jboss.tools.jst.jsp
+Export-Package: org.jboss.tools.cdi.deltaspike.core.test
+Eclipse-BundleShape: dir
Property changes on: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/META-INF/MANIFEST.MF
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/build.properties
===================================================================
--- cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/build.properties (rev 0)
+++ cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/build.properties 2012-05-24 19:16:22 UTC (rev 41372)
@@ -0,0 +1,5 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ projects/
Property changes on: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/build.properties
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/pom.xml
===================================================================
--- cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/pom.xml (rev 0)
+++ cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/pom.xml 2012-05-24 19:16:22 UTC (rev 41372)
@@ -0,0 +1,15 @@
+<?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.cdi</groupId>
+ <artifactId>tests</artifactId>
+ <version>1.2.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools.cdi.tests</groupId>
+ <artifactId>org.jboss.tools.cdi.deltaspike.core.test</artifactId>
+ <packaging>eclipse-test-plugin</packaging>
+ <properties>
+ <emma.instrument.bundles>org.jboss.tools.cdi.seam.core,org.jboss.tools.cdi.core,org.jboss.tools.cdi.xml</emma.instrument.bundles>
+ </properties>
+</project>
\ No newline at end of file
Property changes on: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/pom.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.classpath
===================================================================
--- cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.classpath (rev 0)
+++ cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.classpath 2012-05-24 19:16:22 UTC (rev 41372)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.classpath
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.project
===================================================================
--- cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.project (rev 0)
+++ cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.project 2012-05-24 19:16:22 UTC (rev 41372)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>DeltaspikeCoreTest</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/projects/DeltaspikeCoreTest/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreAllTests.java
===================================================================
--- cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreAllTests.java (rev 0)
+++ cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreAllTests.java 2012-05-24 19:16:22 UTC (rev 41372)
@@ -0,0 +1,45 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.cdi.deltaspike.core.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.eclipse.jdt.internal.core.JavaModelManager;
+import org.eclipse.wst.validation.ValidationFramework;
+import org.jboss.tools.cdi.deltaspike.core.test.validation.DeltaspikeValidationTest;
+import org.jboss.tools.common.base.test.validation.ValidationExceptionTest;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class DeltaspikeCoreAllTests {
+ public static String PLUGIN_ID = "org.jboss.tools.cdi.deltaspike.core.test";
+
+ public static Test suite() {
+ JavaModelManager.getIndexManager().disable();
+
+ ValidationFramework.getDefault().suspendAllValidation(true);
+
+ ValidationExceptionTest.initLogger();
+
+ TestSuite suiteAll = new TestSuite("Deltasipke Core Tests");
+
+ TestSuite suite = new TestSuite("Deltaspike Core Project Tests");
+ suite.addTestSuite(DeltaspikeValidationTest.class);
+
+ suiteAll.addTest(new DeltaspikeCoreTestSetup(suite));
+
+ suiteAll.addTestSuite(ValidationExceptionTest.class); // This test should be added last!
+
+ return suiteAll;
+ }
+}
\ No newline at end of file
Property changes on: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreAllTests.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTest.java
===================================================================
--- cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTest.java (rev 0)
+++ cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTest.java 2012-05-24 19:16:22 UTC (rev 41372)
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * Copyright (c) 2012 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.cdi.deltaspike.core.test;
+
+import junit.framework.TestCase;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class DeltaspikeCoreTest extends TestCase {
+
+ protected IProject getTestProject() throws Exception {
+ return ResourcesPlugin.getWorkspace().getRoot().getProject(DeltaspikeCoreTestSetup.PROJECT_NAME);
+ }
+}
\ No newline at end of file
Property changes on: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTestSetup.java
===================================================================
--- cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTestSetup.java (rev 0)
+++ cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTestSetup.java 2012-05-24 19:16:22 UTC (rev 41372)
@@ -0,0 +1,61 @@
+/*******************************************************************************
+ * Copyright (c) 2012 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.cdi.deltaspike.core.test;
+
+import junit.extensions.TestSetup;
+import junit.framework.Test;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.jboss.tools.common.base.test.validation.TestUtil;
+import org.jboss.tools.test.util.JobUtils;
+import org.jboss.tools.test.util.ResourcesUtils;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class DeltaspikeCoreTestSetup extends TestSetup {
+
+ public static final String PLUGIN_ID = "org.jboss.tools.cdi.deltaspike.core.test";
+ public static final String PROJECT_NAME = "DeltaspikeCoreTest";
+ public static final String PROJECT_PATH = "/projects/DeltaspikeCoreTest";
+ public static final String ROOT_PROJECT_NAME = "DeltaspikeCoreRootTest";
+ public static final String ROOT_PROJECT_PATH = "/projects/DeltaspikeRootTest";
+
+ protected IProject project;
+ protected IProject rootProject;
+
+ public DeltaspikeCoreTestSetup(Test test) {
+ super(test);
+ }
+
+ @Override
+ protected void setUp() throws Exception {
+ project = ResourcesPlugin.getWorkspace().getRoot().getProject(PROJECT_NAME);
+ if(!project.exists()) {
+ project = ResourcesUtils.importProject(PLUGIN_ID, PROJECT_PATH);
+ TestUtil._waitForValidation(project);
+ rootProject = ResourcesUtils.importProject(PLUGIN_ID, ROOT_PROJECT_PATH);
+ TestUtil._waitForValidation(rootProject);
+ } else {
+ assertTrue(ResourcesPlugin.getWorkspace().getRoot().getProject(ROOT_PROJECT_NAME).exists());
+ }
+ }
+
+ @Override
+ protected void tearDown() throws Exception {
+ boolean saveAutoBuild = ResourcesUtils.setBuildAutomatically(false);
+ project.delete(true, true, null);
+ rootProject.delete(true, true, null);
+ JobUtils.waitForIdle();
+ ResourcesUtils.setBuildAutomatically(saveAutoBuild);
+ }
+}
\ No newline at end of file
Property changes on: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/DeltaspikeCoreTestSetup.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/validation/DeltaspikeValidationTest.java
===================================================================
--- cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/validation/DeltaspikeValidationTest.java (rev 0)
+++ cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/validation/DeltaspikeValidationTest.java 2012-05-24 19:16:22 UTC (rev 41372)
@@ -0,0 +1,23 @@
+/*******************************************************************************
+ * Copyright (c) 2012 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.cdi.deltaspike.core.test.validation;
+
+import org.jboss.tools.cdi.deltaspike.core.test.DeltaspikeCoreTest;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class DeltaspikeValidationTest extends DeltaspikeCoreTest {
+
+ public void testValidation() throws Exception {
+ // TODO
+ }
+}
\ No newline at end of file
Property changes on: cdi/tests/org.jboss.tools.cdi.deltaspike.core.test/src/org/jboss/tools/cdi/deltaspike/core/test/validation/DeltaspikeValidationTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
12 years, 7 months
JBoss Tools SVN: r41370 - trunk/jbpm/features/org.jboss.tools.jbpm3.feature.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2012-05-24 15:13:51 -0400 (Thu, 24 May 2012)
New Revision: 41370
Modified:
trunk/jbpm/features/org.jboss.tools.jbpm3.feature/feature.properties
Log:
s/jBPM 4/jBPM 3/ (JBIDE-11890)
Modified: trunk/jbpm/features/org.jboss.tools.jbpm3.feature/feature.properties
===================================================================
--- trunk/jbpm/features/org.jboss.tools.jbpm3.feature/feature.properties 2012-05-24 19:11:20 UTC (rev 41369)
+++ trunk/jbpm/features/org.jboss.tools.jbpm3.feature/feature.properties 2012-05-24 19:13:51 UTC (rev 41370)
@@ -1,6 +1,6 @@
featureName=jBPM 3 Tools Runtime
featureProvider=JBoss by Red Hat
-description=This feature includes all end-user tools for jBPM 4, including runtime and sources.
+description=This feature includes all end-user tools for jBPM 3, including runtime and sources.
copyright=Copyright 2010-2012 Red Hat, Inc.
licenseURL=license.html
updateSiteName=JBossTools Update Site
12 years, 7 months
JBoss Tools SVN: r41369 - in trunk/requirements: jbeap-6 and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2012-05-24 15:11:20 -0400 (Thu, 24 May 2012)
New Revision: 41369
Added:
trunk/requirements/jbeap-6/
trunk/requirements/jbeap-6/build.properties
trunk/requirements/jbeap-6/buildRequirement.xml
Log:
add builder for JB EAP 6 (JBDS-1763)
Added: trunk/requirements/jbeap-6/build.properties
===================================================================
--- trunk/requirements/jbeap-6/build.properties (rev 0)
+++ trunk/requirements/jbeap-6/build.properties 2012-05-24 19:11:20 UTC (rev 41369)
@@ -0,0 +1,9 @@
+# see also ../seamfp/build.properties; use latest noauth zip here
+
+# This property used to override URI outside the build
+# It is usefull to make build work on build server vithout VPN access
+jbeap60.build.uri=http://download.devel.redhat.com/devel/candidates/JBEAP/JBEAP-6.0.0-ER8/
+build.uri=${jbeap60.build.uri}
+build.archive=jboss-eap-6.0.0.ER8.zip
+md5=e9fbc105f90bc9d4374d1d0b45878eac
+
Added: trunk/requirements/jbeap-6/buildRequirement.xml
===================================================================
--- trunk/requirements/jbeap-6/buildRequirement.xml (rev 0)
+++ trunk/requirements/jbeap-6/buildRequirement.xml 2012-05-24 19:11:20 UTC (rev 41369)
@@ -0,0 +1,17 @@
+<project default="build.requirement">
+ <import file="../generic/build.xml" />
+
+ <target name="download.requirement" depends="download.archive">
+ <!-- patch from JBPAPP-4385 and JBDS-1222 -->
+ <!-- DISABLED - probably not needed for EAP 5.1.0
+ <echo level="info">Patch ${build.archive} from ${build.archive.patch}</echo>
+ <if>
+ <not>
+ <available file="${driver.dest}/${build.archive.patch}" type="file" />
+ </not>
+ <then>
+ <copy file="${build.archive.patch}" todir="${driver.dest}" overwrite="false" />
+ </then>
+ </if> -->
+ </target>
+</project>
12 years, 7 months
JBoss Tools SVN: r41368 - trunk/build/aggregate/site.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2012-05-24 15:11:12 -0400 (Thu, 24 May 2012)
New Revision: 41368
Modified:
trunk/build/aggregate/site/site.xml
Log:
reorder site contents to match JBDS version
Modified: trunk/build/aggregate/site/site.xml
===================================================================
--- trunk/build/aggregate/site/site.xml 2012-05-24 18:41:20 UTC (rev 41367)
+++ trunk/build/aggregate/site/site.xml 2012-05-24 19:11:12 UTC (rev 41368)
@@ -159,34 +159,34 @@
<category name="AbridgedTools" />
<category name="MavenTools" />
</feature>
- <feature url="features/org.jboss.tools.maven.jsf.feature_0.0.0.jar" id="org.jboss.tools.maven.jsf.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.maven.jaxrs.feature_0.0.0.jar" id="org.jboss.tools.maven.jaxrs.feature" version="0.0.0">
<category name="AbridgedTools" />
<category name="MavenTools" />
</feature>
- <feature url="features/org.jboss.tools.maven.portlet.feature_0.0.0.jar" id="org.jboss.tools.maven.portlet.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.maven.jpa.feature_0.0.0.jar" id="org.jboss.tools.maven.jpa.feature" version="0.0.0">
<category name="AbridgedTools" />
<category name="MavenTools" />
- </feature>
- <feature url="features/org.jboss.tools.maven.seam.feature_0.0.0.jar" id="org.jboss.tools.maven.seam.feature" version="0.0.0">
+ </feature>
+ <feature url="features/org.jboss.tools.maven.jsf.feature_0.0.0.jar" id="org.jboss.tools.maven.jsf.feature" version="0.0.0">
<category name="AbridgedTools" />
- <category name="MavenTools"/>
+ <category name="MavenTools" />
</feature>
- <feature url="features/org.jboss.tools.maven.project.examples.feature_0.0.0.jar" id="org.jboss.tools.maven.project.examples.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.maven.portlet.feature_0.0.0.jar" id="org.jboss.tools.maven.portlet.feature" version="0.0.0">
<category name="AbridgedTools" />
<category name="MavenTools" />
</feature>
- <feature url="features/org.jboss.tools.maven.jaxrs.feature_0.0.0.jar" id="org.jboss.tools.maven.jaxrs.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.maven.profiles.feature_0.0.0.jar" id="org.jboss.tools.maven.profiles.feature" version="0.0.0">
<category name="AbridgedTools" />
<category name="MavenTools" />
</feature>
- <feature url="features/org.jboss.tools.maven.jpa.feature_0.0.0.jar" id="org.jboss.tools.maven.jpa.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.maven.project.examples.feature_0.0.0.jar" id="org.jboss.tools.maven.project.examples.feature" version="0.0.0">
<category name="AbridgedTools" />
<category name="MavenTools" />
</feature>
- <feature url="features/org.jboss.tools.maven.profiles.feature_0.0.0.jar" id="org.jboss.tools.maven.profiles.feature" version="0.0.0">
+ <feature url="features/org.jboss.tools.maven.seam.feature_0.0.0.jar" id="org.jboss.tools.maven.seam.feature" version="0.0.0">
<category name="AbridgedTools" />
- <category name="MavenTools" />
- </feature>
+ <category name="MavenTools"/>
+ </feature>
<feature url="features/org.jboss.tools.maven.sourcelookup.feature_0.0.0.jar" id="org.jboss.tools.maven.sourcelookup.feature" version="0.0.0">
<category name="AbridgedTools" />
<category name="MavenTools" />
@@ -210,7 +210,7 @@
<feature url="features/org.jboss.tools.common.jdt.feature_0.0.0.jar" id="org.jboss.tools.common.jdt.feature" version="0.0.0">
<category name="AbridgedTools" />
- <category name="GeneralTools"/>
+ <category name="GeneralTools"/>
</feature>
<!-- include but do not categorize -->
12 years, 7 months
JBoss Tools SVN: r41367 - in trunk: maven/features/org.jboss.tools.maven.gwt.feature and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2012-05-24 14:41:20 -0400 (Thu, 24 May 2012)
New Revision: 41367
Modified:
trunk/central/plugins/org.jboss.tools.central.discovery/plugin.xml
trunk/maven/features/org.jboss.tools.maven.gwt.feature/feature.xml
Log:
add connector for org.jboss.tools.maven.gwt.feature, which includes com.google.gdt.eclipse.suite.e37.feature; add requirement on org.jboss.tools.maven.gwt.feature to com.google.gdt.eclipse.suite.e37.feature too (provides com.google.gwt.eclipse.core 2.5.0 dependency)
Modified: trunk/central/plugins/org.jboss.tools.central.discovery/plugin.xml
===================================================================
--- trunk/central/plugins/org.jboss.tools.central.discovery/plugin.xml 2012-05-24 18:17:36 UTC (rev 41366)
+++ trunk/central/plugins/org.jboss.tools.central.discovery/plugin.xml 2012-05-24 18:41:20 UTC (rev 41367)
@@ -53,6 +53,25 @@
<connectorDescriptor
categoryId="org.jboss.tools.central.discovery.maven"
groupId="org.jboss.tools.central.discovery.maven.configurators"
+ description="JBoss Maven GWT Configurator"
+ id="org.jboss.tools.maven.gwt.feature"
+ kind="task"
+ license="Free, EPL"
+ name="JBoss Maven GWT Configurator"
+ provider="JBoss by Red Hat"
+ siteUrl="http://download.jboss.org/jbosstools/updates/development/indigo/central/c...">
+ <iu id="org.jboss.tools.maven.gwt.feature"/>
+ <iu id="com.google.gdt.eclipse.suite.e37.feature"/>
+ <icon
+ image32="images/jbosstools_icon32.png">
+ </icon>
+ <overview
+ url="http://www.jboss.org/tools">
+ </overview>
+ </connectorDescriptor>
+ <connectorDescriptor
+ categoryId="org.jboss.tools.central.discovery.maven"
+ groupId="org.jboss.tools.central.discovery.maven.configurators"
description="JBoss Maven Hibernate Configurator"
id="org.jboss.tools.maven.hibernate.feature"
kind="task"
Modified: trunk/maven/features/org.jboss.tools.maven.gwt.feature/feature.xml
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.gwt.feature/feature.xml 2012-05-24 18:17:36 UTC (rev 41366)
+++ trunk/maven/features/org.jboss.tools.maven.gwt.feature/feature.xml 2012-05-24 18:41:20 UTC (rev 41367)
@@ -21,6 +21,7 @@
<requires>
<import feature="org.eclipse.m2e.feature" version="0.13.0" match="greaterOrEqual"/>
<import feature="org.maven.ide.eclipse.wtp.feature" version="0.13.0" match="greaterOrEqual"/>
+ <import feature="com.google.gdt.eclipse.suite.e37.feature" version="2.5.0" match="greaterOrEqual"/>
</requires>
<plugin
12 years, 7 months
JBoss Tools SVN: r41366 - trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/console.
by jbosstools-commits@lists.jboss.org
Author: koen.aers(a)jboss.com
Date: 2012-05-24 14:17:36 -0400 (Thu, 24 May 2012)
New Revision: 41366
Modified:
trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/console/ForgeCommandProcessor.java
Log:
JBIDE-11124: Removing project via forge is not working properly
-> additional hack to make sure there is no refresh prior to postprocessing the command
Modified: trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/console/ForgeCommandProcessor.java
===================================================================
--- trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/console/ForgeCommandProcessor.java 2012-05-24 18:11:59 UTC (rev 41365)
+++ trunk/forge/plugins/org.jboss.tools.forge.ui/src/org/jboss/tools/forge/ui/console/ForgeCommandProcessor.java 2012-05-24 18:17:36 UTC (rev 41366)
@@ -47,7 +47,9 @@
if (!commandString.startsWith(" EC: ")) return;
String command = getCommand(commandString);
if (command == null) return;
- refreshWorkspace();
+ if (!("rm".equals(command))) {
+ refreshWorkspace();
+ }
final ForgeCommandPostProcessor postProcessor = getPostProcessors().get(command);
Display.getDefault().syncExec(new Runnable() {
@Override
12 years, 7 months
JBoss Tools SVN: r41365 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2012-05-24 14:11:59 -0400 (Thu, 24 May 2012)
New Revision: 41365
Added:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectEditorErrorTickUpdater.java
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java
Log:
JBIDE-11915
https://issues.jboss.org/browse/JBIDE-11915
Editor tab of JBoss Tools editor is decorated with warning/error image if edited file has warning/error markers.
Added: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectEditorErrorTickUpdater.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectEditorErrorTickUpdater.java (rev 0)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectEditorErrorTickUpdater.java 2012-05-24 18:11:59 UTC (rev 41365)
@@ -0,0 +1,85 @@
+/*******************************************************************************
+ * Copyright (c) 2012 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.common.editor;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.Assert;
+import org.eclipse.jdt.internal.ui.JavaPlugin;
+import org.eclipse.jdt.internal.ui.viewsupport.IProblemChangedListener;
+import org.eclipse.jdt.internal.ui.viewsupport.JavaElementImageProvider;
+import org.eclipse.jdt.internal.ui.viewsupport.JavaUILabelProvider;
+import org.eclipse.jdt.ui.ProblemsLabelDecorator;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.IFileEditorInput;
+
+public class ObjectEditorErrorTickUpdater implements IProblemChangedListener {
+
+ private ObjectMultiPageEditor fJavaEditor;
+ private JavaUILabelProvider fLabelProvider;
+
+ public ObjectEditorErrorTickUpdater(ObjectMultiPageEditor editor) {
+ Assert.isNotNull(editor);
+ fJavaEditor= editor;
+ fLabelProvider= new JavaUILabelProvider(0, JavaElementImageProvider.SMALL_ICONS);
+ fLabelProvider.addLabelDecorator(new ProblemsLabelDecorator(null));
+ JavaPlugin.getDefault().getProblemMarkerManager().addListener(this);
+ }
+
+ /*
+ * @see IProblemChangedListener#problemsChanged(IResource[], boolean)
+ */
+ public void problemsChanged(IResource[] changedResources, boolean isMarkerChange) {
+ if (!isMarkerChange)
+ return;
+
+ IEditorInput input= fJavaEditor.getEditorInput();
+ if (input instanceof IFileEditorInput) {
+ IFile resource = ((IFileEditorInput)input).getFile();
+ if (resource != null) {
+ for (int i = 0; i < changedResources.length; i++) {
+ if (changedResources[i].equals(resource)) {
+ updateEditorImage(resource);
+ }
+ }
+ }
+ }
+ }
+
+ public void updateEditorImage(IFile jelement) {
+ Image titleImage= fJavaEditor.getTitleImage();
+ if (titleImage == null) {
+ return;
+ }
+ Image newImage = fLabelProvider.getImage(jelement);
+ if (titleImage != newImage) {
+ postImageChange(newImage);
+ }
+ }
+
+ private void postImageChange(final Image newImage) {
+ Shell shell= fJavaEditor.getEditorSite().getShell();
+ if (shell != null && !shell.isDisposed()) {
+ shell.getDisplay().syncExec(new Runnable() {
+ public void run() {
+ fJavaEditor.updatedTitleImage(newImage);
+ }
+ });
+ }
+ }
+
+ public void dispose() {
+ fLabelProvider.dispose();
+ JavaPlugin.getDefault().getProblemMarkerManager().removeListener(this);
+ }
+}
Property changes on: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectEditorErrorTickUpdater.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java 2012-05-24 18:07:27 UTC (rev 41364)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/editor/ObjectMultiPageEditor.java 2012-05-24 18:11:59 UTC (rev 41365)
@@ -28,6 +28,7 @@
import org.eclipse.jface.text.ITextSelection;
import org.eclipse.jface.viewers.*;
import org.eclipse.swt.events.*;
+import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.*;
import org.eclipse.ui.*;
import org.eclipse.ui.actions.WorkspaceModifyOperation;
@@ -79,9 +80,14 @@
private ActivationListener fActivationListener= new ActivationListener();
protected XModelObjectSelectionProvider selectionProvider = new XModelObjectSelectionProvider();
protected NatureChecker natureChecker = new NatureChecker();
+ protected ObjectEditorErrorTickUpdater errorTickUpdater;
private QualifiedName persistentTabQualifiedName = new QualifiedName("", "Selected_tab"); //$NON-NLS-1$ //$NON-NLS-2$
int selectedPageIndex = 0;
+
+ public ObjectMultiPageEditor() {
+ errorTickUpdater = new ObjectEditorErrorTickUpdater(this);
+ }
public void init(IEditorSite site, IEditorInput input) throws PartInitException {
natureChecker.check(input, getSupportedNatures(), getNatureWarningMessageKey());
@@ -103,6 +109,10 @@
} else {
firePropertyChange(IEditorPart.PROP_INPUT);
}
+ if (errorTickUpdater != null && getFile() != null) {
+ errorTickUpdater.updateEditorImage(getFile());
+ }
+
}
protected IEditorSite createSite(IEditorPart editor) {
@@ -504,6 +514,10 @@
}
if (outline!=null) outline.dispose();
outline = null;
+ if(errorTickUpdater != null) {
+ errorTickUpdater.dispose();
+ errorTickUpdater = null;
+ }
}
protected void initEditors() {
@@ -1062,6 +1076,10 @@
});
}
+ public void updatedTitleImage(Image image) {
+ setTitleImage(image);
+ }
+
class PostMultiPageEditorSite extends MultiPageEditorSite {
private ISelectionChangedListener postSelectionChangedListener = null;
12 years, 7 months