JBoss Tools SVN: r7401 - in trunk: seam/plugins/org.jboss.tools.seam.core and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-04-08 06:34:08 -0400 (Tue, 08 Apr 2008)
New Revision: 7401
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/build.properties
trunk/seam/plugins/org.jboss.tools.seam.core/build.properties
Log:
JBIDE-2028 Missing resources in beta build
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/build.properties
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/build.properties 2008-04-08 10:32:11 UTC (rev 7400)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/build.properties 2008-04-08 10:34:08 UTC (rev 7401)
@@ -3,3 +3,4 @@
bin.includes = META-INF/,\
.,\
plugin.xml
+src.includes = icons/
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/build.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/build.properties 2008-04-08 10:32:11 UTC (rev 7400)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/build.properties 2008-04-08 10:34:08 UTC (rev 7401)
@@ -12,4 +12,8 @@
plugin.properties,\
build.properties,\
META-INF/,\
- about.html
+ about.html,\
+ about.ini,\
+ seam_icon.png,\
+ about.mappings,\
+ about.properties
17 years, 8 months
JBoss Tools SVN: r7400 - in trunk/seam/docs/reference/en: images and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2008-04-08 06:32:11 -0400 (Tue, 08 Apr 2008)
New Revision: 7400
Added:
trunk/seam/docs/reference/en/images/seam_preferences/
trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences1.png
trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences1_2.png
trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences1_3.png
trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences1_4.png
trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences1_5.png
trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences2.png
trunk/seam/docs/reference/en/modules/seam_preferences.xml
Modified:
trunk/seam/docs/reference/en/master.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-272 Seam preferences chapter added (xml's + screens)
Added: trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences1.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences1_2.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences1_2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences1_3.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences1_3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences1_4.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences1_4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences1_5.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences1_5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences2.png
===================================================================
(Binary files differ)
Property changes on: trunk/seam/docs/reference/en/images/seam_preferences/seam_preferences2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/seam/docs/reference/en/master.xml
===================================================================
--- trunk/seam/docs/reference/en/master.xml 2008-04-08 10:24:22 UTC (rev 7399)
+++ trunk/seam/docs/reference/en/master.xml 2008-04-08 10:32:11 UTC (rev 7400)
@@ -10,9 +10,7 @@
<!ENTITY generate_entities SYSTEM "modules/generate_entities.xml">
<!ENTITY seam_editors SYSTEM "modules/seam_editors.xml">
<!ENTITY seam_view SYSTEM "modules/seam_view.xml">
-
-<!--<!ENTITY seam_preferences SYSTEM "modules/seam_preferences.xml">-->
-
+ <!ENTITY seam_preferences SYSTEM "modules/seam_preferences.xml">
<!ENTITY crud_database_application SYSTEM "modules/crud_database_application.xml">
<!ENTITY crud_application_walkthrough SYSTEM "modules/crud_application_walkthrough.xml">
<!ENTITY business_application SYSTEM "modules/business_application.xml">
@@ -42,7 +40,7 @@
&generate_entities;
&seam_editors;
&seam_view;
- <!-- &seam_preferences; -->
+&seam_preferences;
&crud_database_application;
&crud_application_walkthrough;
&testng;
Added: trunk/seam/docs/reference/en/modules/seam_preferences.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/seam_preferences.xml (rev 0)
+++ trunk/seam/docs/reference/en/modules/seam_preferences.xml 2008-04-08 10:32:11 UTC (rev 7400)
@@ -0,0 +1,116 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="seam_preferences" xreflabel="seam_preferences">
+ <?dbhtml filename="seam_preferences.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>JBoss Tools</keyword>
+ <keyword>Seam</keyword>
+ <keyword>Preferences</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>Seam Preferences</title>
+
+<para>In this chapter you get to know how Seam preferences can be modified during the development process.</para>
+
+ <section id="gen_pref">
+ <title>General Preferences</title>
+
+<para>Seam preferences can be set using the Seam preference page. Click on <property><emphasis>Window > Preferences > JBoss Tools > Web > Seam</emphasis>.</property></para>
+
+ <para>On this page you can manage the Seam Runtime. Use the appropriate buttons to <property>Add</property> more runtimes or to <property>Remove</property> those that are not needed.</para>
+
+ <figure>
+ <title>Seam Preferences Page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/seam_preferences/seam_preferences1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Clicking on <property>Edit</property> button you get the form where you can change the path of Seam runtime home folder,
+ modify name and version. Press <property>Finish</property> to apply the changes.</para>
+
+ <figure>
+ <title>Edit Seam Runtime</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/seam_preferences/seam_preferences1_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+<section id="validator_pref">
+
+<title>Validator Preferences</title>
+
+ <para>Seam preference page includes a subsection <property>Validator</property>.
+ See <property><emphasis>Window > Preferences > JBoss Tools > Web > Seam > Validator</emphasis>.</property></para>
+ <para>On this page you can choose a severity level for the various Seam validator problems. For example, if you want to ignore the case when component
+ name is duplicated expand the <property>Components</property> node and select <property>Ignore</property> next to <property>Duplicate component name</property>.
+ After that you won't see the error.</para>
+
+
+ <figure>
+ <title>Seam Validator Preference Page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/seam_preferences/seam_preferences1_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>In the upper right corner of the page there is a <property>Configure Project Specific</property> link. Clicking on it you get the form where you can
+ choose a project for specific setting. Project specific configuration allows you to have different validator settings for each project. Check the
+ <property>Show only projects with project specific settings</property> if you want to see the projects that have been already set. Click on <property>Ok</property>.</para>
+
+ <figure>
+ <title>Project Specific Configuration</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/seam_preferences/seam_preferences1_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>You get the validator properties page for chosen project. Check the <property>Enable project specific settings</property> to be able to change the settings.</para>
+
+<note>
+ <title>Note:</title>
+ <para>You can open the same page by right clicking on the needed project in Package Explorer, then <emphasis><property>Properties > Seam Validator</property>.</emphasis></para>
+</note>
+
+ <figure>
+ <title>Validator Properties Page for Chosen Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/seam_preferences/seam_preferences1_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+
+</section>
+ </section>
+
+ <section id="project_pref">
+ <title>Project Preferences</title>
+
+ <para>Once Seam project is created you can modify its settings. Right click on Seam project in Project Explorer and select <emphasis><property>Properties > Seam Settings</property>.</emphasis></para>
+
+ <figure>
+ <title>Properties for Seam Project</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/seam_preferences/seam_preferences2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para></para>
+
+
+ </section>
+
+</chapter>
17 years, 8 months
JBoss Tools SVN: r7399 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2008-04-08 06:24:22 -0400 (Tue, 08 Apr 2008)
New Revision: 7399
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenFileActionUtils.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1412
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenFileActionUtils.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenFileActionUtils.java 2008-04-08 10:20:32 UTC (rev 7398)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenFileActionUtils.java 2008-04-08 10:24:22 UTC (rev 7399)
@@ -39,18 +39,18 @@
public class OpenFileActionUtils {
private static XMLHelper helper = new XMLHelper();
- private static final String HIBERNATE_TAG_CLASS = "class";
- private static final String HIBERNATE_TAG_TABLE = "table";
- private static final String HIBERNATE_TAG_SUBCLASS = "subclass";
- private static final String HIBERNATE_TAG_JOINED_SUBCLASS = "joined-subclass";
- private static final String HIBERNATE_TAG_UNION_SUBCLASS = "union-subclass";
- private static final String HIBERNATE_TAG_NAME = "name";
- private static final String HIBERNATE_TAG_ENTITY_NAME = "entity-name";
- private static final String HIBERNATE_TAG_SESSION_FACTORY = "session-factory";
- private static final String HIBERNATE_TAG_MAPPING = "mapping";
- private static final String HIBERNATE_TAG_RESOURCE = "resource";
- private static final String HIBERNATE_TAG_CATALOG = "catalog";
- private static final String HIBERNATE_TAG_SCHEMA = "schema";
+ private static final String HIBERNATE_TAG_CLASS = "class"; //$NON-NLS-1$
+ private static final String HIBERNATE_TAG_TABLE = "table"; //$NON-NLS-1$
+ private static final String HIBERNATE_TAG_SUBCLASS = "subclass"; //$NON-NLS-1$
+ private static final String HIBERNATE_TAG_JOINED_SUBCLASS = "joined-subclass"; //$NON-NLS-1$
+ private static final String HIBERNATE_TAG_UNION_SUBCLASS = "union-subclass"; //$NON-NLS-1$
+ private static final String HIBERNATE_TAG_NAME = "name"; //$NON-NLS-1$
+ private static final String HIBERNATE_TAG_ENTITY_NAME = "entity-name"; //$NON-NLS-1$
+ private static final String HIBERNATE_TAG_SESSION_FACTORY = "session-factory"; //$NON-NLS-1$
+ private static final String HIBERNATE_TAG_MAPPING = "mapping"; //$NON-NLS-1$
+ private static final String HIBERNATE_TAG_RESOURCE = "resource"; //$NON-NLS-1$
+ private static final String HIBERNATE_TAG_CATALOG = "catalog"; //$NON-NLS-1$
+ private static final String HIBERNATE_TAG_SCHEMA = "schema"; //$NON-NLS-1$
public static IEditorPart openEditor(IWorkbenchPage page, IResource resource) throws PartInitException {
return IDE.openEditor(page, (IFile) resource);
@@ -65,14 +65,14 @@
static String getPersistentClassName(PersistentClass rootClass) {
if (rootClass == null) {
- return "";
+ return ""; //$NON-NLS-1$
} else {
return rootClass.getEntityName() != null ? rootClass.getEntityName() : rootClass.getClassName();
}
}
private static String getTableName(String catalog, String schema, String name) {
- return (catalog != null ? catalog + "." : "") + (schema != null ? schema + "." : "") + name;
+ return (catalog != null ? catalog + '.' : "") + (schema != null ? schema + '.' : "") + name; //$NON-NLS-1$ //$NON-NLS-2$
}
private static String getTableName(Table table) {
@@ -231,25 +231,25 @@
try {
stream = new FileInputStream( configXMLFile );
} catch (FileNotFoundException e) {
- HibernateConsolePlugin.getDefault().logErrorMessage("Configuration file not found", e);
+ HibernateConsolePlugin.getDefault().logErrorMessage("Configuration file not found", e); //$NON-NLS-1$
}
try {
List errors = new ArrayList();
doc = helper.createSAXReader( configXMLFile.getPath(), errors, consoleConfiguration.getConfiguration().getEntityResolver() )
.read( new InputSource( stream ) );
if ( errors.size() != 0 ) {
- HibernateConsolePlugin.getDefault().logErrorMessage("invalid configuration", (Throwable)null);
+ HibernateConsolePlugin.getDefault().logErrorMessage("invalid configuration", (Throwable)null); //$NON-NLS-1$
}
}
catch (DocumentException e) {
- HibernateConsolePlugin.getDefault().logErrorMessage("Could not parse configuration", e);
+ HibernateConsolePlugin.getDefault().logErrorMessage("Could not parse configuration", e); //$NON-NLS-1$
}
finally {
try {
stream.close();
}
catch (IOException ioe) {
- HibernateConsolePlugin.getDefault().logErrorMessage("could not close input stream for", ioe);
+ HibernateConsolePlugin.getDefault().logErrorMessage("could not close input stream for", ioe); //$NON-NLS-1$
}
}
}
@@ -279,6 +279,7 @@
}
if (resource != null &&
elementInResource(consoleConfiguration, resource, element)) return resource;
+ resource = null;
} catch (JavaModelException e) {
HibernateConsolePlugin.getDefault().logErrorMessage("Problems while getting project package fragment roots", e);
}
17 years, 8 months
JBoss Tools SVN: r7398 - in trunk/documentation/whatsnew: seam and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2008-04-08 06:20:32 -0400 (Tue, 08 Apr 2008)
New Revision: 7398
Added:
trunk/documentation/whatsnew/images/xhtmltemplates.png
Modified:
trunk/documentation/whatsnew/seam/seam-news-1.1.0.beta1.html
trunk/documentation/whatsnew/vpe/vpe-news-2.1.0.beta1.html
Log:
updated whatsnew from denis comments :
http://jira.jboss.org/jira/browse/JBIDE-1696 for seam
http://jira.jboss.org/jira/browse/JBIDE-1831 for, hmmm, not sure where
http://jira.jboss.org/jira/browse/JBIDE-1494 for VPE
Added: trunk/documentation/whatsnew/images/xhtmltemplates.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/whatsnew/images/xhtmltemplates.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/whatsnew/seam/seam-news-1.1.0.beta1.html
===================================================================
--- trunk/documentation/whatsnew/seam/seam-news-1.1.0.beta1.html 2008-04-08 09:29:15 UTC (rev 7397)
+++ trunk/documentation/whatsnew/seam/seam-news-1.1.0.beta1.html 2008-04-08 10:20:32 UTC (rev 7398)
@@ -153,10 +153,10 @@
</tr>
<tr>
<td valign="top" align="right">
- <a name="itemname3" id="itemname3"></a><b>Components inside inner classes supported</b>
+ <a name="itemname3" id="itemname3"></a><b>Subclass and inner classes</b>
</td>
<td valign="top">
- <p>Seam model now also understand Seam component that are inner classes.</p>
+ <p>Bugs around Seam model have been fixed so it now fully understand Seam component that are inner classes and sub classes.</p>
</tr>
<tr>
<td colspan="2"><hr />
@@ -183,6 +183,18 @@
<tr>
<td colspan="2"><hr />
</td>
+ <tr>
+ <td valign="top" align="right">
+ <a name="itemname3" id="itemname3"></a><b>Templates of .xhtml file wizard</b>
+ </td>
+ <td valign="top">
+ <p>We now have a three basic templates in the .xhtml file wizard.</p>
+ <p><img src="../images/xhtmltemplates.png"/></p>
+
+ </tr>
+ <tr>
+ <td colspan="2"><hr />
+ </td>
</table>
</body>
Modified: trunk/documentation/whatsnew/vpe/vpe-news-2.1.0.beta1.html
===================================================================
--- trunk/documentation/whatsnew/vpe/vpe-news-2.1.0.beta1.html 2008-04-08 09:29:15 UTC (rev 7397)
+++ trunk/documentation/whatsnew/vpe/vpe-news-2.1.0.beta1.html 2008-04-08 10:20:32 UTC (rev 7398)
@@ -49,7 +49,7 @@
</td>
</tr>
<tr>
- <td valign="top" align="right"><p><a name="previewtab" id="previewtab"></a><b>Templates</b></p></td>
+ <td valign="top" align="right"><p><a name="previewtab" id="previewtab"></a><b>TLD Version support</b></p></td>
<td valign="top"><p>Previously we only supported one version for a tag thus if a JSF library changed it behavior/looks for an component between versions/releases we could not support it easily. Now the template system beneath the Visual Page Editor can handle different versions of the same tags by looking at the TLD-version used in the jsp/xhtml page. </p>
Example:<div style="COLOR: #0a5045;"> <br />
@@ -75,6 +75,16 @@
</td>
</tr>
+ <tr>
+ <td valign="top" align="right"><p><a name="previewtab" id="previewtab"></a><b>Default Text formatting </b></p></td>
+ <td valign="top"><p>Default text formatting can now be enabled for tags by just using <code>use-default-formats='yes'</code>, removing the need to have duplicate <code>vpe:format</code> tags in your templates (see <a href="http://jira.jboss.org/jira/browse/JBIDE-1494">JBIDE-1491</a>) </p>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2"><hr />
+ </td>
+ </tr>
+
</table>
</body>
17 years, 8 months
JBoss Tools SVN: r7397 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2008-04-08 05:29:15 -0400 (Tue, 08 Apr 2008)
New Revision: 7397
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsView.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1839
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsView.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsView.java 2008-04-08 09:09:03 UTC (rev 7396)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsView.java 2008-04-08 09:29:15 UTC (rev 7397)
@@ -63,7 +63,7 @@
*/
public class KnownConfigurationsView extends ViewPart {
- public static final String ID = "org.hibernate.eclipse.console.views.KnownConfigurationsView";
+ public static final String ID = "org.hibernate.eclipse.console.views.KnownConfigurationsView"; //$NON-NLS-1$
TreeViewer viewer;
@@ -110,7 +110,7 @@
private void createContextMenu ()
{
- MenuManager menuMgr = new MenuManager("#PopupMenu");
+ MenuManager menuMgr = new MenuManager("#PopupMenu"); //$NON-NLS-1$
menuMgr.setRemoveAllWhenShown(true);
menuMgr.addMenuListener(new IMenuListener() {
public void menuAboutToShow(IMenuManager manager) {
@@ -162,13 +162,13 @@
}
} else if (selection instanceof TreeSelection){
TreePath path = ((TreeSelection)selection).getPaths()[0];
- Object first = path.getFirstSegment();
+ Object last = path.getLastSegment();
ConsoleConfiguration consoleConfiguration = (ConsoleConfiguration)(path.getSegment(0));
- if (first instanceof PersistentClass || first.getClass() == Property.class){
+ if (last instanceof PersistentClass || last.getClass() == Property.class){
try {
OpenMappingAction.run(path, consoleConfiguration);
} catch (Exception e) {
- HibernateConsolePlugin.getDefault().logErrorMessage("Can't find mapping file.", e);
+ HibernateConsolePlugin.getDefault().logErrorMessage("Can't find mapping file.", e); //$NON-NLS-1$
}
}
}
17 years, 8 months
JBoss Tools SVN: r7395 - in trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools: tests and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-04-07 17:17:35 -0400 (Mon, 07 Apr 2008)
New Revision: 7395
Modified:
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ProjectImportTestSetup.java
trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/AbstractResourceMarkerTest.java
Log:
Fixed tests
Modified: trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ProjectImportTestSetup.java
===================================================================
--- trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ProjectImportTestSetup.java 2008-04-07 20:47:06 UTC (rev 7394)
+++ trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/test/util/ProjectImportTestSetup.java 2008-04-07 21:17:35 UTC (rev 7395)
@@ -14,6 +14,10 @@
import junit.framework.Test;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IncrementalProjectBuilder;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
import org.jboss.tools.test.util.xpl.EditorTestHelper;
/**
@@ -57,6 +61,15 @@
return projects;
}
+ public static IProject loadProject(String projectName) throws CoreException {
+ IResource project = ResourcesPlugin.getWorkspace().getRoot().findMember(projectName);
+ assertNotNull("Can't load " + projectName, project);
+ IProject result = project.getProject();
+ result.build(IncrementalProjectBuilder.FULL_BUILD, null);
+ EditorTestHelper.joinBackgroundActivities();
+ return result;
+ }
+
@Override
protected void setUp() throws Exception {
importProjects();
Modified: trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/AbstractResourceMarkerTest.java
===================================================================
--- trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/AbstractResourceMarkerTest.java 2008-04-07 20:47:06 UTC (rev 7394)
+++ trunk/tests/tests/org.jboss.tools.test/src/org/jboss/tools/tests/AbstractResourceMarkerTest.java 2008-04-07 21:17:35 UTC (rev 7395)
@@ -12,10 +12,10 @@
import junit.framework.TestCase;
-import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IMarker;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
+import org.jboss.tools.test.util.JUnitUtils;
/**
* @author eskimo
@@ -36,12 +36,12 @@
super(name);
}
- protected int findMarkerfLine(IFile file, String type, String pattern)
+ protected int findMarkerfLine(IResource resource, String type, String pattern)
throws CoreException {
int number = -1;
IMarker[] markers = new IMarker[0];
- markers = file.findMarkers(type, false, IResource.DEPTH_INFINITE);
+ markers = resource.findMarkers(type, false, IResource.DEPTH_INFINITE);
for (int i = 0; i < markers.length; i++) {
String message = markers[i].getAttribute(IMarker.MESSAGE, "");
@@ -53,29 +53,74 @@
return number;
}
- protected void assertMarkerIsCreated(IFile file, MarkerData markerData) throws CoreException {
- assertMarkerIsCreated(file, markerData.type, markerData.pattern, markerData.line);
+ protected void assertMarkerIsCreated(IResource resource, MarkerData markerData) throws CoreException {
+ assertMarkerIsCreated(resource, markerData.type, markerData.pattern, markerData.line);
}
- protected void assertMarkerIsCreated(IFile file, String type, String pattern, int expectedLine)
+ protected void assertMarkerIsCreated(IResource resource, String type, String pattern, int expectedLine)
throws CoreException {
-
+
int line = findMarkerfLine(
- file, type, pattern);
-
+ resource, type, pattern);
+
assertTrue("Marker matches the '" + pattern + "' pattern wasn't found",
line != -1);
-
+
assertEquals("Marker matches the '" + pattern + "' pattern was found at wrong line",
expectedLine,line);
}
- protected void assertMarkersIsCreated(IFile file, MarkerData[] markersData) throws CoreException {
+ protected void assertMarkersIsCreated(IResource resource, MarkerData[] markersData) throws CoreException {
for (MarkerData markerData : markersData) {
- assertMarkerIsCreated(file, markerData);
+ assertMarkerIsCreated(resource, markerData);
}
}
+ public static int getMarkersNumber(IResource resource){
+ try{
+ IMarker[] markers = resource.findMarkers(null, true, IResource.DEPTH_INFINITE);
+ for(int i=0;i<markers.length;i++){
+ System.out.println("Marker - "+markers[i].getAttribute(IMarker.MESSAGE, ""));
+ }
+ return markers.length;
+ }catch(CoreException ex){
+ JUnitUtils.fail("Can'r get problem markers", ex);
+ }
+ return -1;
+ }
+
+ public static String[] getMarkersMessage(IResource resource){
+ String[] messages = null;
+ try{
+ IMarker[] markers = resource.findMarkers(null, true, IResource.DEPTH_INFINITE);
+ messages = new String[markers.length];
+
+ for(int i=0;i<markers.length;i++){
+ System.out.println("Marker - "+markers[i].getAttribute(IMarker.MESSAGE, ""));
+ messages[i] = markers[i].getAttribute(IMarker.MESSAGE, "");
+ }
+ }catch(CoreException ex){
+ JUnitUtils.fail("Can't get problem markers", ex);
+ }
+ return messages;
+ }
+
+ public static int[] getMarkersNumbersOfLine(IResource resource){
+ int[] numbers = null;
+ try{
+ IMarker[] markers = resource.findMarkers(null, true, IResource.DEPTH_INFINITE);
+ numbers = new int[markers.length];
+
+ for(int i=0;i<markers.length;i++){
+ System.out.println("Marker line number - "+markers[i].getAttribute(IMarker.LINE_NUMBER, 0));
+ numbers[i] = markers[i].getAttribute(IMarker.LINE_NUMBER, 0);
+ }
+ }catch(CoreException ex){
+ JUnitUtils.fail("Can't get problem markers.", ex);
+ }
+ return numbers;
+ }
+
/**
*
* @author eskimo
17 years, 8 months
JBoss Tools SVN: r7394 - trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-04-07 16:47:06 -0400 (Mon, 07 Apr 2008)
New Revision: 7394
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamCoreAllTests.java
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsAllTests.java
Log:
Fixed JUnitTestes
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamCoreAllTests.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamCoreAllTests.java 2008-04-07 20:40:27 UTC (rev 7393)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamCoreAllTests.java 2008-04-07 20:47:06 UTC (rev 7394)
@@ -28,15 +28,15 @@
public static Test suite() {
TestSuite suite = new TestSuite();
suite.setName("All tests for " + PLUGIN_ID);
-// suite.addTestSuite(ScannerTest.class);
-// suite.addTestSuite(SerializationTest.class);
-// suite.addTestSuite(SeamBigProjectTest.class);
-// suite.addTestSuite(SeamEARTest.class);
-// suite.addTestSuite(SeamRuntimeListConverterTest.class);
-// suite.addTestSuite(SeamRuntimeManagerTest.class);
-// suite.addTestSuite(SeamFacetInstallDelegateTest.class);
+ suite.addTestSuite(ScannerTest.class);
+ suite.addTestSuite(SerializationTest.class);
+ suite.addTestSuite(SeamBigProjectTest.class);
+ suite.addTestSuite(SeamEARTest.class);
+ suite.addTestSuite(SeamRuntimeListConverterTest.class);
+ suite.addTestSuite(SeamRuntimeManagerTest.class);
+ suite.addTestSuite(SeamFacetInstallDelegateTest.class);
suite.addTest(SeamValidatorsAllTests.suite());
-// suite.addTest(SeamRefactoringAllTests.suite());
+ suite.addTest(SeamRefactoringAllTests.suite());
// Seam 2 tests can't run on hudson for now ;(
//suite.addTestSuite(Seam2FacetInstallDelegateTest.class);
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsAllTests.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsAllTests.java 2008-04-07 20:40:27 UTC (rev 7393)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsAllTests.java 2008-04-07 20:47:06 UTC (rev 7394)
@@ -23,7 +23,7 @@
public static Test suite() {
TestSuite suite = new TestSuite();
-// suite.addTest(new ProjectImportTestSetup(new TestSuite(SeamValidatorsTest.class),"org.jboss.tools.seam.core.test","projects/SeamWebWarTestProject","SeamWebWarTestProject"));
+ suite.addTest(new ProjectImportTestSetup(new TestSuite(SeamValidatorsTest.class),"org.jboss.tools.seam.core.test","projects/SeamWebWarTestProject","SeamWebWarTestProject"));
suite.addTest(new ProjectImportTestSetup(new TestSuite(SeamProjectPropertyValidatorTest.class),
"org.jboss.tools.seam.core.test",
new String[]{"projects/RefactoringTestProject-war", "projects/RefactoringTestProject-ejb", "projects/RefactoringTestProject-test"},
17 years, 8 months
JBoss Tools SVN: r7393 - tags/jbosstools-2.1.0.Beta1/common/tests.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2008-04-07 16:40:27 -0400 (Mon, 07 Apr 2008)
New Revision: 7393
Added:
tags/jbosstools-2.1.0.Beta1/common/tests/org.jboss.tools.common.model.test/
Log:
retagging common model test to get compilation fix for 2.1.0.Beta1
Copied: tags/jbosstools-2.1.0.Beta1/common/tests/org.jboss.tools.common.model.test (from rev 7392, trunk/common/tests/org.jboss.tools.common.model.test)
17 years, 8 months
JBoss Tools SVN: r7392 - tags/jbosstools-2.1.0.Beta1/common/tests.
by jbosstools-commits@lists.jboss.org
Author: mculpepper(a)jboss.com
Date: 2008-04-07 16:39:55 -0400 (Mon, 07 Apr 2008)
New Revision: 7392
Removed:
tags/jbosstools-2.1.0.Beta1/common/tests/org.jboss.tools.common.model.test/
Log:
retagging common model test to get compilation fix for 2.1.0.Beta1
17 years, 8 months