JBoss Tools SVN: r17425 - in trunk/birt/tests/org.jboss.tools.birt.core.test: .settings and 8 other directories.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-09-02 14:29:22 -0400 (Wed, 02 Sep 2009)
New Revision: 17425
Added:
trunk/birt/tests/org.jboss.tools.birt.core.test/.classpath
trunk/birt/tests/org.jboss.tools.birt.core.test/.project
trunk/birt/tests/org.jboss.tools.birt.core.test/.settings/
trunk/birt/tests/org.jboss.tools.birt.core.test/.settings/org.eclipse.jdt.core.prefs
trunk/birt/tests/org.jboss.tools.birt.core.test/META-INF/
trunk/birt/tests/org.jboss.tools.birt.core.test/META-INF/MANIFEST.MF
trunk/birt/tests/org.jboss.tools.birt.core.test/build.properties
trunk/birt/tests/org.jboss.tools.birt.core.test/src/
trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/
trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/
trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/
trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/birt/
trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/birt/core/
trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/birt/core/test/
trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/birt/core/test/BirtCoreTestSuite.java
Log:
Share project "org.jboss.tools.birt.core.test" into "https://svn.jboss.org/repos/jbosstools"
Added: trunk/birt/tests/org.jboss.tools.birt.core.test/.classpath
===================================================================
--- trunk/birt/tests/org.jboss.tools.birt.core.test/.classpath (rev 0)
+++ trunk/birt/tests/org.jboss.tools.birt.core.test/.classpath 2009-09-02 18:29:22 UTC (rev 17425)
@@ -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/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: trunk/birt/tests/org.jboss.tools.birt.core.test/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/birt/tests/org.jboss.tools.birt.core.test/.project
===================================================================
--- trunk/birt/tests/org.jboss.tools.birt.core.test/.project (rev 0)
+++ trunk/birt/tests/org.jboss.tools.birt.core.test/.project 2009-09-02 18:29:22 UTC (rev 17425)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.birt.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: trunk/birt/tests/org.jboss.tools.birt.core.test/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/birt/tests/org.jboss.tools.birt.core.test/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/birt/tests/org.jboss.tools.birt.core.test/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/birt/tests/org.jboss.tools.birt.core.test/.settings/org.eclipse.jdt.core.prefs 2009-09-02 18:29:22 UTC (rev 17425)
@@ -0,0 +1,8 @@
+#Tue Sep 01 16:37:06 GMT-08:00 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+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
Property changes on: trunk/birt/tests/org.jboss.tools.birt.core.test/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/birt/tests/org.jboss.tools.birt.core.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/birt/tests/org.jboss.tools.birt.core.test/META-INF/MANIFEST.MF (rev 0)
+++ trunk/birt/tests/org.jboss.tools.birt.core.test/META-INF/MANIFEST.MF 2009-09-02 18:29:22 UTC (rev 17425)
@@ -0,0 +1,10 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: BIRT Core Tests
+Bundle-SymbolicName: org.jboss.tools.birt.core.test
+Bundle-Version: 1.0.0
+Bundle-Vendor: JBoss by RedHat
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Require-Bundle: org.jboss.tools.tests,
+ org.junit
+Export-Package: org.jboss.tools.birt.core.test
Property changes on: trunk/birt/tests/org.jboss.tools.birt.core.test/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/birt/tests/org.jboss.tools.birt.core.test/build.properties
===================================================================
--- trunk/birt/tests/org.jboss.tools.birt.core.test/build.properties (rev 0)
+++ trunk/birt/tests/org.jboss.tools.birt.core.test/build.properties 2009-09-02 18:29:22 UTC (rev 17425)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Property changes on: trunk/birt/tests/org.jboss.tools.birt.core.test/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/birt/core/test/BirtCoreTestSuite.java
===================================================================
--- trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/birt/core/test/BirtCoreTestSuite.java (rev 0)
+++ trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/birt/core/test/BirtCoreTestSuite.java 2009-09-02 18:29:22 UTC (rev 17425)
@@ -0,0 +1,28 @@
+package org.jboss.tools.birt.core.test;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+import org.jboss.tools.tests.AbstractPluginsLoadTest;
+import org.jboss.tools.tests.ToolsAllTests;
+
+public class BirtCoreTestSuite extends TestCase {
+
+ public static Test suite ()
+ {
+ TestSuite suite = new TestSuite(ToolsAllTests.class.getName());
+ suite.addTestSuite(BirtPluginsLoadTest.class);
+ return suite;
+ }
+
+
+ static public class BirtPluginsLoadTest extends AbstractPluginsLoadTest {
+
+ public BirtPluginsLoadTest() {}
+
+ public void testBirtPluginsAreResolvedAndActivated() {
+ testBundlesAreLoadedFor("org.jboss.tools.birt.feature");
+ }
+ }
+}
Property changes on: trunk/birt/tests/org.jboss.tools.birt.core.test/src/org/jboss/tools/birt/core/test/BirtCoreTestSuite.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 3 months
JBoss Tools SVN: r17423 - trunk/birt/features/org.jboss.tools.birt.test.feature.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-09-02 14:28:20 -0400 (Wed, 02 Sep 2009)
New Revision: 17423
Added:
trunk/birt/features/org.jboss.tools.birt.test.feature/.project
trunk/birt/features/org.jboss.tools.birt.test.feature/build.properties
trunk/birt/features/org.jboss.tools.birt.test.feature/feature.xml
Log:
Share project "org.jboss.tools.birt.test.feature" into "https://svn.jboss.org/repos/jbosstools"
Added: trunk/birt/features/org.jboss.tools.birt.test.feature/.project
===================================================================
--- trunk/birt/features/org.jboss.tools.birt.test.feature/.project (rev 0)
+++ trunk/birt/features/org.jboss.tools.birt.test.feature/.project 2009-09-02 18:28:20 UTC (rev 17423)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.birt.test.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: trunk/birt/features/org.jboss.tools.birt.test.feature/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/birt/features/org.jboss.tools.birt.test.feature/build.properties
===================================================================
--- trunk/birt/features/org.jboss.tools.birt.test.feature/build.properties (rev 0)
+++ trunk/birt/features/org.jboss.tools.birt.test.feature/build.properties 2009-09-02 18:28:20 UTC (rev 17423)
@@ -0,0 +1 @@
+bin.includes = feature.xml
Property changes on: trunk/birt/features/org.jboss.tools.birt.test.feature/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/birt/features/org.jboss.tools.birt.test.feature/feature.xml
===================================================================
--- trunk/birt/features/org.jboss.tools.birt.test.feature/feature.xml (rev 0)
+++ trunk/birt/features/org.jboss.tools.birt.test.feature/feature.xml 2009-09-02 18:28:20 UTC (rev 17423)
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<feature
+ id="org.jboss.tools.birt.test.feature"
+ label="BIRT Tests Feature"
+ version="1.0.0"
+ provider-name="JBoss by RedHat">
+
+ <description url="http://www.example.com/description">
+ [Enter Feature Description here.]
+ </description>
+
+ <copyright url="http://www.example.com/copyright">
+ [Enter Copyright Description here.]
+ </copyright>
+
+ <license url="http://www.example.com/license">
+ [Enter License Description here.]
+ </license>
+
+ <plugin
+ id="org.jboss.tools.birt.core.test"
+ download-size="0"
+ install-size="0"
+ version="0.0.0"
+ unpack="false"/>
+
+</feature>
Property changes on: trunk/birt/features/org.jboss.tools.birt.test.feature/feature.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 3 months
JBoss Tools SVN: r17420 - branches/jbosstools-3.1.0.M3/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-09-02 13:07:48 -0400 (Wed, 02 Sep 2009)
New Revision: 17420
Modified:
branches/jbosstools-3.1.0.M3/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/ValidatorHelper.java
Log:
fix for
NullPointerException in BPEL ValidatorHelper
Modified: branches/jbosstools-3.1.0.M3/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/ValidatorHelper.java
===================================================================
--- branches/jbosstools-3.1.0.M3/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/ValidatorHelper.java 2009-09-02 17:02:54 UTC (rev 17419)
+++ branches/jbosstools-3.1.0.M3/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/ValidatorHelper.java 2009-09-02 17:07:48 UTC (rev 17420)
@@ -10,6 +10,8 @@
*******************************************************************************/
package org.eclipse.bpel.validator;
+import java.util.ArrayList;
+
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
@@ -26,7 +28,12 @@
@Override
public void registerResource(IResource resource) {
- getValidationFileURIs().add(resource.getFullPath().toOSString());
+ if(resource!=null) {
+ if(getValidationFileURIs()==null) {
+ setValidationFileURIs(new ArrayList<String>());
+ }
+ getValidationFileURIs().add(resource.getFullPath().toOSString());
+ }
}
}
15 years, 3 months
JBoss Tools SVN: r17419 - trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-09-02 13:02:54 -0400 (Wed, 02 Sep 2009)
New Revision: 17419
Modified:
trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/ValidatorHelper.java
Log:
fix for
NullPointerException in BPEL ValidationHelper
Modified: trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/ValidatorHelper.java
===================================================================
--- trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/ValidatorHelper.java 2009-09-02 14:44:28 UTC (rev 17418)
+++ trunk/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/ValidatorHelper.java 2009-09-02 17:02:54 UTC (rev 17419)
@@ -10,10 +10,15 @@
*******************************************************************************/
package org.eclipse.bpel.validator;
+import java.util.ArrayList;
+import java.util.List;
+
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
import org.eclipse.wst.validation.internal.operations.WorkbenchContext;
import org.eclipse.wst.validation.internal.operations.WorkbenchReporter;
@@ -26,7 +31,14 @@
@Override
public void registerResource(IResource resource) {
- getValidationFileURIs().add(resource.getFullPath().toOSString());
+ if(resource!=null) {
+ if(getValidationFileURIs()==null) {
+ setValidationFileURIs(new ArrayList<String>());
+ }
+ getValidationFileURIs().add(resource.getFullPath().toOSString());
+ } else {
+ Activator.getDefault().getLog().log(new Status(IStatus.WARNING,Activator.PLUGIN_ID,"Cannot register null resource for validation"));
+ }
}
}
15 years, 3 months
JBoss Tools SVN: r17418 - trunk/documentation/guides/GettingStartedGuide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2009-09-02 10:44:28 -0400 (Wed, 02 Sep 2009)
New Revision: 17418
Modified:
trunk/documentation/guides/GettingStartedGuide/en/modules/rad_jsf_application.xml
Log:
JBDS-799 Search in property file using regular expressions is implemented - chapter is updated
Modified: trunk/documentation/guides/GettingStartedGuide/en/modules/rad_jsf_application.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en/modules/rad_jsf_application.xml 2009-09-02 14:38:25 UTC (rev 17417)
+++ trunk/documentation/guides/GettingStartedGuide/en/modules/rad_jsf_application.xml 2009-09-02 14:44:28 UTC (rev 17418)
@@ -304,9 +304,10 @@
<para>If you want to change a value or a name of your attribute, click on it and than on <emphasis>
<property>Edit</property></emphasis> button.</para>
- <para>If the .properties file is rather big and there are a lot of entries in it, you can use filtering to find the necessary ones. The Filter is implemented by an expandable panel, closed by default: </para>
+ <para>If the .properties file is rather big and there are a lot of entries in it, you can use filtering and regular expressions to find the necessary ones. The Filter and Regular Expressions Search is implemented by an expandable panel, closed by default: </para>
+ <para>When "Expression" is not selected (as by default), filter is case insensitive. When "Expression" is selected, filter uses regular expressions which are case sensitive</para>
<figure>
- <title>Filter panel</title>
+ <title>Filter and Regular Expressions Search Panel</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/rad_jsf_application/rad_jsf_application_8a.png"/>
@@ -314,7 +315,7 @@
</mediaobject>
</figure>
<para> Enter the characters that should be searched for in the entries to the 'name' or 'value' input fields accordingly. The filtered results will be displayed in the table below:</para>
-
+
<figure>
<title>Filter results</title>
<mediaobject>
@@ -324,7 +325,9 @@
</mediaobject>
</figure>
-
+ <para>When using regular expressions please note, that regular expression syntax does not use "*" for any characters and "?" for any one character. It's necessary to use "." for any one character and ".*" for any characters. Symbols "*" and "?" are used to show that the preceding token is not required, for example, "a.a" matches "aba" but not "aa", while "a.?a" or a.*a" matches both; besides "a.*a" matches "abcda".</para>
+ <para>To find the exact match, use sequences \A and \z in expression. For example, expression "\Adate\z" matches only string "date"; expression "\Adate" matches "date" and "dateline", expression "date\z" matches "date" and "Begin date", and expression "date" matches all of them.</para>
+
</section>
<section id="CreatingJavaBean">
15 years, 3 months
JBoss Tools SVN: r17417 - in trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test: utils and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-09-02 10:38:25 -0400 (Wed, 02 Sep 2009)
New Revision: 17417
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/MappingTestsBase.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/OpenMappingDiagramTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/OpenMappingFileTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/OpenSourceFileTest.java
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/utils/ConsoleConfigUtils.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4740 - fix "memory leak"
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/MappingTestsBase.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/MappingTestsBase.java 2009-09-02 14:16:22 UTC (rev 17416)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/MappingTestsBase.java 2009-09-02 14:38:25 UTC (rev 17417)
@@ -11,8 +11,6 @@
package org.hibernate.eclipse.console.test.mappingproject;
import java.io.IOException;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
import java.util.regex.Pattern;
import org.eclipse.core.runtime.CoreException;
@@ -22,9 +20,10 @@
import org.eclipse.jdt.internal.core.PackageFragmentRoot;
import org.eclipse.jdt.ui.IPackagesViewPart;
import org.eclipse.jdt.ui.JavaUI;
-import org.eclipse.jface.util.SafeRunnable;
import org.eclipse.osgi.util.NLS;
import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.hibernate.eclipse.console.HibernateConsolePerspectiveFactory;
@@ -55,6 +54,8 @@
protected int executions = 0;
+ protected int openEditors = 0;
+
public MappingTestsBase(String name) {
super(name);
}
@@ -62,9 +63,8 @@
protected void setUp() throws Exception {
super.setUp();
- testProject = new ConfigurableTestProject("JUnitTestProj"+System.currentTimeMillis()); //$NON-NLS-1$
+ testProject = new ConfigurableTestProject("JUnitTestProj" + System.currentTimeMillis()); //$NON-NLS-1$
-
consoleConfigName = testProject.getIProject().getName();
testPackage = null;
@@ -145,43 +145,22 @@
long st_pack_time = System.currentTimeMillis();
int prev_failCount = result.failureCount();
int prev_errCount = result.errorCount();
-
- Method m = null;
- try {
- m = Display.getCurrent().getClass().getDeclaredMethod("runAsyncMessages", boolean.class);
- m.setAccessible(true);
- } catch (SecurityException e) {
- } catch (NoSuchMethodException e) {
- }
-
+ //
TestSuite suite = TestSet.createTestSuite(consoleConfigName, testPackage, testProject);
-
+ //
customizeCfgXml(testPackage);
//==============================
//run all tests for package
- //suite.run(result);
+ /** /
+ suite.run(result);
+ /**/
for (int k = 0; k < suite.testCount(); k++) {
Test test = suite.testAt(k);
test.run(result);
- // ----------------------------------------------
- // https://jira.jboss.org/jira/browse/JBIDE-4740
- // first way to fix OutOfMemory problems
closeAllEditors();
- int LIMIT = 50,
- ii = 0;
- while(ii<LIMIT && Display.getCurrent().readAndDispatch()) {
- //Display.getCurrent().sleep();
- ii++;
- }
}
- // Second way to fix https://jira.jboss.org/jira/browse/JBIDE-4740
- // invoked to clean up RunnableLock[] in UISynchronizer
- try {
- m.invoke(Display.getCurrent(), Boolean.TRUE);
- } catch (IllegalArgumentException e) {
- } catch (IllegalAccessException e) {
- } catch (InvocationTargetException e) {
- }
+ /**/
+ closeAllEditors();
//==============================
executions++;
if (Customization.USE_CONSOLE_OUTPUT) {
@@ -218,7 +197,17 @@
}
protected void closeAllEditors() {
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closeAllEditors(false);
+ final IWorkbenchWindow workbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
+ if (workbenchWindow != null) {
+ final IWorkbenchPage workbenchPage = workbenchWindow.getActivePage();
+ if (workbenchPage != null) {
+ openEditors += workbenchPage.getEditorReferences().length;
+ workbenchPage.closeAllEditors(false);
+ }
+ }
+ // clean up event queue to avoid "memory leak",
+ // this is necessary to fix https://jira.jboss.org/jira/browse/JBIDE-4824
+ while (Display.getCurrent().readAndDispatch());
}
public String getConsoleConfigName() {
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/OpenMappingDiagramTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/OpenMappingDiagramTest.java 2009-09-02 14:16:22 UTC (rev 17416)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/OpenMappingDiagramTest.java 2009-09-02 14:38:25 UTC (rev 17417)
@@ -14,7 +14,10 @@
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.osgi.util.NLS;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.hibernate.InvalidMappingException;
@@ -38,6 +41,8 @@
protected IPackageFragment testPackage = null;
+ protected int openEditors = 0;
+
public OpenMappingDiagramTest() {
}
@@ -51,7 +56,7 @@
protected void tearDown() throws Exception {
consoleConfigName = null;
testPackage = null;
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closeAllEditors(false);
+ closeAllEditors();
}
public void testOpenMappingDiagram() {
@@ -111,4 +116,18 @@
public void setTestPackage(IPackageFragment testPackage) {
this.testPackage = testPackage;
}
+
+ protected void closeAllEditors() {
+ final IWorkbenchWindow workbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
+ if (workbenchWindow != null) {
+ final IWorkbenchPage workbenchPage = workbenchWindow.getActivePage();
+ if (workbenchPage != null) {
+ openEditors += workbenchPage.getEditorReferences().length;
+ workbenchPage.closeAllEditors(false);
+ }
+ }
+ // clean up event queue to avoid "memory leak",
+ // this is necessary to fix https://jira.jboss.org/jira/browse/JBIDE-4824
+ while (Display.getCurrent().readAndDispatch());
+ }
}
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/OpenMappingFileTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/OpenMappingFileTest.java 2009-09-02 14:16:22 UTC (rev 17416)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/OpenMappingFileTest.java 2009-09-02 14:38:25 UTC (rev 17417)
@@ -17,7 +17,10 @@
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.osgi.util.NLS;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.hibernate.InvalidMappingException;
@@ -44,6 +47,8 @@
protected IPackageFragment testPackage = null;
+ protected int openEditors = 0;
+
public OpenMappingFileTest() {
}
@@ -57,7 +62,7 @@
protected void tearDown() throws Exception {
consoleConfigName = null;
testPackage = null;
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closeAllEditors(false);
+ closeAllEditors();
}
public void testOpenMappingFileTest() {
@@ -185,4 +190,18 @@
public void setTestPackage(IPackageFragment testPackage) {
this.testPackage = testPackage;
}
+
+ protected void closeAllEditors() {
+ final IWorkbenchWindow workbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
+ if (workbenchWindow != null) {
+ final IWorkbenchPage workbenchPage = workbenchWindow.getActivePage();
+ if (workbenchPage != null) {
+ openEditors += workbenchPage.getEditorReferences().length;
+ workbenchPage.closeAllEditors(false);
+ }
+ }
+ // clean up event queue to avoid "memory leak",
+ // this is necessary to fix https://jira.jboss.org/jira/browse/JBIDE-4824
+ while (Display.getCurrent().readAndDispatch());
+ }
}
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/OpenSourceFileTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/OpenSourceFileTest.java 2009-09-02 14:16:22 UTC (rev 17416)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/mappingproject/OpenSourceFileTest.java 2009-09-02 14:38:25 UTC (rev 17417)
@@ -17,7 +17,10 @@
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.osgi.util.NLS;
+import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.IWorkbenchPage;
+import org.eclipse.ui.IWorkbenchWindow;
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.hibernate.InvalidMappingException;
@@ -45,6 +48,8 @@
protected IPackageFragment testPackage = null;
+ protected int openEditors = 0;
+
public OpenSourceFileTest() {
}
@@ -58,7 +63,7 @@
protected void tearDown() throws Exception {
consoleConfigName = null;
testPackage = null;
- PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closeAllEditors(false);
+ closeAllEditors();
}
public void testOpenSourceFileTest() {
@@ -154,4 +159,18 @@
public void setTestPackage(IPackageFragment testPackage) {
this.testPackage = testPackage;
}
+
+ protected void closeAllEditors() {
+ final IWorkbenchWindow workbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
+ if (workbenchWindow != null) {
+ final IWorkbenchPage workbenchPage = workbenchWindow.getActivePage();
+ if (workbenchPage != null) {
+ openEditors += workbenchPage.getEditorReferences().length;
+ workbenchPage.closeAllEditors(false);
+ }
+ }
+ // clean up event queue to avoid "memory leak",
+ // this is necessary to fix https://jira.jboss.org/jira/browse/JBIDE-4824
+ while (Display.getCurrent().readAndDispatch());
+ }
}
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/utils/ConsoleConfigUtils.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/utils/ConsoleConfigUtils.java 2009-09-02 14:16:22 UTC (rev 17416)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/utils/ConsoleConfigUtils.java 2009-09-02 14:38:25 UTC (rev 17417)
@@ -175,6 +175,9 @@
public static void deleteConsoleConfig(String name) {
final KnownConfigurations knownConfigurations = KnownConfigurations.getInstance();
final ConsoleConfiguration consoleConfig = knownConfigurations.find(name);
+ if (consoleConfig != null) {
+ consoleConfig.reset();
+ }
knownConfigurations.removeConfiguration(consoleConfig, false);
}
}
15 years, 3 months
JBoss Tools SVN: r17415 - trunk/documentation/guides/GettingStartedGuide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: chukhutsina
Date: 2009-09-02 09:18:02 -0400 (Wed, 02 Sep 2009)
New Revision: 17415
Modified:
trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml
Log:
<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:9pt;font-family:Sans Serif">
<p>https://jira.jboss.org/jira/browse/JBDS-839 -Added Seam refactoring tools info to GSG.</p>
</body></html>
Modified: trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml 2009-09-02 10:53:02 UTC (rev 17414)
+++ trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml 2009-09-02 13:18:02 UTC (rev 17415)
@@ -768,7 +768,10 @@
<para>There are also <emphasis>
<property>org.domain.workshop.entity</property>
</emphasis> package that contains the JPA classes. These are the entity beans that are
- mapped to database tables.</para>
+ mapped to database tables.Note,that you can use Seam refactoring tools with Seam components.
+ Read more about it in <ulink
+ url="http://download.jboss.org/jbosstools/nightly-docs/en/seam/html_single/ind..."
+ >Seam refactoring tools chapter</ulink> of Seam Dev Tools Reference Guide.</para>
<para>Last, but not least, there are facelets for all of the CRUD screens. The best way to get
a feel for the generated code is to open a browser and play around with the application. Go
15 years, 3 months
JBoss Tools SVN: r17414 - trunk/jsf/docs/userguide/en/images/editors_features.
by jbosstools-commits@lists.jboss.org
Author: chukhutsina
Date: 2009-09-02 06:53:02 -0400 (Wed, 02 Sep 2009)
New Revision: 17414
Modified:
trunk/jsf/docs/userguide/en/images/editors_features/editors_features_21.png
trunk/jsf/docs/userguide/en/images/editors_features/editors_features_31.png
Log:
<html><head><meta name="qrichtext" content="1" /></head><body style="font-size:9pt;font-family:Sans Serif">
<p>https://jira.jboss.org/jira/browse/JBDS-720 -Screens of VPE were updated.</p>
</body></html>
Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_21.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en/images/editors_features/editors_features_31.png
===================================================================
(Binary files differ)
15 years, 3 months