JBoss Tools SVN: r8723 - trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/common/test/util.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-06-11 14:51:43 -0400 (Wed, 11 Jun 2008)
New Revision: 8723
Modified:
trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/common/test/util/TestProjectProvider.java
Log:
Off by one error
Modified: trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/common/test/util/TestProjectProvider.java
===================================================================
--- trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/common/test/util/TestProjectProvider.java 2008-06-11 18:43:54 UTC (rev 8722)
+++ trunk/common/tests/org.jboss.tools.common.test/src/org/jboss/tools/common/test/util/TestProjectProvider.java 2008-06-11 18:51:43 UTC (rev 8723)
@@ -62,7 +62,7 @@
if(projectPath == null) {
projectPath = "/projects/" + name;
} else if(name == null) {
- name = projectPath.substring(projectPath.lastIndexOf('/'));
+ name = projectPath.substring(projectPath.lastIndexOf('/')+1);
}
this.makeCopy = makeCopy;
init(bundleName, projectPath, name);
17 years, 10 months
JBoss Tools SVN: r8722 - in branches/jbosstools-2.1.x/core: tests/org.jboss.ide.eclipse.archives.test/inputs/projects and 11 other directories.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2008-06-11 14:43:54 -0400 (Wed, 11 Jun 2008)
New Revision: 8722
Added:
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.classpath
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.packages
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.project
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/org.eclipse.jdt.core.prefs
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/org.eclipse.jst.common.project.facet.core.prefs
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/org.eclipse.wst.common.component
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/org.eclipse.wst.common.project.facet.core.xml
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/java/
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/java/com/
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/java/com/acme/
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/java/com/acme/mx/
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/java/com/acme/mx/ManagementAgent.java
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/java/com/acme/mx/ManagementAgentMBean.java
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/resources/
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/resources/META-INF/
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/resources/META-INF/jboss-service.xml
branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/src/org/jboss/ide/eclipse/archives/test/projects/JBIDE2296Test.java
Modified:
branches/jbosstools-2.1.x/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/internal/ModelTruezipBridge.java
Log:
JBIDE-2296
Modified: branches/jbosstools-2.1.x/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/internal/ModelTruezipBridge.java
===================================================================
--- branches/jbosstools-2.1.x/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/internal/ModelTruezipBridge.java 2008-06-11 18:36:42 UTC (rev 8721)
+++ branches/jbosstools-2.1.x/core/plugins/org.jboss.ide.eclipse.archives.core/src/main/org/jboss/ide/eclipse/archives/core/util/internal/ModelTruezipBridge.java 2008-06-11 18:43:54 UTC (rev 8722)
@@ -244,9 +244,10 @@
boolean exploded = ((IArchive)node).isExploded();
ArchiveDetector detector = exploded ? ArchiveDetector.NULL : TrueZipUtil.getJarArchiveDetector();
if( parentFile == null ) {
+ // we're a root archive, and so the destination folder must be a real folder
IPath p = node2.getGlobalDestinationPath();
if( p == null ) return null;
- return new File(p.append(node2.getName()).toOSString(), detector);
+ parentFile = new File(p.toOSString(), ArchiveDetector.NULL);
}
return new File(parentFile, node2.getName(), detector);
}
Added: branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.classpath
===================================================================
--- branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.classpath (rev 0)
+++ branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.classpath 2008-06-11 18:43:54 UTC (rev 8722)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src/main/java"/>
+ <classpathentry kind="src" path="src/main/resources"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.5.0_12"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/eap-4.3.0.ga"/>
+ <classpathentry kind="output" path="output/eclipse"/>
+</classpath>
Added: branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.packages
===================================================================
--- branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.packages (rev 0)
+++ branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.packages 2008-06-11 18:43:54 UTC (rev 8722)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<packages>
+ <package name="acme-jmx-connector.sar" type="jar" todir="/JBIDE2296/output/dist" exploded="false" inWorkspace="true">
+ <fileset dir="/JBIDE2296/output/eclipse" includes="**" inWorkspace="true" flatten="false">
+ <properties></properties>
+ </fileset>
+ <properties>
+ <property name="org.jboss.ide.eclipse.as.core.packages.ModuleIDPropertyKey" value="1209490489170"></property>
+ </properties>
+ </package>
+ <properties></properties>
+</packages>
Added: branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.project
===================================================================
--- branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.project (rev 0)
+++ branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.project 2008-06-11 18:43:54 UTC (rev 8722)
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>JBIDE2296</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.jboss.ide.eclipse.archives.core.archivesBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.jboss.ide.eclipse.archives.core.archivesNature</nature>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
+ </natures>
+</projectDescription>
Added: branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/org.eclipse.jdt.core.prefs 2008-06-11 18:43:54 UTC (rev 8722)
@@ -0,0 +1,7 @@
+#Tue Apr 29 18:58:36 CEST 2008
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Added: branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/org.eclipse.jst.common.project.facet.core.prefs
===================================================================
--- branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/org.eclipse.jst.common.project.facet.core.prefs (rev 0)
+++ branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/org.eclipse.jst.common.project.facet.core.prefs 2008-06-11 18:43:54 UTC (rev 8722)
@@ -0,0 +1,4 @@
+#Tue Apr 29 18:58:37 CEST 2008
+classpath.helper/org.eclipse.jdt.launching.JRE_CONTAINER\:\:org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType\:\:jdk1.5.0_12/owners=jst.java\:5.0
+classpath.helper/org.eclipse.jst.server.core.container\:\:org.jboss.ide.eclipse.as.core.server.runtime.runtimeTarget\:\:eap-4.3.0.ga-176976/owners=jst.utility\:1.0
+eclipse.preferences.version=1
Added: branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/org.eclipse.wst.common.component
===================================================================
--- branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/org.eclipse.wst.common.component (rev 0)
+++ branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/org.eclipse.wst.common.component 2008-06-11 18:43:54 UTC (rev 8722)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="jmx-connector">
+ <wb-resource deploy-path="/" source-path="/src/main/java"/>
+ <wb-resource deploy-path="/" source-path="/src/main/resources"/>
+ </wb-module>
+</project-modules>
Added: branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/.settings/org.eclipse.wst.common.project.facet.core.xml 2008-06-11 18:43:54 UTC (rev 8722)
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <runtime name="eap-4.3.0.ga-176976"/>
+ <fixed facet="jst.java"/>
+ <fixed facet="jst.utility"/>
+ <installed facet="jst.java" version="5.0"/>
+ <installed facet="jst.utility" version="1.0"/>
+</faceted-project>
Added: branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/java/com/acme/mx/ManagementAgent.java
===================================================================
--- branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/java/com/acme/mx/ManagementAgent.java (rev 0)
+++ branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/java/com/acme/mx/ManagementAgent.java 2008-06-11 18:43:54 UTC (rev 8722)
@@ -0,0 +1,118 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package com.acme.mx;
+
+import java.lang.management.ManagementFactory;
+import java.net.InetAddress;
+import java.net.UnknownHostException;
+import java.rmi.registry.LocateRegistry;
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.management.MBeanServer;
+import javax.management.remote.JMXConnectorServer;
+import javax.management.remote.JMXConnectorServerFactory;
+import javax.management.remote.JMXServiceURL;
+
+import org.jboss.logging.Logger;
+
+/**
+ * ManagementAgent.
+ *
+ * @author <a href="mailto:galder.zamarreno@jboss.com">Galder Zamarreno</a>
+ */
+public class ManagementAgent implements ManagementAgentMBean
+{
+ private static final Logger log = Logger.getLogger(ManagementAgent.class);
+
+ private static final MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
+
+ private int registryPort;
+
+ private int proxyPort;
+
+ private InetAddress bindAddress;
+
+ private JMXConnectorServer connector;
+
+ public void start() throws Exception
+ {
+ /* Ensure cryptographically strong random number generator used
+ * to choose the object number - see java.rmi.server.ObjID */
+ System.setProperty("java.rmi.server.randomIDs", "true");
+
+ /* Start an RMI registry on given registry port */
+ log.debug("Create RMI registry on port " + registryPort);
+ LocateRegistry.createRegistry(registryPort);
+
+ /* Environment map. */
+ log.debug("Initialize the environment map");
+ Map<String,?> env = new HashMap<String,Object>();
+
+ /* Create an RMI connector server. As specified in the JMXServiceURL the
+ * RMIServer stub will be registered in the RMI registry running in the
+ * given host and given registry and proxy ports, with the name "jmxrmi".*/
+
+ String host = bindAddress.getHostAddress();
+
+ log.debug("Create an RMI connector server");
+ JMXServiceURL url = new JMXServiceURL("service:jmx:rmi://" + host + ":" +
+ proxyPort + "/jndi/rmi://" + host + ":" + registryPort + "/jmxrmi");
+ connector = JMXConnectorServerFactory.newJMXConnectorServer(url, env, mbs);
+ connector.start();
+ }
+
+ public void stop() throws Exception
+ {
+ connector.stop();
+ }
+
+ public int getRegistryPort()
+ {
+ return registryPort;
+ }
+
+ public void setRegistryPort(int port)
+ {
+ registryPort = port;
+ }
+
+ public int getProxyPort()
+ {
+ return proxyPort;
+ }
+
+ public void setProxyPort(int port)
+ {
+ proxyPort = port;
+ }
+
+ public String getBindAddress()
+ {
+ return bindAddress.getHostAddress();
+ }
+
+ public void setBindAddress(String host) throws UnknownHostException
+ {
+ bindAddress = InetAddress.getByName(host);
+ }
+}
Added: branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/java/com/acme/mx/ManagementAgentMBean.java
===================================================================
--- branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/java/com/acme/mx/ManagementAgentMBean.java (rev 0)
+++ branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/java/com/acme/mx/ManagementAgentMBean.java 2008-06-11 18:43:54 UTC (rev 8722)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2008, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package com.acme.mx;
+
+import java.net.UnknownHostException;
+
+/**
+ * ManagementAgentMBean.
+ *
+ * @author <a href="mailto:galder.zamarreno@jboss.com">Galder Zamarreno</a>
+ */
+public interface ManagementAgentMBean
+{
+ int getRegistryPort();
+
+ void setRegistryPort(int port);
+
+ int getProxyPort();
+
+ void setProxyPort(int port);
+
+ String getBindAddress();
+
+ void setBindAddress(String host) throws UnknownHostException;
+
+ // Lifecycle callbacks
+
+ void start() throws Exception;
+
+ void stop() throws Exception;
+}
Added: branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/resources/META-INF/jboss-service.xml
===================================================================
--- branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/resources/META-INF/jboss-service.xml (rev 0)
+++ branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/inputs/projects/JBIDE2296/src/main/resources/META-INF/jboss-service.xml 2008-06-11 18:43:54 UTC (rev 8722)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<server>
+ <!-- Allows JConsole to be access via user defined registry and proxy ports.
+ This is necessary in order to bypass firewalls doing NAT. Format is:
+ service:jmx:rmi://${bindAddress}:${proxyPort}/jndi/rmi://${bindAddress}:${registryPort}/jmxrmi
+ -->
+ <mbean code="com.acme.mx.ManagementAgent" name="com.acme:service=ManagementAgent">
+ <attribute name="BindAddress">${jboss.bind.address}</attribute>
+ <attribute name="RegistryPort">${com.sun.management.jmxremote.port:21001}</attribute>
+ <attribute name="ProxyPort">${com.acme.jmxremote.proxy.port:21002}</attribute>
+ </mbean>
+</server>
\ No newline at end of file
Added: branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/src/org/jboss/ide/eclipse/archives/test/projects/JBIDE2296Test.java
===================================================================
--- branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/src/org/jboss/ide/eclipse/archives/test/projects/JBIDE2296Test.java (rev 0)
+++ branches/jbosstools-2.1.x/core/tests/org.jboss.ide.eclipse.archives.test/src/org/jboss/ide/eclipse/archives/test/projects/JBIDE2296Test.java 2008-06-11 18:43:54 UTC (rev 8722)
@@ -0,0 +1,37 @@
+package org.jboss.ide.eclipse.archives.test.projects;
+
+import java.io.File;
+
+import junit.framework.TestCase;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.jboss.ide.eclipse.archives.test.ArchivesTest;
+import org.jboss.tools.common.test.util.TestProjectProvider;
+
+public class JBIDE2296Test extends TestCase {
+ private TestProjectProvider provider;
+ private IProject project;
+
+ protected void setUp() throws Exception {
+ provider = new TestProjectProvider(ArchivesTest.PLUGIN_ID,
+ "inputs" + Path.SEPARATOR + "projects" + Path.SEPARATOR + "JBIDE2296",
+ null, true);
+ project = provider.getProject();
+ project.refreshLocal(IResource.DEPTH_INFINITE, new NullProgressMonitor());
+ }
+
+ protected void tearDown() throws Exception {
+ provider.dispose();
+ }
+
+ public void testJBIDE2311() {
+ IPath p = project.getLocation().append("output");
+ File pFile = p.toFile();
+ assertFalse(pFile.isFile());
+ assertTrue(pFile.isDirectory());
+ }
+}
17 years, 10 months
JBoss Tools SVN: r8721 - trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2008-06-11 14:36:42 -0400 (Wed, 11 Jun 2008)
New Revision: 8721
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE675Test.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-675
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE675Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE675Test.java 2008-06-11 13:20:53 UTC (rev 8720)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/JBIDE675Test.java 2008-06-11 18:36:42 UTC (rev 8721)
@@ -221,8 +221,8 @@
throw getException();
}
}
-
- public void testClosePageWhenBackgroundJobIsRun() throws Throwable {
+ //TODO Max Areshkau Find possability close editor when update visual editor job is running,
+ public void _testClosePageWhenBackgroundJobIsRun() throws Throwable {
TestUtil.waitForJobs();
17 years, 10 months
JBoss Tools SVN: r8720 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2008-06-11 09:20:53 -0400 (Wed, 11 Jun 2008)
New Revision: 8720
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties
Log:
revert changes back - cause unused/dead code relevant only for the patches
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java 2008-06-11 12:14:44 UTC (rev 8719)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java 2008-06-11 13:20:53 UTC (rev 8720)
@@ -36,7 +36,6 @@
public static String HibernateConsolePlugin_no_message_1;
public static String HibernateConsolePlugin_no_message_2;
public static String HibernateConsolePlugin_problem_to_get_flag;
- public static String HibernateConsolePlugin_could_not_open_hibernate_properties_editor;
//
public static String AddConfigurationAction_add_config;
public static String AddConfigurationAction_hibernate;
@@ -63,9 +62,6 @@
public static String EditConsoleConfiguration_no_launch_cfg_matched;
public static String EditConsoleConfiguration_problem_adding_console_cfg;
public static String ExecuteQueryAction_run_hql;
- public static String HibernatePropertiesAction_hibernate_properties_editor;
- public static String HibernatePropertiesAction_open_hibernate_properties_editor;
- public static String HibernatePropertiesAction_exception_while_trying_to_open_hibernate_properties_editor;
public static String HQLScratchpadAction_hql_editor;
public static String HQLScratchpadAction_open_hql_editor;
public static String JTidyFormatAction_do_you_want_format_xml_files_with_jtidy;
@@ -242,11 +238,6 @@
public static String NewConfigurationWizardPage_session_factory_name;
public static String NewConfigurationWizardPage_this_wizard_creates;
public static String NewConfigurationWizardPage_user_name;
- public static String NewConfigurationWizardPage_test_connection;
- public static String NewConfigurationWizardPage_error;
- public static String NewConfigurationWizardPage_ping_failed;
- public static String NewConfigurationWizardPage_success;
- public static String NewConfigurationWizardPage_ping_succeeded;
public static String NewHibernateMappingFilePage_browse;
public static String NewHibernateMappingFilePage_class_to_map;
public static String NewHibernateMappingFilePage_container;
@@ -420,8 +411,6 @@
public static String CodeGenerationSettingsTab_use_existing;
public static String CodeGenerationSettingsTab_workspace;
public static String ConsoleConfigurationLaunchDelegate_direct_launch_not_supported;
- public static String ConnectionProfileCtrl_new;
- public static String ConnectionProfileCtrl_edit;
public static String ConsoleConfigurationMainTab_annotations;
public static String ConsoleConfigurationMainTab_cfg_xml;
public static String ConsoleConfigurationMainTab_choose_file_to_use_as_hibernate_cfg_xml;
@@ -455,10 +444,6 @@
public static String ConsoleConfigurationMainTab_type;
public static String ConsoleConfigurationMainTab_use_existing;
public static String ConsoleConfigurationMainTab_wizard_page;
- public static String ConsoleConfigurationMainTab_connection_profile;
- public static String ConsoleConfigurationMainTab_import_db_connection;
- public static String ConsoleConfigurationMainTab_use_jpa_project_setting;
- public static String ConsoleConfigurationMainTab_use_connection_profile;
public static String ConsoleConfigurationMappingsTab_add_hbm_xml_file;
public static String ConsoleConfigurationMappingsTab_add_hibernate_mapping_file;
public static String ConsoleConfigurationMappingsTab_additional_mapping_files;
@@ -514,16 +499,7 @@
public static String HibernateNature_exception_when_trying_to_locate_hibernate_nature;
public static String HibernateNature_reading_database_metadata;
public static String HibernateNature_reading_database_metadata_for;
- public static String HibernateNature_reading_database_table_column_names_for;
- public static String HibernateNature_reading_database_table_column_names;
//
- public static String HibernatePropertiesEditor_source;
- public static String HibernatePropertiesEditor_properties;
- public static String HibernatePropertiesFileDocumentProvider_this_is_auto_generated_header_do_not_edit_it;
- public static String HibernatePropertiesFileDocumentProvider_could_not_store_properties_into_output_stream;
- public static String HibernatePropertiesFileDocumentProvider_could_not_load_file;
- public static String HibernatePropertiesFileDocumentProvider_could_not_load_stream;
- //
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, HibernateConsoleMessages.class);
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2008-06-11 12:14:44 UTC (rev 8719)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2008-06-11 13:20:53 UTC (rev 8720)
@@ -27,7 +27,6 @@
HibernateConsolePlugin_no_message_1=: <no message>
HibernateConsolePlugin_no_message_2=<No message>
HibernateConsolePlugin_problem_to_get_flag=Problem to get flag
-HibernateConsolePlugin_could_not_open_hibernate_properties_editor=Could not open Hibernate Properties editor for console:
AddConfigurationAction_add_config=Add Configuration...
AddConfigurationAction_hibernate=hibernate
@@ -54,9 +53,6 @@
EditConsoleConfiguration_no_launch_cfg_matched=No launch configuration matched the configuration named
EditConsoleConfiguration_problem_adding_console_cfg=Problem adding a console configuration
ExecuteQueryAction_run_hql=Run HQL
-HibernatePropertiesAction_hibernate_properties_editor=Hibernate Properties Editor
-HibernatePropertiesAction_open_hibernate_properties_editor=Open Hibernate Properties Editor
-HibernatePropertiesAction_exception_while_trying_to_open_hibernate_properties_editor=Exception while trying to open Hibernate Properties Editor
HQLScratchpadAction_hql_editor=HQL Editor
HQLScratchpadAction_open_hql_editor=Open HQL Editor
JTidyFormatAction_do_you_want_format_xml_files_with_jtidy=Do you want to format {0} xml files with JTidy?
@@ -233,11 +229,6 @@
NewConfigurationWizardPage_session_factory_name=&Session factory name:
NewConfigurationWizardPage_this_wizard_creates=This wizard creates a new configuration file to use with Hibernate.
NewConfigurationWizardPage_user_name=User&name:
-NewConfigurationWizardPage_test_connection=Test Connection
-NewConfigurationWizardPage_error=Error
-NewConfigurationWizardPage_ping_failed=Ping failed!
-NewConfigurationWizardPage_success=Success
-NewConfigurationWizardPage_ping_succeeded=Ping succeeded!
NewHibernateMappingFilePage_browse=Browse...
NewHibernateMappingFilePage_class_to_map=Class to &map:
NewHibernateMappingFilePage_container=&Container:
@@ -411,8 +402,6 @@
CodeGenerationSettingsTab_use_existing=Use &existing...
CodeGenerationSettingsTab_workspace=&Workspace...
ConsoleConfigurationLaunchDelegate_direct_launch_not_supported=Direct launch not supported
-ConnectionProfileCtrl_new=New...
-ConnectionProfileCtrl_edit=Edit...
ConsoleConfigurationMainTab_annotations=Annotations (jdk 1.5+)
ConsoleConfigurationMainTab_cfg_xml=cfg.xml
ConsoleConfigurationMainTab_choose_file_to_use_as_hibernate_cfg_xml=Choose file to use as hibernate.cfg.xml
@@ -446,10 +435,6 @@
ConsoleConfigurationMainTab_type=Type:
ConsoleConfigurationMainTab_use_existing=Use &existing...
ConsoleConfigurationMainTab_wizard_page=wizardPage
-ConsoleConfigurationMainTab_connection_profile=Connection profile:
-ConsoleConfigurationMainTab_import_db_connection=Import DB Connection
-ConsoleConfigurationMainTab_use_jpa_project_setting=Use JPA project setting
-ConsoleConfigurationMainTab_use_connection_profile=Use connection profile:
ConsoleConfigurationMappingsTab_add_hbm_xml_file=Add hbm.xml file
ConsoleConfigurationMappingsTab_add_hibernate_mapping_file=Add a Hibernate Mapping file
ConsoleConfigurationMappingsTab_additional_mapping_files=Additonal mapping files (not listed in cfg.xml)
@@ -505,12 +490,3 @@
HibernateNature_exception_when_trying_to_locate_hibernate_nature=Exception when trying to locate Hibernate Nature
HibernateNature_reading_database_metadata=Reading database metadata
HibernateNature_reading_database_metadata_for=Reading database metadata for
-HibernateNature_reading_database_table_column_names_for=Reading database table & column names for
-HibernateNature_reading_database_table_column_names=Reading database table & column names
-
-HibernatePropertiesEditor_source=Source
-HibernatePropertiesEditor_properties=Properties
-HibernatePropertiesFileDocumentProvider_this_is_auto_generated_header_do_not_edit_it=This is auto generated header. Do not edit it.
-HibernatePropertiesFileDocumentProvider_could_not_store_properties_into_output_stream=Could not store properties into output stream.
-HibernatePropertiesFileDocumentProvider_could_not_load_file=Could not load file.
-HibernatePropertiesFileDocumentProvider_could_not_load_stream=Could not load stream.
17 years, 10 months
JBoss Tools SVN: r8719 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2008-06-11 08:14:44 -0400 (Wed, 11 Jun 2008)
New Revision: 8719
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties
Log:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-500 - add more string literals for patches
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java 2008-06-11 11:15:54 UTC (rev 8718)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java 2008-06-11 12:14:44 UTC (rev 8719)
@@ -36,6 +36,7 @@
public static String HibernateConsolePlugin_no_message_1;
public static String HibernateConsolePlugin_no_message_2;
public static String HibernateConsolePlugin_problem_to_get_flag;
+ public static String HibernateConsolePlugin_could_not_open_hibernate_properties_editor;
//
public static String AddConfigurationAction_add_config;
public static String AddConfigurationAction_hibernate;
@@ -62,6 +63,9 @@
public static String EditConsoleConfiguration_no_launch_cfg_matched;
public static String EditConsoleConfiguration_problem_adding_console_cfg;
public static String ExecuteQueryAction_run_hql;
+ public static String HibernatePropertiesAction_hibernate_properties_editor;
+ public static String HibernatePropertiesAction_open_hibernate_properties_editor;
+ public static String HibernatePropertiesAction_exception_while_trying_to_open_hibernate_properties_editor;
public static String HQLScratchpadAction_hql_editor;
public static String HQLScratchpadAction_open_hql_editor;
public static String JTidyFormatAction_do_you_want_format_xml_files_with_jtidy;
@@ -238,6 +242,11 @@
public static String NewConfigurationWizardPage_session_factory_name;
public static String NewConfigurationWizardPage_this_wizard_creates;
public static String NewConfigurationWizardPage_user_name;
+ public static String NewConfigurationWizardPage_test_connection;
+ public static String NewConfigurationWizardPage_error;
+ public static String NewConfigurationWizardPage_ping_failed;
+ public static String NewConfigurationWizardPage_success;
+ public static String NewConfigurationWizardPage_ping_succeeded;
public static String NewHibernateMappingFilePage_browse;
public static String NewHibernateMappingFilePage_class_to_map;
public static String NewHibernateMappingFilePage_container;
@@ -411,6 +420,8 @@
public static String CodeGenerationSettingsTab_use_existing;
public static String CodeGenerationSettingsTab_workspace;
public static String ConsoleConfigurationLaunchDelegate_direct_launch_not_supported;
+ public static String ConnectionProfileCtrl_new;
+ public static String ConnectionProfileCtrl_edit;
public static String ConsoleConfigurationMainTab_annotations;
public static String ConsoleConfigurationMainTab_cfg_xml;
public static String ConsoleConfigurationMainTab_choose_file_to_use_as_hibernate_cfg_xml;
@@ -444,6 +455,10 @@
public static String ConsoleConfigurationMainTab_type;
public static String ConsoleConfigurationMainTab_use_existing;
public static String ConsoleConfigurationMainTab_wizard_page;
+ public static String ConsoleConfigurationMainTab_connection_profile;
+ public static String ConsoleConfigurationMainTab_import_db_connection;
+ public static String ConsoleConfigurationMainTab_use_jpa_project_setting;
+ public static String ConsoleConfigurationMainTab_use_connection_profile;
public static String ConsoleConfigurationMappingsTab_add_hbm_xml_file;
public static String ConsoleConfigurationMappingsTab_add_hibernate_mapping_file;
public static String ConsoleConfigurationMappingsTab_additional_mapping_files;
@@ -499,7 +514,16 @@
public static String HibernateNature_exception_when_trying_to_locate_hibernate_nature;
public static String HibernateNature_reading_database_metadata;
public static String HibernateNature_reading_database_metadata_for;
+ public static String HibernateNature_reading_database_table_column_names_for;
+ public static String HibernateNature_reading_database_table_column_names;
//
+ public static String HibernatePropertiesEditor_source;
+ public static String HibernatePropertiesEditor_properties;
+ public static String HibernatePropertiesFileDocumentProvider_this_is_auto_generated_header_do_not_edit_it;
+ public static String HibernatePropertiesFileDocumentProvider_could_not_store_properties_into_output_stream;
+ public static String HibernatePropertiesFileDocumentProvider_could_not_load_file;
+ public static String HibernatePropertiesFileDocumentProvider_could_not_load_stream;
+ //
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, HibernateConsoleMessages.class);
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2008-06-11 11:15:54 UTC (rev 8718)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2008-06-11 12:14:44 UTC (rev 8719)
@@ -27,6 +27,7 @@
HibernateConsolePlugin_no_message_1=: <no message>
HibernateConsolePlugin_no_message_2=<No message>
HibernateConsolePlugin_problem_to_get_flag=Problem to get flag
+HibernateConsolePlugin_could_not_open_hibernate_properties_editor=Could not open Hibernate Properties editor for console:
AddConfigurationAction_add_config=Add Configuration...
AddConfigurationAction_hibernate=hibernate
@@ -53,6 +54,9 @@
EditConsoleConfiguration_no_launch_cfg_matched=No launch configuration matched the configuration named
EditConsoleConfiguration_problem_adding_console_cfg=Problem adding a console configuration
ExecuteQueryAction_run_hql=Run HQL
+HibernatePropertiesAction_hibernate_properties_editor=Hibernate Properties Editor
+HibernatePropertiesAction_open_hibernate_properties_editor=Open Hibernate Properties Editor
+HibernatePropertiesAction_exception_while_trying_to_open_hibernate_properties_editor=Exception while trying to open Hibernate Properties Editor
HQLScratchpadAction_hql_editor=HQL Editor
HQLScratchpadAction_open_hql_editor=Open HQL Editor
JTidyFormatAction_do_you_want_format_xml_files_with_jtidy=Do you want to format {0} xml files with JTidy?
@@ -229,6 +233,11 @@
NewConfigurationWizardPage_session_factory_name=&Session factory name:
NewConfigurationWizardPage_this_wizard_creates=This wizard creates a new configuration file to use with Hibernate.
NewConfigurationWizardPage_user_name=User&name:
+NewConfigurationWizardPage_test_connection=Test Connection
+NewConfigurationWizardPage_error=Error
+NewConfigurationWizardPage_ping_failed=Ping failed!
+NewConfigurationWizardPage_success=Success
+NewConfigurationWizardPage_ping_succeeded=Ping succeeded!
NewHibernateMappingFilePage_browse=Browse...
NewHibernateMappingFilePage_class_to_map=Class to &map:
NewHibernateMappingFilePage_container=&Container:
@@ -402,6 +411,8 @@
CodeGenerationSettingsTab_use_existing=Use &existing...
CodeGenerationSettingsTab_workspace=&Workspace...
ConsoleConfigurationLaunchDelegate_direct_launch_not_supported=Direct launch not supported
+ConnectionProfileCtrl_new=New...
+ConnectionProfileCtrl_edit=Edit...
ConsoleConfigurationMainTab_annotations=Annotations (jdk 1.5+)
ConsoleConfigurationMainTab_cfg_xml=cfg.xml
ConsoleConfigurationMainTab_choose_file_to_use_as_hibernate_cfg_xml=Choose file to use as hibernate.cfg.xml
@@ -435,6 +446,10 @@
ConsoleConfigurationMainTab_type=Type:
ConsoleConfigurationMainTab_use_existing=Use &existing...
ConsoleConfigurationMainTab_wizard_page=wizardPage
+ConsoleConfigurationMainTab_connection_profile=Connection profile:
+ConsoleConfigurationMainTab_import_db_connection=Import DB Connection
+ConsoleConfigurationMainTab_use_jpa_project_setting=Use JPA project setting
+ConsoleConfigurationMainTab_use_connection_profile=Use connection profile:
ConsoleConfigurationMappingsTab_add_hbm_xml_file=Add hbm.xml file
ConsoleConfigurationMappingsTab_add_hibernate_mapping_file=Add a Hibernate Mapping file
ConsoleConfigurationMappingsTab_additional_mapping_files=Additonal mapping files (not listed in cfg.xml)
@@ -490,3 +505,12 @@
HibernateNature_exception_when_trying_to_locate_hibernate_nature=Exception when trying to locate Hibernate Nature
HibernateNature_reading_database_metadata=Reading database metadata
HibernateNature_reading_database_metadata_for=Reading database metadata for
+HibernateNature_reading_database_table_column_names_for=Reading database table & column names for
+HibernateNature_reading_database_table_column_names=Reading database table & column names
+
+HibernatePropertiesEditor_source=Source
+HibernatePropertiesEditor_properties=Properties
+HibernatePropertiesFileDocumentProvider_this_is_auto_generated_header_do_not_edit_it=This is auto generated header. Do not edit it.
+HibernatePropertiesFileDocumentProvider_could_not_store_properties_into_output_stream=Could not store properties into output stream.
+HibernatePropertiesFileDocumentProvider_could_not_load_file=Could not load file.
+HibernatePropertiesFileDocumentProvider_could_not_load_stream=Could not load stream.
17 years, 10 months
JBoss Tools SVN: r8718 - in trunk/ws/tests/org.jboss.tools.ws.ui.test: META-INF and 7 other directories.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-06-11 07:15:54 -0400 (Wed, 11 Jun 2008)
New Revision: 8718
Added:
trunk/ws/tests/org.jboss.tools.ws.ui.test/.classpath
trunk/ws/tests/org.jboss.tools.ws.ui.test/.project
trunk/ws/tests/org.jboss.tools.ws.ui.test/META-INF/
trunk/ws/tests/org.jboss.tools.ws.ui.test/META-INF/MANIFEST.MF
trunk/ws/tests/org.jboss.tools.ws.ui.test/build.properties
trunk/ws/tests/org.jboss.tools.ws.ui.test/src/
trunk/ws/tests/org.jboss.tools.ws.ui.test/src/org/
trunk/ws/tests/org.jboss.tools.ws.ui.test/src/org/jboss/
trunk/ws/tests/org.jboss.tools.ws.ui.test/src/org/jboss/tools/
trunk/ws/tests/org.jboss.tools.ws.ui.test/src/org/jboss/tools/ws/
trunk/ws/tests/org.jboss.tools.ws.ui.test/src/org/jboss/tools/ws/ui/
trunk/ws/tests/org.jboss.tools.ws.ui.test/src/org/jboss/tools/ws/ui/test/
trunk/ws/tests/org.jboss.tools.ws.ui.test/src/org/jboss/tools/ws/ui/test/Activator.java
Log:
JBIDE-2323: new a test for jboss ws ui
Added: trunk/ws/tests/org.jboss.tools.ws.ui.test/.classpath
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.test/.classpath (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.test/.classpath 2008-06-11 11:15:54 UTC (rev 8718)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/ws/tests/org.jboss.tools.ws.ui.test/.project
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.test/.project (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.test/.project 2008-06-11 11:15:54 UTC (rev 8718)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.ws.ui.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>
Added: trunk/ws/tests/org.jboss.tools.ws.ui.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.test/META-INF/MANIFEST.MF (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.test/META-INF/MANIFEST.MF 2008-06-11 11:15:54 UTC (rev 8718)
@@ -0,0 +1,9 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Test Plug-in
+Bundle-SymbolicName: org.jboss.tools.ws.ui.test
+Bundle-Version: 1.0.0
+Bundle-Activator: org.jboss.tools.ws.ui.test.Activator
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime
+Eclipse-LazyStart: true
Added: trunk/ws/tests/org.jboss.tools.ws.ui.test/build.properties
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.test/build.properties (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.test/build.properties 2008-06-11 11:15:54 UTC (rev 8718)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Added: trunk/ws/tests/org.jboss.tools.ws.ui.test/src/org/jboss/tools/ws/ui/test/Activator.java
===================================================================
--- trunk/ws/tests/org.jboss.tools.ws.ui.test/src/org/jboss/tools/ws/ui/test/Activator.java (rev 0)
+++ trunk/ws/tests/org.jboss.tools.ws.ui.test/src/org/jboss/tools/ws/ui/test/Activator.java 2008-06-11 11:15:54 UTC (rev 8718)
@@ -0,0 +1,50 @@
+package org.jboss.tools.ws.ui.test;
+
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class Activator extends AbstractUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.ws.ui.test";
+
+ // The shared instance
+ private static Activator plugin;
+
+ /**
+ * The constructor
+ */
+ public Activator() {
+ }
+
+ /*
+ * (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 Activator getDefault() {
+ return plugin;
+ }
+
+}
17 years, 10 months
JBoss Tools SVN: r8717 - trunk/ws/tests.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-06-11 07:14:34 -0400 (Wed, 11 Jun 2008)
New Revision: 8717
Added:
trunk/ws/tests/org.jboss.tools.ws.ui.test/
Log:
Initial import.
17 years, 10 months
JBoss Tools SVN: r8716 - trunk/ws.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-06-11 07:14:29 -0400 (Wed, 11 Jun 2008)
New Revision: 8716
Added:
trunk/ws/tests/
Log:
Initial import.
17 years, 10 months
JBoss Tools SVN: r8715 - trunk/ws.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-06-11 07:07:56 -0400 (Wed, 11 Jun 2008)
New Revision: 8715
Removed:
trunk/ws/tests/
Log:
rollback
17 years, 10 months
JBoss Tools SVN: r8714 - trunk/ws/tests.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-06-11 07:06:17 -0400 (Wed, 11 Jun 2008)
New Revision: 8714
Removed:
trunk/ws/tests/META-INF/
trunk/ws/tests/build.properties
trunk/ws/tests/src/
Log:
rollback
Deleted: trunk/ws/tests/build.properties
===================================================================
--- trunk/ws/tests/build.properties 2008-06-11 11:00:37 UTC (rev 8713)
+++ trunk/ws/tests/build.properties 2008-06-11 11:06:17 UTC (rev 8714)
@@ -1,4 +0,0 @@
-source.. = src/
-output.. = bin/
-bin.includes = META-INF/,\
- .
17 years, 10 months