JBoss Tools SVN: r5998 - trunk/as/docs/reference/en/images/perspective.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-01-28 11:08:02 -0500 (Mon, 28 Jan 2008)
New Revision: 5998
Added:
trunk/as/docs/reference/en/images/perspective/perspective_11a.png
trunk/as/docs/reference/en/images/perspective/perspective_11b.png
Log:
http://jira.jboss.com/jira/browse/JBDS-199 - adding a screenshot
Added: trunk/as/docs/reference/en/images/perspective/perspective_11a.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/perspective/perspective_11a.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/as/docs/reference/en/images/perspective/perspective_11b.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/perspective/perspective_11b.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 3 months
JBoss Tools SVN: r5997 - trunk/as/docs/reference/en/images/perspective.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-01-28 11:07:09 -0500 (Mon, 28 Jan 2008)
New Revision: 5997
Added:
trunk/as/docs/reference/en/images/perspective/perspective_13_a.png
Log:
http://jira.jboss.com/jira/browse/JBDS-199 - adding a screenshot
Added: trunk/as/docs/reference/en/images/perspective/perspective_13_a.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/perspective/perspective_13_a.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 3 months
JBoss Tools SVN: r5996 - trunk/as/docs/reference/en/images/perspective.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-01-28 11:03:06 -0500 (Mon, 28 Jan 2008)
New Revision: 5996
Added:
trunk/as/docs/reference/en/images/perspective/perspective_12_a.png
Log:
http://jira.jboss.com/jira/browse/JBDS-199 - adding a screenshot
Added: trunk/as/docs/reference/en/images/perspective/perspective_12_a.png
===================================================================
(Binary files differ)
Property changes on: trunk/as/docs/reference/en/images/perspective/perspective_12_a.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 3 months
JBoss Tools SVN: r5995 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2008-01-28 10:13:30 -0500 (Mon, 28 Jan 2008)
New Revision: 5995
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/QueryPagePropertySource.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1695
added Query run time property
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/QueryPagePropertySource.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/QueryPagePropertySource.java 2008-01-28 15:13:01 UTC (rev 5994)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/QueryPagePropertySource.java 2008-01-28 15:13:30 UTC (rev 5995)
@@ -39,8 +39,10 @@
private static final String QUERY_SIZE = "QueryPage.size";
+ private static final String QUERY_TIME = "QueryPage.time";
+
static {
- descriptors = new IPropertyDescriptor[3];
+ descriptors = new IPropertyDescriptor[4];
PropertyDescriptor descriptor;
// query string
@@ -63,6 +65,12 @@
descriptor.setAlwaysIncompatible(false);
//descriptor.setCategory(IResourcePropertyConstants.P_FILE_SYSTEM_CATEGORY);
descriptors[2] = descriptor;
+
+ // time of query running
+ descriptor = new TextPropertyDescriptor(QUERY_TIME,
+ "Query run time");
+ descriptor.setAlwaysIncompatible(false);
+ descriptors[3] = descriptor;
}
public QueryPagePropertySource (QueryPage page) {
@@ -92,6 +100,12 @@
int resultSize = page.getResultSize();
return resultSize==-1?"(unknown)":resultSize;
}
+ if(QUERY_TIME.equals(id) ) {
+ long resultTime = page.getQueryTime();
+ if (resultTime==-1) return"(unknown)";
+ if (resultTime > 1000) return (resultTime / 1000) + "." + (resultTime / 100) % 10 +" sec";
+ return resultTime + " millisec";
+ }
return null;
}
16 years, 3 months
JBoss Tools SVN: r5994 - trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2008-01-28 10:13:01 -0500 (Mon, 28 Jan 2008)
New Revision: 5994
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/AbstractQueryPage.java
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/HQLQueryPage.java
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/JavaPage.java
trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/QueryPage.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1695
added Query run time property
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/AbstractQueryPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/AbstractQueryPage.java 2008-01-28 15:09:40 UTC (rev 5993)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/AbstractQueryPage.java 2008-01-28 15:13:01 UTC (rev 5994)
@@ -40,6 +40,7 @@
private Session session;
private final ConsoleConfiguration cfg;
protected List list;
+ protected long queryTime = -1; //shows how long query runs
List pathNames;
protected boolean sticky = true;
private List exceptions = new ArrayList();
@@ -139,4 +140,8 @@
public ConsoleConfiguration getConsoleConfiguration() {
return cfg;
}
+
+ public long getQueryTime(){
+ return queryTime;
+ }
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/HQLQueryPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/HQLQueryPage.java 2008-01-28 15:09:40 UTC (rev 5993)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/HQLQueryPage.java 2008-01-28 15:13:01 UTC (rev 5994)
@@ -46,7 +46,9 @@
//list = query.list();
list = new ArrayList();
setupParameters(query, model);
+ long startTime = System.currentTimeMillis();
Iterator iter = query.list().iterator(); // need to be user-controllable to toggle between iterate, scroll etc.
+ queryTime = System.currentTimeMillis() - startTime;
while (iter.hasNext() ) {
Object element = iter.next();
list.add(element);
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/JavaPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/JavaPage.java 2008-01-28 15:09:40 UTC (rev 5993)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/JavaPage.java 2008-01-28 15:13:01 UTC (rev 5994)
@@ -123,7 +123,9 @@
if(list!=null) return list;
try {
if(criteria!=null) {
+ long startTime = System.currentTimeMillis();
list = criteria.list();
+ queryTime = System.currentTimeMillis() - startTime;
}
else {
return Collections.EMPTY_LIST;
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/QueryPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/QueryPage.java 2008-01-28 15:09:40 UTC (rev 5993)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/QueryPage.java 2008-01-28 15:13:01 UTC (rev 5994)
@@ -31,6 +31,11 @@
*
*/
public interface QueryPage {
+ /**
+ * Returns query run time in milliseconds
+ * @return
+ */
+ public abstract long getQueryTime();
public abstract List getList();
/**
16 years, 3 months
JBoss Tools SVN: r5993 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-01-28 10:09:40 -0500 (Mon, 28 Jan 2008)
New Revision: 5993
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/JavaScanner.java
Log:
JBIDE-1691
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/JavaScanner.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/JavaScanner.java 2008-01-28 14:30:40 UTC (rev 5992)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/scanner/java/JavaScanner.java 2008-01-28 15:09:40 UTC (rev 5993)
@@ -64,7 +64,10 @@
String content = FileUtil.readFile(f.getLocation().toFile());
if(content == null) return false;
int a = content.indexOf("org.jboss.seam.annotations."); //$NON-NLS-1$
- if(a < 0) return false;
+ if(a < 0) {
+ a = content.indexOf("javax.ejb.");
+ if(a < 0) return false;
+ }
int i = content.indexOf("@"); //$NON-NLS-1$
if(i < 0) return false;
return true;
16 years, 3 months
JBoss Tools SVN: r5992 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-01-28 09:30:40 -0500 (Mon, 28 Jan 2008)
New Revision: 5992
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1691
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java 2008-01-28 13:59:13 UTC (rev 5991)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java 2008-01-28 14:30:40 UTC (rev 5992)
@@ -42,6 +42,7 @@
import org.jboss.tools.seam.core.ISeamContextVariable;
import org.jboss.tools.seam.core.ISeamFactory;
import org.jboss.tools.seam.core.ISeamJavaComponentDeclaration;
+import org.jboss.tools.seam.core.ISeamJavaSourceReference;
import org.jboss.tools.seam.core.ISeamProject;
import org.jboss.tools.seam.core.ISeamProperty;
import org.jboss.tools.seam.core.ISeamTextSourceReference;
@@ -474,17 +475,17 @@
ISeamJavaComponentDeclaration javaDeclaration = component.getJavaDeclaration();
ISeamTextSourceReference location = ((SeamComponentDeclaration)javaDeclaration).getLocationFor(SeamComponentDeclaration.PATH_OF_SCOPE);
if(location==null) {
- location = getClassNameLocation(javaDeclaration);
+ location = getNameLocation(javaDeclaration);
}
return location;
}
- private ISeamTextSourceReference getClassNameLocation(ISeamJavaComponentDeclaration declaration) {
+ private ISeamTextSourceReference getNameLocation(ISeamJavaSourceReference source) {
int length = 0;
int offset = 0;
try {
- length = declaration.getSourceMember().getNameRange().getLength();
- offset = declaration.getSourceMember().getNameRange().getOffset();
+ length = source.getSourceMember().getNameRange().getLength();
+ offset = source.getSourceMember().getNameRange().getOffset();
} catch (JavaModelException e) {
SeamCorePlugin.getDefault().logError(SeamCoreMessages.SEAM_CORE_VALIDATOR_ERROR_VALIDATING_SEAM_CORE, e);
}
@@ -507,7 +508,7 @@
private void validateStatefulComponentMethods(SeamComponentMethodType methodType, ISeamComponent component, String postfixMessageId, String preferenceKey) {
ISeamJavaComponentDeclaration javaDeclaration = component.getJavaDeclaration();
- ISeamTextSourceReference classNameLocation = getClassNameLocation(javaDeclaration);
+ ISeamTextSourceReference classNameLocation = getNameLocation(javaDeclaration);
Set<ISeamComponentMethod> methods = javaDeclaration.getMethodsByType(methodType);
if(methods==null || methods.size()==0) {
addError(STATEFUL_COMPONENT_DOES_NOT_CONTAIN_METHOD_SUFIX_MESSAGE_ID + postfixMessageId, preferenceKey, new String[]{component.getName()}, classNameLocation, javaDeclaration.getResource());
@@ -528,7 +529,8 @@
if(javaDeclaration.getSourcePath().equals(method.getSourcePath())) {
IMethod javaMethod = (IMethod)method.getSourceMember();
String methodName = javaMethod.getElementName();
- addError(DUPLICATE_METHOD_PREFIX_MESSAGE_ID + postfixMessageId, preferenceKey, new String[]{methodName}, method, javaDeclaration.getResource());
+ ISeamTextSourceReference methodNameLocation = getNameLocation(method);
+ addError(DUPLICATE_METHOD_PREFIX_MESSAGE_ID + postfixMessageId, preferenceKey, new String[]{methodName}, methodNameLocation, javaDeclaration.getResource());
}
}
}
@@ -628,7 +630,8 @@
for (ISeamComponentMethod method : methods) {
IMethod javaMethod = (IMethod)method.getSourceMember();
String methodName = javaMethod.getElementName();
- addError(sufixMessageId + NONCOMPONENTS_METHOD_SUFIX_MESSAGE_ID, preferenceKey, new String[]{methodName}, method, method.getResource());
+ ISeamTextSourceReference methodNameLocation = getNameLocation(method);
+ addError(sufixMessageId + NONCOMPONENTS_METHOD_SUFIX_MESSAGE_ID, preferenceKey, new String[]{methodName}, methodNameLocation, method.getResource());
validationContext.addUnnamedCoreResource(declaration.getSourcePath());
}
} else {
16 years, 3 months
JBoss Tools SVN: r5991 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-01-28 08:59:13 -0500 (Mon, 28 Jan 2008)
New Revision: 5991
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1691
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java 2008-01-28 12:36:27 UTC (rev 5990)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java 2008-01-28 13:59:13 UTC (rev 5991)
@@ -525,9 +525,11 @@
Set<ISeamComponentMethod> methods = javaDeclaration.getMethodsByType(methodType);
if(methods!=null && methods.size()>1) {
for (ISeamComponentMethod method : methods) {
- IMethod javaMethod = (IMethod)method.getSourceMember();
- String methodName = javaMethod.getElementName();
- addError(DUPLICATE_METHOD_PREFIX_MESSAGE_ID + postfixMessageId, preferenceKey, new String[]{methodName}, method, javaDeclaration.getResource());
+ if(javaDeclaration.getSourcePath().equals(method.getSourcePath())) {
+ IMethod javaMethod = (IMethod)method.getSourceMember();
+ String methodName = javaMethod.getElementName();
+ addError(DUPLICATE_METHOD_PREFIX_MESSAGE_ID + postfixMessageId, preferenceKey, new String[]{methodName}, method, javaDeclaration.getResource());
+ }
}
}
}
@@ -626,7 +628,7 @@
for (ISeamComponentMethod method : methods) {
IMethod javaMethod = (IMethod)method.getSourceMember();
String methodName = javaMethod.getElementName();
- addError(sufixMessageId + NONCOMPONENTS_METHOD_SUFIX_MESSAGE_ID, preferenceKey, new String[]{methodName}, method, declaration.getResource());
+ addError(sufixMessageId + NONCOMPONENTS_METHOD_SUFIX_MESSAGE_ID, preferenceKey, new String[]{methodName}, method, method.getResource());
validationContext.addUnnamedCoreResource(declaration.getSourcePath());
}
} else {
16 years, 3 months
JBoss Tools SVN: r5990 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-01-28 07:36:27 -0500 (Mon, 28 Jan 2008)
New Revision: 5990
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/XModelMetaDataImpl.java
Log:
JBIDE-1628 Lazy loading meta model from DOM is removed
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/XModelMetaDataImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/XModelMetaDataImpl.java 2008-01-28 11:59:00 UTC (rev 5989)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/impl/XModelMetaDataImpl.java 2008-01-28 12:36:27 UTC (rev 5990)
@@ -22,6 +22,8 @@
public class XModelMetaDataImpl implements XModelMetaData, XMetaDataConstants {
private static XModelMetaDataImpl instance = null;
+ private static boolean loaded = false;
+ boolean reportLoadingTime = false;
private HashMap<String,XModelEntity> entities = new HashMap<String,XModelEntity>(50);
private XIconListImpl icons = new XIconListImpl();
@@ -33,22 +35,35 @@
static Object lock = new Object();
public static XModelMetaData getInstance() {
- if(instance == null) {
- synchronized (lock) {
- if(instance != null) return instance;
- instance = new XModelMetaDataImpl();
- }
+ if(loaded) return instance;
+ synchronized (lock) {
+ if(instance != null) return instance;
+ instance = new XModelMetaDataImpl();
+ loaded = true;
}
return instance;
}
private XModelMetaDataImpl() {
try {
+ long t = System.currentTimeMillis();
XMetaDataLoader.loadMetaModel(this);
instance = this;
+
+ //uses cached elements
+ parents.init(this);
+
XModelEntityImpl r = (XModelEntityImpl)getEntity("Root");
r.validateChildren();
- parents.init(this);
+
+ //Resolve XML now, or late resolving may not be thread safe.
+ XModelEntity[] es = this.entities.values().toArray(new XModelEntity[0]);
+ for (int i = 0; i < es.length; i++) ((XModelEntityImpl)es[i]).validate();
+
+ if(reportLoadingTime) {
+ long dt = - t + (t = System.currentTimeMillis());
+ ModelPlugin.getPluginLog().logInfo("Meta model loaded in " + dt + " ms");
+ }
} catch (Exception e) {
ModelPlugin.getPluginLog().logError(e);
throw new RuntimeException("Cannot create metamodel: " + e.getMessage());
16 years, 3 months
JBoss Tools SVN: r5989 - trunk/documentation/guides/userguide/GettingStartedGuide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-01-28 06:59:00 -0500 (Mon, 28 Jan 2008)
New Revision: 5989
Modified:
trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/getting_started.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-235 and JBDS-240 GSG: new relevant links to additional info + some corrections
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/getting_started.xml
===================================================================
--- trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/getting_started.xml 2008-01-28 11:50:26 UTC (rev 5988)
+++ trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/getting_started.xml 2008-01-28 11:59:00 UTC (rev 5989)
@@ -23,7 +23,7 @@
<section id="ConfigJavaEnvironment">
<?dbhtml filename="ConfigJavaEnvironment.html"?>
<title>Configuring Your Java Environment</title>
- <para>You must have a working installation of JDK 1.5 before you install JBoss Developer Studio.
+ <para>You must have a working installation of JDK 5 before you install JBoss Developer Studio.
Currently it will only fully work with a 32-bit JVM, not a 64-bit JVM. On a 64-bit JVM the visual
editor fails to launch. Thus in this guide we will show you how to install a 32-bit Sun JDK 5.0
on a Linux Platform and Microsoft Windows Platform.</para>
@@ -330,27 +330,28 @@
</itemizedlist>
<para>To install the JBoss Tools plugins for Eclipse, you need the following:</para>
- <itemizedlist>
+
+ <itemizedlist>
<listitem>
<para>Get Eclipse 3.3.1 and Web Tools 2.0.1</para>
</listitem>
</itemizedlist>
<para>The quickest way to get a WTP version is to download "Eclipse IDE for Java EE Developers"
via <ulink url="http://www.eclipse.org">www.eclipse.org</ulink>.</para>
- <note>
- <title>Note:</title>
- <para>Remember to choose the download that matches your OS and use Java 5 when you run
- it.</para>
- </note>
+ <note><title>Note:</title><para>Remember to choose the download that matches your OS and use Java 5 when you run it.</para></note>
<itemizedlist>
- <listitem>
- <para>Get the JBoss Tools build</para>
- </listitem>
- <listitem>
+ <listitem>
+ <para>Get the <ulink url="http://labs.jboss.com/tools/download/index.html">JBoss Tools build</ulink></para>
+ </listitem>
+ </itemizedlist>
+ <para>You can also find the latest development release of JBossTools from <ulink url="http://download.jboss.org/jbosstools/updates/stable/">JBossTools Stable Update Site</ulink></para>
+ <itemizedlist>
+ <listitem>
<para>Finally, install the build</para>
</listitem>
</itemizedlist>
- <para>Unzip the file(s) directly into your Eclipse <emphasis>
+
+ <para>Unzip the file(s) directly into your Eclipse <emphasis>
<property>plugins/features</property>
</emphasis> directory and it will be readily available. It might be necessary to start Eclipse
with eclipse -clean to make sure it starts clean and rereads the new list of plugins.</para>
16 years, 3 months