JBoss Tools SVN: r4386 - trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-10-19 10:52:59 -0400 (Fri, 19 Oct 2007)
New Revision: 4386
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XContentProvider.java
Log:
JBIDE-1123
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XContentProvider.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XContentProvider.java 2007-10-19 14:38:44 UTC (rev 4385)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XContentProvider.java 2007-10-19 14:52:59 UTC (rev 4386)
@@ -13,6 +13,9 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.jface.viewers.ITreeContentProvider;
import org.eclipse.jface.viewers.TreeViewer;
import org.eclipse.jface.viewers.Viewer;
@@ -46,6 +49,13 @@
return o.getChildrenForSave();
} else if(parentElement instanceof IFile) {
IFile f = (IFile)parentElement;
+ if(!f.isSynchronized(IResource.DEPTH_ZERO)) {
+ IPath p = f.getLocation();
+ if(p != null) {
+ if(!p.toFile().isFile()) return null;
+ }
+ }
+ if(!f.isAccessible()) return null;
XModelObject o = EclipseResourceUtil.getObjectByResource(f);
XFilteredTree filteredTree = getFilteredTree(o);
if(filteredTree != null) {
17 years, 2 months
JBoss Tools SVN: r4385 - trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-10-19 10:38:44 -0400 (Fri, 19 Oct 2007)
New Revision: 4385
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XProjectContentProvider.java
Log:
JBIDE-1123
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XProjectContentProvider.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XProjectContentProvider.java 2007-10-19 14:37:45 UTC (rev 4384)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/navigator/XProjectContentProvider.java 2007-10-19 14:38:44 UTC (rev 4385)
@@ -15,6 +15,7 @@
import org.eclipse.jdt.core.IJavaProject;
import org.jboss.tools.common.model.XFilteredTree;
import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.project.IModelNature;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
public class XProjectContentProvider extends XContentProvider {
@@ -32,7 +33,10 @@
parentElement = ((IJavaProject)parentElement).getProject();
}
IProject f = (IProject)parentElement;
+ IModelNature n = EclipseResourceUtil.getModelNature(f);
+ if(n == null) return null;
XModelObject o = EclipseResourceUtil.getObjectByResource(f);
+ if(o == null) o = EclipseResourceUtil.createObjectForResource(f);
XFilteredTree filteredTree = getFilteredTree(o);
if(filteredTree == null) {
filteredTree = getFilteredTree(o);
17 years, 2 months
JBoss Tools SVN: r4384 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2007-10-19 10:37:45 -0400 (Fri, 19 Oct 2007)
New Revision: 4384
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamGenerateEnitiesWizard.java
Log:
generate entities did not use src/model and src/action correctly.
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamGenerateEnitiesWizard.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamGenerateEnitiesWizard.java 2007-10-19 14:37:18 UTC (rev 4383)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamGenerateEnitiesWizard.java 2007-10-19 14:37:45 UTC (rev 4384)
@@ -215,7 +215,7 @@
hbmtemplateAttributes = new HashMap<String, String>();
hbmtemplateAttributes.put("file_pattern", "{package-name}/{class-name}List.java"); //$NON-NLS-1$ //$NON-NLS-2$
hbmtemplateAttributes.put("template_name", "src/EntityList.java.ftl"); //$NON-NLS-1$ //$NON-NLS-2$
- hbmtemplateAttributes.put("outputdir",seamProjectsSet.getBeansFolder().getFullPath().toString()); //$NON-NLS-1$
+ hbmtemplateAttributes.put("outputdir",seamProjectsSet.getActionsFolder().getFullPath().toString()); //$NON-NLS-1$
hbmtemplateAttributes.put("for_each", "entity"); //$NON-NLS-1$ //$NON-NLS-2$
hbmtemplateAttributes.put("hibernatetool.util.toolclass","org.hibernate.eclipse.launch.SeamUtil"); //$NON-NLS-1$ //$NON-NLS-2$
wc.setAttribute(HibernateLaunchConstants.ATTR_EXPORTERS + ".hbmtemplate6.properties", hbmtemplateAttributes); //$NON-NLS-1$
@@ -242,7 +242,7 @@
hbmtemplateAttributes = new HashMap<String, String>();
hbmtemplateAttributes.put("file_pattern", "{package-name}/{class-name}Home.java"); //$NON-NLS-1$ //$NON-NLS-2$
hbmtemplateAttributes.put("template_name", "src/EntityHome.java.ftl"); //$NON-NLS-1$ //$NON-NLS-2$
- hbmtemplateAttributes.put("outputdir",seamProjectsSet.getBeansFolder().getFullPath().toString()); //$NON-NLS-1$
+ hbmtemplateAttributes.put("outputdir",seamProjectsSet.getActionsFolder().getFullPath().toString()); //$NON-NLS-1$
hbmtemplateAttributes.put("for_each", "entity"); //$NON-NLS-1$ //$NON-NLS-2$
hbmtemplateAttributes.put("hibernatetool.util.toolclass","org.hibernate.eclipse.launch.SeamUtil"); //$NON-NLS-1$ //$NON-NLS-2$
wc.setAttribute(HibernateLaunchConstants.ATTR_EXPORTERS + ".hbmtemplate8.properties", hbmtemplateAttributes); //$NON-NLS-1$
17 years, 2 months
JBoss Tools SVN: r4383 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2007-10-19 10:37:18 -0400 (Fri, 19 Oct 2007)
New Revision: 4383
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetInstallDelegete.java
Log:
Include richfaces.jar in ear/war so seam 1.2.1 works (related to RHDS-199)
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetInstallDelegete.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetInstallDelegete.java 2007-10-19 14:36:22 UTC (rev 4382)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/project/facet/SeamFacetInstallDelegete.java 2007-10-19 14:37:18 UTC (rev 4383)
@@ -69,8 +69,9 @@
public static String TEST_EAR_PROFILE = "test"; //$NON-NLS-1$
- public static AntCopyUtils.FileSet JBOSS_WAR_LIB_FILESET_WAR_CONFIG = new AntCopyUtils.FileSet()
+ public static AntCopyUtils.FileSet JBOSS_WAR_LIB_FILESET_WAR_CONFIG = new AntCopyUtils.FileSet()
.include("ajax4jsf.*\\.jar") //$NON-NLS-1$
+ .include("richfaces.*\\.jar")
.include("antlr.*\\.jar") //$NON-NLS-1$
.include("commons-beanutils.*\\.jar") //$NON-NLS-1$
.include("commons-collections.*\\.jar") //$NON-NLS-1$
@@ -79,7 +80,7 @@
.include("commons-jci-janino.*\\.jar") //$NON-NLS-1$
.include("drools-compiler.*\\.jar") //$NON-NLS-1$
.include("drools-core.*\\.jar") //$NON-NLS-1$
- .include("janino.*\\.jar") //$NON-NLS-1$
+ .include("janino.*\\.jar") //$NON-NLS-1$
.include("jboss-seam-debug\\.jar") //$NON-NLS-1$
.include("jboss-seam-ioc\\.jar") //$NON-NLS-1$
.include("jboss-seam-mail\\.jar") //$NON-NLS-1$
@@ -107,6 +108,7 @@
public static AntCopyUtils.FileSet JBOSS_WAR_LIB_FILESET_EAR_CONFIG = new AntCopyUtils.FileSet()
.include("ajax4jsf.*\\.jar") //$NON-NLS-1$
+ .include("richfaces.*\\.jar") //$NON-NLS-1$
.include("commons-beanutils.*\\.jar") //$NON-NLS-1$
.include("commons-digester.*\\.jar") //$NON-NLS-1$
.include("commons-collections.*\\.jar") //$NON-NLS-1$
17 years, 2 months
JBoss Tools SVN: r4382 - trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/console.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2007-10-19 10:36:22 -0400 (Fri, 19 Oct 2007)
New Revision: 4382
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/console/ELExceptionsMatcher.java
Log:
fix to ELExceptionMatcher to handle "Exception:" being listed on the same line twice.
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/console/ELExceptionsMatcher.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/console/ELExceptionsMatcher.java 2007-10-19 13:15:41 UTC (rev 4381)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/console/ELExceptionsMatcher.java 2007-10-19 14:36:22 UTC (rev 4382)
@@ -102,6 +102,12 @@
lineNum = matcher.group(2);
columnNum = matcher.group(3);
columnEnd = matcher.end(3);
+
+ int space = resource.lastIndexOf(' ');
+ if(space!=-1) {
+ resource = resource.substring(space).trim();
+ resourceStart = resourceEnd - resource.length();
+ }
CustomFileLink customFileLink = new CustomFileLink(console,
resource, lineNum);
try {
17 years, 2 months
JBoss Tools SVN: r4381 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-10-19 09:15:41 -0400 (Fri, 19 Oct 2007)
New Revision: 4381
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/AccessibleClasses.java
Log:
JBIDE-727
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/AccessibleClasses.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/AccessibleClasses.java 2007-10-19 12:45:12 UTC (rev 4380)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/AccessibleClasses.java 2007-10-19 13:15:41 UTC (rev 4381)
@@ -11,6 +11,13 @@
package org.jboss.tools.common.model.util;
import java.util.*;
+
+import org.eclipse.jdt.core.IJavaElement;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.IPackageFragment;
+import org.eclipse.jdt.core.IPackageFragmentRoot;
+import org.eclipse.jdt.core.IParent;
+import org.eclipse.jdt.core.JavaModelException;
import org.jboss.tools.common.model.*;
import org.jboss.tools.common.model.filesystems.FileSystemsHelper;
import org.jboss.tools.common.model.filesystems.XFileObject;
@@ -20,6 +27,7 @@
private static final int PROJECT = 2;
private int mode = 2;
private XModel model;
+ IJavaProject javaProject;
private Map<String,SortedSet<String>> map = null;
private static SortedSet<String> EMPTY = new TreeSet<String>();
private Comparator<String> comparator = new ACComparator<String>();
@@ -34,6 +42,7 @@
public AccessibleClasses(XModel model, int mode) {
this.model = (XModel)model;
+ javaProject = EclipseResourceUtil.getJavaProject(EclipseResourceUtil.getProject(model.getRoot()));
this.mode = mode;
map = ((mode & PROJECT) != 0) ? new HashMap<String,SortedSet<String>>() : null;
}
@@ -77,28 +86,77 @@
boolean exists = false;
XModelObject fs = FileSystemsHelper.getFileSystems(model);
if(fs == null) return false;
- XModelObject[] rs = fs.getChildren();
+ try {
+ exists = getChildren(list, packagename);
+ } catch (JavaModelException e) {
+ e.printStackTrace();
+ }
+ return exists;
+ }
+
+ private boolean getChildren(SortedSet<String> list, String packagename) throws JavaModelException {
+ if(javaProject == null || !javaProject.exists()) return false;
+ boolean exists = false;
boolean r = "%root%".equals(packagename);
String jp = (r) ? "" : packagename;
- if(!r) packagename = packagename.replace('.', '/');
- for (int i = 0; i < rs.length; i++) {
- XModelObject o = (r) ? rs[i] : rs[i].getChildByPath(packagename);
- if(o == null) continue;
- exists = true;
- XModelObject[] os = o.getChildren();
- for (int j = 0; j < os.length; j++) {
- if("true".equals(os[j].get("overlapped"))) continue;
- String ext = "." + os[j].getAttributeValue("extension") + ".";
- boolean isc = (extensions().indexOf(ext) >= 0);
- boolean isp = (os[j].getFileType() >= XFileObject.FOLDER);
- if(!isc && !isp) continue;
- String n = os[j].getAttributeValue("name");
- if(isp) n += ".";
- if(accepts(jp, n)) list.add(n);
+ IPackageFragmentRoot[] rs = javaProject.getPackageFragmentRoots();
+ for (int i = 0; i < rs.length; i++) {
+ IParent pf = (r) ? rs[i] : rs[i].getPackageFragment(packagename);
+ if(pf == null || !((IJavaElement)pf).exists()) continue;
+ exists = true;
+ IJavaElement[] cs = pf.getChildren();
+ process(list, cs, jp);
+ if(!r) process2(list, rs[i].getChildren(), jp);
+ }
+ return exists;
+ }
+
+ private void process(SortedSet<String> list, IJavaElement[] cs, String jp) throws JavaModelException {
+ for (int j = 0; j < cs.length; j++) {
+ boolean isp = cs[j] instanceof IPackageFragment;
+ String n = cs[j].getElementName();
+ if(n.length() == 0 && isp) {
+ process(list, ((IPackageFragment)cs[j]).getChildren(), jp);
+ } else {
+ if(isp) {
+ if(n.indexOf('.') >= 0) continue;
+ n += ".";
+ } else {
+ int d = n.lastIndexOf('.');
+ if(d >= 0) {
+ String ext = n.substring(d + 1);
+ n = n.substring(0, d);
+ if(!extensions().contains("." + ext + ".")) continue;
+ }
+ }
+ if(accepts(jp, n)) {
+ list.add(n);
+ }
}
}
- return exists;
}
+ private void process2(SortedSet<String> list, IJavaElement[] cs, String jp) throws JavaModelException {
+ for (int j = 0; j < cs.length; j++) {
+ String n = cs[j].getElementName();
+ if(!n.startsWith(jp + ".")) continue;
+ n = n.substring(jp.length() + 1);
+ boolean isp = cs[j] instanceof IPackageFragment;
+ if(isp) {
+ if(n.indexOf('.') >= 0) continue;
+ n += ".";
+ } else {
+ int d = n.lastIndexOf('.');
+ if(d >= 0) {
+ String ext = n.substring(d + 1);
+ n = n.substring(0, d);
+ if(!extensions().contains("." + ext + ".")) continue;
+ }
+ }
+ if(accepts(jp, n)) {
+ list.add(n);
+ }
+ }
+ }
protected boolean accepts(String packagename, String n) {
return !n.equalsIgnoreCase("CVS.") && !n.equalsIgnoreCase("svn.");
17 years, 2 months
JBoss Tools SVN: r4380 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2007-10-19 08:45:12 -0400 (Fri, 19 Oct 2007)
New Revision: 4380
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/JstPublisher.java
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/SingleFilePublisher.java
Log:
Switcher status from Error to Warning to avoid model dialog if a module is not available anymore - it will be logged as warning by Eclipse statusmanager.
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/JstPublisher.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/JstPublisher.java 2007-10-19 12:43:41 UTC (rev 4379)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/JstPublisher.java 2007-10-19 12:45:12 UTC (rev 4380)
@@ -106,12 +106,16 @@
if (ServerBehaviourDelegate.REMOVED == deltaKind) {
status = unpublish(server, module, monitor);
} else if (kind == IServer.PUBLISH_FULL || kind == IServer.PUBLISH_CLEAN) {
- if( deleted )
- throw new CoreException(new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID, "The module cannot be published because it cannot be located. (" + modulePath + ")"));
+ if( deleted ) {
+ publishState = IServer.PUBLISH_STATE_UNKNOWN;
+ throw new CoreException(new Status(IStatus.WARNING, JBossServerCorePlugin.PLUGIN_ID, "The module cannot be published because it cannot be located. (" + modulePath + ")"));
+ }
status = fullPublish(module, module[module.length-1], monitor);
} else if (kind == IServer.PUBLISH_INCREMENTAL || kind == IServer.PUBLISH_AUTO) {
- if( deleted )
- throw new CoreException(new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID, "The module cannot be published because it cannot be located. (" + modulePath + ")"));
+ if( deleted ) {
+ publishState = IServer.PUBLISH_STATE_UNKNOWN;
+ throw new CoreException(new Status(IStatus.WARNING, JBossServerCorePlugin.PLUGIN_ID, "The module cannot be published because it cannot be located. (" + modulePath + ")"));
+ }
status = incrementalPublish(module, module[module.length-1], monitor);
}
return status;
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/SingleFilePublisher.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/SingleFilePublisher.java 2007-10-19 12:43:41 UTC (rev 4379)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/publishers/SingleFilePublisher.java 2007-10-19 12:45:12 UTC (rev 4380)
@@ -70,10 +70,14 @@
FileUtil.fileSafeCopy(sourcePath.toFile(), destFile, l);
if( updateTimestamp )
destFile.setLastModified(new Date().getTime());
- if( l.errorFound ) publishState = IServer.PUBLISH_STATE_FULL;
+ if( l.errorFound ) {
+ publishState = IServer.PUBLISH_STATE_FULL;
+ }
} else {
// deleted module. o noes. Ignore it. We can't re-publish it, so just ignore it.
- throw new CoreException(new Status(IStatus.ERROR, JBossServerCorePlugin.PLUGIN_ID, "The module cannot be published because it cannot be located"));
+ publishState = IServer.PUBLISH_STATE_UNKNOWN;
+ Status status = new Status(IStatus.WARNING, JBossServerCorePlugin.PLUGIN_ID, "The module cannot be published because it cannot be located. (" + module.getName() + ")");
+ throw new CoreException(status);
}
return null;
17 years, 2 months
JBoss Tools SVN: r4379 - trunk/seam/plugins/org.jboss.tools.seam.core.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2007-10-19 08:43:41 -0400 (Fri, 19 Oct 2007)
New Revision: 4379
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml
Log:
facet should not be part of the labels/names
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml 2007-10-19 12:00:24 UTC (rev 4378)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml 2007-10-19 12:43:41 UTC (rev 4379)
@@ -39,10 +39,11 @@
<project-facet
id="jst.seam">
<label>
- Seam Facet
+ Seam
</label>
- <description>
- Seam facet description
+ <description>
+ Enables the project to work with JBoss Seam
+
</description>
</project-facet>
<project-facet-version
17 years, 2 months
JBoss Tools SVN: r4378 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe.
by jbosstools-commits@lists.jboss.org
Author: svasilyev
Date: 2007-10-19 08:00:24 -0400 (Fri, 19 Oct 2007)
New Revision: 4378
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java
Log:
Possibility of debugging of earlyStartup() method was added
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java 2007-10-19 10:58:12 UTC (rev 4377)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java 2007-10-19 12:00:24 UTC (rev 4378)
@@ -30,7 +30,7 @@
* The main plugin class to be used in the desktop.
*/
public class VpePlugin extends BaseUIPlugin implements IStartup {
- public final static String PLUGIN_ID = "org.jboss.tools.vpe";
+ public final static String PLUGIN_ID = "org.jboss.tools.vpe"; // $NON-NLS-1$
//The shared instance.
private static VpePlugin plugin;
//Resource bundle.
@@ -98,7 +98,10 @@
public void earlyStartup() {
/* init xulrunner path for */
try {
- XulRunnerBrowser.getXulRunnerPath();
+ String xulRunnerPath = XulRunnerBrowser.getXulRunnerPath();
+ if ("true".equals(Platform.getDebugOption(PLUGIN_ID + "/debug/earlyStartup"))) { // $NON-NLS-1$ // $NON-NLS-1$
+ logInfo("earlyStartup: XULRunner path is: " + xulRunnerPath);
+ }
} catch (Throwable t) {
// Ignore this. Will catch it when use Visual Editor
}
17 years, 2 months
JBoss Tools SVN: r4377 - in trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test: src/org/jboss/tools/jsf/vpe/richfaces/test and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: svasilyev
Date: 2007-10-19 06:58:12 -0400 (Fri, 19 Oct 2007)
New Revision: 4377
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/AllTests.java
Removed:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTest.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/
Log:
Tests were fixed to be run on XULRunner
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test
___________________________________________________________________
Name: svn:ignore
+ AllTests.txt
Copied: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/AllTests.java (from rev 4375, trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTest.java)
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/AllTests.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/AllTests.java 2007-10-19 10:58:12 UTC (rev 4377)
@@ -0,0 +1,34 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.richfaces.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+/**
+ * Class for testing all RichFaces components
+ *
+ * @author dsakovich(a)exadel.com
+ *
+ */
+
+public class AllTests {
+
+ public static Test suite() {
+ TestSuite suite = new TestSuite("Tests for Vpe RichFaces components");
+ // $JUnit-BEGIN$
+ suite.addTestSuite(RichFacesComponentTest.class);
+ // $JUnit-END$
+ return suite;
+
+ }
+
+}
Deleted: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTest.java 2007-10-19 10:44:14 UTC (rev 4376)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTest.java 2007-10-19 10:58:12 UTC (rev 4377)
@@ -1,34 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
- * Distributed under license by Red Hat, Inc. All rights reserved.
- * This program is made available under the terms of the
- * Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
-package org.jboss.tools.jsf.vpe.richfaces.test;
-
-import junit.framework.Test;
-import junit.framework.TestSuite;
-
-/**
- * Class for testing all RichFaces components
- *
- * @author dsakovich(a)exadel.com
- *
- */
-
-public class RichFacesAllTest {
-
- public static Test suite() {
- TestSuite suite = new TestSuite("Tests for Vpe RichFaces components");
- // $JUnit-BEGIN$
- suite.addTestSuite(RichFacesComponentTest.class);
- // $JUnit-END$
- return suite;
-
- }
-
-}
17 years, 2 months