[JBoss JIRA] Created: (JBIDE-1733) Problem with wtp validators when testing
by Snjezana Peco (JIRA)
Problem with wtp validators when testing
----------------------------------------
Key: JBIDE-1733
URL: http://jira.jboss.com/jira/browse/JBIDE-1733
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: QA
Affects Versions: 2.0.0.GA
Reporter: Snjezana Peco
Priority: Minor
I'm not sure if this is a bug in the wtp validators or some validator is implemented incorrectly.
The result is throwing the following exception :
java.lang.NullPointerException
at org.eclipse.wst.sse.ui.internal.reconcile.validator.ValidatorStrategy.endProcessing(ValidatorStrategy.java:140)
at org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProcessor.endProcessing(DocumentRegionProcessor.java:71)
at org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcessor.run(DirtyRegionProcessor.java:647)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
or NPE in the DirtyRegionProcessor.computePartitioning(int drOffset, int drLength) method.
I propose suspending all validators unless if the validators are tested.
This can be achieved by the following code (VpeTest.java) :
protected void performTestForVpeComponent(IFile componentPage)
throws PartInitException, Throwable {
performTestForVpeComponent(componentPage, true);
}
protected void performTestForVpeComponent(IFile componentPage, boolean disableValidation)
throws PartInitException, Throwable {
TestUtil.waitForJobs();
if (disableValidation) {
IProject project = componentPage.getProject();
if (project != null) {
ProjectConfiguration projectConfiguration = ConfigurationManager
.getManager().getProjectConfiguration(project);
projectConfiguration.setDoesProjectOverride(true);
projectConfiguration.setDisableAllValidation(true);
}
}
It is necessary to add org.eclipse.wst.validation to the required plugins of the org.jboss.tools.jsf.vpe.ui.test plugin.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 11 months
[JBoss JIRA] Created: (JBIDE-1919) If user rename any folder or project that we store in .settings/org.jboss.tools.seam.core.prefs then we should update proper properties.
by Alexey Kazakov (JIRA)
If user rename any folder or project that we store in .settings/org.jboss.tools.seam.core.prefs then we should update proper properties.
----------------------------------------------------------------------------------------------------------------------------------------
Key: JBIDE-1919
URL: http://jira.jboss.com/jira/browse/JBIDE-1919
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: Seam
Affects Versions: 2.0.1, 2.1
Reporter: Alexey Kazakov
Assigned To: Alexey Kazakov
In my opinoin it's very useful to have such refactoring.
For example we have .settings/org.jboss.tools.seam.core.prefs:
action.package=org.domain.seamTestWAR.session
action.sources=/seamTestWAR/src/action
eclipse.preferences.version=1
model.package=org.domain.seamTestWAR.entity
model.sources=/seamTestWAR/src/model
seam.ejb.project=seamTestWAR
seam.project.connection.profile=DefaultDS
seam.project.deployment.type=war
seam.project.settings.version=1.1
seam.project.web.root.folder=/seamTestWAR/WebContent
seam.runtime.name=jboss-seam-2.0.0.GA
seam.test.creating=false
seam.test.project=seamTestWAR-test
test.package=org.domain.seamTestWAR.test
test.sources=/seamTestWAR-test/test-src
So if we rename /seamTestWAR-test/test-src or /seamTestWAR/src/model or seamTestWAR or /seamTestWAR/WebContent or seamTestWAR-test
we wiil get invalid seam properties for the project.
It seems is not a big problem to solve it for 2.1.
Max, should we do it?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 12 months