JBoss Tools SVN: r20854 - in branches/hibernatetools-multiversion/hibernatetools/plugins: org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2010-03-16 14:49:58 -0400 (Tue, 16 Mar 2010)
New Revision: 20854
Added:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/
Removed:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/ELTransformer.java
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLDetector.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6070 - initial step
Copied: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui (from rev 20798, trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui)
Deleted: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/ELTransformer.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/ELTransformer.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/ELTransformer.java 2010-03-16 18:49:58 UTC (rev 20854)
@@ -1,27 +0,0 @@
-package org.hibernate.eclipse.jdt.ui.internal;
-
-public class ELTransformer {
-
- /**
- * transform any #{el expressions} into named parameters so HQL validation won't fail on it.
- * @param hql
- * @return
- */
- static public String removeEL(String hql) {
- int elStart = hql.indexOf("#{"); //$NON-NLS-1$
- int next = hql.indexOf("}", elStart); //$NON-NLS-1$
-
- while(elStart!=-1 && next!=-1) {
- String result = hql.substring(0, elStart);
- result += ":_" + hql.substring(elStart+2, next).replaceAll("[^\\p{javaJavaIdentifierStart}]","_") + "_"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
- result += hql.substring(next+1);
-
- hql = result;
-
- elStart = hql.indexOf("#{"); //$NON-NLS-1$
- next = hql.indexOf("}", elStart); //$NON-NLS-1$
- }
-
- return hql;
- }
-}
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLDetector.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLDetector.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/HQLDetector.java 2010-03-16 18:49:58 UTC (rev 20854)
@@ -1,7 +1,6 @@
package org.hibernate.eclipse.jdt.ui.internal;
import java.util.ArrayList;
-import java.util.Collections;
import java.util.Iterator;
import java.util.List;
@@ -17,19 +16,17 @@
import org.eclipse.jdt.core.dom.SingleMemberAnnotation;
import org.eclipse.jdt.core.dom.StringLiteral;
import org.hibernate.console.ConsoleConfiguration;
-import org.hibernate.engine.query.HQLQueryPlan;
-import org.hibernate.impl.SessionFactoryImpl;
public class HQLDetector extends ASTVisitor {
private final IFile resource;
List<HQLProblem> problems = new ArrayList<HQLProblem>();
- private final ConsoleConfiguration consoleConfiguration;
+ private final ConsoleConfiguration consoleConfig;
private final CompilationUnit cu;
- public HQLDetector(CompilationUnit cu, ConsoleConfiguration consoleConfiguration, IResource resource) {
+ public HQLDetector(CompilationUnit cu, ConsoleConfiguration consoleConfig, IResource resource) {
this.cu = cu;
- this.consoleConfiguration = consoleConfiguration;
+ this.consoleConfig = consoleConfig;
this.resource = (IFile) resource;
}
@@ -44,7 +41,7 @@
if(value instanceof StringLiteral) {
StringLiteral sl = (StringLiteral)value;
try {
- checkQuery( consoleConfiguration, sl.getLiteralValue(), true );
+ consoleConfig.checkQuery(sl.getLiteralValue(), true);
} catch(RuntimeException re) {
problems.add(new HQLProblem(re.getLocalizedMessage(), true, resource, sl.getStartPosition(), sl.getStartPosition()+sl.getLength()-1, getLineNumber(sl.getStartPosition())));
}
@@ -82,7 +79,7 @@
StringLiteral sl = (StringLiteral) object;
String literalValue = sl.getLiteralValue();
try {
- checkQuery( consoleConfiguration, literalValue, true );
+ consoleConfig.checkQuery(literalValue, true);
} catch(RuntimeException re) {
problems.add(new HQLProblem(re.getLocalizedMessage(), true, resource, sl.getStartPosition(), sl.getStartPosition()+sl.getLength()-1, getLineNumber( sl.getStartPosition() )));
}
@@ -97,25 +94,6 @@
}
}
- /**
- * Given a ConsoleConfiguration and a query this method validates the query through hibernate if a sessionfactory is available.
- * @param cc
- * @param query
- * @param allowEL if true, EL syntax will be replaced as a named variable
- * @throws HibernteException if something is wrong with the query
- */
- public static void checkQuery(ConsoleConfiguration cc, String query, boolean allowEL) {
- if(cc!=null && cc.isSessionFactoryCreated()) {
- if(allowEL) {
- query = ELTransformer.removeEL(query);
- }
- new HQLQueryPlan(query, false, Collections.EMPTY_MAP, (SessionFactoryImpl)cc.getSessionFactory());
- } else {
- //messager.printWarning( annoValue.getPosition(), "Could not verify syntax. SessionFactory not created." );
- }
- }
-
-
public List<HQLProblem> getProblems() {
return problems;
}
14 years, 3 months
JBoss Tools SVN: r20853 - in branches/hibernatetools-multiversion/hibernatetools: tests and 5 other directories.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2010-03-16 14:49:29 -0400 (Tue, 16 Mar 2010)
New Revision: 20853
Added:
branches/hibernatetools-multiversion/hibernatetools/tests/
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/hqleditor/preferences/HQLEditorPreferencePageTest.java
Removed:
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/hqleditor/preferences/HQLEditorPreferencePageTest.java
Modified:
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/.classpath
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/src/mapping/interceptor/StatefulInterceptor.java
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/ConsoleConfigurationTest.java
branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/KnownConfigurationsTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6070 - initial step
Copied: branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test (from rev 20798, trunk/hibernatetools/tests/org.hibernate.eclipse.console.test)
Modified: branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/.classpath
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/.classpath 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/.classpath 2010-03-16 18:49:29 UTC (rev 20853)
@@ -4,7 +4,7 @@
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate-tools-tests.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/hsqldb.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/hsqldb.jar" sourcepath="C:/Bin/hsqldb"/>
<classpathentry exported="true" kind="lib" path="lib/jaxen-1.1-beta-7.jar"/>
<classpathentry exported="true" kind="lib" path="lib/jmock-2.5.1/bsh-core-2.0b4.jar"/>
<classpathentry exported="true" kind="lib" path="lib/jmock-2.5.1/cglib-2.1_3-src.jar"/>
Deleted: branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF 2010-03-16 18:49:29 UTC (rev 20853)
@@ -1,62 +0,0 @@
-Manifest-Version: 1.0
-Bundle-ManifestVersion: 2
-Bundle-Name: %Bundle-Name.0
-Bundle-SymbolicName: org.hibernate.eclipse.console.test
-Bundle-Version: 3.3.0.qualifier
-Bundle-ClassPath: org.hibernate.eclipse.console.test.test/,
- lib/hibernate-tools-tests.jar,
- lib/hsqldb.jar,
- lib/jaxen-1.1-beta-7.jar,
- lib/jmock-2.5.1/bsh-core-2.0b4.jar,
- lib/jmock-2.5.1/cglib-2.1_3-src.jar,
- lib/jmock-2.5.1/cglib-nodep-2.1_3.jar,
- lib/jmock-2.5.1/hamcrest-core-1.1.jar,
- lib/jmock-2.5.1/hamcrest-library-1.1.jar,
- lib/jmock-2.5.1/jmock-2.5.1.jar,
- lib/jmock-2.5.1/jmock-junit3-2.5.1.jar,
- lib/jmock-2.5.1/jmock-junit4-2.5.1.jar,
- lib/jmock-2.5.1/jmock-legacy-2.5.1.jar,
- lib/jmock-2.5.1/jmock-script-2.5.1.jar,
- lib/jmock-2.5.1/objenesis-1.0.jar
-Bundle-Vendor: %Bundle-Vendor.0
-Bundle-Localization: plugin
-Export-Package: org.hibernate.eclipse.console.test,
- org.hibernate.eclipse.console.test.project,
- org.hibernate.eclipse.console.test.project.xpl,
- org.hibernate.eclipse.console.test.utils,
- org.hibernate.eclipse.hqleditor.preferences,
- org.jmock,
- org.jmock.api,
- org.jmock.integration.junit3,
- org.jmock.integration.junit4,
- org.jmock.internal,
- org.jmock.internal.matcher,
- org.jmock.lib,
- org.jmock.lib.action,
- org.jmock.lib.concurrent,
- org.jmock.lib.concurrent.internal,
- org.jmock.lib.legacy,
- org.jmock.lib.script,
- org.jmock.syntax
-Require-Bundle: org.junit,
- org.eclipse.jdt.core,
- org.eclipse.jdt.launching,
- org.eclipse.ui,
- org.eclipse.jdt.ui,
- org.eclipse.core.runtime,
- org.eclipse.ui.ide,
- org.hibernate.eclipse,
- org.hibernate.eclipse.mapper,
- org.eclipse.jface.text,
- org.hibernate.eclipse.console,
- org.apache.ant,
- org.eclipse.ui.views,
- org.jboss.tools.hibernate.ui,
- org.jboss.tools.tests,
- org.eclipse.jdt.apt.core,
- org.eclipse.debug.ui,
- org.eclipse.ui.workbench.texteditor;bundle-version="3.5.0"
-Bundle-ActivationPolicy: lazy
-Bundle-Activator: org.hibernate.eclipse.console.test.HibernateConsoleTestPlugin
-Eclipse-RegisterBuddy: org.hibernate.eclipse
-Bundle-RequiredExecutionEnvironment: J2SE-1.5
Copied: branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF (from rev 20806, trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF)
===================================================================
--- branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF (rev 0)
+++ branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF 2010-03-16 18:49:29 UTC (rev 20853)
@@ -0,0 +1,61 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name.0
+Bundle-SymbolicName: org.hibernate.eclipse.console.test
+Bundle-Version: 3.3.0.qualifier
+Bundle-ClassPath: org.hibernate.eclipse.console.test.test/,
+ lib/hibernate-tools-tests.jar,
+ lib/hsqldb.jar,
+ lib/jaxen-1.1-beta-7.jar,
+ lib/jmock-2.5.1/bsh-core-2.0b4.jar,
+ lib/jmock-2.5.1/cglib-2.1_3-src.jar,
+ lib/jmock-2.5.1/cglib-nodep-2.1_3.jar,
+ lib/jmock-2.5.1/hamcrest-core-1.1.jar,
+ lib/jmock-2.5.1/hamcrest-library-1.1.jar,
+ lib/jmock-2.5.1/jmock-2.5.1.jar,
+ lib/jmock-2.5.1/jmock-junit3-2.5.1.jar,
+ lib/jmock-2.5.1/jmock-junit4-2.5.1.jar,
+ lib/jmock-2.5.1/jmock-legacy-2.5.1.jar,
+ lib/jmock-2.5.1/jmock-script-2.5.1.jar,
+ lib/jmock-2.5.1/objenesis-1.0.jar
+Bundle-Vendor: %Bundle-Vendor.0
+Bundle-Localization: plugin
+Export-Package: org.hibernate.eclipse.console.test,
+ org.hibernate.eclipse.console.test.project,
+ org.hibernate.eclipse.console.test.project.xpl,
+ org.hibernate.eclipse.console.test.utils,
+ org.hibernate.eclipse.hqleditor.preferences,
+ org.jmock,
+ org.jmock.api,
+ org.jmock.integration.junit3,
+ org.jmock.integration.junit4,
+ org.jmock.internal,
+ org.jmock.internal.matcher,
+ org.jmock.lib,
+ org.jmock.lib.action,
+ org.jmock.lib.concurrent,
+ org.jmock.lib.concurrent.internal,
+ org.jmock.lib.legacy,
+ org.jmock.lib.script,
+ org.jmock.syntax
+Require-Bundle: org.junit,
+ org.eclipse.jdt.core,
+ org.eclipse.jdt.launching,
+ org.eclipse.ui,
+ org.eclipse.jdt.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.ui.ide,
+ org.hibernate.eclipse,
+ org.hibernate.eclipse.mapper,
+ org.eclipse.jface.text,
+ org.hibernate.eclipse.console,
+ org.apache.ant,
+ org.eclipse.ui.views,
+ org.jboss.tools.hibernate.ui,
+ org.eclipse.jdt.apt.core,
+ org.eclipse.debug.ui,
+ org.eclipse.ui.workbench.texteditor;bundle-version="3.5.0"
+Bundle-ActivationPolicy: lazy
+Bundle-Activator: org.hibernate.eclipse.console.test.HibernateConsoleTestPlugin
+Eclipse-RegisterBuddy: org.hibernate.eclipse
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
Modified: branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/src/mapping/interceptor/StatefulInterceptor.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/src/mapping/interceptor/StatefulInterceptor.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/res/project/src/mapping/interceptor/StatefulInterceptor.java 2010-03-16 18:49:29 UTC (rev 20853)
@@ -7,7 +7,6 @@
import java.util.List;
import org.hibernate.EmptyInterceptor;
-import org.hibernate.Session;
import org.hibernate.type.Type;
public class StatefulInterceptor extends EmptyInterceptor {
Modified: branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/ConsoleConfigurationTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/ConsoleConfigurationTest.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/ConsoleConfigurationTest.java 2010-03-16 18:49:29 UTC (rev 20853)
@@ -8,7 +8,6 @@
import junit.framework.TestCase;
import org.eclipse.core.runtime.FileLocator;
-import org.hibernate.SessionFactory;
import org.hibernate.console.ConcoleConfigurationAdapter;
import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.console.HibernateConsoleRuntimeException;
@@ -130,13 +129,11 @@
int factoryClosing = 0;
public int queryCreated;
- public void sessionFactoryClosing(ConsoleConfiguration configuration,
- SessionFactory aboutToCloseFactory) {
+ public void sessionFactoryClosing(ConsoleConfiguration configuration) {
factoryClosing++;
}
- public void sessionFactoryBuilt(ConsoleConfiguration ccfg,
- SessionFactory builtSessionFactory) {
+ public void sessionFactoryBuilt(ConsoleConfiguration ccfg) {
factoryBuilt++;
}
Modified: branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/KnownConfigurationsTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/KnownConfigurationsTest.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/console/test/KnownConfigurationsTest.java 2010-03-16 18:49:29 UTC (rev 20853)
@@ -29,11 +29,11 @@
added.add(root);
}
- public void sessionFactoryBuilt(ConsoleConfiguration ccfg, SessionFactory builtFactory) {
+ public void sessionFactoryBuilt(ConsoleConfiguration ccfg) {
fail(ConsoleTestMessages.KnownConfigurationsTest_no_sf_should_be_build);
}
- public void sessionFactoryClosing(ConsoleConfiguration configuration, SessionFactory closingFactory) {
+ public void sessionFactoryClosing(ConsoleConfiguration configuration) {
fail(ConsoleTestMessages.KnownConfigurationsTest_no_sf_should_be_closed);
}
Deleted: branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/hqleditor/preferences/HQLEditorPreferencePageTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/hqleditor/preferences/HQLEditorPreferencePageTest.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/hqleditor/preferences/HQLEditorPreferencePageTest.java 2010-03-16 18:49:29 UTC (rev 20853)
@@ -1,47 +0,0 @@
-package org.hibernate.eclipse.hqleditor.preferences;
-
-import org.eclipse.jface.preference.PreferenceDialog;
-import org.jboss.tools.test.util.WorkbenchUtils;
-
-import junit.framework.TestCase;
-/**
- * TODO Get rid of copy paste code
- *
- * @author eskimo
- *
- */
-public class HQLEditorPreferencePageTest extends TestCase {
-
- public void testHQLEditorPreferencePageShow() {
- PreferenceDialog prefDialog =
- WorkbenchUtils.createPreferenceDialog(
- HQLEditorPreferencePage.class.getName());
-
- try {
- prefDialog.setBlockOnOpen(false);
- prefDialog.open();
-
- Object selectedPage = prefDialog.getSelectedPage();
- assertTrue("Selected page is not an instance of HQLEditorPreferencePage", selectedPage instanceof HQLEditorPreferencePage); //$NON-NLS-1$
- } finally {
- prefDialog.close();
- }
- }
-
- public void testHQLEditorPreferencePagePerformOk() {
- PreferenceDialog prefDialog =
- WorkbenchUtils.createPreferenceDialog(
- HQLEditorPreferencePage.class.getName());
-
- try {
- prefDialog.setBlockOnOpen(false);
- prefDialog.open();
-
- HQLEditorPreferencePage selectedPage = (HQLEditorPreferencePage)prefDialog.getSelectedPage();
- selectedPage.performOk();
- } finally {
- prefDialog.close();
- }
- }
-
-}
Copied: branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/hqleditor/preferences/HQLEditorPreferencePageTest.java (from rev 20806, trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/hqleditor/preferences/HQLEditorPreferencePageTest.java)
===================================================================
--- branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/hqleditor/preferences/HQLEditorPreferencePageTest.java (rev 0)
+++ branches/hibernatetools-multiversion/hibernatetools/tests/org.hibernate.eclipse.console.test/src/org/hibernate/eclipse/hqleditor/preferences/HQLEditorPreferencePageTest.java 2010-03-16 18:49:29 UTC (rev 20853)
@@ -0,0 +1,58 @@
+package org.hibernate.eclipse.hqleditor.preferences;
+
+import org.eclipse.jface.preference.PreferenceDialog;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.dialogs.PreferencesUtil;
+
+import junit.framework.TestCase;
+/**
+ * TODO Get rid of copy paste code
+ *
+ * @author eskimo
+ *
+ */
+public class HQLEditorPreferencePageTest extends TestCase {
+
+ public static Shell getActiveShell() {
+ return PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell();
+ }
+
+ public static PreferenceDialog createPreferenceDialog(String pageId) {
+ PreferenceDialog dialog = PreferencesUtil.createPreferenceDialogOn(
+ getActiveShell(), pageId, new String[] {pageId}, null);
+ dialog.setBlockOnOpen(false);
+ return dialog;
+ }
+
+ public void testHQLEditorPreferencePageShow() {
+ PreferenceDialog prefDialog =
+ createPreferenceDialog(HQLEditorPreferencePage.class.getName());
+
+ try {
+ prefDialog.setBlockOnOpen(false);
+ prefDialog.open();
+
+ Object selectedPage = prefDialog.getSelectedPage();
+ assertTrue("Selected page is not an instance of HQLEditorPreferencePage", selectedPage instanceof HQLEditorPreferencePage); //$NON-NLS-1$
+ } finally {
+ prefDialog.close();
+ }
+ }
+
+ public void testHQLEditorPreferencePagePerformOk() {
+ PreferenceDialog prefDialog =
+ createPreferenceDialog(HQLEditorPreferencePage.class.getName());
+
+ try {
+ prefDialog.setBlockOnOpen(false);
+ prefDialog.open();
+
+ HQLEditorPreferencePage selectedPage = (HQLEditorPreferencePage)prefDialog.getSelectedPage();
+ selectedPage.performOk();
+ } finally {
+ prefDialog.close();
+ }
+ }
+
+}
14 years, 3 months
JBoss Tools SVN: r20852 - in branches/hibernatetools-multiversion/hibernatetools/plugins: org.hibernate.eclipse.console/META-INF and 7 other directories.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2010-03-16 14:48:34 -0400 (Tue, 16 Mar 2010)
New Revision: 20852
Added:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/
Removed:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/Formatter.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/QLFormatHelper.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/CollectionPropertySource.java
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MANIFEST.MF
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ConfigurationCombo.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/ConfigurationsViewActionGroup.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/DynamicSQLPreviewView.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsProvider.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/EntityPropertySource.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/HibernatePropertySourceProvider.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/QueryPagePropertySource.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/LazySessionFactoryAdapter.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/criteriaeditor/CriteriaEditor.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLEditor.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLFormattingStrategy.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6070 - initial step
Copied: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console (from rev 20798, trunk/hibernatetools/plugins/org.hibernate.eclipse.console)
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MANIFEST.MF 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/META-INF/MANIFEST.MF 2010-03-16 18:48:34 UTC (rev 20852)
@@ -48,13 +48,13 @@
org.eclipse.jface,
org.eclipse.ui,
org.eclipse.ui.editors,
- org.eclipse.ui.views,
org.eclipse.ui.workbench,
org.eclipse.ui.workbench.texteditor,
org.eclipse.jface.text,
org.eclipse.ui.ide,
org.eclipse.help,
org.eclipse.ui.console,
+ org.eclipse.ui.views,
org.eclipse.gef,
org.eclipse.debug.core;bundle-version="3.4.0",
org.eclipse.debug.ui,
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ConfigurationCombo.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ConfigurationCombo.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/ConfigurationCombo.java 2010-03-16 18:48:34 UTC (rev 20852)
@@ -8,7 +8,6 @@
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
-import org.hibernate.SessionFactory;
import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.console.KnownConfigurations;
import org.hibernate.console.KnownConfigurationsAdapter;
@@ -42,13 +41,10 @@
listener = new KnownConfigurationsAdapter() {
- public void sessionFactoryClosing(
- ConsoleConfiguration configuration,
- SessionFactory closingFactory) {
+ public void sessionFactoryClosing(ConsoleConfiguration configuration) {
}
- public void sessionFactoryBuilt(ConsoleConfiguration ccfg,
- SessionFactory builtFactory) {
+ public void sessionFactoryBuilt(ConsoleConfiguration ccfg) {
}
public void configurationRemoved(ConsoleConfiguration root, boolean forUpdate) {
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.java 2010-03-16 18:48:34 UTC (rev 20852)
@@ -125,9 +125,7 @@
public static String ConsoleConfigurationPropertySource_error;
public static String ConsoleConfigurationPropertySource_name;
public static String ConsoleConfigurationPropertySource_properties_file;
- public static String DynamicSQLPreviewView_caused_by;
public static String DynamicSQLPreviewView_empty_hql_query;
- public static String DynamicSQLPreviewView_manipulation_of;
public static String DynamicSQLPreviewView_no_console_conf_associated;
public static String DynamicSQLPreviewView_no_hql_query_editor;
public static String DynamicSQLPreviewView_no_hql_query_editor_selected;
@@ -155,8 +153,6 @@
public static String PendingNode_error_getting_images;
public static String PendingNode_pending;
//
- public static String EntityPropertySource_identifier;
- public static String EntityPropertySource_properties;
public static String QueryPagePropertySource_console_configuration;
public static String QueryPagePropertySource_millisec;
public static String QueryPagePropertySource_query_run_time;
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/HibernateConsoleMessages.properties 2010-03-16 18:48:34 UTC (rev 20852)
@@ -117,9 +117,7 @@
ConsoleConfigurationPropertySource_connection=Connection
ConsoleConfigurationPropertySource_mode=Type
ConsoleConfigurationPropertySource_properties_file=Properties file
-DynamicSQLPreviewView_caused_by=\nCaused by:\n
DynamicSQLPreviewView_empty_hql_query=Empty HQL query.
-DynamicSQLPreviewView_manipulation_of=Manipulation of
DynamicSQLPreviewView_no_console_conf_associated=No Console configuration associated with HQL Editor
DynamicSQLPreviewView_no_hql_query_editor=No HQL Query editor
DynamicSQLPreviewView_no_hql_query_editor_selected=No HQL Query editor selected
@@ -148,8 +146,6 @@
PendingNode_error_getting_images=Error while getting images
PendingNode_pending=Pending
-EntityPropertySource_identifier=Identifier
-EntityPropertySource_properties=Properties
QueryPagePropertySource_console_configuration=Console configuration
# {0}=count in millisec
QueryPagePropertySource_millisec={0} millisec
Deleted: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/Formatter.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/Formatter.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/Formatter.java 2010-03-16 18:48:34 UTC (rev 20852)
@@ -1,375 +0,0 @@
-package org.hibernate.eclipse.console.utils;
-
-import java.util.HashSet;
-import java.util.LinkedList;
-import java.util.Set;
-import java.util.StringTokenizer;
-
-import org.hibernate.util.StringHelper;
-
-/**
- * Old formatter from previous Hibernate versions which allowed a bit more control, i.e. we want *less* spaces not more.
- * In here to simplify migration from 3.2 to 3.3 where this class changed.
- *
- */
-@SuppressWarnings({ "unchecked", "nls" })
-public class Formatter {
-
- private static final Set BEGIN_CLAUSES = new HashSet();
- private static final Set END_CLAUSES = new HashSet();
- private static final Set LOGICAL = new HashSet();
- private static final Set QUANTIFIERS = new HashSet();
- private static final Set DML = new HashSet();
- private static final Set MISC = new HashSet();
- static {
-
- BEGIN_CLAUSES.add("left");
- BEGIN_CLAUSES.add("right");
- BEGIN_CLAUSES.add("inner");
- BEGIN_CLAUSES.add("outer");
- BEGIN_CLAUSES.add("group");
- BEGIN_CLAUSES.add("order");
-
- END_CLAUSES.add("where");
- END_CLAUSES.add("set");
- END_CLAUSES.add("having");
- END_CLAUSES.add("join");
- END_CLAUSES.add("from");
- END_CLAUSES.add("by");
- END_CLAUSES.add("join");
- END_CLAUSES.add("into");
- END_CLAUSES.add("union");
-
- LOGICAL.add("and");
- LOGICAL.add("or");
- LOGICAL.add("when");
- LOGICAL.add("else");
- LOGICAL.add("end");
-
- QUANTIFIERS.add("in");
- QUANTIFIERS.add("all");
- QUANTIFIERS.add("exists");
- QUANTIFIERS.add("some");
- QUANTIFIERS.add("any");
-
- DML.add("insert");
- DML.add("update");
- DML.add("delete");
-
- MISC.add("select");
- MISC.add("on");
- //MISC.add("values");
-
- }
-
- String indentString = " ";
- String initial = "\n ";
-
- boolean beginLine = true;
- boolean afterBeginBeforeEnd = false;
- boolean afterByOrSetOrFromOrSelect = false;
- boolean afterValues = false;
- boolean afterOn = false;
- boolean afterBetween = false;
- boolean afterInsert = false;
- int inFunction = 0;
- int parensSinceSelect = 0;
- private LinkedList parenCounts = new LinkedList();
- private LinkedList afterByOrFromOrSelects = new LinkedList();
-
- int indent = 1;
-
- StringBuffer result = new StringBuffer();
- StringTokenizer tokens;
- String lastToken;
- String token;
- String lcToken;
-
- public Formatter(String sql) {
- tokens = new StringTokenizer(
- sql,
- "()+*/-=<>'`\"[]," + StringHelper.WHITESPACE,
- true
- );
- }
-
- public Formatter setInitialString(String initial) {
- this.initial = initial;
- return this;
- }
-
- public Formatter setIndentString(String indent) {
- this.indentString = indent;
- return this;
- }
-
- public String format() {
-
- result.append(initial);
-
- while ( tokens.hasMoreTokens() ) {
- token = tokens.nextToken();
- lcToken = token.toLowerCase();
-
- if ( "'".equals(token) ) {
- String t;
- do {
- t = tokens.nextToken();
- token += t;
- }
- while ( !"'".equals(t) && tokens.hasMoreTokens() ); // cannot handle single quotes
- }
- else if ( "\"".equals(token) ) {
- String t;
- do {
- t = tokens.nextToken();
- token += t;
- }
- while ( !"\"".equals(t) );
- }
-
- if ( afterByOrSetOrFromOrSelect && ",".equals(token) ) {
- commaAfterByOrFromOrSelect();
- }
- else if ( afterOn && ",".equals(token) ) {
- commaAfterOn();
- }
-
- else if ( "(".equals(token) ) {
- openParen();
- }
- else if ( ")".equals(token) ) {
- closeParen();
- }
-
- else if ( BEGIN_CLAUSES.contains(lcToken) ) {
- beginNewClause();
- }
-
- else if ( END_CLAUSES.contains(lcToken) ) {
- endNewClause();
- }
-
- else if ( "select".equals(lcToken) ) {
- select();
- }
-
- else if ( DML.contains(lcToken) ) {
- updateOrInsertOrDelete();
- }
-
- else if ( "values".equals(lcToken) ) {
- values();
- }
-
- else if ( "on".equals(lcToken) ) {
- on();
- }
-
- else if ( afterBetween && lcToken.equals("and") ) {
- misc();
- afterBetween = false;
- }
-
- else if ( LOGICAL.contains(lcToken) ) {
- logical();
- }
-
- else if ( isWhitespace(token) ) {
- white();
- }
-
- else {
- misc();
- }
-
- if ( !isWhitespace( token ) ) lastToken = lcToken;
-
- }
- return result.toString();
- }
-
- private void commaAfterOn() {
- out();
- indent--;
- newline();
- afterOn = false;
- afterByOrSetOrFromOrSelect = true;
- }
-
- private void commaAfterByOrFromOrSelect() {
- out();
- newline();
- }
-
- private void logical() {
- if ( "end".equals(lcToken) ) indent--;
- newline();
- out();
- beginLine = false;
- }
-
- private void on() {
- indent++;
- afterOn = true;
- newline();
- out();
- beginLine = false;
- }
-
- private void misc() {
- out();
- if ( "between".equals(lcToken) ) {
- afterBetween = true;
- }
- if (afterInsert) {
- newline();
- afterInsert = false;
- }
- else {
- beginLine = false;
- if ( "case".equals(lcToken) ) {
- indent++;
- }
- }
- }
-
- private void white() {
- if ( !beginLine ) {
- result.append(" ");
- }
- }
-
- private void updateOrInsertOrDelete() {
- out();
- indent++;
- beginLine = false;
- if ( "update".equals(lcToken) ) newline();
- if ( "insert".equals(lcToken) ) afterInsert = true;
- }
-
- private void select() {
- out();
- indent++;
- newline();
- parenCounts.addLast( new Integer(parensSinceSelect) );
- afterByOrFromOrSelects.addLast( new Boolean(afterByOrSetOrFromOrSelect) );
- parensSinceSelect = 0;
- afterByOrSetOrFromOrSelect = true;
- }
-
- private void out() {
- result.append(token);
- }
-
- private void endNewClause() {
- if (!afterBeginBeforeEnd) {
- indent--;
- if (afterOn) {
- indent--;
- afterOn=false;
- }
- newline();
- }
- out();
- if ( !"union".equals(lcToken) ) indent++;
- newline();
- afterBeginBeforeEnd = false;
- afterByOrSetOrFromOrSelect = "by".equals(lcToken)
- || "set".equals(lcToken)
- || "from".equals(lcToken);
- }
-
- private void beginNewClause() {
- if (!afterBeginBeforeEnd) {
- if (afterOn) {
- indent--;
- afterOn=false;
- }
- indent--;
- newline();
- }
- out();
- beginLine = false;
- afterBeginBeforeEnd = true;
- }
-
- private void values() {
- indent--;
- newline();
- out();
- indent++;
- newline();
- afterValues = true;
- }
-
- private void closeParen() {
- parensSinceSelect--;
- if (parensSinceSelect<0) {
- indent--;
- parensSinceSelect = ( (Integer) parenCounts.removeLast() ).intValue();
- afterByOrSetOrFromOrSelect = ( (Boolean) afterByOrFromOrSelects.removeLast() ).booleanValue();
- }
- if ( inFunction>0 ) {
- inFunction--;
- out();
- }
- else {
- if (!afterByOrSetOrFromOrSelect) {
- indent--;
- newline();
- }
- out();
- }
- beginLine = false;
- }
-
- private void openParen() {
- if ( isFunctionName( lastToken ) || inFunction>0 ) {
- inFunction++;
- }
- beginLine = false;
- if ( inFunction>0 ) {
- out();
- }
- else {
- out();
- if (!afterByOrSetOrFromOrSelect) {
- indent++;
- newline();
- beginLine = true;
- }
- }
- parensSinceSelect++;
- }
-
- private static boolean isFunctionName(String tok) {
- final char begin = tok.charAt(0);
- final boolean isIdentifier = Character.isJavaIdentifierStart( begin ) || '"'==begin;
- return isIdentifier &&
- !LOGICAL.contains(tok) &&
- !END_CLAUSES.contains(tok) &&
- !QUANTIFIERS.contains(tok) &&
- !DML.contains(tok) &&
- !MISC.contains(tok);
- }
-
- private static boolean isWhitespace(String token) {
- return StringHelper.WHITESPACE.indexOf(token)>=0;
- }
-
- private void newline() {
- result.append("\n");
- for ( int i=0; i<indent; i++ ) {
- result.append(indentString);
- }
- beginLine = true;
- }
-
- public static void main(String[] args) {
- if ( args.length>0 ) System.out.println(
- new Formatter( StringHelper.join(" ", args) ).format()
- );
- }
-
-}
Deleted: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/QLFormatHelper.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/QLFormatHelper.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/QLFormatHelper.java 2010-03-16 18:48:34 UTC (rev 20852)
@@ -1,29 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.hibernate.eclipse.console.utils;
-
-public class QLFormatHelper {
-
- static public String formatForScreen(String query) {
- return new Formatter(query).setInitialString("").setIndentString(" ").format(); //$NON-NLS-1$ //$NON-NLS-2$
- }
-}
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/ConfigurationsViewActionGroup.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/ConfigurationsViewActionGroup.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/ConfigurationsViewActionGroup.java 2010-03-16 18:48:34 UTC (rev 20852)
@@ -38,6 +38,7 @@
import org.hibernate.eclipse.console.actions.CriteriaEditorAction;
import org.hibernate.eclipse.console.actions.DeleteConfigurationAction;
import org.hibernate.eclipse.console.actions.EditConsoleConfiguration;
+import org.hibernate.eclipse.console.actions.ExternalProcessAction;
import org.hibernate.eclipse.console.actions.HQLScratchpadAction;
import org.hibernate.eclipse.console.actions.OpenMappingAction;
import org.hibernate.eclipse.console.actions.OpenSourceAction;
@@ -83,6 +84,7 @@
//private SelectionListenerAction connectAction;
private SelectionListenerAction reloadConfigurationAction;
private SelectionListenerAction schemaExportAction;
+ private SelectionListenerAction externalProcessAction;
private EditConsoleConfiguration editConfigurationAction;
private final StructuredViewer selectionProvider;
private SelectionListenerAction hqlEditorAction;
@@ -118,6 +120,9 @@
schemaExportAction = new SchemaExportAction(selectionProvider);
selectionProvider.addSelectionChangedListener(schemaExportAction);
+
+ externalProcessAction = new ExternalProcessAction(selectionProvider);
+ selectionProvider.addSelectionChangedListener(externalProcessAction);
editConfigurationAction = new EditConsoleConfiguration();
selectionProvider.addSelectionChangedListener(editConfigurationAction);
@@ -143,6 +148,7 @@
selectionProvider.removeSelectionChangedListener(refreshAction);
selectionProvider.removeSelectionChangedListener(reloadConfigurationAction);
selectionProvider.removeSelectionChangedListener(schemaExportAction);
+ selectionProvider.removeSelectionChangedListener(externalProcessAction);
selectionProvider.removeSelectionChangedListener(editConfigurationAction);
selectionProvider.removeSelectionChangedListener(hqlEditorAction);
selectionProvider.removeSelectionChangedListener(criteriaEditorAction);
@@ -174,6 +180,7 @@
menu.appendToGroup(GROUP_ADDITION, refreshAction);
if (first instanceof ConsoleConfiguration){
menu.appendToGroup(GROUP_ADDITION, schemaExportAction);
+ menu.appendToGroup(GROUP_ADDITION, externalProcessAction);
}
menu.add(new GroupMarker(GROUP_ADDITION_LAST));
menu.add(new Separator(GROUP_OTHER_EDITORS));
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/DynamicSQLPreviewView.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/DynamicSQLPreviewView.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/DynamicSQLPreviewView.java 2010-03-16 18:48:34 UTC (rev 20852)
@@ -21,9 +21,6 @@
*/
package org.hibernate.eclipse.console.views;
-import java.util.Collections;
-import java.util.Iterator;
-
import org.eclipse.jface.text.Document;
import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.ITextViewer;
@@ -43,19 +40,12 @@
import org.eclipse.ui.PartInitException;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.part.ViewPart;
-import org.hibernate.SessionFactory;
import org.hibernate.console.ConsoleConfiguration;
-import org.hibernate.console.execution.ExecutionContext;
import org.hibernate.eclipse.console.HibernateConsoleMessages;
-import org.hibernate.eclipse.console.utils.QLFormatHelper;
import org.hibernate.eclipse.hqleditor.HQLEditor;
import org.hibernate.eclipse.hqleditor.HQLEditorDocumentSetupParticipant;
import org.hibernate.eclipse.hqleditor.HQLSourceViewer;
import org.hibernate.eclipse.hqleditor.HQLSourceViewerConfiguration;
-import org.hibernate.engine.query.HQLQueryPlan;
-import org.hibernate.hql.QueryTranslator;
-import org.hibernate.impl.SessionFactoryImpl;
-import org.hibernate.type.Type;
import org.hibernate.util.StringHelper;
public class DynamicSQLPreviewView extends ViewPart {
@@ -133,99 +123,35 @@
}
private void updateText(HQLEditor editor) {
- if(textViewer!=null && textViewer.getDocument()!=null) {
- if(editor!=null) {
- ConsoleConfiguration consoleConfiguration = editor.getConsoleConfiguration();
- if(StringHelper.isEmpty( editor.getQueryString() )) {
- textViewer.getDocument().set( HibernateConsoleMessages.DynamicSQLPreviewView_empty_hql_query );
- } else if(consoleConfiguration!=null) {
- if(consoleConfiguration.isSessionFactoryCreated()) {
- String generateSQL = generateSQL(consoleConfiguration.getExecutionContext(), consoleConfiguration.getSessionFactory(), editor.getQueryString());
- if(StringHelper.isEmpty( generateSQL )) {
- textViewer.getDocument().set( HibernateConsoleMessages.DynamicSQLPreviewView_no_sql_generated );
+ if (textViewer == null) {
+ return;
+ }
+ IDocument doc = textViewer.getDocument();
+ if (doc != null) {
+ if (editor != null) {
+ ConsoleConfiguration consoleConfig = editor.getConsoleConfiguration();
+ if (StringHelper.isEmpty(editor.getQueryString())) {
+ doc.set( HibernateConsoleMessages.DynamicSQLPreviewView_empty_hql_query );
+ } else if (consoleConfig != null) {
+ if (consoleConfig.isSessionFactoryCreated()) {
+ String generateSQL = consoleConfig.generateSQL(editor.getQueryString());
+ if (StringHelper.isEmpty(generateSQL)) {
+ doc.set( HibernateConsoleMessages.DynamicSQLPreviewView_no_sql_generated );
} else {
- textViewer.getDocument().set(generateSQL);
+ doc.set(generateSQL);
}
} else {
- textViewer.getDocument().set(HibernateConsoleMessages.DynamicSQLPreviewView_session_factory_not_created + consoleConfiguration.getName());
+ doc.set(HibernateConsoleMessages.DynamicSQLPreviewView_session_factory_not_created + consoleConfig.getName());
}
} else {
- textViewer.getDocument().set(HibernateConsoleMessages.DynamicSQLPreviewView_no_console_conf_associated);
+ doc.set(HibernateConsoleMessages.DynamicSQLPreviewView_no_console_conf_associated);
}
} else {
- textViewer.getDocument().set(HibernateConsoleMessages.DynamicSQLPreviewView_no_hql_query_editor);
+ doc.set(HibernateConsoleMessages.DynamicSQLPreviewView_no_hql_query_editor);
}
}
}
- public String generateSQL(ExecutionContext context, final SessionFactory sf, final String query) {
-
- if(StringHelper.isEmpty(query)) return ""; //$NON-NLS-1$
-
- String result;
-
- result = (String) context.execute(new ExecutionContext.Command() {
- public Object execute() {
- try {
- SessionFactoryImpl sfimpl = (SessionFactoryImpl) sf; // hack - to get to the actual queries..
- StringBuffer str = new StringBuffer(256);
- HQLQueryPlan plan = new HQLQueryPlan(query, false, Collections.EMPTY_MAP, sfimpl);
-
- QueryTranslator[] translators = plan.getTranslators();
- for (int i = 0; i < translators.length; i++) {
- QueryTranslator translator = translators[i];
- if(translator.isManipulationStatement()) {
- str.append(HibernateConsoleMessages.DynamicSQLPreviewView_manipulation_of + i + ":"); //$NON-NLS-1$
- Iterator<?> iterator = translator.getQuerySpaces().iterator();
- while ( iterator.hasNext() ) {
- Object qspace = iterator.next();
- str.append(qspace);
- if(iterator.hasNext()) { str.append(", "); } //$NON-NLS-1$
- }
-
- } else {
- Type[] returnTypes = translator.getReturnTypes();
- str.append(i +": "); //$NON-NLS-1$
- for (int j = 0; j < returnTypes.length; j++) {
- Type returnType = returnTypes[j];
- str.append(returnType.getName());
- if(j<returnTypes.length-1) { str.append(", "); } //$NON-NLS-1$
- }
- }
- str.append("\n-----------------\n"); //$NON-NLS-1$
- Iterator<?> sqls = translator.collectSqlStrings().iterator();
- while ( sqls.hasNext() ) {
- String sql = (String) sqls.next();
- str.append(QLFormatHelper.formatForScreen(sql));
- str.append("\n\n"); //$NON-NLS-1$
- }
- }
- return str.toString();
- } catch(Throwable t) {
- //StringWriter sw = new StringWriter();
- StringBuffer msgs = new StringBuffer();
-
- Throwable cause = t;
- while(cause!=null) {
- msgs.append(t);
- if(cause.getCause()==cause) {
- cause=null;
- } else {
- cause = cause.getCause();
- if(cause!=null) msgs.append(HibernateConsoleMessages.DynamicSQLPreviewView_caused_by);
- }
- }
- //t.printStackTrace(new PrintWriter(sw));
- //return sw.getBuffer().toString();
- return msgs.toString();
- }
-
- }
- });
-
- return result;
- }
-
public void createPartControl(Composite parent) {
textViewer = new HQLSourceViewer( parent, new VerticalRuler(1), null, false, SWT.READ_ONLY | SWT.H_SCROLL | SWT.V_SCROLL );
//textViewer.setEditable(false);
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsProvider.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsProvider.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/KnownConfigurationsProvider.java 2010-03-16 18:48:34 UTC (rev 20852)
@@ -40,7 +40,6 @@
import org.eclipse.jface.viewers.Viewer;
import org.eclipse.swt.widgets.Display;
import org.eclipse.ui.model.IWorkbenchAdapter;
-import org.hibernate.SessionFactory;
import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.console.KnownConfigurations;
import org.hibernate.console.KnownConfigurationsListener;
@@ -105,7 +104,7 @@
}
}
- public void sessionFactoryBuilt(final ConsoleConfiguration ccfg, SessionFactory builtFactory) {
+ public void sessionFactoryBuilt(final ConsoleConfiguration ccfg) {
/*(Display.getDefault().syncExec(new Runnable() { Disabled as it will generate double entries in the child list
public void run() {
tv.refresh(ccfg);
@@ -113,7 +112,7 @@
}); */
}
- public void sessionFactoryClosing(final ConsoleConfiguration configuration, SessionFactory closingFactory) {
+ public void sessionFactoryClosing(final ConsoleConfiguration configuration) {
refreshTree(configuration);
}
Deleted: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/CollectionPropertySource.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/CollectionPropertySource.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/CollectionPropertySource.java 2010-03-16 18:48:34 UTC (rev 20852)
@@ -1,99 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.hibernate.eclipse.console.views.properties;
-
-import java.util.Collection;
-import java.util.Iterator;
-import java.util.Map;
-import java.util.WeakHashMap;
-
-import org.eclipse.ui.views.properties.IPropertyDescriptor;
-import org.eclipse.ui.views.properties.IPropertySource;
-import org.eclipse.ui.views.properties.PropertyDescriptor;
-
-public class CollectionPropertySource implements IPropertySource {
-
- private Collection<?> collection;
-
- IPropertyDescriptor[] descriptors = null;
-
- Map<Object, Object> values = new WeakHashMap<Object, Object>();
-
- public CollectionPropertySource(Collection<?> propertyValue) {
- collection = propertyValue;
- }
-
- public Object getEditableValue() {
- return null;
- }
-
- public IPropertyDescriptor[] getPropertyDescriptors() {
- if(descriptors==null) {
- PropertyDescriptor[] properties = new PropertyDescriptor[collection.size()];
- for (int i = 0; i < properties.length; i++) {
- properties[i] = new PropertyDescriptor(Integer.valueOf(i),"#" + i); //$NON-NLS-1$
- }
- descriptors = properties;
- }
- return descriptors;
- }
-
- public Object getPropertyValue(Object id) {
- Object value = values.get(id);
- if(value==null) {
- Integer i = (Integer) id;
- Iterator<?> iterator = collection.iterator();
- int base = 0;
-
- while(iterator.hasNext()) {
-
- value = iterator.next();
-
- if(base==i.intValue()) {
- values.put(id, value);
- return value;
- } else {
- value=null;
- }
- base++;
- }
- }
-
- return value;
- }
-
- public boolean isPropertySet(Object id) {
- // TODO Auto-generated method stub
- return false;
- }
-
- public void resetPropertyValue(Object id) {
- // TODO Auto-generated method stub
-
- }
-
- public void setPropertyValue(Object id, Object value) {
-
-
- }
-
-}
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/EntityPropertySource.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/EntityPropertySource.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/EntityPropertySource.java 2010-03-16 18:48:34 UTC (rev 20852)
@@ -21,119 +21,34 @@
*/
package org.hibernate.eclipse.console.views.properties;
-import java.util.Collection;
-
import org.eclipse.ui.views.properties.IPropertyDescriptor;
import org.eclipse.ui.views.properties.IPropertySource2;
-import org.eclipse.ui.views.properties.PropertyDescriptor;
-import org.hibernate.EntityMode;
-import org.hibernate.Session;
-import org.hibernate.console.ConsoleConfiguration;
-import org.hibernate.console.KnownConfigurations;
-import org.hibernate.console.execution.ExecutionContext;
-import org.hibernate.console.execution.ExecutionContext.Command;
-import org.hibernate.eclipse.console.HibernateConsoleMessages;
-import org.hibernate.metadata.ClassMetadata;
-import org.hibernate.metadata.CollectionMetadata;
-import org.hibernate.proxy.HibernateProxyHelper;
+import org.hibernate.console.stubs.SessionStub;
-
-
public class EntityPropertySource implements IPropertySource2
{
- private Object reflectedObject;
+ private Object reflectedObj;
private IPropertyDescriptor[] propertyDescriptors;
+ private final SessionStub sessionStub;
- private final String consoleConfigName;
- private final Session currentSession;
- private ClassMetadata classMetadata;
-
- public EntityPropertySource(final Object object, final Session currentSession, String consoleConfigName)
- {
- this.currentSession = currentSession;
- this.consoleConfigName = consoleConfigName;
- reflectedObject = object;
- if(currentSession.isOpen()) {
- classMetadata = currentSession.getSessionFactory().getClassMetadata( currentSession.getEntityName(reflectedObject) );
- } else {
- classMetadata = currentSession.getSessionFactory().getClassMetadata( HibernateProxyHelper.getClassWithoutInitializingProxy(reflectedObject));
- }
-
+ public EntityPropertySource(final Object obj, final SessionStub sessionStub) {
+ this.sessionStub = sessionStub;
+ reflectedObj = obj;
}
-
public Object getEditableValue() {
return ""; //$NON-NLS-1$
}
public IPropertyDescriptor[] getPropertyDescriptors() {
if (propertyDescriptors == null) {
- ConsoleConfiguration consoleConfig = KnownConfigurations.getInstance().find(consoleConfigName);
- if (consoleConfig != null) {
- ExecutionContext executionContext = consoleConfig.getExecutionContext();
- if (executionContext == null) {
- consoleConfig.build();
- executionContext = consoleConfig.getExecutionContext();
- }
- if (executionContext != null) {
- executionContext.execute(new Command() {
- public Object execute() {
- propertyDescriptors = initializePropertyDescriptors(classMetadata);
- return null;
- }
- });
- }
- }
+ propertyDescriptors = sessionStub.getPropertyDescriptors(reflectedObj);
}
return propertyDescriptors;
}
- static protected IPropertyDescriptor[] initializePropertyDescriptors(ClassMetadata classMetadata) {
-
- String[] propertyNames = classMetadata.getPropertyNames();
- int length = propertyNames.length;
-
- PropertyDescriptor identifier = null;
-
- if(classMetadata.hasIdentifierProperty() ) {
- identifier = new PropertyDescriptor(classMetadata.getIdentifierPropertyName(), classMetadata.getIdentifierPropertyName());
- identifier.setCategory(HibernateConsoleMessages.EntityPropertySource_identifier);
- length++;
- }
-
- PropertyDescriptor[] properties = new PropertyDescriptor[length];
-
- int idx = 0;
- if(identifier!=null) {
- properties[idx++] = identifier;
- }
-
- for (int i = 0; i < propertyNames.length; i++) {
- PropertyDescriptor prop = new PropertyDescriptor(propertyNames[i],propertyNames[i]);
- prop.setCategory(HibernateConsoleMessages.EntityPropertySource_properties);
- properties[i+idx] = prop;
- }
-
- return properties;
- }
-
-
public Object getPropertyValue(Object id) {
- Object propertyValue;
-
- if(id.equals(classMetadata.getIdentifierPropertyName())) {
- propertyValue = classMetadata.getIdentifier(reflectedObject, EntityMode.POJO);
- } else {
- propertyValue = classMetadata.getPropertyValue(reflectedObject, (String)id, EntityMode.POJO);
- }
-
- if (propertyValue instanceof Collection<?>) {
- CollectionMetadata collectionMetadata = currentSession.getSessionFactory().getCollectionMetadata(classMetadata.getEntityName() + "." + id); //$NON-NLS-1$
- if(collectionMetadata!=null) {
- propertyValue = new CollectionPropertySource((Collection<?>) propertyValue);
- }
- }
- return propertyValue;
+ return sessionStub.getPropertyValue(reflectedObj, id);
}
public boolean isPropertySet(Object id) {
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/HibernatePropertySourceProvider.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/HibernatePropertySourceProvider.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/HibernatePropertySourceProvider.java 2010-03-16 18:48:34 UTC (rev 20852)
@@ -23,10 +23,9 @@
import org.eclipse.ui.views.properties.IPropertySource;
import org.eclipse.ui.views.properties.IPropertySourceProvider;
-import org.hibernate.Session;
import org.hibernate.console.QueryPage;
+import org.hibernate.console.stubs.SessionStub;
import org.hibernate.eclipse.console.views.QueryPageTabView;
-import org.hibernate.proxy.HibernateProxyHelper;
public class HibernatePropertySourceProvider implements IPropertySourceProvider
{
@@ -37,32 +36,23 @@
this.view = view;
}
- public IPropertySource getPropertySource(Object object) {
- if (object==null) {
- return null;
- }
- else if (object instanceof QueryPage)
- {
- return new QueryPagePropertySource( (QueryPage)object);
- }
- else if (object instanceof CollectionPropertySource) {
- return (IPropertySource) object;
- }
- else {
- // maybe we should be hooked up with the queryview to get this ?
- Session currentSession = view.getSelectedQueryPage().getSession();
- String consoleConfigName = view.getSelectedQueryPage().getConsoleConfiguration().getName();
- if((currentSession.isOpen() && currentSession.contains(object)) || hasMetaData( object, currentSession) ) {
- return new EntityPropertySource(object, currentSession, consoleConfigName);
- } else {
- return null;
+ public IPropertySource getPropertySource(Object obj) {
+ IPropertySource res = null;
+ if (obj instanceof QueryPage) {
+ res = new QueryPagePropertySource((QueryPage)obj);
+ } else if (obj instanceof IPropertySource) {
+ res = (IPropertySource) obj;
+ } else {
+ // maybe we should be hooked up with the queryview to get this ?
+ QueryPage qp = view.getSelectedQueryPage();
+ if (qp != null) {
+ SessionStub sessionStub = qp.getSessionStub();
+ String consoleConfigName = qp.getConsoleConfigName();
+ if ((sessionStub.isOpen() && sessionStub.contains(obj)) || sessionStub.hasMetaData(obj)) {
+ res = new EntityPropertySource(obj, sessionStub);
+ }
}
-
}
-
+ return res;
}
-
- private boolean hasMetaData(Object object, Session currentSession) {
- return currentSession.getSessionFactory().getClassMetadata(HibernateProxyHelper.getClassWithoutInitializingProxy(object))!=null;
- }
}
\ No newline at end of file
Modified: branches/hibernatetools-multiversion/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 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/QueryPagePropertySource.java 2010-03-16 18:48:34 UTC (rev 20852)
@@ -101,7 +101,7 @@
public Object getPropertyValue(Object id) {
if(CONFIGURATION_TEXT.equals(id) ) {
- return page.getConsoleConfiguration().getName();
+ return page.getConsoleConfigName();
}
if(QUERY_TEXT.equals(id) ) {
return page.getQueryString();
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/LazySessionFactoryAdapter.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/LazySessionFactoryAdapter.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/workbench/LazySessionFactoryAdapter.java 2010-03-16 18:48:34 UTC (rev 20852)
@@ -38,7 +38,7 @@
LazySessionFactory lazySessionFactory = getLazySessionFactory(o);
String label = HibernateConsoleMessages.LazySessionFactoryAdapter_session_factory;
if(lazySessionFactory.getCfgNode()==null) {
- if(lazySessionFactory.getConsoleConfiguration().getSessionFactory()==null) {
+ if(lazySessionFactory.getConsoleConfiguration().getSessionStubFactory()==null) {
try {
lazySessionFactory.getConsoleConfiguration().buildSessionFactory();
} catch(Throwable t) {
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/criteriaeditor/CriteriaEditor.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/criteriaeditor/CriteriaEditor.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/criteriaeditor/CriteriaEditor.java 2010-03-16 18:48:34 UTC (rev 20852)
@@ -58,13 +58,13 @@
import org.eclipse.ui.texteditor.ITextEditorActionDefinitionIds;
import org.eclipse.ui.texteditor.TextOperationAction;
import org.hibernate.HibernateException;
-import org.hibernate.Session;
import org.hibernate.cfg.Configuration;
import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.console.KnownConfigurations;
import org.hibernate.console.QueryPage;
import org.hibernate.console.execution.ExecutionContext;
import org.hibernate.console.execution.ExecutionContext.Command;
+import org.hibernate.console.stubs.SessionStub;
import org.hibernate.eclipse.console.AbstractQueryEditor;
import org.hibernate.eclipse.console.HibernateConsoleMessages;
import org.hibernate.eclipse.console.HibernateConsolePlugin;
@@ -149,10 +149,10 @@
cfg.execute(new Command() {
public Object execute() {
KnownConfigurations.getInstance().getQueryPageModel().remove(queryPage);
- Session session = cfg0.getSessionFactory().openSession();
+ SessionStub sessionStub = cfg0.getSessionStubFactory().openSession();
queryPage.setModel(getQueryInputModel().getCopyForQuery());
queryPage.setQueryString(getQueryString());
- queryPage.setSession(session);
+ queryPage.setSessionStub(sessionStub);
KnownConfigurations.getInstance().getQueryPageModel().add(queryPage);
return null;
}
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLEditor.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLEditor.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLEditor.java 2010-03-16 18:48:34 UTC (rev 20852)
@@ -53,11 +53,11 @@
import org.eclipse.ui.texteditor.ITextEditorActionDefinitionIds;
import org.eclipse.ui.texteditor.TextOperationAction;
import org.eclipse.ui.views.contentoutline.IContentOutlinePage;
-import org.hibernate.Session;
import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.console.KnownConfigurations;
import org.hibernate.console.QueryPage;
import org.hibernate.console.execution.ExecutionContext.Command;
+import org.hibernate.console.stubs.SessionStub;
import org.hibernate.eclipse.console.AbstractQueryEditor;
import org.hibernate.eclipse.console.HibernateConsolePlugin;
import org.hibernate.eclipse.console.HibernateConsoleMessages;
@@ -426,10 +426,10 @@
cfg.execute(new Command() {
public Object execute() {
KnownConfigurations.getInstance().getQueryPageModel().remove(queryPage);
- Session session = cfg0.getSessionFactory().openSession();
+ SessionStub sessionStub = cfg0.getSessionStubFactory().openSession();
queryPage.setModel(getQueryInputModel().getCopyForQuery());
queryPage.setQueryString(getQueryString());
- queryPage.setSession(session);
+ queryPage.setSessionStub(sessionStub);
KnownConfigurations.getInstance().getQueryPageModel().add(queryPage);
return null;
}
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLFormattingStrategy.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLFormattingStrategy.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/hqleditor/HQLFormattingStrategy.java 2010-03-16 18:48:34 UTC (rev 20852)
@@ -22,7 +22,7 @@
package org.hibernate.eclipse.hqleditor;
import org.eclipse.jface.text.formatter.IFormattingStrategy;
-import org.hibernate.eclipse.console.utils.QLFormatHelper;
+import org.hibernate.console.util.QLFormatHelper;
public class HQLFormattingStrategy implements IFormattingStrategy {
14 years, 3 months
JBoss Tools SVN: r20851 - in branches: hibernatetools-multiversion and 8 other directories.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2010-03-16 14:47:52 -0400 (Tue, 16 Mar 2010)
New Revision: 20851
Added:
branches/hibernatetools-multiversion/
branches/hibernatetools-multiversion/hibernatetools/
branches/hibernatetools-multiversion/hibernatetools/plugins/
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/stubs/
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/stubs/CollectionPropertySource.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/util/
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/util/ELTransformer.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/util/Formatter.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/util/QLFormatHelper.java
Modified:
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/.classpath
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/AbstractQueryPage.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConcoleConfigurationAdapter.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfigurationListener.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleMessages.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleMessages.properties
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/HQLQueryPage.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/JavaPage.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/KnownConfigurations.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/KnownConfigurationsAdapter.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/KnownConfigurationsListener.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/QueryPage.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/node/ConfigurationNode.java
branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/node/NodeFactory.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-6070 - initial step
Copied: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse (from rev 20798, trunk/hibernatetools/plugins/org.hibernate.eclipse)
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/.classpath
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/.classpath 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/.classpath 2010-03-16 18:47:52 UTC (rev 20851)
@@ -6,7 +6,7 @@
<classpathentry exported="true" kind="lib" path="lib/hibernate/asm.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/asm-attrs.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/dom4j-1.6.1.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/hibernate/hibernate3.jar" sourcepath="C:/Temp/_hibernate/hibernate-core-3.3.2.GA-sources.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/hibernate/hibernate3.jar" sourcepath="D:/Temp/_hibernate/hibernate-core-3.3.2.GA-sources.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/jboss-cache.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/jboss-common.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/jboss-jmx.jar"/>
@@ -18,18 +18,18 @@
<classpathentry exported="true" kind="lib" path="lib/hibernate/proxool-0.8.3.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/swarmcache-1.0rc2.jar"/>
<classpathentry exported="true" kind="lib" path="lib/bsh-core-2.0b4.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/annotations/hibernate-annotations.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/annotations/hibernate-annotations.jar" sourcepath="D:/Temp/_hibernate/hibernate-annotations-3.4.0.GA-sources.jar "/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/jgroups-2.2.8.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/antlr-2.7.6.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/annotations/hibernate-entitymanager.jar" sourcepath="C:/Temp/_hibernate/hibernate-entitymanager-3.4.0.GA-sources.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/annotations/hibernate-entitymanager.jar" sourcepath="D:/Temp/_hibernate/hibernate-entitymanager-3.4.0.GA-sources.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/javassist.jar"/>
<classpathentry exported="true" kind="lib" path="lib/annotations/hibernate-validator.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/log4j-1.2.15.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/hibernate/hibernate-jmx.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/hibernate/hibernate-jmx.jar" sourcepath="D:/Temp/_hibernate/hibernate-jmx-3.3.2.GA-sources.jar "/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/commons-collections-3.1.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/slf4j-api-1.5.8.jar" sourcepath="D:/Temp/_hibernate/slf4j-api-1.5.8-sources.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/cglib-2.2.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/annotations/hibernate-commons-annotations.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/annotations/hibernate-commons-annotations.jar" sourcepath="D:/Temp/_hibernate/hibernate-commons-annotations-3.1.0.GA-sources.jar "/>
<classpathentry exported="true" kind="lib" path="lib/annotations/ejb3-persistence.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/c3p0-0.9.1.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/commons-logging-1.0.4.jar"/>
@@ -38,7 +38,7 @@
<classpathentry exported="true" kind="lib" path="lib/hibernate/ehcache-1.2.3.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hibernate/slf4j-log4j12-1.5.8.jar"/>
<classpathentry exported="true" kind="lib" path="lib/tools/freemarker.jar"/>
- <classpathentry exported="true" kind="lib" path="lib/tools/hibernate-tools.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/tools/hibernate-tools.jar" sourcepath="C:/RHDS/hibernate/branches/Branch_3_2/HibernateExt_without_changes"/>
<classpathentry exported="true" kind="lib" path="lib/tools/jtidy-r8-20060801.jar"/>
<classpathentry kind="output" path="build/eclipse"/>
</classpath>
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/META-INF/MANIFEST.MF 2010-03-16 18:47:52 UTC (rev 20851)
@@ -288,6 +288,7 @@
org.hibernate.console.execution,
org.hibernate.console.node,
org.hibernate.console.preferences,
+ org.hibernate.console.stubs,
org.hibernate.context,
org.hibernate.criterion,
org.hibernate.dialect,
@@ -517,6 +518,7 @@
pojo
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.ui.console,
+ org.eclipse.ui.views,
org.eclipse.jface,
org.eclipse.jdt.apt.core,
org.eclipse.datatools.connectivity
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/AbstractQueryPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/AbstractQueryPage.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/AbstractQueryPage.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -24,10 +24,10 @@
import java.beans.PropertyChangeListener;
import java.beans.PropertyChangeSupport;
import java.util.ArrayList;
+import java.util.Iterator;
import java.util.List;
-import org.hibernate.HibernateException;
-import org.hibernate.Session;
+import org.hibernate.console.stubs.SessionStub;
/**
* @author MAX
@@ -37,8 +37,8 @@
PropertyChangeSupport pcs = new PropertyChangeSupport(this);
private int id;
- private Session session;
- private final ConsoleConfiguration cfg;
+ private SessionStub sessionStub;
+ private final String consoleConfigName;
protected List<Object> list;
protected long queryTime = -1; //shows how long query runs
protected boolean sticky = true;
@@ -54,15 +54,14 @@
}
public int getResultSize() {
- if(list==null) {
+ if (list == null) {
return -1;
- } else {
- return list.size();
}
+ return list.size();
}
- public AbstractQueryPage(ConsoleConfiguration cfg, QueryInputModel model) {
- this.cfg = cfg;
+ public AbstractQueryPage(String consoleConfigName, QueryInputModel model) {
+ this.consoleConfigName = consoleConfigName;
this.model = model;
}
/**
@@ -73,14 +72,7 @@
}
public void release() {
- if (getSession().isOpen() ) {
- try {
- getSession().close();
- }
- catch (HibernateException e) {
- exceptions.add(e);
- }
- }
+ sessionStub.close(exceptions);
}
/**
@@ -104,12 +96,12 @@
this.sticky = sticky;
}
- public Session getSession() {
- return session;
+ public SessionStub getSessionStub() {
+ return sessionStub;
}
- public void setSession(Session s) {
- session = s;
+ public void setSessionStub(SessionStub s) {
+ sessionStub = s;
}
// currently notifications for exceptions and for list execution (hql)
@@ -139,9 +131,15 @@
pcs.firePropertyChange("exceptions", null, exceptions); //$NON-NLS-1$
}
- public ConsoleConfiguration getConsoleConfiguration() {
- return cfg;
+ public void addExceptions(List<Throwable> lstExceptions) {
+ for (Iterator<Throwable> it = lstExceptions.iterator(); it.hasNext();) {
+ addException(it.next());
+ }
}
+
+ public String getConsoleConfigName() {
+ return consoleConfigName;
+ }
public long getQueryTime(){
return queryTime;
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConcoleConfigurationAdapter.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConcoleConfigurationAdapter.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConcoleConfigurationAdapter.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -10,9 +10,6 @@
******************************************************************************/
package org.hibernate.console;
-import org.hibernate.SessionFactory;
-import org.hibernate.cfg.Configuration;
-
/**
* This adapter class provides default implementations for the
* methods described by the <code>ConcoleConfigurationListener</code> interface.
@@ -32,11 +29,9 @@
public void queryPageCreated(QueryPage qp) {}
- public void sessionFactoryBuilt(ConsoleConfiguration ccfg,
- SessionFactory builtSessionFactory) {}
+ public void sessionFactoryBuilt(ConsoleConfiguration ccfg) {}
- public void sessionFactoryClosing(ConsoleConfiguration configuration,
- SessionFactory aboutToCloseFactory) {}
+ public void sessionFactoryClosing(ConsoleConfiguration configuration) {}
public void configurationBuilt(ConsoleConfiguration ccfg){};
}
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfiguration.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -52,8 +52,6 @@
import org.eclipse.osgi.util.NLS;
import org.hibernate.HibernateException;
import org.hibernate.MappingException;
-import org.hibernate.Session;
-import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import org.hibernate.cfg.Environment;
import org.hibernate.cfg.NamingStrategy;
@@ -64,6 +62,8 @@
import org.hibernate.console.execution.ExecutionContext.Command;
import org.hibernate.console.preferences.ConsoleConfigurationPreferences;
import org.hibernate.console.preferences.ConsoleConfigurationPreferences.ConfigurationMode;
+import org.hibernate.console.stubs.SessionStub;
+import org.hibernate.console.stubs.SessionStubFactory;
import org.hibernate.dialect.Dialect;
import org.hibernate.dialect.resolver.DialectFactory;
import org.hibernate.util.ConfigHelper;
@@ -83,7 +83,7 @@
/* TODO: move this out to the actual users of the configuraiton/sf ? */
private Configuration configuration;
- private SessionFactory sessionFactory;
+ private SessionStubFactory sessionStubFactory;
/** Unique name for this configuration */
public String getName() {
@@ -548,20 +548,32 @@
public void buildSessionFactory() {
execute(new ExecutionContext.Command() {
public Object execute() {
- if(sessionFactory!=null) {
+ if (sessionStubFactory != null) {
throw new HibernateConsoleRuntimeException(ConsoleMessages.ConsoleConfiguration_factory_not_closed_before_build_new_factory);
}
- sessionFactory = getConfiguration().buildSessionFactory();
+ sessionStubFactory = new SessionStubFactory(executionContext, getConfiguration());
fireFactoryBuilt();
return null;
}
});
}
- public SessionFactory getSessionFactory() {
- return sessionFactory;
+ public SessionStubFactory getSessionStubFactory() {
+ return sessionStubFactory;
}
+ /**
+ * Given a ConsoleConfiguration and a query this method validates the query through hibernate if a sessionfactory is available.
+ * @param query
+ * @param allowEL if true, EL syntax will be replaced as a named variable
+ * @throws HibernteException if something is wrong with the query
+ */
+ public void checkQuery(String query, boolean allowEL) {
+ if (isSessionFactoryCreated()) {
+ sessionStubFactory.checkQuery(query, allowEL);
+ }
+ }
+
int execcount;
List<ConsoleConfigurationListener> consoleCfgListeners = new ArrayList<ConsoleConfigurationListener>();
@@ -570,14 +582,14 @@
return executeHQLQuery(hql, new QueryInputModel());
}
- public QueryPage executeHQLQuery(final String hql, final QueryInputModel queryParameters) {
+ public QueryPage executeHQLQuery(final String hql, final QueryInputModel model) {
return (QueryPage) executionContext.execute(new ExecutionContext.Command() {
public Object execute() {
- Session session = getSessionFactory().openSession();
- QueryPage qp = new HQLQueryPage(ConsoleConfiguration.this,hql,queryParameters);
- qp.setSession(session);
+ SessionStub sessionStub = getSessionStubFactory().openSession();
+ QueryPage qp = new HQLQueryPage(ConsoleConfiguration.this.getName(), hql, model);
+ qp.setSessionStub(sessionStub);
qp.setId(++execcount);
fireQueryPageCreated(qp);
@@ -591,9 +603,9 @@
return (QueryPage) executionContext.execute(new ExecutionContext.Command() {
public Object execute() {
- Session session = getSessionFactory().openSession();
- QueryPage qp = new JavaPage(ConsoleConfiguration.this,queryString,model);
- qp.setSession(session);
+ SessionStub sessionStub = getSessionStubFactory().openSession();
+ QueryPage qp = new JavaPage(ConsoleConfiguration.this.getName(), queryString, model);
+ qp.setSessionStub(sessionStub);
qp.setId(++execcount);
fireQueryPageCreated(qp);
@@ -623,13 +635,13 @@
private void fireFactoryBuilt() {
for (ConsoleConfigurationListener view : consoleCfgListeners) {
- view.sessionFactoryBuilt(this, sessionFactory);
+ view.sessionFactoryBuilt(this);
}
}
- private void fireFactoryClosing(SessionFactory sessionFactory2) {
+ private void fireFactoryClosing(SessionStubFactory ssf) {
for (ConsoleConfigurationListener view : consoleCfgListeners) {
- view.sessionFactoryClosing(this, sessionFactory2);
+ view.sessionFactoryClosing(this);
}
}
@@ -647,9 +659,21 @@
public boolean isSessionFactoryCreated() {
- return sessionFactory!=null;
+ return sessionStubFactory != null && sessionStubFactory.isSessionFactoryCreated();
}
+ public String generateSQL(final String query) {
+ String res = ""; //$NON-NLS-1$
+ if (sessionStubFactory != null && executionContext != null) {
+ res = (String)executionContext.execute(new ExecutionContext.Command() {
+ public Object execute() {
+ return sessionStubFactory.generateSQL(query);
+ }
+ });
+ }
+ return res;
+ }
+
public ConsoleConfigurationPreferences getPreferences() {
return prefs;
}
@@ -695,10 +719,10 @@
}
public void closeSessionFactory() {
- if(sessionFactory!=null) {
- fireFactoryClosing(sessionFactory);
- sessionFactory.close();
- sessionFactory = null;
+ if (sessionStubFactory != null) {
+ fireFactoryClosing(sessionStubFactory);
+ sessionStubFactory.close();
+ sessionStubFactory = null;
}
}
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfigurationListener.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfigurationListener.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleConfigurationListener.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -21,9 +21,6 @@
*/
package org.hibernate.console;
-import org.hibernate.SessionFactory;
-
-
/**
*
*/
@@ -33,16 +30,14 @@
/**
* called when the factory has just been created
- * @param builtSessionFactory TODO
*/
- public void sessionFactoryBuilt(ConsoleConfiguration ccfg, SessionFactory builtSessionFactory);
+ public void sessionFactoryBuilt(ConsoleConfiguration ccfg);
/**
* Called when this sessionFactory is about to be closed. Used for listeners to clean up resources related to this sessionfactory (such as closing sessions)
* @param configuration
- * @param closedSessionFactory TODO
*/
- public void sessionFactoryClosing(ConsoleConfiguration configuration, SessionFactory aboutToCloseFactory);
+ public void sessionFactoryClosing(ConsoleConfiguration configuration);
public void configurationBuilt(ConsoleConfiguration ccfg);
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleMessages.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleMessages.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleMessages.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -33,6 +33,10 @@
public static String StandAloneConsoleConfigurationPreferences_errors_while_parsing;
public static String PluginFileAppender_missing_plugin_state_location;
public static String PluginLogAppender_missing_layout_for_appender;
+ public static String EntityPropertySource_identifier;
+ public static String EntityPropertySource_properties;
+ public static String DynamicSQLPreviewView_caused_by;
+ public static String DynamicSQLPreviewView_manipulation_of;
static {
// initialize resource bundle
NLS.initializeMessages(BUNDLE_NAME, ConsoleMessages.class);
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleMessages.properties
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleMessages.properties 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/ConsoleMessages.properties 2010-03-16 18:47:52 UTC (rev 20851)
@@ -26,4 +26,8 @@
StandAloneConsoleConfigurationPreferences_errors_while_parsing=Errors while parsing
PluginFileAppender_missing_plugin_state_location=Missing Plugin State Location.
PluginLogAppender_missing_layout_for_appender=Missing layout for appender
-ConsoleConfiguration_connection_profile_not_found=Connection profile not found: ''{0}''.
\ No newline at end of file
+ConsoleConfiguration_connection_profile_not_found=Connection profile not found: ''{0}''.
+EntityPropertySource_identifier=Identifier
+EntityPropertySource_properties=Properties
+DynamicSQLPreviewView_caused_by=\nCaused by:\n
+DynamicSQLPreviewView_manipulation_of=Manipulation of
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/HQLQueryPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/HQLQueryPage.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/HQLQueryPage.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -21,94 +21,49 @@
*/
package org.hibernate.console;
+import java.sql.Time;
import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Iterator;
import java.util.List;
-import org.hibernate.HibernateException;
-import org.hibernate.Query;
-import org.hibernate.Session;
-import org.hibernate.type.Type;
+import org.hibernate.console.stubs.SessionStub;
-
public class HQLQueryPage extends AbstractQueryPage {
- private Query query;
private String queryString;
public List<Object> getList() {
- if (query==null) return Collections.emptyList();
- if (list == null) {
- try {
-
- //list = query.list();
- list = new ArrayList<Object>();
- 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);
- }
- pcs.firePropertyChange("list", null, list); //$NON-NLS-1$
- }
- catch (HibernateException e) {
- list = Collections.emptyList();
- addException(e);
- } catch (IllegalArgumentException e) {
- list = Collections.emptyList();
- addException(e);
- }
+ if (list != null) {
+ return list;
}
+ evalQuery();
return list;
}
-
-
- private void setupParameters(Query query2, QueryInputModel model) {
-
- if(model.getMaxResults()!=null) {
- query2.setMaxResults( model.getMaxResults().intValue() );
- }
-
- ConsoleQueryParameter[] qp = model.getQueryParameters();
- for (int i = 0; i < qp.length; i++) {
- ConsoleQueryParameter parameter = qp[i];
- try {
- int pos = Integer.parseInt(parameter.getName());
- query2.setParameter(pos, calcValue( parameter ), parameter.getType());
- } catch(NumberFormatException nfe) {
- query2.setParameter(parameter.getName(), calcValue( parameter ), parameter.getType());
- }
- }
- }
- private Object calcValue(ConsoleQueryParameter parameter) {
- return parameter.getValueForQuery();
- }
-
/**
* @param session
* @param string
* @param queryParameters
*/
- public HQLQueryPage(ConsoleConfiguration cfg, String string, QueryInputModel model) {
- super(cfg, model);
+ public HQLQueryPage(String consoleConfigName, String string, QueryInputModel model) {
+ super(consoleConfigName, model);
queryString = string;
setTabName(getQueryString().replace('\n', ' ').replace('\r', ' '));
}
- public void setSession(Session s) {
- super.setSession(s);
- try {
- query = this.getSession().createQuery(queryString);
- } catch (HibernateException e) {
- addException(e);
- } catch (Exception e) {
- addException( e );
- }
+ @Override
+ public void setSessionStub(SessionStub s) {
+ super.setSessionStub(s);
+ evalQuery();
}
+
+ protected void evalQuery() {
+ List<Throwable> arrExceptions = new ArrayList<Throwable>();
+ Time qt = new Time(queryTime);
+ list = getSessionStub().evalQuery(queryString, model, qt, arrExceptions);
+ queryTime = qt.getTime();
+ addExceptions(arrExceptions);
+ pcs.firePropertyChange("list", null, list); //$NON-NLS-1$
+ }
/**
* @return
@@ -122,46 +77,9 @@
}
public List<String> getPathNames() {
- List<String> l = Collections.emptyList();
-
- try {
- if(query==null) return l;
- String[] returnAliases = null;
- try {
- returnAliases = query.getReturnAliases();
- } catch(NullPointerException e) {
- // ignore - http://opensource.atlassian.com/projects/hibernate/browse/HHH-2188
- }
- if(returnAliases==null) {
- Type[] t;
- try {
- t = query.getReturnTypes();
- } catch(NullPointerException npe) {
- t = new Type[] { null };
- // ignore - http://opensource.atlassian.com/projects/hibernate/browse/HHH-2188
- }
- l = new ArrayList<String>(t.length);
-
- for (int i = 0; i < t.length; i++) {
- Type type = t[i];
- if(type==null) {
- l.add("<multiple types>"); //$NON-NLS-1$
- } else {
- l.add(type.getName() );
- }
- }
- } else {
- String[] t = returnAliases;
- l = new ArrayList<String>(t.length);
-
- for (int i = 0; i < t.length; i++) {
- l.add(t[i]);
- }
- }
- } catch (HibernateException he) {
- addException(he);
- }
-
- return l;
+ List<Throwable> arrExceptions = new ArrayList<Throwable>();
+ List<String> list = getSessionStub().evalQueryPathNames(queryString, model, arrExceptions);
+ addExceptions(arrExceptions);
+ return list;
}
}
\ No newline at end of file
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/JavaPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/JavaPage.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/JavaPage.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -21,141 +21,68 @@
*/
package org.hibernate.console;
+import java.sql.Time;
import java.util.ArrayList;
-import java.util.Collections;
-import java.util.Iterator;
import java.util.List;
-import java.util.Map;
-import org.hibernate.Criteria;
-import org.hibernate.HibernateException;
-import org.hibernate.Session;
-import org.hibernate.engine.SessionImplementor;
+import org.hibernate.console.stubs.SessionStub;
-import bsh.EvalError;
-import bsh.Interpreter;
-
/**
* @author MAX
- *
- *
*/
public class JavaPage extends AbstractQueryPage {
- private String criteriaCode;
+ private String criteriaCode;
- Criteria criteria = null;
-
- private Interpreter ip;
-
- /**
- * @param model
- * @param session2
- */
- public JavaPage(ConsoleConfiguration cfg, String criteriaCode, QueryInputModel model) {
- super(cfg, model);
- this.criteriaCode = criteriaCode;
+ /**
+ * @param model
+ * @param session2
+ */
+ public JavaPage(String consoleConfigName, String criteriaCode, QueryInputModel model) {
+ super(consoleConfigName, model);
+ this.criteriaCode = criteriaCode;
setTabName(getQueryString().replace('\n', ' ').replace('\r', ' '));
- }
+ }
- @SuppressWarnings("unchecked")
- public void setSession(Session s) {
- super.setSession(s);
- try {
- if(criteriaCode.indexOf( "System.exit" )>=0) { // TODO: externalize run so we don't need this bogus check! //$NON-NLS-1$
- list = Collections.emptyList();
- addException( new IllegalArgumentException(ConsoleMessages.JavaPage_not_allowed) );
- return;
- }
- ip = setupInterpreter(getSession() );
- Object o = ip.eval(criteriaCode);
- // ugly! TODO: make un-ugly!
- if(o instanceof Criteria) {
- criteria = (Criteria) o;
- if(model.getMaxResults()!=null) {
- criteria.setMaxResults( model.getMaxResults().intValue() );
- }
- } else if (o instanceof List<?>) {
- list = (List<Object>) o;
- if(model.getMaxResults()!=null) {
- list = list.subList( 0, Math.min( list.size(), model.getMaxResults().intValue() ) );
- }
- } else {
- list = new ArrayList<Object>();
- list.add(o);
- }
- }
- catch (EvalError e) {
- addException(e);
- }
- catch (HibernateException e) {
- addException(e);
- }
+ @Override
+ public void setSessionStub(SessionStub s) {
+ super.setSessionStub(s);
+ evalCriteria();
}
- @SuppressWarnings("unchecked")
- private Interpreter setupInterpreter(Session session) throws EvalError, HibernateException {
- Interpreter interpreter = new Interpreter();
-
- interpreter.set("session", session); //$NON-NLS-1$
- interpreter.setClassLoader( Thread.currentThread().getContextClassLoader() );
- SessionImplementor si = (SessionImplementor)session;
-
- Map<String, ?> map = si.getFactory().getAllClassMetadata();
-
- Iterator<String> iterator = map.keySet().iterator();
- //TODO: filter non classes.
- String imports = ""; //$NON-NLS-1$
- while (iterator.hasNext() ) {
- String element = iterator.next();
- imports += "import " + element + ";\n"; //$NON-NLS-1$ //$NON-NLS-2$
- }
-
- imports += "import org.hibernate.criterion.*;\n"; //$NON-NLS-1$
- imports += "import org.hibernate.*;\n"; //$NON-NLS-1$
- // TODO: expose the parameters as values to be used in the code.
- interpreter.eval(imports);
-
- return interpreter;
- }
-
- @SuppressWarnings("unchecked")
public List<Object> getList() {
- if(list!=null) return list;
- try {
- if(criteria!=null) {
- long startTime = System.currentTimeMillis();
- list = criteria.list();
- queryTime = System.currentTimeMillis() - startTime;
- }
- else {
- return Collections.emptyList();
- }
- }
- catch (HibernateException e) {
- list = Collections.emptyList();
- addException(e);
- }
- return list;
- }
+ if (list != null) {
+ return list;
+ }
+ evalCriteria();
+ return list;
+ }
+ protected void evalCriteria() {
+ List<Throwable> arrExceptions = new ArrayList<Throwable>();
+ Time qt = new Time(queryTime);
+ list = getSessionStub().evalCriteria(criteriaCode, model, qt, arrExceptions);
+ queryTime = qt.getTime();
+ addExceptions(arrExceptions);
+ pcs.firePropertyChange("list", null, list); //$NON-NLS-1$
+ }
+
public List<String> getPathNames() {
- List<String> l = new ArrayList<String>();
- l.add(ConsoleMessages.JavaPage_no_info);
- return l;
- }
+ List<String> l = new ArrayList<String>();
+ l.add(ConsoleMessages.JavaPage_no_info);
+ return l;
+ }
- public String getQueryString() {
- return criteriaCode;
- }
+ public String getQueryString() {
+ return criteriaCode;
+ }
+
public void setQueryString(String queryString) {
this.criteriaCode = queryString;
list = null;
- ip = null;
}
- public void release() {
-
- super.release();
- }
+ public void release() {
+ super.release();
+ }
}
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/KnownConfigurations.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/KnownConfigurations.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/KnownConfigurations.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -50,7 +50,6 @@
import org.eclipse.ui.console.IConsoleManager;
import org.eclipse.ui.console.MessageConsole;
import org.eclipse.ui.console.MessageConsoleStream;
-import org.hibernate.SessionFactory;
import org.hibernate.console.node.BaseNode;
import org.hibernate.console.node.ConfigurationListNode;
import org.w3c.dom.Document;
@@ -68,18 +67,18 @@
private Map<String, ConsoleConfiguration> configurations;
private ConsoleConfigurationListener sfListener = new ConcoleConfigurationAdapter() {
- public void sessionFactoryClosing(final ConsoleConfiguration configuration, final SessionFactory closingFactory) {
+ public void sessionFactoryClosing(final ConsoleConfiguration configuration) {
fireNotification(new Notification() {
public void notify(KnownConfigurationsListener listener) {
- listener.sessionFactoryClosing(configuration, closingFactory);
+ listener.sessionFactoryClosing(configuration);
}
});
}
- public void sessionFactoryBuilt(final ConsoleConfiguration ccfg, final SessionFactory builtSessionFactory) {
+ public void sessionFactoryBuilt(final ConsoleConfiguration ccfg) {
fireNotification(new Notification() {
public void notify(KnownConfigurationsListener listener) {
- listener.sessionFactoryBuilt(ccfg, builtSessionFactory);
+ listener.sessionFactoryBuilt(ccfg);
}
});
}
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/KnownConfigurationsAdapter.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/KnownConfigurationsAdapter.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/KnownConfigurationsAdapter.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -10,7 +10,6 @@
******************************************************************************/
package org.hibernate.console;
-import org.hibernate.SessionFactory;
/**
* This adapter class provides default implementations for the
@@ -36,11 +35,9 @@
public void configurationRemoved(ConsoleConfiguration root,
boolean forUpdate) {}
- public void sessionFactoryBuilt(ConsoleConfiguration ccfg,
- SessionFactory builtFactory) {}
+ public void sessionFactoryBuilt(ConsoleConfiguration ccfg) {}
- public void sessionFactoryClosing(ConsoleConfiguration configuration,
- SessionFactory closingFactory) {}
+ public void sessionFactoryClosing(ConsoleConfiguration configuration) {}
public void configurationReset(ConsoleConfiguration ccfg){}
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/KnownConfigurationsListener.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/KnownConfigurationsListener.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/KnownConfigurationsListener.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -21,17 +21,15 @@
*/
package org.hibernate.console;
-import org.hibernate.SessionFactory;
-
public interface KnownConfigurationsListener {
public void configurationAdded(ConsoleConfiguration root);
public void configurationBuilt(ConsoleConfiguration ccfg);
- public void sessionFactoryBuilt(ConsoleConfiguration ccfg, SessionFactory builtFactory);
+ public void sessionFactoryBuilt(ConsoleConfiguration ccfg);
- public void sessionFactoryClosing(ConsoleConfiguration configuration, SessionFactory closingFactory);
+ public void sessionFactoryClosing(ConsoleConfiguration configuration);
public void configurationRemoved(ConsoleConfiguration root, boolean forUpdate);
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/QueryPage.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/QueryPage.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/QueryPage.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -24,8 +24,9 @@
import java.beans.PropertyChangeListener;
import java.util.List;
-import org.hibernate.Session;
+import org.hibernate.console.stubs.SessionStub;
+
/**
* @author MAX
*
@@ -71,10 +72,10 @@
*/
public abstract void setSticky(boolean b);
- public Session getSession();
- public void setSession(Session session);
+ public SessionStub getSessionStub();
+ public void setSessionStub(SessionStub sessionStub);
- public ConsoleConfiguration getConsoleConfiguration();
+ public String getConsoleConfigName();
public void addPropertyChangeListener(PropertyChangeListener listener);
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/node/ConfigurationNode.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/node/ConfigurationNode.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/node/ConfigurationNode.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -21,7 +21,6 @@
*/
package org.hibernate.console.node;
-import org.hibernate.SessionFactory;
import org.hibernate.console.ConcoleConfigurationAdapter;
import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.console.ConsoleMessages;
@@ -40,11 +39,11 @@
super(null,parent);
this.configuration = configuration;
configuration.addConsoleConfigurationListener(new ConcoleConfigurationAdapter() {
- public void sessionFactoryBuilt(ConsoleConfiguration ccfg, SessionFactory builtSessionFactory) {
+ public void sessionFactoryBuilt(ConsoleConfiguration ccfg) {
clear();
}
- public void sessionFactoryClosing(ConsoleConfiguration configuration, SessionFactory closedSessionFactory) {
+ public void sessionFactoryClosing(ConsoleConfiguration configuration) {
clear();
}
Modified: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/node/NodeFactory.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/node/NodeFactory.java 2010-03-12 13:16:53 UTC (rev 20798)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/node/NodeFactory.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -21,18 +21,15 @@
*/
package org.hibernate.console.node;
-import java.util.ArrayList;
import java.util.List;
-import java.util.Map;
import net.sf.cglib.proxy.Enhancer;
import org.hibernate.HibernateException;
-import org.hibernate.Session;
-import org.hibernate.SessionFactory;
import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.console.ConsoleMessages;
import org.hibernate.console.ImageConstants;
+import org.hibernate.console.stubs.SessionStub;
import org.hibernate.mapping.Table;
import org.hibernate.metadata.ClassMetadata;
import org.hibernate.metadata.CollectionMetadata;
@@ -45,43 +42,33 @@
*/
public class NodeFactory {
- private Map<String, ClassMetadata> classMetaData;
- private List<String> classes;
- private Map<String, CollectionMetadata> collectionMetaData;
- private ConsoleConfiguration consoleConfiguration;
+ //private Map<String, ClassMetadata> classMetaData;
+ //private List<String> classes;
+ //private Map<String, CollectionMetadata> collectionMetaData;
+ private ConsoleConfiguration consoleConfig;
-
-
-
-
/**
* @param c
*/
public NodeFactory(ConsoleConfiguration c) throws HibernateException {
- setConsoleConfiguration(c);
+ setConsoleConfig(c);
}
- @SuppressWarnings("unchecked")
- private void setConsoleConfiguration(ConsoleConfiguration c) {
- consoleConfiguration = c;
- SessionFactory sf = c.getSessionFactory();
- classMetaData = sf.getAllClassMetadata();
- collectionMetaData = sf.getAllCollectionMetadata();
- classes = new ArrayList<String>();
- classes.addAll(classMetaData.keySet());
+ private void setConsoleConfig(ConsoleConfiguration c) {
+ consoleConfig = c;
}
public ConfigurationEntitiesNode createConfigurationEntitiesNode(String name) {
Enhancer e = ProxyFactory.createEnhancer(ConfigurationEntitiesNode.class);
return (ConfigurationEntitiesNode) e.create(new Class[] { String.class, NodeFactory.class, List.class },
- new Object[] { name, this, classes });
+ new Object[] { name, this, consoleConfig.getSessionStubFactory().getClasses() });
//return new RootNode(this, classes);
}
- public BaseNode createObjectNode(Session session, Object o) throws HibernateException {
- ClassMetadata md = getMetaData(session.getEntityName(o) );
+ public BaseNode createObjectNode(SessionStub sessionStub, Object o) throws HibernateException {
+ ClassMetadata md = getMetaData(sessionStub.getEntityName(o));
return internalCreateClassNode(null, md.getEntityName(), md, o, false);
//return new ClassNode(this,null,md.getEntityName(),md,o,true);
}
@@ -100,15 +87,15 @@
}
public ClassMetadata getMetaData(String clazz) {
- return classMetaData.get(clazz);
+ return consoleConfig.getSessionStubFactory().getClassMetaData().get(clazz);
}
public ClassMetadata getMetaData(Class<?> clazz) {
- return getMetaData(clazz.getName() );
+ return consoleConfig.getSessionStubFactory().getClassMetaData().get(clazz.getName());
}
public CollectionMetadata getCollectionMetaData(String role) {
- return collectionMetaData.get(role);
+ return consoleConfig.getSessionStubFactory().getCollectionMetaData().get(role);
}
public BaseNode createPropertyNode(BaseNode parent, int idx, ClassMetadata metadata) {
@@ -191,7 +178,7 @@
public ConsoleConfiguration getConsoleConfiguration() {
- return consoleConfiguration;
+ return consoleConfig;
}
public static TableNode createTableNode(BaseNode parent, Table table) {
Copied: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/stubs/CollectionPropertySource.java (from rev 20798, trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/views/properties/CollectionPropertySource.java)
===================================================================
--- branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/stubs/CollectionPropertySource.java (rev 0)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/stubs/CollectionPropertySource.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -0,0 +1,98 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.hibernate.console.stubs;
+
+import java.util.Collection;
+import java.util.Iterator;
+import java.util.Map;
+import java.util.WeakHashMap;
+
+import org.eclipse.ui.views.properties.IPropertyDescriptor;
+import org.eclipse.ui.views.properties.IPropertySource;
+import org.eclipse.ui.views.properties.PropertyDescriptor;
+
+public class CollectionPropertySource implements IPropertySource {
+
+ private Collection<?> collection;
+
+ IPropertyDescriptor[] descriptors = null;
+
+ Map<Object, Object> values = new WeakHashMap<Object, Object>();
+
+ public CollectionPropertySource(Collection<?> propertyValue) {
+ collection = propertyValue;
+ }
+
+ public Object getEditableValue() {
+ return null;
+ }
+
+ public IPropertyDescriptor[] getPropertyDescriptors() {
+ if (descriptors == null) {
+ PropertyDescriptor[] properties = new PropertyDescriptor[collection.size()];
+ for (int i = 0; i < properties.length; i++) {
+ properties[i] = new PropertyDescriptor(Integer.valueOf(i), "#" + i); //$NON-NLS-1$
+ }
+ descriptors = properties;
+ }
+ return descriptors;
+ }
+
+ public Object getPropertyValue(Object id) {
+ Object value = values.get(id);
+ if (value == null) {
+ Integer i = (Integer) id;
+ Iterator<?> iterator = collection.iterator();
+ int base = 0;
+
+ while (iterator.hasNext()) {
+
+ value = iterator.next();
+
+ if (base == i.intValue()) {
+ values.put(id, value);
+ return value;
+ } else {
+ value = null;
+ }
+ base++;
+ }
+ }
+
+ return value;
+ }
+
+ public boolean isPropertySet(Object id) {
+ // TODO Auto-generated method stub
+ return false;
+ }
+
+ public void resetPropertyValue(Object id) {
+ // TODO Auto-generated method stub
+
+ }
+
+ public void setPropertyValue(Object id, Object value) {
+
+ }
+
+}
Copied: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/util/ELTransformer.java (from rev 20798, trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/ELTransformer.java)
===================================================================
--- branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/util/ELTransformer.java (rev 0)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/util/ELTransformer.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -0,0 +1,28 @@
+package org.hibernate.console.util;
+
+public class ELTransformer {
+
+ /**
+ * transform any #{el expressions} into named parameters so HQL validation won't fail on it.
+ *
+ * @param hql
+ * @return
+ */
+ static public String removeEL(String hql) {
+ int elStart = hql.indexOf("#{"); //$NON-NLS-1$
+ int next = hql.indexOf("}", elStart); //$NON-NLS-1$
+
+ while (elStart != -1 && next != -1) {
+ String result = hql.substring(0, elStart);
+ result += ":_" + hql.substring(elStart + 2, next).replaceAll("[^\\p{javaJavaIdentifierStart}]", "_") + "_"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
+ result += hql.substring(next + 1);
+
+ hql = result;
+
+ elStart = hql.indexOf("#{"); //$NON-NLS-1$
+ next = hql.indexOf("}", elStart); //$NON-NLS-1$
+ }
+
+ return hql;
+ }
+}
Copied: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/util/Formatter.java (from rev 20798, trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/Formatter.java)
===================================================================
--- branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/util/Formatter.java (rev 0)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/util/Formatter.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -0,0 +1,375 @@
+package org.hibernate.console.util;
+
+import java.util.HashSet;
+import java.util.LinkedList;
+import java.util.Set;
+import java.util.StringTokenizer;
+
+import org.hibernate.util.StringHelper;
+
+/**
+ * Old formatter from previous Hibernate versions which allowed a bit more control, i.e. we want *less* spaces not more.
+ * In here to simplify migration from 3.2 to 3.3 where this class changed.
+ *
+ */
+@SuppressWarnings({ "unchecked", "nls" })
+public class Formatter {
+
+ private static final Set BEGIN_CLAUSES = new HashSet();
+ private static final Set END_CLAUSES = new HashSet();
+ private static final Set LOGICAL = new HashSet();
+ private static final Set QUANTIFIERS = new HashSet();
+ private static final Set DML = new HashSet();
+ private static final Set MISC = new HashSet();
+ static {
+
+ BEGIN_CLAUSES.add("left");
+ BEGIN_CLAUSES.add("right");
+ BEGIN_CLAUSES.add("inner");
+ BEGIN_CLAUSES.add("outer");
+ BEGIN_CLAUSES.add("group");
+ BEGIN_CLAUSES.add("order");
+
+ END_CLAUSES.add("where");
+ END_CLAUSES.add("set");
+ END_CLAUSES.add("having");
+ END_CLAUSES.add("join");
+ END_CLAUSES.add("from");
+ END_CLAUSES.add("by");
+ END_CLAUSES.add("join");
+ END_CLAUSES.add("into");
+ END_CLAUSES.add("union");
+
+ LOGICAL.add("and");
+ LOGICAL.add("or");
+ LOGICAL.add("when");
+ LOGICAL.add("else");
+ LOGICAL.add("end");
+
+ QUANTIFIERS.add("in");
+ QUANTIFIERS.add("all");
+ QUANTIFIERS.add("exists");
+ QUANTIFIERS.add("some");
+ QUANTIFIERS.add("any");
+
+ DML.add("insert");
+ DML.add("update");
+ DML.add("delete");
+
+ MISC.add("select");
+ MISC.add("on");
+ //MISC.add("values");
+
+ }
+
+ String indentString = " ";
+ String initial = "\n ";
+
+ boolean beginLine = true;
+ boolean afterBeginBeforeEnd = false;
+ boolean afterByOrSetOrFromOrSelect = false;
+ boolean afterValues = false;
+ boolean afterOn = false;
+ boolean afterBetween = false;
+ boolean afterInsert = false;
+ int inFunction = 0;
+ int parensSinceSelect = 0;
+ private LinkedList parenCounts = new LinkedList();
+ private LinkedList afterByOrFromOrSelects = new LinkedList();
+
+ int indent = 1;
+
+ StringBuffer result = new StringBuffer();
+ StringTokenizer tokens;
+ String lastToken;
+ String token;
+ String lcToken;
+
+ public Formatter(String sql) {
+ tokens = new StringTokenizer(
+ sql,
+ "()+*/-=<>'`\"[]," + StringHelper.WHITESPACE,
+ true
+ );
+ }
+
+ public Formatter setInitialString(String initial) {
+ this.initial = initial;
+ return this;
+ }
+
+ public Formatter setIndentString(String indent) {
+ this.indentString = indent;
+ return this;
+ }
+
+ public String format() {
+
+ result.append(initial);
+
+ while ( tokens.hasMoreTokens() ) {
+ token = tokens.nextToken();
+ lcToken = token.toLowerCase();
+
+ if ( "'".equals(token) ) {
+ String t;
+ do {
+ t = tokens.nextToken();
+ token += t;
+ }
+ while ( !"'".equals(t) && tokens.hasMoreTokens() ); // cannot handle single quotes
+ }
+ else if ( "\"".equals(token) ) {
+ String t;
+ do {
+ t = tokens.nextToken();
+ token += t;
+ }
+ while ( !"\"".equals(t) );
+ }
+
+ if ( afterByOrSetOrFromOrSelect && ",".equals(token) ) {
+ commaAfterByOrFromOrSelect();
+ }
+ else if ( afterOn && ",".equals(token) ) {
+ commaAfterOn();
+ }
+
+ else if ( "(".equals(token) ) {
+ openParen();
+ }
+ else if ( ")".equals(token) ) {
+ closeParen();
+ }
+
+ else if ( BEGIN_CLAUSES.contains(lcToken) ) {
+ beginNewClause();
+ }
+
+ else if ( END_CLAUSES.contains(lcToken) ) {
+ endNewClause();
+ }
+
+ else if ( "select".equals(lcToken) ) {
+ select();
+ }
+
+ else if ( DML.contains(lcToken) ) {
+ updateOrInsertOrDelete();
+ }
+
+ else if ( "values".equals(lcToken) ) {
+ values();
+ }
+
+ else if ( "on".equals(lcToken) ) {
+ on();
+ }
+
+ else if ( afterBetween && lcToken.equals("and") ) {
+ misc();
+ afterBetween = false;
+ }
+
+ else if ( LOGICAL.contains(lcToken) ) {
+ logical();
+ }
+
+ else if ( isWhitespace(token) ) {
+ white();
+ }
+
+ else {
+ misc();
+ }
+
+ if ( !isWhitespace( token ) ) lastToken = lcToken;
+
+ }
+ return result.toString();
+ }
+
+ private void commaAfterOn() {
+ out();
+ indent--;
+ newline();
+ afterOn = false;
+ afterByOrSetOrFromOrSelect = true;
+ }
+
+ private void commaAfterByOrFromOrSelect() {
+ out();
+ newline();
+ }
+
+ private void logical() {
+ if ( "end".equals(lcToken) ) indent--;
+ newline();
+ out();
+ beginLine = false;
+ }
+
+ private void on() {
+ indent++;
+ afterOn = true;
+ newline();
+ out();
+ beginLine = false;
+ }
+
+ private void misc() {
+ out();
+ if ( "between".equals(lcToken) ) {
+ afterBetween = true;
+ }
+ if (afterInsert) {
+ newline();
+ afterInsert = false;
+ }
+ else {
+ beginLine = false;
+ if ( "case".equals(lcToken) ) {
+ indent++;
+ }
+ }
+ }
+
+ private void white() {
+ if ( !beginLine ) {
+ result.append(" ");
+ }
+ }
+
+ private void updateOrInsertOrDelete() {
+ out();
+ indent++;
+ beginLine = false;
+ if ( "update".equals(lcToken) ) newline();
+ if ( "insert".equals(lcToken) ) afterInsert = true;
+ }
+
+ private void select() {
+ out();
+ indent++;
+ newline();
+ parenCounts.addLast( new Integer(parensSinceSelect) );
+ afterByOrFromOrSelects.addLast( new Boolean(afterByOrSetOrFromOrSelect) );
+ parensSinceSelect = 0;
+ afterByOrSetOrFromOrSelect = true;
+ }
+
+ private void out() {
+ result.append(token);
+ }
+
+ private void endNewClause() {
+ if (!afterBeginBeforeEnd) {
+ indent--;
+ if (afterOn) {
+ indent--;
+ afterOn=false;
+ }
+ newline();
+ }
+ out();
+ if ( !"union".equals(lcToken) ) indent++;
+ newline();
+ afterBeginBeforeEnd = false;
+ afterByOrSetOrFromOrSelect = "by".equals(lcToken)
+ || "set".equals(lcToken)
+ || "from".equals(lcToken);
+ }
+
+ private void beginNewClause() {
+ if (!afterBeginBeforeEnd) {
+ if (afterOn) {
+ indent--;
+ afterOn=false;
+ }
+ indent--;
+ newline();
+ }
+ out();
+ beginLine = false;
+ afterBeginBeforeEnd = true;
+ }
+
+ private void values() {
+ indent--;
+ newline();
+ out();
+ indent++;
+ newline();
+ afterValues = true;
+ }
+
+ private void closeParen() {
+ parensSinceSelect--;
+ if (parensSinceSelect<0) {
+ indent--;
+ parensSinceSelect = ( (Integer) parenCounts.removeLast() ).intValue();
+ afterByOrSetOrFromOrSelect = ( (Boolean) afterByOrFromOrSelects.removeLast() ).booleanValue();
+ }
+ if ( inFunction>0 ) {
+ inFunction--;
+ out();
+ }
+ else {
+ if (!afterByOrSetOrFromOrSelect) {
+ indent--;
+ newline();
+ }
+ out();
+ }
+ beginLine = false;
+ }
+
+ private void openParen() {
+ if ( isFunctionName( lastToken ) || inFunction>0 ) {
+ inFunction++;
+ }
+ beginLine = false;
+ if ( inFunction>0 ) {
+ out();
+ }
+ else {
+ out();
+ if (!afterByOrSetOrFromOrSelect) {
+ indent++;
+ newline();
+ beginLine = true;
+ }
+ }
+ parensSinceSelect++;
+ }
+
+ private static boolean isFunctionName(String tok) {
+ final char begin = tok.charAt(0);
+ final boolean isIdentifier = Character.isJavaIdentifierStart( begin ) || '"'==begin;
+ return isIdentifier &&
+ !LOGICAL.contains(tok) &&
+ !END_CLAUSES.contains(tok) &&
+ !QUANTIFIERS.contains(tok) &&
+ !DML.contains(tok) &&
+ !MISC.contains(tok);
+ }
+
+ private static boolean isWhitespace(String token) {
+ return StringHelper.WHITESPACE.indexOf(token)>=0;
+ }
+
+ private void newline() {
+ result.append("\n");
+ for ( int i=0; i<indent; i++ ) {
+ result.append(indentString);
+ }
+ beginLine = true;
+ }
+
+ public static void main(String[] args) {
+ if ( args.length>0 ) System.out.println(
+ new Formatter( StringHelper.join(" ", args) ).format()
+ );
+ }
+
+}
Copied: branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/util/QLFormatHelper.java (from rev 20798, trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/utils/QLFormatHelper.java)
===================================================================
--- branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/util/QLFormatHelper.java (rev 0)
+++ branches/hibernatetools-multiversion/hibernatetools/plugins/org.hibernate.eclipse/src/org/hibernate/console/util/QLFormatHelper.java 2010-03-16 18:47:52 UTC (rev 20851)
@@ -0,0 +1,29 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.hibernate.console.util;
+
+public class QLFormatHelper {
+
+ static public String formatForScreen(String query) {
+ return new Formatter(query).setInitialString("").setIndentString(" ").format(); //$NON-NLS-1$ //$NON-NLS-2$
+ }
+}
14 years, 3 months
JBoss Tools SVN: r20850 - in trunk: jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/5143 and 4 other directories.
by jbosstools-commits@lists.jboss.org
Author: yzhishko
Date: 2010-03-16 14:35:16 -0400 (Tue, 16 Mar 2010)
New Revision: 20850
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/5143/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/5143/test.html
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ExceptionInVPEComments_JBIDE5143.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java
trunk/vpe/plugins/org.jboss.tools.vpe.html/src/org/jboss/tools/vpe/html/template/HtmlCommentTemplate.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5143 - fixed
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/5143/test.html
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/5143/test.html (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/resources/jsfTest/WebContent/pages/JBIDE/5143/test.html 2010-03-16 18:35:16 UTC (rev 20850)
@@ -0,0 +1,10 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+<title>Insert title here</title>
+</head>
+<body>
+ <span>Test --text</span>-->
+</body>
+</html>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2010-03-16 17:19:22 UTC (rev 20849)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/JsfAllTests.java 2010-03-16 18:35:16 UTC (rev 20850)
@@ -16,6 +16,7 @@
import org.jboss.tools.jsf.vpe.jsf.test.jbide.ChangeMessageBundleTest_JBIDE5818;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.ContextMenuDoubleInsertionTest_JBIDE3888;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.EditFontFamilyTest_JBIDE5872;
+import org.jboss.tools.jsf.vpe.jsf.test.jbide.ExceptionInVPEComments_JBIDE5143;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.FacetProcessingTest;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE1105Test;
import org.jboss.tools.jsf.vpe.jsf.test.jbide.JBIDE1460Test;
@@ -211,6 +212,7 @@
suite.addTestSuite(NaturesChecker_JBIDE5701.class);
suite.addTestSuite(FacetProcessingTest.class);
suite.addTestSuite(RefreshBundles_JBIDE5460.class);
+ suite.addTestSuite(ExceptionInVPEComments_JBIDE5143.class);
// $JUnit-END$
return new VpeTestSetup(suite);
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ExceptionInVPEComments_JBIDE5143.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ExceptionInVPEComments_JBIDE5143.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/src/org/jboss/tools/jsf/vpe/jsf/test/jbide/ExceptionInVPEComments_JBIDE5143.java 2010-03-16 18:35:16 UTC (rev 20850)
@@ -0,0 +1,62 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2008 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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.jsf.vpe.jsf.test.jbide;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.swt.custom.StyledText;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.part.FileEditorInput;
+import org.jboss.tools.jsf.vpe.jsf.test.JsfAllTests;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.jboss.tools.vpe.ui.test.VpeTest;
+
+/**
+ *
+ * @author yzhishko
+ *
+ */
+
+public class ExceptionInVPEComments_JBIDE5143 extends VpeTest {
+
+ public ExceptionInVPEComments_JBIDE5143(String name) {
+ super(name);
+ }
+
+ public void testExceptionInVPEComments() throws Throwable {
+ setException(null);
+ IFile file = (IFile) TestUtil.getComponentPath("JBIDE/5143/test.html", //$NON-NLS-1$
+ JsfAllTests.IMPORT_PROJECT_NAME);
+ IEditorInput editorInput = new FileEditorInput(file);
+ JSPMultiPageEditor part = openEditor(editorInput);
+ TestUtil.delay(3000);
+ TestUtil.waitForIdle();
+ StyledText styledText = part.getSourceEditor().getTextViewer()
+ .getTextWidget();
+ String delimiter = styledText.getLineDelimiter();
+ int offset = styledText.getOffsetAtLine(8);
+ styledText.setCaretOffset(offset - delimiter.length() - 28);
+ styledText.insert("-"); //$NON-NLS-1$
+ TestUtil.delay(1000);
+ TestUtil.waitForIdle();
+ styledText.insert("-"); //$NON-NLS-1$
+ TestUtil.delay(1000);
+ TestUtil.waitForIdle();
+ styledText.insert("!"); //$NON-NLS-1$
+ TestUtil.delay(1000);
+ TestUtil.waitForIdle();
+ styledText.insert("<"); //$NON-NLS-1$
+ TestUtil.delay(1000);
+ TestUtil.waitForIdle();
+ }
+
+}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe.html/src/org/jboss/tools/vpe/html/template/HtmlCommentTemplate.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe.html/src/org/jboss/tools/vpe/html/template/HtmlCommentTemplate.java 2010-03-16 17:19:22 UTC (rev 20849)
+++ trunk/vpe/plugins/org.jboss.tools.vpe.html/src/org/jboss/tools/vpe/html/template/HtmlCommentTemplate.java 2010-03-16 18:35:16 UTC (rev 20850)
@@ -28,7 +28,9 @@
* Template for comment node
*/
public class HtmlCommentTemplate extends VpeAbstractTemplate {
+
+ private static final String doubleHyphen = "--"; //$NON-NLS-1$
private static final String COMMENT_STYLE = "font-style:italic; color:green"; //$NON-NLS-1$
/* (non-Javadoc)
* @see org.jboss.tools.vpe.editor.template.VpeTemplate#create(org.jboss.tools.vpe.editor.context.VpePageContext, org.w3c.dom.Node, org.mozilla.interfaces.nsIDOMDocument)
@@ -44,9 +46,21 @@
((nsIDOMElement)visualNode.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID)).appendChild(text);
} else {
- visualNode = visualDocument.createComment(sourceNode.getNodeValue());
+ visualNode = visualDocument.createComment(removeDoubleHyphens(sourceNode.getNodeValue()));
}
return new VpeCreationData(visualNode);
}
+
+ //a part of https://jira.jboss.org/jira/browse/JBIDE-5143 fix
+
+ private String removeDoubleHyphens(String value){
+ StringBuilder stringBuilder = new StringBuilder(""); //$NON-NLS-1$
+ while (value.indexOf(doubleHyphen)>-1) {
+ stringBuilder.append(value.substring(0, value.indexOf(doubleHyphen)));
+ value = value.substring(value.indexOf(doubleHyphen)+doubleHyphen.length());
+ }
+ stringBuilder.append(value);
+ return stringBuilder.toString();
+ }
}
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java 2010-03-16 17:19:22 UTC (rev 20849)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.test/src/org/jboss/tools/vpe/ui/test/VpeTest.java 2010-03-16 18:35:16 UTC (rev 20850)
@@ -129,8 +129,12 @@
}
closeEditors();
-
+
Platform.removeLogListener(this);
+
+ if (getException() != null) {
+ throw new Exception(getException());
+ }
super.tearDown();
14 years, 3 months
JBoss Tools SVN: r20849 - trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2010-03-16 13:19:22 -0400 (Tue, 16 Mar 2010)
New Revision: 20849
Modified:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/QualifierDefinitionTest.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-5808
Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/QualifierDefinitionTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/QualifierDefinitionTest.java 2010-03-16 16:56:21 UTC (rev 20848)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/QualifierDefinitionTest.java 2010-03-16 17:19:22 UTC (rev 20849)
@@ -137,4 +137,36 @@
// TODO use correct start position instead of 0.
assertLocationEquals(declarations, 0, 5);
}
+
+ /**
+ * section 4.1 aa)
+ * @throws JavaModelException
+ */
+ public void testQualifierDeclaredInheritedIsInherited() throws JavaModelException {
+ IAnnotationDeclaration hairy = getAnnotationDeclarationFromBean("JavaSource/org/jboss/jsr299/tck/tests/definition/qualifier/LongHairedDog.java", "org.jboss.jsr299.tck.tests.definition.qualifier.Hairy");
+ IType type = getType("org.jboss.jsr299.tck.tests.definition.qualifier.BorderCollie");
+ Set<IBean> beans = cdiProject.getBeans(true, type, hairy);
+ assertEquals("Wrong number of beans.", 1, beans.size());
+ IBean bean = beans.iterator().next();
+ Set<IQualifier> qualifiers = bean.getQualifiers();
+ assertEquals("Wrong number of qualifiers for org.jboss.jsr299.tck.tests.definition.qualifier.BorderCollie type.", 2, qualifiers.size());
+ assertContainsQualifierType(bean, "org.jboss.jsr299.tck.tests.definition.qualifier.Hairy");
+ assertContainsQualifierType(bean, "javax.enterprise.inject.Any");
+ }
+
+ /**
+ * section 4.1 aaa)
+ * @throws JavaModelException
+ */
+ public void testQualifierNotDeclaredInheritedIsNotInherited() throws JavaModelException {
+ Set<IBean> beans = getBeans("org.jboss.jsr299.tck.tests.definition.qualifier.ShetlandPony");
+ assertEquals("Wrong number of beans.", 1, beans.size());
+ IBean bean = beans.iterator().next();
+ Set<IQualifier> qualifiers = bean.getQualifiers();
+ assertEquals(
+ "Wrong number of qualifiers for org.jboss.jsr299.tck.tests.definition.qualifier.BorderCollie type.",
+ 2, qualifiers.size());
+ assertContainsQualifierType(bean, "javax.enterprise.inject.Default");
+ assertContainsQualifierType(bean, "javax.enterprise.inject.Any");
+ }
}
\ No newline at end of file
14 years, 3 months
JBoss Tools SVN: r20848 - trunk/documentation/guides/JBDS_Release_Notes/en-US.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2010-03-16 12:56:21 -0400 (Tue, 16 Mar 2010)
New Revision: 20848
Modified:
trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.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-1160 -Added the info about jBPM new features and resolved bugs.</p>
</body></html>
Modified: trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml
===================================================================
--- trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2010-03-16 16:38:17 UTC (rev 20847)
+++ trunk/documentation/guides/JBDS_Release_Notes/en-US/Fixed_Issues.xml 2010-03-16 16:56:21 UTC (rev 20848)
@@ -1,891 +1,915 @@
<?xml version='1.0' encoding='utf-8' ?>
<section id="Issues-fixed-in-this-release">
- <title>
- Features added and issues fixed in this release
- </title>
-
+ <title>
+ Features added and issues fixed in this release
+ </title>
+
+ <para>
+ Following is a list of new and noteworthy features and bug fixes in this release:
+ </para>
+ <formalpara>
+ <title>Contexts and Dependency Injection (CDI)</title>
<para>
- Following is a list of new and noteworthy features and bug fixes in this release:
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5770">JBIDE-5770</ulink>: The EL code completion icon has been updated to use the <application>JBoss Weld</application> icon.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5355">JBIDE-5355</ulink>: A Contexts and Dependency Injection Project Facet has been added to <application>JBoss Developer Studio</application>. This makes it possible to enable CDI support for a faceted project via the <guilabel>New Dynamic Web Project</guilabel> wizard or the <guilabel>Project Facets</guilabel> setting page available at <menuchoice><guimenuitem>Project</guimenuitem><guimenuitem>Properties</guimenuitem><guimenuitem>Project Facets</guimenuitem></menuchoice>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5276">JBIDE-5276</ulink>: The <guimenuitem>Add CDI Support</guimenuitem> and <guimenuitem>Remove CDI Support</guimenuitem> items have been added to the Project menu.
+ </para>
+ </listitem>
+ </itemizedlist>
</para>
- <formalpara>
- <title>Contexts and Dependency Injection (CDI)</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5770">JBIDE-5770</ulink>: The EL code completion icon has been updated to use the <application>JBoss Weld</application> icon.
+ </formalpara>
+ <formalpara>
+ <title>ESB</title>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5653">JBIDE-5653</ulink>: The <guilabel>ESB Content Based Router </guilabel> dialog box has been modified so that the <guilabel>CBR Alias</guilabel> field is now mandatory, allowing the value of it to determine what other fields are available. The <guilabel>Rule Set</guilabel> field is now not required when a <guilabel>CBR Alias</guilabel> of Regex or XPath is provided, since with these alias the rules can be specified in-line and the <guilabel>Rule Language</guilabel> field is now set to apply only when the <guilabel>CBR Alias</guilabel> is Drools. The <guilabel>Rules Reload</guilabel> field will only apply when a <guilabel>Rule Set</guilabel> has been specified.
+ </para>
+ <para>
+ The table <guilabel>Route List</guilabel> found in the <guilabel>JBoss ESB Editor</guilabel> now lists the <emphasis>expression</emphasis> since this is a common undertaking by users.
+ </para>
+ <para>
+ In the <guilabel> Add Route To</guilabel> dialog box, the <guilabel>Service Category</guilabel> field has been made mandatory. Other changes to this dialog box include the <guilabel>Destination name</guilabel> only being required if the previous CBR action contained a <guilabel>Rule Set</guilabel> and if the CBR action did not contain a <guilabel>Rule Set</guilabel>, an <guilabel>Expression</guilabel> field is included.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5627">JBIDE-5627</ulink>: For this release of the <application>JBoss Developer Studio</application> variations of the <guilabel>Content Based Router</guilabel> menu have been added to the ESB editor for Drools, Drools XPath, Generic, XPath and Regex.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5548">JBIDE-5548</ulink>: In the ESB Configuration Editor, when selecting a JBR Listener, JBR Bus or JBR Provider, new functionality has been added to allow a user to configure the properties: <property>synchronous</property>, <property>serviceInvokerTimeout</property> and <property>asyncResponse</property> through the new child object <property>Config</property>. These new configurable properties allow a user increased control over the execution of the JBR components.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5547">JBIDE-5547</ulink>: In the ESB Configuration Editor, when selecting a FTP Listener in read-only mode new functionality has been added to allow a user to configure the properties: <property>maxNodes</property>, <property>timeToLiveSeconds</property> and <property>maxAgeSeconds</property> through the new child object <property>Cache</property>. In addition the following properties have been added to allow a user to select their own values for the: <property>Class</property>, <property>Config File</property> and <property>Cache Listener</property> available through the new child object <property>Remote Filesystem Strategy</property>. These new configurable properties allow a user increased control over the execution of the FTP Listener.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5489">JBIDE-5489</ulink>: For the <guilabel>BPMProcessor</guilabel> within the ESB Editor, the <property>Command</property> property has been modified to include possible values of <emphasis>NewProcessInstanceCommand</emphasis>, <emphasis>StartProcessCommand</emphasis> and <emphasis>CancelProcessInstanceCommand</emphasis> in a drop-down box.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5486">JBIDE-5486</ulink>: When a user would try to open an editor for a property that didn't exist nothing would occur. With this update, a <guilabel>New File</guilabel> wizard opens to guide the user through the creation of the property they were attempting to open. Once this is completed, the ESB Editor fields are then populated with the new file name and path for the property.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5427">JBIDE-5427</ulink>: In the ESB Editor, the items that displayed when right clicking and going to <menuchoice><guimenuitem>Provider</guimenuitem><guimenuitem>New</guimenuitem></menuchoice> were presented in a different order to those of the <menuchoice><guimenuitem>Listener</guimenuitem><guimenuitem>New</guimenuitem></menuchoice> list. To ensure consistency the <guimenuitem>Provider</guimenuitem> list of items has been reordered to match the <guimenuitem>Listener</guimenuitem> menu.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5229">JBIDE-5229</ulink>: ESB 4.7 that is contained within <application>JBoss SOA Platform 5.0</application> is now officially supported in this version of the <application>JBoss Developer Studio</application>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5191">JBIDE-5191</ulink>: The Smooks, Drools, jPDL, XSLT and Groovy editors have been linked to the ESB Editor, providing an improved user experience. <guibutton>Browse</guibutton> buttons that allow for file association and use have been added to the <property>Smooks Transformer</property>, <property>GroovyActionProcessor</property>, <property>Rule Set</property> and <property>Rule Language</property> properties.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5108">JBIDE-5108</ulink>: The JBoss Runtime Manager was setup to search for ESB Runtime files from a specified location regardless of how it was installed. This caused issue when the ESB Runtime was installed as a user defined runtime. The issue has been rectified by adding a <guilabel>Configuration</guilabel> field to the <guilabel>Preference</guilabel> page. If the user sets the <guilabel>Configuration</guilabel> field to the home location of the <application>JBoss Enterprise Application Platform</application> or <application>JBoss SOA Platform</application>, there configuration combination will list all available configurations. If the user selects a standalone ESB Runtime location, the configuration combination will be empty and the user should ignore the field. The ESB runtime classpath container now gathers configuration information from the selected server runtime and then selects JARs accordingly or the sta!
ndalone ESB Runtime.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4730">JBIDE-4730</ulink>: The ESB project creation wizard receives a new logo following this update. Instead of using the generic <application>JBoss Developer Studio</application> logo within the ESB project wizard, a new ESB wizard logo is displayed.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4320">JBIDE-4320</ulink>: ESB projects are now Web Tools Platform (WTP) modules. This ensures that it is possible to use an ESB module inside a WAR or EAR archive within WTP. ESB project deployment has not been limited though and they can still be deployed as an individual module.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4168">JBIDE-4168</ulink>: The ability to select a directory using a browser window has been added for the FS Message Filter and the FTP Message filter attributes of <property>directory</property>, <property>post-directory</property> and <property>error-directory</property>. This added feature ensures that a user does not need to manually type the entire path to a directory but instead they just select the path from a browser.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2024">JBIDE-2024</ulink>: The <guilabel>Process</guilabel> field f the <guilabel>Action</guilabel> tab in the ESB now includes a <guibutton>Browse</guibutton> button that allows a user to select which method of the <classname>Action</classname> class should be used for the process. The list in the dialog will show all public methods that has a <property>Message</property> parameter. Multiple methods can be selected if necessary.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2023">JBIDE-2023</ulink>: The <guilabel>Class</guilabel> field of the <guilabel>Action</guilabel> tab now includes a <guibutton>Browse</guibutton> button that displays the possible classes that extend from the <classname>AbstractActionLifecycle</classname> class.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </formalpara>
+ <formalpara>
+ <title>jBPM</title>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5719">JBIDE-5719</ulink>:
+ Now users can create a new jBPM action by right clicking the source directory
+ in Package Explorer and selecting <guilabel>New ->Other -> JBoss jBPM-> jBPM 3 Action Handler</guilabel>
+ .
+ </para>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4904">JBIDE-4904</ulink>:
+ The runtime preference pages of jBPM 3 and jBPM 4 started to be unified.
+ </para>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5622">JBIDE-5622</ulink>:
+ Resolved the bug connected with the problem that <guilabel>Generate
+ Task View</guilabel> did not remember the state of some edited fields.
</para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5355">JBIDE-5355</ulink>: A Contexts and Dependency Injection Project Facet has been added to <application>JBoss Developer Studio</application>. This makes it possible to enable CDI support for a faceted project via the <guilabel>New Dynamic Web Project</guilabel> wizard or the <guilabel>Project Facets</guilabel> setting page available at <menuchoice><guimenuitem>Project</guimenuitem><guimenuitem>Properties</guimenuitem><guimenuitem>Project Facets</guimenuitem></menuchoice>.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5276">JBIDE-5276</ulink>: The <guimenuitem>Add CDI Support</guimenuitem> and <guimenuitem>Remove CDI Support</guimenuitem> items have been added to the Project menu.
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>
- <formalpara>
- <title>ESB</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5653">JBIDE-5653</ulink>: The <guilabel>ESB Content Based Router </guilabel> dialog box has been modified so that the <guilabel>CBR Alias</guilabel> field is now mandatory, allowing the value of it to determine what other fields are available. The <guilabel>Rule Set</guilabel> field is now not required when a <guilabel>CBR Alias</guilabel> of Regex or XPath is provided, since with these alias the rules can be specified in-line and the <guilabel>Rule Language</guilabel> field is now set to apply only when the <guilabel>CBR Alias</guilabel> is Drools. The <guilabel>Rules Reload</guilabel> field will only apply when a <guilabel>Rule Set</guilabel> has been specified.
- </para>
- <para>
- The table <guilabel>Route List</guilabel> found in the <guilabel>JBoss ESB Editor</guilabel> now lists the <emphasis>expression</emphasis> since this is a common undertaking by users.
- </para>
- <para>
- In the <guilabel> Add Route To</guilabel> dialog box, the <guilabel>Service Category</guilabel> field has been made mandatory. Other changes to this dialog box include the <guilabel>Destination name</guilabel> only being required if the previous CBR action contained a <guilabel>Rule Set</guilabel> and if the CBR action did not contain a <guilabel>Rule Set</guilabel>, an <guilabel>Expression</guilabel> field is included.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5627">JBIDE-5627</ulink>: For this release of the <application>JBoss Developer Studio</application> variations of the <guilabel>Content Based Router</guilabel> menu have been added to the ESB editor for Drools, Drools XPath, Generic, XPath and Regex.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5548">JBIDE-5548</ulink>: In the ESB Configuration Editor, when selecting a JBR Listener, JBR Bus or JBR Provider, new functionality has been added to allow a user to configure the properties: <property>synchronous</property>, <property>serviceInvokerTimeout</property> and <property>asyncResponse</property> through the new child object <property>Config</property>. These new configurable properties allow a user increased control over the execution of the JBR components.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5547">JBIDE-5547</ulink>: In the ESB Configuration Editor, when selecting a FTP Listener in read-only mode new functionality has been added to allow a user to configure the properties: <property>maxNodes</property>, <property>timeToLiveSeconds</property> and <property>maxAgeSeconds</property> through the new child object <property>Cache</property>. In addition the following properties have been added to allow a user to select their own values for the: <property>Class</property>, <property>Config File</property> and <property>Cache Listener</property> available through the new child object <property>Remote Filesystem Strategy</property>. These new configurable properties allow a user increased control over the execution of the FTP Listener.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5489">JBIDE-5489</ulink>: For the <guilabel>BPMProcessor</guilabel> within the ESB Editor, the <property>Command</property> property has been modified to include possible values of <emphasis>NewProcessInstanceCommand</emphasis>, <emphasis>StartProcessCommand</emphasis> and <emphasis>CancelProcessInstanceCommand</emphasis> in a drop-down box.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5486">JBIDE-5486</ulink>: When a user would try to open an editor for a property that didn't exist nothing would occur. With this update, a <guilabel>New File</guilabel> wizard opens to guide the user through the creation of the property they were attempting to open. Once this is completed, the ESB Editor fields are then populated with the new file name and path for the property.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5427">JBIDE-5427</ulink>: In the ESB Editor, the items that displayed when right clicking and going to <menuchoice><guimenuitem>Provider</guimenuitem><guimenuitem>New</guimenuitem></menuchoice> were presented in a different order to those of the <menuchoice><guimenuitem>Listener</guimenuitem><guimenuitem>New</guimenuitem></menuchoice> list. To ensure consistency the <guimenuitem>Provider</guimenuitem> list of items has been reordered to match the <guimenuitem>Listener</guimenuitem> menu.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5229">JBIDE-5229</ulink>: ESB 4.7 that is contained within <application>JBoss SOA Platform 5.0</application> is now officially supported in this version of the <application>JBoss Developer Studio</application>.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5191">JBIDE-5191</ulink>: The Smooks, Drools, jPDL, XSLT and Groovy editors have been linked to the ESB Editor, providing an improved user experience. <guibutton>Browse</guibutton> buttons that allow for file association and use have been added to the <property>Smooks Transformer</property>, <property>GroovyActionProcessor</property>, <property>Rule Set</property> and <property>Rule Language</property> properties.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5108">JBIDE-5108</ulink>: The JBoss Runtime Manager was setup to search for ESB Runtime files from a specified location regardless of how it was installed. This caused issue when the ESB Runtime was installed as a user defined runtime. The issue has been rectified by adding a <guilabel>Configuration</guilabel> field to the <guilabel>Preference</guilabel> page. If the user sets the <guilabel>Configuration</guilabel> field to the home location of the <application>JBoss Enterprise Application Platform</application> or <application>JBoss SOA Platform</application>, there configuration combination will list all available configurations. If the user selects a standalone ESB Runtime location, the configuration combination will be empty and the user should ignore the field. The ESB runtime classpath container now gathers configuration information from the selected server runtime and then selects JARs accordingly or the st!
andalone ESB Runtime.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4730">JBIDE-4730</ulink>: The ESB project creation wizard receives a new logo following this update. Instead of using the generic <application>JBoss Developer Studio</application> logo within the ESB project wizard, a new ESB wizard logo is displayed.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4320">JBIDE-4320</ulink>: ESB projects are now Web Tools Platform (WTP) modules. This ensures that it is possible to use an ESB module inside a WAR or EAR archive within WTP. ESB project deployment has not been limited though and they can still be deployed as an individual module.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4168">JBIDE-4168</ulink>: The ability to select a directory using a browser window has been added for the FS Message Filter and the FTP Message filter attributes of <property>directory</property>, <property>post-directory</property> and <property>error-directory</property>. This added feature ensures that a user does not need to manually type the entire path to a directory but instead they just select the path from a browser.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2024">JBIDE-2024</ulink>: The <guilabel>Process</guilabel> field f the <guilabel>Action</guilabel> tab in the ESB now includes a <guibutton>Browse</guibutton> button that allows a user to select which method of the <classname>Action</classname> class should be used for the process. The list in the dialog will show all public methods that has a <property>Message</property> parameter. Multiple methods can be selected if necessary.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2023">JBIDE-2023</ulink>: The <guilabel>Class</guilabel> field of the <guilabel>Action</guilabel> tab now includes a <guibutton>Browse</guibutton> button that displays the possible classes that extend from the <classname>AbstractActionLifecycle</classname> class.
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>
- <formalpara>
- <title>Hibernate</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5824">JBIDE-5824</ulink>: The <filename>reveng.xml</filename> editor provided an option to <guilabel>Exclude column from reverse engineering</guilabel>. Selecting this option did not change any functioning of the column and the specified option should not have been part of the interface. This update removes the unnecessary option as to not confuse users.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5643">JBIDE-5643</ulink>: Within the <guilabel>Hibernate</guilabel> tab of the <filename>persistence.xml</filename> editor, the button beside the <guilabel>Configuration file</guilabel> line was labeled <guibutton>Browse</guibutton>. This was misleading as upon clicking the button the user would be asked setup a configuration file. To provide an improved user experience, the button has now been altered to be called <guibutton>Setup</guibutton> and correctly guides the user through configuration file creation.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5641">JBIDE-5641</ulink>: When specifying the persistence property: <property><property name="hibernate.ejb.cfgfile" value="hibernate.cfg.xml"/></property>, an error could display saying that the <filename>hibernate.cfg.xml</filename> file could not be found. This occurred because the validator only considered full paths and not relative path naming. This has since been corrected through the modification of the <classname>HibernatePersistenceUnit</classname> class.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5499">JBIDE-5499</ulink>: Refactoring support has been added to <guilabel>Hibernate Code Generation Configurations</guilabel>.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5411">JBIDE-5411</ulink>: The <guilabel>New Hibernate XML Mapping file</guilabel> wizard used to show all available packages. This update ensures that only packages containing java classes are shown.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5408">JBIDE-5408</ulink>: Three issues are fixed:
- <itemizedlist>
- <listitem>
- <para>
- The new Hibernate XML Mapping file (<filename>hbm.xml</filename>) would rewrite all <filename>hbm.xml</filename> files without warning. To correct this the entire result is written into the systems' temporary directory and then the merge of results is conducted.
- </para>
- </listitem>
- <listitem>
- <para>
- After the merge of results is conducted, clicking the <guibutton>Finish without Preview</guibutton> button should change the page, however this did not work. The <guibutton>Finish without Preview</guibutton> now works as expected.
- </para>
- </listitem>
- <listitem>
- <para>
- After the merge, following the button clicks <guibutton>GoTo</guibutton>, <guibutton>Next</guibutton>, <guibutton>Back</guibutton> and then <guibutton>Finish</guibutton> would not work correctly. This method of steps now functions as users would expect.
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5222">JBIDE-5222</ulink>: A new feature as been added that allows for support of <guilabel>filter configurations in closed projects</guilabel> for console configuration. This option is available through <menuchoice><guimenuitem>Preferences</guimenuitem><guimenuitem>Run/Debug</guimenuitem><guimenuitem>Launching</guimenuitem><guimenuitem>Launch Configurations</guimenuitem></menuchoice>.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5124">
- JBIDE-5124</ulink>: In the Hibernate Diagram Viewer new
- functionality has been added that allows a user to choose between
- two different connection routers: Manhattan connection router for
- small diagrams and Fan connection router for larger diagrams
- (<guimenuitem>View -> Show connections as routed, Show Connections</guimenuitem> as streight lines).
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5031">JBIDE-5031</ulink>:
- To close a database connection a user would have to close the
- <application>JBoss Developer Studio</application> and then restart the application
- to continue work without the connection.
- The database connection can now be closed from within the
- <application>JBoss Developer Studio</application> by choosing the
- <guimenuitem>Close Configuration</guimenuitem> menu item
- in <guilabel>Hibernate Console context menu</guilabel> located in Hibernate Configurations View.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4956">JBIDE-4956</ulink>: A feature has been added to the <guilabel>Mapping Diagram</guilabel> viewer so that it now displays relationships between database tables.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4916">JBIDE-4916</ulink>: An editor for the <filename>hibernate.properties</filename> file has been added to the <application>JBoss Developer Studio</application>. The editor supports content assist authoring.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4899">JBIDE-4899</ulink>: The <guilabel>Hibernate Configurations</guilabel> view was not updated after a hibernate console enabled project with console configuration was deleted from the workspace. This meant that the console configuration was not removed along with the project. This bug is rectified with this update.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4780">JBIDE-4780</ulink>: The <guilabel>Options</guilabel> tab now allows you to browse and set the <property>NamingStrategy</property> and <property>EntityResolver</property>. The console configuration option has also been updated to react when one of the packages of a referenced class changes.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4733">JBIDE-4733</ulink>: A new feature has been added that allows a user to select wheather JPA-Generate DDL should be executed in the database. Before this update this feature was automatic, always executing JPA-Generate in the database.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4715">JBIDE-4715</ulink>: A toggle button has been added to the Hibernate Mapping diagram to allow the outline view to be ordered either alphabetically or by the structure outlined in the file. The toggle button interface ensures the experience remains consistent across all tools included within the <application>JBoss Developer Studio</application>.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4666">JBIDE-4662</ulink>: Annotations support has been added to Hibernate Tools. The addition of annotations support allows for interaction with the Eclipse Dali Java Persistence Tools Project plug-in.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4451">JBIDE-4451</ulink>: The option is now given to the user to enable the <guilabel>HQL Editor</guilabel> and <guilabel>Hibernate Criteria Editor</guilabel> to be dynamically updated when opening a new query instead of opening an instance of each editor for each query. This can be achieved by clicking the button of a tack to the right of the <guilabel>Max results:</guilabel> drop-won box in the editor.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4450">JBIDE-4450</ulink>: The <guilabel>Properties</guilabel> view has been updated with a new property called <property>Tab name</property>. The addition of this property allows for a user to individually name each query tab, allowing for improved tab management.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4227">JBIDE-4227</ulink>: The <guimenuitem>Open Mapping File</guimenuitem> option now supports all possible configuration files. In the past only files called <filename>orm.xml</filename> have been supported and this update now provides increased user functionality.
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>
- <formalpara>
- <title>JavaServer Faces (JSF)</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5670">JBIDE-5670</ulink>: The <filename>faceleted-taglib</filename> tag library was not supported in <filename>*taglib.xml</filename> with XML Schema Definition (XSD). Support for this library has been added to this release of the <application>JBoss Developers Studio</application>, allowing for support of <application>JavaServer Faces 2</application>.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5660">JBIDE-5660</ulink>: When setting the location of an <property><error-page></property> within <filename>web.xml</filename>, the location would not be recognized if it included a query string. For example the location <filename>views/error/error.xhtml</filename> would be valid, whereas the location <filename>/views/error/error.xhtml?statusCode=403</filename> would not be valid. This has been corrected by adding a test for a query string into the <filename>CheckResource.java</filename> file, allowing for locations to be specified that include a query string.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5471">JBIDE-5471</ulink>: <filename>web-facesconfig_2_0.xsd</filename> support has been added to the <guilabel>JavaServer Faces Configuration</guilabel> editor. This file provides the XML Schema for the JavaServer Faces Application Configuration File Version 2.0.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5381">JBIDE-5381</ulink>: Content Assist has been added for use with the elements defined using the default namespace.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5277">JBIDE-5277</ulink>: The options to Add and Remove JSF support have been added to the project menu.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5670">JBIDE-5237</ulink>: CSS Class Hyperlink for the <property>class</property> attribute of HTML tags would not search through CSS loaded using JSF tags (for example: <a:loadStyle />). This has now been fixed so that the searching of CSS classes returns the correct user expected results.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5099">JBIDE-5099</ulink>: OpenOn support has been added for custom JSF 2.0 components.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5097">JBIDE-5097</ulink>: Content Assist did not support multiple namespaces with the same Uniform Resource Identifier (URI).This issue has been fixed by modifying <classname>XmlContextImpl</classname> class within the <filename>XmlContextImpl.java</filename> file from: <code>nameSpaces.get(region).put(nameSpace.getURI(), nameSpace);</code> to <code>nameSpaces.get(region).put(nameSpace.getPrefix(), nameSpace);</code>.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5089">JBIDE-5089</ulink>: JSF Expression Language (EL) validation has been added for message bundles. This improves the performance of the <classname>PageContextFactory</classname>.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5015">JBIDE-5015</ulink>: Support for JSF 2.0 composition components has been added in this update.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4978">JBIDE-4978</ulink>: JSF has been upgraded with the addition of Seam Expression Language (EL) support. This now allows for JSF EL validation to use all available EL resolvers, providing increased validation over past releases.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4978">JBIDE-4970</ulink>: <application>KBbuilder</application> now loads composite components from the JSF resource folders and adds them to the KB module. This allows for the components to be available for code assistance.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4771">JBIDE-4771</ulink>: The <property>Find Usages</property> function has been improved to provide information about methods when inside an EL expression.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2806">JBIDE-2806</ulink>: The Eclipse OpenOn feature that allows a user to click any reference to a template as if it was a hyperlink did not work if the template path was set using an EL variable. This limitation has now been corrected so that OpenOn works with all paths, including those set using the EL variable. This is a great advantage to users as the Expression Language variable is a frequently used feature.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-816">JBIDE-816</ulink>: A bug existed within the JSF component of the <application>JBoss Developer Studio</application> where if a resource bundle is defined in a template page code completion for the bundle would not be available within the file that includes the template with the loadbundles. The workaround for this was to also define the resource bundle in this template client file, however that meant the same component was defined twice in the component tree.
- </para>
- <para>
- The bug has since been fixed by adding a schema for included page contexts. This schema enables the creation of contexts for all the pages included in the source and for the gathering of information on bundles declared in the included pages. The information collected is as follows:
- </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </formalpara>
+ <formalpara>
+ <title>Hibernate</title>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5824">JBIDE-5824</ulink>: The <filename>reveng.xml</filename> editor provided an option to <guilabel>Exclude column from reverse engineering</guilabel>. Selecting this option did not change any functioning of the column and the specified option should not have been part of the interface. This update removes the unnecessary option as to not confuse users.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5643">JBIDE-5643</ulink>: Within the <guilabel>Hibernate</guilabel> tab of the <filename>persistence.xml</filename> editor, the button beside the <guilabel>Configuration file</guilabel> line was labeled <guibutton>Browse</guibutton>. This was misleading as upon clicking the button the user would be asked setup a configuration file. To provide an improved user experience, the button has now been altered to be called <guibutton>Setup</guibutton> and correctly guides the user through configuration file creation.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5641">JBIDE-5641</ulink>: When specifying the persistence property: <property><property name="hibernate.ejb.cfgfile" value="hibernate.cfg.xml"/></property>, an error could display saying that the <filename>hibernate.cfg.xml</filename> file could not be found. This occurred because the validator only considered full paths and not relative path naming. This has since been corrected through the modification of the <classname>HibernatePersistenceUnit</classname> class.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5499">JBIDE-5499</ulink>: Refactoring support has been added to <guilabel>Hibernate Code Generation Configurations</guilabel>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5411">JBIDE-5411</ulink>: The <guilabel>New Hibernate XML Mapping file</guilabel> wizard used to show all available packages. This update ensures that only packages containing java classes are shown.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5408">JBIDE-5408</ulink>: Three issues are fixed:
<itemizedlist>
<listitem>
<para>
- Namespaces that are declared
+ The new Hibernate XML Mapping file (<filename>hbm.xml</filename>) would rewrite all <filename>hbm.xml</filename> files without warning. To correct this the entire result is written into the systems' temporary directory and then the merge of results is conducted.
</para>
</listitem>
<listitem>
<para>
- Tag libraries that are used
+ After the merge of results is conducted, clicking the <guibutton>Finish without Preview</guibutton> button should change the page, however this did not work. The <guibutton>Finish without Preview</guibutton> now works as expected.
</para>
</listitem>
<listitem>
<para>
- Resource bundles that are declared
+ After the merge, following the button clicks <guibutton>GoTo</guibutton>, <guibutton>Next</guibutton>, <guibutton>Back</guibutton> and then <guibutton>Finish</guibutton> would not work correctly. This method of steps now functions as users would expect.
</para>
</listitem>
</itemizedlist>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-512">JBIDE-512</ulink>: The drop-down box for context variable code completion has been upgraded for enhanced usability. The source of the variable is now outlined during code completion and the code is highlighted in a different colour for improved reading and overall understanding of each file.
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>
- <formalpara>
- <title>RichFaces</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5743">JBIDE-5743</ulink>: Content assistance in coding did not show anything for the tag <property><rich:menuItem ... icon="|" /></property>. The content assistance has been corrected by adding the <property>icon</property> attribute to the <filename>RichFaces.xml</filename> tag library.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5025">JBIDE-5025</ulink>: The RichFaces libraries have been updated to version 3.3.2.SR1.
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>
- <formalpara>
- <title>Seam</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5275">JBIDE-5275</ulink>: The <guimenuitem>Add Seam Support</guimenuitem> and <guimenuitem>Remove Seam Support</guimenuitem> items have been added to the Project menu.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5221">JBIDE-5221</ulink>: The <guilabel>JBoss Server View</guilabel> has now been replaced with the <guilabel>Server View</guilabel> in the Seam perspective. This has occurred out of the <guilabel>JBoss Server View</guilabel> being deprecated.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5192">JBIDE-5192</ulink>: The name of the editor when using the <guilabel>Diagram Viewer</guilabel> was a concatenation of the names of the diagram entities, leading to a long name in some cases. This issue has been corrected by modifying the <filename>OrmDiagram.java</filename> and <filename>DiagramViewer.java</filename> files to display a name from the following three options (based on the number of entities):
- <itemizedlist>
- <listitem>
- <para>
- Console name: Entity name
- </para>
- </listitem>
- <listitem>
- <para>
- Console name: First Entity name and Second Entity name
- </para>
- </listitem>
- <listitem>
- <para>
- Console name: First Entity name and <number of other entities> others
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5170">JBIDE-5170</ulink>: When changing, adding or removing a Seam runtime from within <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Preferences</guimenuitem><guimenuitem>JBoss Tools</guimenuitem><guimenuitem>Web</guimenuitem><guimenuitem>Seam</guimenuitem></menuchoice>, Seam projects would not be built or validated. The behavior has been changed to build and validate Seam projects upon changes in the <guimenuitem>Preferences</guimenuitem> section to ensure correct functioning of the project. The <filename>SeamRuntimeManager.java</filename> file was updated to correct this.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5012">JBIDE-5012</ulink>: The Booking and DVDStore Seam examples have been updated for Seam 2.2 within the <application>JBoss Enterprise Application Platform</application>.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4987">JBIDE-4987</ulink>: Seam and JPA Connection Profiles have been synchronized for this release. The <filename>jpa-connection</filename> profile is used in the launch configuration instead of <filename>hibernate.properties</filename> if the JPA facet is installed.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4985">JBIDE-4985</ulink>: Seam projects now create a Hibernate configuration that uses the selected connection profile directly (without copying its settings into the <filename>hibernate.properties</filename> file).
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4944">JBIDE-4944</ulink>: The Seam wizards <guilabel>Action</guilabel>, <guilabel>Entity</guilabel> and <guilabel>Conversation</guilabel> had the ability to overwrite resources when they generated code. The wizards would warn the user that some resources already existed and yet overwrite them. This has been corrected through the modification of the <filename>SeamBaseOperation.java</filename> file.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4856">JBIDE-4856</ulink>: Seam component methods and properties used in the Expression Language (EL) have been refactored. This has caused the internal structure of the components to be modified so that the <classname>Query Participant</classname> works with the JDT Java Search to find usages and append them to search results. The <classname>Rename Participant</classname> has also been modified to work with the JDT Java Refactor to rename usages and apply changes to the Java Refactor, allowing for a user to rename a <emphasis>setter</emphasis> or <emphasis>getter</emphasis> method and have the <classname>Rename Participant</classname> warn the user of the consequences of renaming a paired method.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4136">JBIDE-4136</ulink>: Classloading issues were being faced by users of Seam Tools because the <application>JBoss Developer Studio</application> used the <filename>MANIFEST.MF</filename> file for creating an artifact classpath instead of using the EAR <filename>lib/</filename> directory that is recommended by Seam. Until now the <application>JBoss Developer Studio</application> has not been able to use the EAR <filename>lib/</filename> directory because this functionality has not been supported by Eclipse. With the introduction of Eclipse 3.5 in this release the use of the EAR <filename>lib/</filename> directory is now supported and the process of creating an artifact classpath has been updated.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2807">JBIDE-2807</ulink>: An option is now provided when creating a <guilabel>New Seam Project</guilabel>, to not create a test project. This has become an option since the Seam model does not require the test project to exist and so allows the user to decide if it is of importance. Selecting to create or not create a test project is achieved through the ticking of a <guilabel>Create Test Project</guilabel> check box within the <guilabel>New Seam Project</guilabel> wizard.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-1452">JBIDE-1452</ulink>: Support has been added for the Seam PDF Facelet tag library. This Facelet library allows for PDF creation from within Seam.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-1451">JBIDE-1451</ulink>: Support has been added for the Seam Mail Facelet tag library. This Facelet library allows for email forms to be created from within Seam. All components of the Facelet have been included except <property>mail:message</property> and <property>mail:body</property> as these components are rendered as divisions (using the <div> tag).
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-1176">JBIDE-1176</ulink>: The Seam Web Project now supports the JPA facet. Addition of the Java Persistence API allows for the management of relational data within applications.
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>
- <formalpara>
- <title>Smooks</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5259">JBIDE-5259</ulink>: The Smooks configuration has received a test facility through the modification of the <guibutton>Run</guibutton> button to output a java result to the <guilabel>Console</guilabel>. This allows a user to test Smooks projects in a simplified way.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5088">JBIDE-5088</ulink>: When opening an existing Smooks configuration file it wouldn't contain any process information. To correct this an input task is automatically created and the Smooks configuration file is analyzed to add any missing task types if necessary. During the course of this update a <exceptionname>NullPointerException</exceptionname> was also fixed.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5086">JBIDE-5086</ulink>: A default layout is added in the Java-Mapping viewer. This allows for the layout of the information in the Smooks editor to be rearranged into a predefined default layout.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4878">JBIDE-4878</ulink>: The Smooks <guilabel>Reader</guilabel> page has been replaced with a new <guilabel>Input</guilabel> page. While the <guilabel>Input</guilabel> page inherits many functions from the <guilabel>Reader</guilabel> page there are some differences as follows:
- </para>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5222">JBIDE-5222</ulink>: A new feature as been added that allows for support of <guilabel>filter configurations in closed projects</guilabel> for console configuration. This option is available through <menuchoice><guimenuitem>Preferences</guimenuitem><guimenuitem>Run/Debug</guimenuitem><guimenuitem>Launching</guimenuitem><guimenuitem>Launch Configurations</guimenuitem></menuchoice>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5124">
+ JBIDE-5124</ulink>: In the Hibernate Diagram Viewer new
+ functionality has been added that allows a user to choose between
+ two different connection routers: Manhattan connection router for
+ small diagrams and Fan connection router for larger diagrams
+ (<guimenuitem>View -> Show connections as routed, Show Connections</guimenuitem> as streight lines).
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5031">JBIDE-5031</ulink>:
+ To close a database connection a user would have to close the
+ <application>JBoss Developer Studio</application> and then restart the application
+ to continue work without the connection.
+ The database connection can now be closed from within the
+ <application>JBoss Developer Studio</application> by choosing the
+ <guimenuitem>Close Configuration</guimenuitem> menu item
+ in <guilabel>Hibernate Console context menu</guilabel> located in Hibernate Configurations View.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4956">JBIDE-4956</ulink>: A feature has been added to the <guilabel>Mapping Diagram</guilabel> viewer so that it now displays relationships between database tables.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4916">JBIDE-4916</ulink>: An editor for the <filename>hibernate.properties</filename> file has been added to the <application>JBoss Developer Studio</application>. The editor supports content assist authoring.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4899">JBIDE-4899</ulink>: The <guilabel>Hibernate Configurations</guilabel> view was not updated after a hibernate console enabled project with console configuration was deleted from the workspace. This meant that the console configuration was not removed along with the project. This bug is rectified with this update.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4780">JBIDE-4780</ulink>: The <guilabel>Options</guilabel> tab now allows you to browse and set the <property>NamingStrategy</property> and <property>EntityResolver</property>. The console configuration option has also been updated to react when one of the packages of a referenced class changes.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4733">JBIDE-4733</ulink>: A new feature has been added that allows a user to select wheather JPA-Generate DDL should be executed in the database. Before this update this feature was automatic, always executing JPA-Generate in the database.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4715">JBIDE-4715</ulink>: A toggle button has been added to the Hibernate Mapping diagram to allow the outline view to be ordered either alphabetically or by the structure outlined in the file. The toggle button interface ensures the experience remains consistent across all tools included within the <application>JBoss Developer Studio</application>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4666">JBIDE-4662</ulink>: Annotations support has been added to Hibernate Tools. The addition of annotations support allows for interaction with the Eclipse Dali Java Persistence Tools Project plug-in.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4451">JBIDE-4451</ulink>: The option is now given to the user to enable the <guilabel>HQL Editor</guilabel> and <guilabel>Hibernate Criteria Editor</guilabel> to be dynamically updated when opening a new query instead of opening an instance of each editor for each query. This can be achieved by clicking the button of a tack to the right of the <guilabel>Max results:</guilabel> drop-won box in the editor.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4450">JBIDE-4450</ulink>: The <guilabel>Properties</guilabel> view has been updated with a new property called <property>Tab name</property>. The addition of this property allows for a user to individually name each query tab, allowing for improved tab management.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4227">JBIDE-4227</ulink>: The <guimenuitem>Open Mapping File</guimenuitem> option now supports all possible configuration files. In the past only files called <filename>orm.xml</filename> have been supported and this update now provides increased user functionality.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </formalpara>
+ <formalpara>
+ <title>JavaServer Faces (JSF)</title>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5670">JBIDE-5670</ulink>: The <filename>faceleted-taglib</filename> tag library was not supported in <filename>*taglib.xml</filename> with XML Schema Definition (XSD). Support for this library has been added to this release of the <application>JBoss Developers Studio</application>, allowing for support of <application>JavaServer Faces 2</application>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5660">JBIDE-5660</ulink>: When setting the location of an <property><error-page></property> within <filename>web.xml</filename>, the location would not be recognized if it included a query string. For example the location <filename>views/error/error.xhtml</filename> would be valid, whereas the location <filename>/views/error/error.xhtml?statusCode=403</filename> would not be valid. This has been corrected by adding a test for a query string into the <filename>CheckResource.java</filename> file, allowing for locations to be specified that include a query string.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5471">JBIDE-5471</ulink>: <filename>web-facesconfig_2_0.xsd</filename> support has been added to the <guilabel>JavaServer Faces Configuration</guilabel> editor. This file provides the XML Schema for the JavaServer Faces Application Configuration File Version 2.0.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5381">JBIDE-5381</ulink>: Content Assist has been added for use with the elements defined using the default namespace.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5277">JBIDE-5277</ulink>: The options to Add and Remove JSF support have been added to the project menu.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5670">JBIDE-5237</ulink>: CSS Class Hyperlink for the <property>class</property> attribute of HTML tags would not search through CSS loaded using JSF tags (for example: <a:loadStyle />). This has now been fixed so that the searching of CSS classes returns the correct user expected results.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5099">JBIDE-5099</ulink>: OpenOn support has been added for custom JSF 2.0 components.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5097">JBIDE-5097</ulink>: Content Assist did not support multiple namespaces with the same Uniform Resource Identifier (URI).This issue has been fixed by modifying <classname>XmlContextImpl</classname> class within the <filename>XmlContextImpl.java</filename> file from: <code>nameSpaces.get(region).put(nameSpace.getURI(), nameSpace);</code> to <code>nameSpaces.get(region).put(nameSpace.getPrefix(), nameSpace);</code>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5089">JBIDE-5089</ulink>: JSF Expression Language (EL) validation has been added for message bundles. This improves the performance of the <classname>PageContextFactory</classname>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5015">JBIDE-5015</ulink>: Support for JSF 2.0 composition components has been added in this update.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4978">JBIDE-4978</ulink>: JSF has been upgraded with the addition of Seam Expression Language (EL) support. This now allows for JSF EL validation to use all available EL resolvers, providing increased validation over past releases.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4978">JBIDE-4970</ulink>: <application>KBbuilder</application> now loads composite components from the JSF resource folders and adds them to the KB module. This allows for the components to be available for code assistance.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4771">JBIDE-4771</ulink>: The <property>Find Usages</property> function has been improved to provide information about methods when inside an EL expression.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2806">JBIDE-2806</ulink>: The Eclipse OpenOn feature that allows a user to click any reference to a template as if it was a hyperlink did not work if the template path was set using an EL variable. This limitation has now been corrected so that OpenOn works with all paths, including those set using the EL variable. This is a great advantage to users as the Expression Language variable is a frequently used feature.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-816">JBIDE-816</ulink>: A bug existed within the JSF component of the <application>JBoss Developer Studio</application> where if a resource bundle is defined in a template page code completion for the bundle would not be available within the file that includes the template with the loadbundles. The workaround for this was to also define the resource bundle in this template client file, however that meant the same component was defined twice in the component tree.
+ </para>
+ <para>
+ The bug has since been fixed by adding a schema for included page contexts. This schema enables the creation of contexts for all the pages included in the source and for the gathering of information on bundles declared in the included pages. The information collected is as follows:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Namespaces that are declared
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Tag libraries that are used
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Resource bundles that are declared
+ </para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-512">JBIDE-512</ulink>: The drop-down box for context variable code completion has been upgraded for enhanced usability. The source of the variable is now outlined during code completion and the code is highlighted in a different colour for improved reading and overall understanding of each file.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </formalpara>
+ <formalpara>
+ <title>RichFaces</title>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5743">JBIDE-5743</ulink>: Content assistance in coding did not show anything for the tag <property><rich:menuItem ... icon="|" /></property>. The content assistance has been corrected by adding the <property>icon</property> attribute to the <filename>RichFaces.xml</filename> tag library.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5025">JBIDE-5025</ulink>: The RichFaces libraries have been updated to version 3.3.2.SR1.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </formalpara>
+ <formalpara>
+ <title>Seam</title>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5275">JBIDE-5275</ulink>: The <guimenuitem>Add Seam Support</guimenuitem> and <guimenuitem>Remove Seam Support</guimenuitem> items have been added to the Project menu.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5221">JBIDE-5221</ulink>: The <guilabel>JBoss Server View</guilabel> has now been replaced with the <guilabel>Server View</guilabel> in the Seam perspective. This has occurred out of the <guilabel>JBoss Server View</guilabel> being deprecated.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5192">JBIDE-5192</ulink>: The name of the editor when using the <guilabel>Diagram Viewer</guilabel> was a concatenation of the names of the diagram entities, leading to a long name in some cases. This issue has been corrected by modifying the <filename>OrmDiagram.java</filename> and <filename>DiagramViewer.java</filename> files to display a name from the following three options (based on the number of entities):
<itemizedlist>
<listitem>
<para>
- The <guilabel>Reader</guilabel> page allowed for multiple Readers to be created. <guilabel>Input</guilabel> page only allows for one Reader.
+ Console name: Entity name
</para>
</listitem>
<listitem>
<para>
- The <guilabel>Reader</guilabel> page supported the addition of multiple input data , where each was usable. The <guilabel>Input</guilabel> page only allows for one piece of input data to be used, while still allowing for multiple pieces of input data.
+ Console name: First Entity name and Second Entity name
</para>
</listitem>
<listitem>
<para>
- The <guilabel>Reader</guilabel> page could view the transformation results of the Reader. The new <guilabel>Input</guilabel> page utilizes an input model view to check the transform result.
+ Console name: First Entity name and <number of other entities> others
</para>
</listitem>
</itemizedlist>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>
- <formalpara>
- <title>Struts</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5278">JBIDE-5278</ulink>: The options to Add and Remove Struts support have been added to the project menu.
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>
- <formalpara>
- <title>Visual Page Editor</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5184">JBIDE-5184</ulink>: A memory leak existed in the Visual Page Editor. To fix this leak, the following plug-ins have been modified:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- <filename>org.jboss.tools.vpe</filename>
- </para>
- </listitem>
- <listitem>
- <para>
- <filename>org.jboss.tools.vpe.xulrunner</filename>
- </para>
- </listitem>
- <listitem>
- <para>
- <filename>org.jboss.tools.jst.jsp</filename>
- </para>
- </listitem>
- </itemizedlist>
- <para>
- The issues that caused the memory leak were:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- <emphasis>JSPMultiPageEditorSite</emphasis>: The constructor created the <classname>serviceLocator</classname> that wasn't disposed of after use.
- </para>
- </listitem>
- <listitem>
- <para>
- The <methodname>XulRunnerBrowser.dispose()</methodname> method would remove the <classname>progressListener</classname>, however this would only be done after all SWT objects and controls were already disposed. This meant the method had no effect. The dispose method is now called before the SWT objects and controls are disposed.
- </para>
- </listitem>
- <listitem>
- <para>
- The <methodname>MozillaEditor.getEditor()</methodname> madethe Mozilla window editable using <methodname>nsIEditingSession.setupEditorOnWindow()</methodname>. To counteract this the objects created are now removed by using <methodname>nsIEditingSession.tearDownEditorOnWindow()</methodname>.
- </para>
- </listitem>
- <listitem>
- <para>
- The <methodname>createPartControl()</methodname> method in the <classname>MozillaEditor</classname> and <classname>MozillaPreview</classname> classes create <classname>XullRunnerEditor</classname> as an inner class. The issue was that the <classname>XullRunnerEditor</classname> class retained a reference to <classname>MozillaEditor(MozillaPreview)</classname> that caused it not to be released and instead retain references to WST and EMF classes. This has now been corrected so that <classname>MozillaEditor(MozillaPreview)</classname> is now released after use and references are not retained.
- </para>
- </listitem>
- </itemizedlist>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5100">JBIDE-5100</ulink>: Support for JSF 2.0 attributes have been added to the Visual Page Editor.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5091">JBIDE-5091</ulink>: Support for JSF 2.0 Composition components that come packaged into the Web Application Root has been added to the Visual Page Editor.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5065">JBIDE-5065</ulink>: The icons in the Visual Page Editor have been redesigned for improved aesthetic appearance.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4945">JBIDE-4945</ulink>: A new feature has been added to the Visual Page Editor that allows a user to select both the element before and the element after a central element. This has been achieved through the modification of the <filename>SelectionBar.java</filename> file.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4934">JBIDE-4934</ulink>: Facelets tag library support has been added to the <guilabel>Palette</guilabel> for the Visual Page Editor.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4914">JBIDE-4914</ulink>: The Visual Page Editor has been redesigned so that all drop-down menu items are placed in the toolbar as buttons.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4323">JBIDE-4323</ulink>: Zoom actions have been added to the visual context menu so that a user can now resize the content of the Visual Page Editor to make it easier to read and manage.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2820">JBIDE-2820</ulink>: Support for new JSF 2.0 elements has been added to the Visual Page Editor. The tags that are newly supported are:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- h:head
- </para>
- </listitem>
- <listitem>
- <para>
- h:body
- </para>
- </listitem>
- <listitem>
- <para>
- h:outputscript
- </para>
- </listitem>
- <listitem>
- <para>
- h:outputstyle
- </para>
- </listitem>
- <listitem>
- <para>
- h:button
- </para>
- </listitem>
- <listitem>
- <para>
- h:link
- </para>
- </listitem>
- <listitem>
- <para>
- f:ajax
- </para>
- </listitem>
- <listitem>
- <para>
- f:event
- </para>
- </listitem>
- <listitem>
- <para>
- f:validateBean
- </para>
- </listitem>
- <listitem>
- <para>
- f:validateRequired
- </para>
- </listitem>
- <listitem>
- <para>
- f:viewParam
- </para>
- </listitem>
- <listitem>
- <para>
- f:metadata
- </para>
- </listitem>
- </itemizedlist>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2571">JBIDE-2571</ulink>: Selection of the <property><h:selectOneMenu></property> did not function correctly. Instead of being selected with one mouse click, two clicks were necessary. A bug was also present that made the nested components <property><f:selectItem></property> and <property><f:selectItems></property> unable to be selected from within the Visual Page Editor. Correction of the two clicks necessary to select the <property><h:selectOneMenu></property> component has been completed by removing the check within <filename>VpeController.java</filename> that ensures the node is of type text. The issue that did not allow for the selection of the <property><f:selectItem></property> and <property><f:selectItems></property> components was found to be a bug in XULRunner. To correct this the XULRunner component has been updated to version 1.9, which corrects this error and provides!
numerous other small bug fixes (<ulink url="http://jira.jboss.com/jira/browse/JBIDE-2248">JBIDE-2248</ulink>.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2248">JBIDE-2248</ulink>: The XULRunner component has been upgraded to version 1.9. This new version of XULRunner adds support for the newest HTML and CSS features to the Visual Page Editor. Included in this is support for CSS3.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-1592">JBIDE-1592</ulink>: A new feature has been added that allows for Facelets tag libraries from <filename>file.jar/META-INF/*.tablib.xml</filename> or those that are registered within <filename>web.xml</filename> by the <filename>facelets.LIBRARIES</filename> context parameter to now be used within content assist for source editing in the Visual Page Editor.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-527">JBIDE-527</ulink>: A bug existed within the Visual Page Editor that inhibited the <guibutton>Previous</guibutton> and <guibutton>Next</guibutton> buttons for detected occurrences of searched annotations to not function correctly. The action of these buttons has now been corrected so that a user can navigate their way through all found occurrences of a searched annotation. This functionality works in the Visual Page Editor as it would work in a text editor.
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>
- <formalpara>
- <title>XHTML Editor</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4946">JBIDE-4946</ulink>: Tool tips for tags and attributes in the XHTML Editor have been added.
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>
- <formalpara>
- <title>XML Structured Editor</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5521">JBIDE-5521</ulink>: The Web Servlet Mapping dialog box now contains a drop-down list for the <guilabel>Servlet-Name</guilabel> field so that servlets that have been entered into the <filename>web.xml</filename> file can be selected easily.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5426">JBIDE-5426</ulink>: The Servlet Mapping Editor <guilabel>Servlet-Name</guilabel> field has been improved with a drop-down menu to fill it in.
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>
- <formalpara>
- <title>General Issues</title>
- <para>
- <itemizedlist>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5743">JBIDE-5743</ulink>: The Web Servlet Mapping dialog box now contains a drop-down list for the <guilabel>Servlet-Name</guilabel> field so that servlets that have been entered into the <filename>web.xml</filename> file can be selected easily.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5734">JBIDE-5734</ulink>: The shortcut keys for full publishing a project to the server and building a full archive have been combined under then shortcut key menu accessed with <keycombo><keycap>Alt</keycap><keycap>Shift</keycap><keycap>Y</keycap></keycombo>. From this menu press <keycap>F</keycap> to full publish the project or <keycap>B</keycap> to build the full archive.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5690">JBIDE-5690</ulink>: The <guibutton>Full-Publish</guibutton> hotkey would only accept the first module and re-deploy it to the first server the module is deployed on. For the user this meant that if the module was already deployed on several servers, using <guibutton>Full-Publish</guibutton> would only re-deploy it to the first server returned in the list. To solve this issue a user interface has been added for the <guibutton>Full-Publish</guibutton> hotkey that allows for the selection of the server to re-deploy to. During the implementation of this fix, the package has been renamed to XPL.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2541">JBIDE-5383</ulink>: Expression Language Code Assistance has been added for the <property>@Name</property> beans. This allows for users to begin typing code and for suggestions of automatic completion to be suggested, improving user efficiency.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5743">JBIDE-5267</ulink>: The <application>JBoss Enterprise Application Platform</application> server would start correctly, however the <application>JBoss Developer Studio</application> would not acknowledge that it had started. To counteract this the <filename>JMXPoller.java</filename> timeout behavior has been modified to always return that the server succeeded in starting instead of ignoring the timeout. This fix ensures that a user is not informed that the server did not start correctly when it did.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5153">JBIDE-5153</ulink>: A <guilabel>JavaMain</guilabel> tab has been added to the tab group to allow for customization of the main class of the server. The changes to the main class are verified to persist by server startup checks.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5122">JBIDE-5122</ulink>: <guilabel>JBoss Servers View</guilabel> has been removed with this release. All the functionality provided by this view can be found in the <guilabel>Servers View</guilabel>.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5048">JBIDE-5048</ulink>: SSH deployment has been added to the <application>JBoss Developer Studio</application> with this update. Specifically the following improvements have been made:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- A server type has been created that accepts SSH deployment for Eclipse Web Tools Platform (WTP) archives
- </para>
- </listitem>
- <listitem>
- <para>
- WTP, single-file and project archives can now be published
- </para>
- </listitem>
- <listitem>
- <para>
- Java Secure Channel (JSch) errors are now verified
- </para>
- </listitem>
- <listitem>
- <para>
- All situations return IStatus objects and their associated user interface (an IStatus object represents the outcome of an operation)
- </para>
- </listitem>
- </itemizedlist>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5041">JBIDE-5041</ulink>: The <keycap>menu</keycap> key on the keyboard would not work in the <guilabel>Web Projects</guilabel> view, <guilabel>Seam Components</guilabel> view or JBoss Tools XML Editor. The functioning of this key has now been corrected so it behaves as a user would expect.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5005">JBIDE-5005</ulink>: A new export wizard has been added to the <application>JBoss Developer Studio</application>. The new wizard allows the export operation to utilize IModule objects. This added feature reduces redundancy and inconsistency for the export operation.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4976">JBIDE-4976</ulink>: The <guilabel>JBoss Tools Palette</guilabel> has been intergrated into the standard Eclipse GEF <guilabel>Palette</guilabel> view. The standard <guilabel>Palette</guilabel> view, accessible at <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Show View</guimenuitem><guimenuitem>Others</guimenuitem><guimenuitem>General</guimenuitem><guimenuitem>Palette</guimenuitem></menuchoice> is now shown in the right top part of the <guilabel>Web Development</guilabel> and <guilabel>Seam</guilabel> perspectives. The <guilabel>JBoss Tools Palette</guilabel> remains at <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Show View</guimenuitem><guimenuitem>Others</guimenuitem><guimenuitem>JBoss Tools Web</guimenuitem><guimenuitem>JBoss Tools Palette</guimenuitem></menuchoice>.
- </para>
- <para>
- The differences in behavior between the palettes are:
- </para>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5170">JBIDE-5170</ulink>: When changing, adding or removing a Seam runtime from within <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Preferences</guimenuitem><guimenuitem>JBoss Tools</guimenuitem><guimenuitem>Web</guimenuitem><guimenuitem>Seam</guimenuitem></menuchoice>, Seam projects would not be built or validated. The behavior has been changed to build and validate Seam projects upon changes in the <guimenuitem>Preferences</guimenuitem> section to ensure correct functioning of the project. The <filename>SeamRuntimeManager.java</filename> file was updated to correct this.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5012">JBIDE-5012</ulink>: The Booking and DVDStore Seam examples have been updated for Seam 2.2 within the <application>JBoss Enterprise Application Platform</application>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4987">JBIDE-4987</ulink>: Seam and JPA Connection Profiles have been synchronized for this release. The <filename>jpa-connection</filename> profile is used in the launch configuration instead of <filename>hibernate.properties</filename> if the JPA facet is installed.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4985">JBIDE-4985</ulink>: Seam projects now create a Hibernate configuration that uses the selected connection profile directly (without copying its settings into the <filename>hibernate.properties</filename> file).
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4944">JBIDE-4944</ulink>: The Seam wizards <guilabel>Action</guilabel>, <guilabel>Entity</guilabel> and <guilabel>Conversation</guilabel> had the ability to overwrite resources when they generated code. The wizards would warn the user that some resources already existed and yet overwrite them. This has been corrected through the modification of the <filename>SeamBaseOperation.java</filename> file.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4856">JBIDE-4856</ulink>: Seam component methods and properties used in the Expression Language (EL) have been refactored. This has caused the internal structure of the components to be modified so that the <classname>Query Participant</classname> works with the JDT Java Search to find usages and append them to search results. The <classname>Rename Participant</classname> has also been modified to work with the JDT Java Refactor to rename usages and apply changes to the Java Refactor, allowing for a user to rename a <emphasis>setter</emphasis> or <emphasis>getter</emphasis> method and have the <classname>Rename Participant</classname> warn the user of the consequences of renaming a paired method.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4136">JBIDE-4136</ulink>: Classloading issues were being faced by users of Seam Tools because the <application>JBoss Developer Studio</application> used the <filename>MANIFEST.MF</filename> file for creating an artifact classpath instead of using the EAR <filename>lib/</filename> directory that is recommended by Seam. Until now the <application>JBoss Developer Studio</application> has not been able to use the EAR <filename>lib/</filename> directory because this functionality has not been supported by Eclipse. With the introduction of Eclipse 3.5 in this release the use of the EAR <filename>lib/</filename> directory is now supported and the process of creating an artifact classpath has been updated.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2807">JBIDE-2807</ulink>: An option is now provided when creating a <guilabel>New Seam Project</guilabel>, to not create a test project. This has become an option since the Seam model does not require the test project to exist and so allows the user to decide if it is of importance. Selecting to create or not create a test project is achieved through the ticking of a <guilabel>Create Test Project</guilabel> check box within the <guilabel>New Seam Project</guilabel> wizard.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-1452">JBIDE-1452</ulink>: Support has been added for the Seam PDF Facelet tag library. This Facelet library allows for PDF creation from within Seam.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-1451">JBIDE-1451</ulink>: Support has been added for the Seam Mail Facelet tag library. This Facelet library allows for email forms to be created from within Seam. All components of the Facelet have been included except <property>mail:message</property> and <property>mail:body</property> as these components are rendered as divisions (using the <div> tag).
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-1176">JBIDE-1176</ulink>: The Seam Web Project now supports the JPA facet. Addition of the Java Persistence API allows for the management of relational data within applications.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </formalpara>
+ <formalpara>
+ <title>Smooks</title>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5259">JBIDE-5259</ulink>: The Smooks configuration has received a test facility through the modification of the <guibutton>Run</guibutton> button to output a java result to the <guilabel>Console</guilabel>. This allows a user to test Smooks projects in a simplified way.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5088">JBIDE-5088</ulink>: When opening an existing Smooks configuration file it wouldn't contain any process information. To correct this an input task is automatically created and the Smooks configuration file is analyzed to add any missing task types if necessary. During the course of this update a <exceptionname>NullPointerException</exceptionname> was also fixed.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5086">JBIDE-5086</ulink>: A default layout is added in the Java-Mapping viewer. This allows for the layout of the information in the Smooks editor to be rearranged into a predefined default layout.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4878">JBIDE-4878</ulink>: The Smooks <guilabel>Reader</guilabel> page has been replaced with a new <guilabel>Input</guilabel> page. While the <guilabel>Input</guilabel> page inherits many functions from the <guilabel>Reader</guilabel> page there are some differences as follows:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ The <guilabel>Reader</guilabel> page allowed for multiple Readers to be created. <guilabel>Input</guilabel> page only allows for one Reader.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The <guilabel>Reader</guilabel> page supported the addition of multiple input data , where each was usable. The <guilabel>Input</guilabel> page only allows for one piece of input data to be used, while still allowing for multiple pieces of input data.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The <guilabel>Reader</guilabel> page could view the transformation results of the Reader. The new <guilabel>Input</guilabel> page utilizes an input model view to check the transform result.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </formalpara>
+ <formalpara>
+ <title>Struts</title>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5278">JBIDE-5278</ulink>: The options to Add and Remove Struts support have been added to the project menu.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </formalpara>
+ <formalpara>
+ <title>Visual Page Editor</title>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5184">JBIDE-5184</ulink>: A memory leak existed in the Visual Page Editor. To fix this leak, the following plug-ins have been modified:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <filename>org.jboss.tools.vpe</filename>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <filename>org.jboss.tools.vpe.xulrunner</filename>
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <filename>org.jboss.tools.jst.jsp</filename>
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ The issues that caused the memory leak were:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <emphasis>JSPMultiPageEditorSite</emphasis>: The constructor created the <classname>serviceLocator</classname> that wasn't disposed of after use.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The <methodname>XulRunnerBrowser.dispose()</methodname> method would remove the <classname>progressListener</classname>, however this would only be done after all SWT objects and controls were already disposed. This meant the method had no effect. The dispose method is now called before the SWT objects and controls are disposed.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The <methodname>MozillaEditor.getEditor()</methodname> madethe Mozilla window editable using <methodname>nsIEditingSession.setupEditorOnWindow()</methodname>. To counteract this the objects created are now removed by using <methodname>nsIEditingSession.tearDownEditorOnWindow()</methodname>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The <methodname>createPartControl()</methodname> method in the <classname>MozillaEditor</classname> and <classname>MozillaPreview</classname> classes create <classname>XullRunnerEditor</classname> as an inner class. The issue was that the <classname>XullRunnerEditor</classname> class retained a reference to <classname>MozillaEditor(MozillaPreview)</classname> that caused it not to be released and instead retain references to WST and EMF classes. This has now been corrected so that <classname>MozillaEditor(MozillaPreview)</classname> is now released after use and references are not retained.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5100">JBIDE-5100</ulink>: Support for JSF 2.0 attributes have been added to the Visual Page Editor.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5091">JBIDE-5091</ulink>: Support for JSF 2.0 Composition components that come packaged into the Web Application Root has been added to the Visual Page Editor.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5065">JBIDE-5065</ulink>: The icons in the Visual Page Editor have been redesigned for improved aesthetic appearance.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4945">JBIDE-4945</ulink>: A new feature has been added to the Visual Page Editor that allows a user to select both the element before and the element after a central element. This has been achieved through the modification of the <filename>SelectionBar.java</filename> file.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4934">JBIDE-4934</ulink>: Facelets tag library support has been added to the <guilabel>Palette</guilabel> for the Visual Page Editor.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4914">JBIDE-4914</ulink>: The Visual Page Editor has been redesigned so that all drop-down menu items are placed in the toolbar as buttons.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4323">JBIDE-4323</ulink>: Zoom actions have been added to the visual context menu so that a user can now resize the content of the Visual Page Editor to make it easier to read and manage.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2820">JBIDE-2820</ulink>: Support for new JSF 2.0 elements has been added to the Visual Page Editor. The tags that are newly supported are:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ h:head
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ h:body
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ h:outputscript
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ h:outputstyle
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ h:button
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ h:link
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ f:ajax
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ f:event
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ f:validateBean
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ f:validateRequired
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ f:viewParam
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ f:metadata
+ </para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2571">JBIDE-2571</ulink>: Selection of the <property><h:selectOneMenu></property> did not function correctly. Instead of being selected with one mouse click, two clicks were necessary. A bug was also present that made the nested components <property><f:selectItem></property> and <property><f:selectItems></property> unable to be selected from within the Visual Page Editor. Correction of the two clicks necessary to select the <property><h:selectOneMenu></property> component has been completed by removing the check within <filename>VpeController.java</filename> that ensures the node is of type text. The issue that did not allow for the selection of the <property><f:selectItem></property> and <property><f:selectItems></property> components was found to be a bug in XULRunner. To correct this the XULRunner component has been updated to version 1.9, which corrects this error and provides !
numerous other small bug fixes (<ulink url="http://jira.jboss.com/jira/browse/JBIDE-2248">JBIDE-2248</ulink>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2248">JBIDE-2248</ulink>: The XULRunner component has been upgraded to version 1.9. This new version of XULRunner adds support for the newest HTML and CSS features to the Visual Page Editor. Included in this is support for CSS3.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-1592">JBIDE-1592</ulink>: A new feature has been added that allows for Facelets tag libraries from <filename>file.jar/META-INF/*.tablib.xml</filename> or those that are registered within <filename>web.xml</filename> by the <filename>facelets.LIBRARIES</filename> context parameter to now be used within content assist for source editing in the Visual Page Editor.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-527">JBIDE-527</ulink>: A bug existed within the Visual Page Editor that inhibited the <guibutton>Previous</guibutton> and <guibutton>Next</guibutton> buttons for detected occurrences of searched annotations to not function correctly. The action of these buttons has now been corrected so that a user can navigate their way through all found occurrences of a searched annotation. This functionality works in the Visual Page Editor as it would work in a text editor.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </formalpara>
+ <formalpara>
+ <title>XHTML Editor</title>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4946">JBIDE-4946</ulink>: Tool tips for tags and attributes in the XHTML Editor have been added.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </formalpara>
+ <formalpara>
+ <title>XML Structured Editor</title>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5521">JBIDE-5521</ulink>: The Web Servlet Mapping dialog box now contains a drop-down list for the <guilabel>Servlet-Name</guilabel> field so that servlets that have been entered into the <filename>web.xml</filename> file can be selected easily.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5426">JBIDE-5426</ulink>: The Servlet Mapping Editor <guilabel>Servlet-Name</guilabel> field has been improved with a drop-down menu to fill it in.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </formalpara>
+ <formalpara>
+ <title>General Issues</title>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5743">JBIDE-5743</ulink>: The Web Servlet Mapping dialog box now contains a drop-down list for the <guilabel>Servlet-Name</guilabel> field so that servlets that have been entered into the <filename>web.xml</filename> file can be selected easily.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5734">JBIDE-5734</ulink>: The shortcut keys for full publishing a project to the server and building a full archive have been combined under then shortcut key menu accessed with <keycombo><keycap>Alt</keycap><keycap>Shift</keycap><keycap>Y</keycap></keycombo>. From this menu press <keycap>F</keycap> to full publish the project or <keycap>B</keycap> to build the full archive.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5690">JBIDE-5690</ulink>: The <guibutton>Full-Publish</guibutton> hotkey would only accept the first module and re-deploy it to the first server the module is deployed on. For the user this meant that if the module was already deployed on several servers, using <guibutton>Full-Publish</guibutton> would only re-deploy it to the first server returned in the list. To solve this issue a user interface has been added for the <guibutton>Full-Publish</guibutton> hotkey that allows for the selection of the server to re-deploy to. During the implementation of this fix, the package has been renamed to XPL.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2541">JBIDE-5383</ulink>: Expression Language Code Assistance has been added for the <property>@Name</property> beans. This allows for users to begin typing code and for suggestions of automatic completion to be suggested, improving user efficiency.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5743">JBIDE-5267</ulink>: The <application>JBoss Enterprise Application Platform</application> server would start correctly, however the <application>JBoss Developer Studio</application> would not acknowledge that it had started. To counteract this the <filename>JMXPoller.java</filename> timeout behavior has been modified to always return that the server succeeded in starting instead of ignoring the timeout. This fix ensures that a user is not informed that the server did not start correctly when it did.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5153">JBIDE-5153</ulink>: A <guilabel>JavaMain</guilabel> tab has been added to the tab group to allow for customization of the main class of the server. The changes to the main class are verified to persist by server startup checks.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5122">JBIDE-5122</ulink>: <guilabel>JBoss Servers View</guilabel> has been removed with this release. All the functionality provided by this view can be found in the <guilabel>Servers View</guilabel>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5048">JBIDE-5048</ulink>: SSH deployment has been added to the <application>JBoss Developer Studio</application> with this update. Specifically the following improvements have been made:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ A server type has been created that accepts SSH deployment for Eclipse Web Tools Platform (WTP) archives
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ WTP, single-file and project archives can now be published
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Java Secure Channel (JSch) errors are now verified
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ All situations return IStatus objects and their associated user interface (an IStatus object represents the outcome of an operation)
+ </para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5041">JBIDE-5041</ulink>: The <keycap>menu</keycap> key on the keyboard would not work in the <guilabel>Web Projects</guilabel> view, <guilabel>Seam Components</guilabel> view or JBoss Tools XML Editor. The functioning of this key has now been corrected so it behaves as a user would expect.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-5005">JBIDE-5005</ulink>: A new export wizard has been added to the <application>JBoss Developer Studio</application>. The new wizard allows the export operation to utilize IModule objects. This added feature reduces redundancy and inconsistency for the export operation.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4976">JBIDE-4976</ulink>: The <guilabel>JBoss Tools Palette</guilabel> has been intergrated into the standard Eclipse GEF <guilabel>Palette</guilabel> view. The standard <guilabel>Palette</guilabel> view, accessible at <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Show View</guimenuitem><guimenuitem>Others</guimenuitem><guimenuitem>General</guimenuitem><guimenuitem>Palette</guimenuitem></menuchoice> is now shown in the right top part of the <guilabel>Web Development</guilabel> and <guilabel>Seam</guilabel> perspectives. The <guilabel>JBoss Tools Palette</guilabel> remains at <menuchoice><guimenuitem>Window</guimenuitem><guimenuitem>Show View</guimenuitem><guimenuitem>Others</guimenuitem><guimenuitem>JBoss Tools Web</guimenuitem><guimenuitem>JBoss Tools Palette</guimenuitem></menuchoice>.
+ </para>
+ <para>
+ The differences in behavior between the palettes are:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ The new <guilabel>Palette</guilabel> is filled only when the <guilabel>Visual Page Editor</guilabel> is open and activated. The old palette remains static.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ The expanded and collapsed state of tabs in the new palette is associated with the opened instance of the <guilabel>Visual Page Editor</guilabel> and not globally set as they were in the old palette. This allows for the state of tabs to be different for individual files. Each new file opened in the <guilabel>Visual Page Editor</guilabel> will have the default <guilabel>Palette</guilabel> state with all tabs collapsed.
+ </para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ Though the behavior of the new palette is standard for Eclipse, for customers used to the globally set state of tabs and perfer to customize the palette before opening the <guilabel>Visual Page Editor</guilabel>, the old palette will remain accessible.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4955">JBIDE-4955</ulink>: BPEL and ESB projects can now be excluded from deployment through the addition of new fileset capability. When the fileset is referenced the includes, excludes and root folder layout is implemented just as it is for archives.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4922">JBIDE-4922</ulink>: Seam and RichFaces portletbridge archetypes have been added to the <application>JBoss Developer Studio</application> foruse with the Maven plug-in <application>m2eclipse</application>.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4888">JBIDE-4888</ulink>: The portlet facets configuration utility has been added for m2eclipse. This configuration utility allows for the following:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ If the <filename>pom.xml</filename> file contains a <property>portlet-api</property> dependency, the JBoss Core Portlet facet is added.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If the <filename>pom.xml</filename> file contains portletbridge dependencies, the JBoss JSF Portlet facet is added.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ If the project contains Seam, JBoss Core Portlet and JBoss JSF Portlet facet, the JBoss Seam Portlet facet is added.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4877">JBIDE-4877</ulink>: Tag completion has been upgraded so that partial matches are displayed and selectable following direct tag matches.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4850">JBIDE-4850</ulink>: A new feature has been added to the CSS Views with this release that allows a user to edit styles inside HTML and xhtm.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4690">JBIDE-4690</ulink>: The Maven Portlet library provider has been added to the <application>JBoss Developer Studio</application> with this release.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4689">JBIDE-4689</ulink>: The portlet libraries engine has been updated to use the WTP 3.1 Library Framework. This framework is implemented in the Portlet Core and JSF Portlet installation page. The following library providers are now available to the user:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Library provider:
+ </para>
<itemizedlist>
<listitem>
+
<para>
- The new <guilabel>Palette</guilabel> is filled only when the <guilabel>Visual Page Editor</guilabel> is open and activated. The old palette remains static.
- </para>
- </listitem>
- <listitem>
- <para>
- The expanded and collapsed state of tabs in the new palette is associated with the opened instance of the <guilabel>Visual Page Editor</guilabel> and not globally set as they were in the old palette. This allows for the state of tabs to be different for individual files. Each new file opened in the <guilabel>Visual Page Editor</guilabel> will have the default <guilabel>Palette</guilabel> state with all tabs collapsed.
- </para>
- </listitem>
- </itemizedlist>
- <para>
- Though the behavior of the new palette is standard for Eclipse, for customers used to the globally set state of tabs and perfer to customize the palette before opening the <guilabel>Visual Page Editor</guilabel>, the old palette will remain accessible.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4955">JBIDE-4955</ulink>: BPEL and ESB projects can now be excluded from deployment through the addition of new fileset capability. When the fileset is referenced the includes, excludes and root folder layout is implemented just as it is for archives.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4922">JBIDE-4922</ulink>: Seam and RichFaces portletbridge archetypes have been added to the <application>JBoss Developer Studio</application> foruse with the Maven plug-in <application>m2eclipse</application>.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4888">JBIDE-4888</ulink>: The portlet facets configuration utility has been added for m2eclipse. This configuration utility allows for the following:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- If the <filename>pom.xml</filename> file contains a <property>portlet-api</property> dependency, the JBoss Core Portlet facet is added.
- </para>
- </listitem>
- <listitem>
- <para>
- If the <filename>pom.xml</filename> file contains portletbridge dependencies, the JBoss JSF Portlet facet is added.
- </para>
- </listitem>
- <listitem>
- <para>
- If the project contains Seam, JBoss Core Portlet and JBoss JSF Portlet facet, the JBoss Seam Portlet facet is added.
- </para>
- </listitem>
- </itemizedlist>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4877">JBIDE-4877</ulink>: Tag completion has been upgraded so that partial matches are displayed and selectable following direct tag matches.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4850">JBIDE-4850</ulink>: A new feature has been added to the CSS Views with this release that allows a user to edit styles inside HTML and xhtm.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4690">JBIDE-4690</ulink>: The Maven Portlet library provider has been added to the <application>JBoss Developer Studio</application> with this release.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-4689">JBIDE-4689</ulink>: The portlet libraries engine has been updated to use the WTP 3.1 Library Framework. This framework is implemented in the Portlet Core and JSF Portlet installation page. The following library providers are now available to the user:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- Library provider:
- </para>
- <itemizedlist>
- <listitem>
-
- <para>
User Library
</para> </listitem>
<listitem>
@@ -898,16 +922,16 @@
<para>
Disable Library Configuration
</para> </listitem>
- </itemizedlist>
- </listitem>
- <listitem>
- <para>
- Portlet Core Facet library providers:
- </para>
- <itemizedlist>
- <listitem>
-
- <para>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para>
+ Portlet Core Facet library providers:
+ </para>
+ <itemizedlist>
+ <listitem>
+
+ <para>
Portlet Target Runtime Provider
</para> </listitem>
<listitem>
@@ -915,73 +939,73 @@
<para>
Maven Portlet 1.0 and 2.0 Libraries
</para> </listitem>
- </itemizedlist>
- </listitem>
- <listitem>
- <para>
- JSF Portlet Facet library providers:
- <itemizedlist>
- <listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para>
+ JSF Portlet Facet library providers:
+ <itemizedlist>
+ <listitem>
- <para>
- JSF Portletbridge Runtime provider
- </para> </listitem>
- <listitem>
-
- <para>
- JSF Portlet Target Runtime Provider
- </para> </listitem>
- <listitem>
-
- <para>
- Maven Portletbridge 2.0.0 ALPHA Libraries
- </para> </listitem>
- <listitem>
-
- <para>
- Maven Portletbridge 2.0.0 ALPHA Libraries with dependencies
- </para> </listitem>
- </itemizedlist>
- </para>
- </listitem>
- </itemizedlist>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-3563">JBIDE-3563</ulink>: Code assist has been added for classes that are defined in linked CSS. The schema for included page contexts has been added. This has occurred as it is needed to create the contexts for all the pages included in the source. It allows for the gathering of information on bundles declared in included pages.
- </para>
- <para>
- The included page contexts are created and the following information is collected within the included contexts:
- </para>
- <itemizedlist>
- <listitem>
- <para>
- Namespaces are declared within the included pages
- </para>
- </listitem>
- <listitem>
- <para>
- Tag libraries are used in the included pages
- </para>
- </listitem>
- <listitem>
- <para>
- Resource bundles are declared within the included pages
- </para>
- </listitem>
- </itemizedlist>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-3125">JBIDE-3125</ulink>: Exadel OpenOn support has been added to the code editors. This new functionality allows for a user to open a file that is being referenced within the code, in a new editor window. Related CDI Beans will also appear from a search of references to an object within the code, allowing for a user to quickly see where else an object is referenced.
- </para>
- </listitem>
- <listitem>
- <para>
- <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2541">JBIDE-2541</ulink>: A new feature has been added to this release that allows for the JavaDoc documentation to be available for the EL proposals as it is for Java methods. The JavaDoc comments are also available if they originated from a projects source folders.
- </para>
- </listitem>
- </itemizedlist>
- </para>
- </formalpara>
- </section>
+ <para>
+ JSF Portletbridge Runtime provider
+ </para> </listitem>
+ <listitem>
+
+ <para>
+ JSF Portlet Target Runtime Provider
+ </para> </listitem>
+ <listitem>
+
+ <para>
+ Maven Portletbridge 2.0.0 ALPHA Libraries
+ </para> </listitem>
+ <listitem>
+
+ <para>
+ Maven Portletbridge 2.0.0 ALPHA Libraries with dependencies
+ </para> </listitem>
+ </itemizedlist>
+ </para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-3563">JBIDE-3563</ulink>: Code assist has been added for classes that are defined in linked CSS. The schema for included page contexts has been added. This has occurred as it is needed to create the contexts for all the pages included in the source. It allows for the gathering of information on bundles declared in included pages.
+ </para>
+ <para>
+ The included page contexts are created and the following information is collected within the included contexts:
+ </para>
+ <itemizedlist>
+ <listitem>
+ <para>
+ Namespaces are declared within the included pages
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Tag libraries are used in the included pages
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ Resource bundles are declared within the included pages
+ </para>
+ </listitem>
+ </itemizedlist>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-3125">JBIDE-3125</ulink>: Exadel OpenOn support has been added to the code editors. This new functionality allows for a user to open a file that is being referenced within the code, in a new editor window. Related CDI Beans will also appear from a search of references to an object within the code, allowing for a user to quickly see where else an object is referenced.
+ </para>
+ </listitem>
+ <listitem>
+ <para>
+ <ulink url="http://jira.jboss.com/jira/browse/JBIDE-2541">JBIDE-2541</ulink>: A new feature has been added to this release that allows for the JavaDoc documentation to be available for the EL proposals as it is for Java methods. The JavaDoc comments are also available if they originated from a projects source folders.
+ </para>
+ </listitem>
+ </itemizedlist>
+ </para>
+ </formalpara>
+</section>
14 years, 3 months
JBoss Tools SVN: r20847 - trunk/jsf/docs/userguide/en-US.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2010-03-16 12:38:17 -0400 (Tue, 16 Mar 2010)
New Revision: 20847
Modified:
trunk/jsf/docs/userguide/en-US/Visual_Web_Tools.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-1126 - fixed direction on four tabs in 1.1. Key Features of Visual Web Tools chapter
Modified: trunk/jsf/docs/userguide/en-US/Visual_Web_Tools.xml
===================================================================
--- trunk/jsf/docs/userguide/en-US/Visual_Web_Tools.xml 2010-03-16 16:34:18 UTC (rev 20846)
+++ trunk/jsf/docs/userguide/en-US/Visual_Web_Tools.xml 2010-03-16 16:38:17 UTC (rev 20847)
@@ -67,8 +67,8 @@
<row>
<entry>Visual Page Editor</entry>
<entry>Powerful and customizable visual page editor. Possibility to develop an application
- using any web technology: jsf, seam, struts, jsp, html and others. Developing using four
- tabs: visual/source, visual, source and preview. Fast and easy switching between these tabs.
+ using any web technology: jsf, seam, struts, jsp, html and others. Developing using three
+ tabs: visual/source, source and preview. Fast and easy switching between these tabs.
Split screen design of visual and source views. Full and instant synchronization between
source and visual views. Integration with properties and outline views. Graphical toolbar to
add inline styling to any tag.</entry>
14 years, 3 months
JBoss Tools SVN: r20846 - trunk/jsf/docs/userguide/en-US.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2010-03-16 12:34:18 -0400 (Tue, 16 Mar 2010)
New Revision: 20846
Modified:
trunk/jsf/docs/userguide/en-US/editors.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-1127
https://jira.jboss.org/jira/browse/JBDS-1132
Modified: trunk/jsf/docs/userguide/en-US/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en-US/editors.xml 2010-03-16 16:06:57 UTC (rev 20845)
+++ trunk/jsf/docs/userguide/en-US/editors.xml 2010-03-16 16:34:18 UTC (rev 20846)
@@ -8,14 +8,10 @@
<keyword>Editor</keyword>
</keywordset>
</chapterinfo>
-
<title>Editors</title>
<para>In the JSF Tools Reference Guide and Struts Tools Reference Guide you had possibility to
- read about Graphical Editor for JSF
- and Struts configuration
- files, Graphical Editor for
- Tiles Files, Graphical Editor for
- Struts Validation Files. All these editors have <link
+ read about Graphical Editor for JSF and Struts configuration files, Graphical Editor for
+ Tiles Files, Graphical Editor for Struts Validation Files. All these editors have <link
linkend="OpenOnSelection4Hyperlinknavigation">
<property>OpenOn</property>
</link> and <link linkend="CodeAssistAndDynamicCodeAssist42BasedOnProjectData">
@@ -24,39 +20,35 @@
to know a <link linkend="visual_page">Visual Page Editor</link> for combined visual and
source editing of Web pages and many <link linkend="more_editors">other editors</link> for
different types of files.</para>
-
<section id="editors_features">
-
<title>Editors Features</title>
- <para><property>JBoss Developer Studio</property> has powerful editor features that help you easily navigate
- within your application and make use of content and code assist no matter what project
- file (<literal>.jsp</literal>, <literal>.xhtml</literal>, <literal>.xml</literal>, <literal>.css</literal>, etc.) you are working on.</para>
- <para>The mentioned features are the following:</para>
-
- <itemizedlist>
- <listitem>
- <para><link linkend="OpenOnSelection4Hyperlinknavigation">OpenOn</link></para>
- </listitem>
- <listitem>
- <para><link linkend="CodeAssistAndDynamicCodeAssist42BasedOnProjectData">Content Assist</link></para>
- </listitem>
- <listitem>
- <para><link linkend="FullControlOverSourceFiles-SynchronizedSourcAndVisualEditing74">Synchronized Source and Visual Editing</link></para>
- </listitem>
- </itemizedlist>
-
+ <para><property>JBoss Developer Studio</property> has powerful editor features that help you
+ easily navigate within your application and make use of content and code assist no
+ matter what project file (<literal>.jsp</literal>, <literal>.xhtml</literal>, <literal
+ >.xml</literal>, <literal>.css</literal>, etc.) you are working on.</para>
+ <para>The mentioned features are the following:</para>
+ <itemizedlist>
+ <listitem>
+ <para><link linkend="OpenOnSelection4Hyperlinknavigation">OpenOn</link></para>
+ </listitem>
+ <listitem>
+ <para><link linkend="CodeAssistAndDynamicCodeAssist42BasedOnProjectData">Content
+ Assist</link></para>
+ </listitem>
+ <listitem>
+ <para><link linkend="FullControlOverSourceFiles-SynchronizedSourcAndVisualEditing74"
+ >Synchronized Source and Visual Editing</link></para>
+ </listitem>
+ </itemizedlist>
<section id="OpenOnSelection4Hyperlinknavigation">
-
<title>OpenOn</title>
-
- <para>OpenOn lets you easily link directly from one resource to
- another in your project without using the <property>Package Explorer</property> view (project tree). With
+ <para>OpenOn lets you easily link directly from one resource to another in your project
+ without using the <property>Package Explorer</property> view (project tree). With
OpenOn, you can simply use <emphasis>
<property>F3</property>
</emphasis> or <emphasis>
<property>Ctrl+Click</property>
</emphasis> on a reference to another file and the file will be opened.</para>
-
<para>OpenOn is available for:</para>
<itemizedlist>
<listitem>
@@ -73,163 +65,157 @@
<para>Java files</para>
</listitem>
<listitem>
- <para> <link linkend="cssclasses">CSS classes</link> </para>
+ <para>
+ <link linkend="cssclasses">CSS classes</link>
+ </para>
</listitem>
<listitem>
- <para> <link linkend="openonelvariables">Paths to files set using EL variable</link> </para>
+ <para>
+ <link linkend="openonelvariables">Paths to files set using EL
+ variable</link>
+ </para>
</listitem>
</itemizedlist>
-
<section id="XMLFiles232">
-
<title>XML Files</title>
-
- <para>Press and hold down the <emphasis><property>Ctrl</property></emphasis> key. As you move the mouse cursor over different
- file references in the file, they display an underline. When you hover the name
- of the file you want to open, click and the file will open in its own editor.</para>
-
- <para>Use the OpenOn functionality for the next entries defined in XML file:</para>
-
- <orderedlist>
- <listitem>
- <para>Managed beans</para>
- <para>In this example the managed bean <emphasis><property>"User"</property></emphasis> will open.</para>
-
- <figure>
- <title>Opening a Managed Bean</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>This is the result of using OpenOn.</para>
-
- <figure>
- <title>Opened Managed Bean</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
-
- <listitem>
- <para>Beans properties</para>
- <figure>
- <title>OpenOn for the Bean Property</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
-
- <listitem>
- <para>JSP file references</para>
- <figure>
- <title>OpenOn for JSP Page</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_4.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- </orderedlist>
+ <para>Press and hold down the <emphasis><property>Ctrl</property></emphasis> key. As
+ you move the mouse cursor over different file references in the file, they
+ display an underline. When you hover the name of the file you want to open,
+ click and the file will open in its own editor.</para>
+ <para>Use the OpenOn functionality for the next entries defined in XML file:</para>
+ <orderedlist>
+ <listitem>
+ <para>Managed beans</para>
+ <para>In this example the managed bean <emphasis><property
+ >"User"</property></emphasis> will open.</para>
+ <figure>
+ <title>Opening a Managed Bean</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/editors_features/editors_features_1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>This is the result of using OpenOn.</para>
+ <figure>
+ <title>Opened Managed Bean</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/editors_features/editors_features_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Beans properties</para>
+ <figure>
+ <title>OpenOn for the Bean Property</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/editors_features/editors_features_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>JSP file references</para>
+ <figure>
+ <title>OpenOn for JSP Page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/editors_features/editors_features_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </orderedlist>
</section>
-
<section id="JSPPages223">
-
<title>JSP/XHTML Pages</title>
-
- <para>OpenOn is also available in JSP and XHTML pages edited in the <property>Visual Page Editor</property>. It will allow
- you to quickly jump to the reference instead of having to hunt around in the
- project structure.</para>
-
-
- <para>You can use OpenOn for the following JSP/XHTML file entries:</para>
-
- <orderedlist>
- <listitem>
- <para>Imported property files</para>
- <figure>
- <title>OpenOn for Property File Imported to the JSP Page</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_5.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
-
- <listitem>
- <para>CSS files used in a JSP/XHTML page</para>
- <figure>
- <title>OpenOn With CSS File</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_6.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
-
- <listitem>
- <para>Managed beans and their properties</para>
- <figure>
- <title>OpenOn With Managed Beans</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_7.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
-
- <listitem>
- <para>Navigation rules in JSP files</para>
-
- <para>For JSP files in a JSF project, you can easily open the navigation rules
- by applying <property>OpenOn</property> to the JSF tag for the navigation
- outcome:</para>
-
- <figure>
- <title>OpenOn with JSF Tag</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_8.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
-
- <listitem>
- <para>Custom Facelets tag libraries in XHTML pages</para>
- <para>For details, see <link linkend="openOnForCustomFacelets">"OpenOn for Custom Facelets Tag Libraries"</link>
- later in this guide.</para>
- </listitem>
-
- <listitem>
- <para>Custom JJSF 2.0 components</para>
- <figure>
- <title>OpenOn with JSF 2.0 Component</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_openon_jsf2_components.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
- </orderedlist>
+ <para>OpenOn is also available in JSP and XHTML pages edited in the <property>Visual
+ Page Editor</property>. It will allow you to quickly jump to the reference
+ instead of having to hunt around in the project structure.</para>
+ <para>You can use OpenOn for the following JSP/XHTML file entries:</para>
+ <orderedlist>
+ <listitem>
+ <para>Imported property files</para>
+ <figure>
+ <title>OpenOn for Property File Imported to the JSP Page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/editors_features/editors_features_5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>CSS files used in a JSP/XHTML page</para>
+ <figure>
+ <title>OpenOn With CSS File</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/editors_features/editors_features_6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Managed beans and their properties</para>
+ <figure>
+ <title>OpenOn With Managed Beans</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/editors_features/editors_features_7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Navigation rules in JSP files</para>
+ <para>For JSP files in a JSF project, you can easily open the navigation
+ rules by applying <property>OpenOn</property> to the JSF tag for the
+ navigation outcome:</para>
+ <figure>
+ <title>OpenOn with JSF Tag</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/editors_features/editors_features_8.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Custom Facelets tag libraries in XHTML pages</para>
+ <para>For details, see <link linkend="openOnForCustomFacelets">"OpenOn
+ for Custom Facelets Tag Libraries"</link> later in this
+ guide.</para>
+ </listitem>
+ <listitem>
+ <para>Custom JSF 2.0 components</para>
+ <figure>
+ <title>OpenOn with JSF 2.0 Component</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/editors_features/editors_features_openon_jsf2_components.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ </orderedlist>
</section>
-
<section id="cssclasses">
<title>CSS Classes</title>
- <para>You can quickly navigate through CSS classes using OpenOn</para>
+ <para>You can quickly navigate through CSS classes using OpenOn</para>
<figure>
<title>OpenOn With CSS Class</title>
<mediaobject>
@@ -238,8 +224,7 @@
</imageobject>
</mediaobject>
</figure>
-
- <para>OpenOn is also implemented for css classes added by a complex link.</para>
+ <para>OpenOn is also implemented for css classes added by a complex link.</para>
<figure>
<title>OpenOn With CSS Class added by a complex link</title>
<mediaobject>
@@ -249,34 +234,26 @@
</mediaobject>
</figure>
</section>
-
<section id="openonelvariables">
<title>OpenOn for EL variables</title>
<para>OpenOn can be used for paths to files set with EL variable.</para>
- <figure>
- <title>OpenOn for paths to files set with EL variable</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_openon_el.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
+ <figure>
+ <title>OpenOn for paths to files set with EL variable</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/editors_features/editors_features_openon_el.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
</section>
-
</section>
-
<section id="CodeAssistAndDynamicCodeAssist42BasedOnProjectData">
-
<title>Content Assist</title>
<para><property>Content assist</property> is available when working with</para>
-
<itemizedlist>
<listitem>
- <para>
- Seam project files
- </para>
-
+ <para> Seam project files </para>
</listitem>
<listitem>
<para>
@@ -293,123 +270,121 @@
<link linkend="JSPPages434">JSP files</link>
</para>
</listitem>
- <listitem>
- <para>
- <link linkend="ContentAssistForXHTMLPages">XHTML files</link>
- </para>
- </listitem>
<listitem>
<para>
- <link linkend="ContentAssistForRF">RichFaces components</link>
+ <link linkend="ContentAssistForXHTMLPages">XHTML files</link>
</para>
</listitem>
<listitem>
<para>
- ESB XML files
+ <link linkend="ContentAssistForRF">RichFaces components</link>
</para>
</listitem>
<listitem>
+ <para> ESB XML files </para>
+ </listitem>
+ <listitem>
<para>
<link linkend="ContentAssistForInsertTag">Insert Tag Wizard</link>
</para>
</listitem>
</itemizedlist>
-
<para>Notice, that code completion for EL variables has icons illustrating what they are
- from. The most of this icons are described in the table below.</para>
+ from. The most of this icons are described in the table below.</para>
<table>
<title>Content assist icons</title>
<tgroup cols="3">
<colspec colnum="1" align="left" colwidth="2*"/>
<colspec colnum="2" colwidth="4*"/>
- <colspec colnum="3" colwidth="2*" align="left" />
+ <colspec colnum="3" colwidth="2*" align="left"/>
<thead>
<row>
- <entry>Icon </entry>
- <entry>Type </entry>
- <entry>Context </entry>
+ <entry>Icon </entry>
+ <entry>Type </entry>
+ <entry>Context </entry>
</row>
</thead>
<tbody>
- <row>
- <entry>
- <para><inlinemediaobject><imageobject>
- <imagedata fileref="images/editors_features/icons_enumaration.png"/>
- </imageobject>
- </inlinemediaobject>
- </para>
- </entry>
- <entry>
- <para>Enumeration
- </para>
- </entry>
- <entry>
- <para>Used to show items which exist in the predefined set of equivalent proposals.
- </para>
- </entry>
- </row>
<row>
<entry>
<para><inlinemediaobject><imageobject>
- <imagedata fileref="images/editors_features/icons_seam_el.png"/>
- </imageobject>
- </inlinemediaobject>
+ <imagedata
+ fileref="images/editors_features/icons_enumaration.png"
+ />
+ </imageobject>
+ </inlinemediaobject>
</para>
</entry>
<entry>
- <para>Seam Proposal</para>
+ <para>Enumeration </para>
</entry>
<entry>
- <para>Used to show Seam Context variables, its properties and methods.
-
- </para>
- </entry>
+ <para>Used to show items which exist in the predefined set of
+ equivalent proposals. </para>
+ </entry>
</row>
<row>
<entry>
<para><inlinemediaobject><imageobject>
- <imagedata fileref="images/editors_features/icons_jsf_el.png"/>
- </imageobject>
- </inlinemediaobject>
+ <imagedata
+ fileref="images/editors_features/icons_seam_el.png"
+ />
+ </imageobject>
+ </inlinemediaobject>
</para>
</entry>
<entry>
- <para>JSF EL
- </para>
+ <para>Seam Proposal</para>
</entry>
<entry>
- <para>Used to show Managed Beans, Managed Bean Properties, Managed Bean Methods, Constants, Resource Bundles, Resource Bundle Properties.
-
-
- </para>
+ <para>Used to show Seam Context variables, its properties and
+ methods. </para>
</entry>
-
</row>
<row>
<entry>
<para><inlinemediaobject><imageobject>
- <imagedata fileref="images/editors_features/icons_jsf_actions.png"/>
- </imageobject>
- </inlinemediaobject>
+ <imagedata
+ fileref="images/editors_features/icons_jsf_el.png"/>
+ </imageobject>
+ </inlinemediaobject>
</para>
</entry>
<entry>
- <para>JSF Action
-
- </para>
+ <para>JSF EL </para>
</entry>
<entry>
- <para>Used to show navigation rules defined in the <property>faces-config.xml</property> .
-
+ <para>Used to show Managed Beans, Managed Bean Properties, Managed
+ Bean Methods, Constants, Resource Bundles, Resource Bundle
+ Properties. </para>
+ </entry>
+ </row>
+ <row>
+ <entry>
+ <para><inlinemediaobject><imageobject>
+ <imagedata
+ fileref="images/editors_features/icons_jsf_actions.png"
+ />
+ </imageobject>
+ </inlinemediaobject>
</para>
</entry>
+ <entry>
+ <para>JSF Action </para>
+ </entry>
+ <entry>
+ <para>Used to show navigation rules defined in the <property
+ >faces-config.xml</property> . </para>
+ </entry>
</row>
<row>
<entry>
<para><inlinemediaobject><imageobject>
- <imagedata fileref="images/editors_features/icons_message_bundles.png"/>
- </imageobject>
- </inlinemediaobject>
+ <imagedata
+ fileref="images/editors_features/icons_message_bundles.png"
+ />
+ </imageobject>
+ </inlinemediaobject>
</para>
</entry>
<entry>
@@ -417,36 +392,30 @@
</entry>
<entry>
<para>Used to show <property>Messages Resources</property> items.
-
</para>
</entry>
</row>
-
<row>
<entry>
<para><inlinemediaobject><imageobject>
- <imagedata fileref="images/editors_features/icons_resource_paths.png"/>
- </imageobject>
- </inlinemediaobject>
+ <imagedata
+ fileref="images/editors_features/icons_resource_paths.png"
+ />
+ </imageobject>
+ </inlinemediaobject>
</para>
</entry>
<entry>
- <para>Resource path
- </para>
+ <para>Resource path </para>
</entry>
<entry>
<para>Used to show paths which are accessible from the cursor place.
-
-
</para>
</entry>
</row>
</tbody>
</tgroup>
-
-
</table>
-
<figure>
<title>JSF Content Assist</title>
<mediaobject>
@@ -455,7 +424,6 @@
</imageobject>
</mediaobject>
</figure>
-
<figure>
<title>Seam Content Assist</title>
<mediaobject>
@@ -464,23 +432,19 @@
</imageobject>
</mediaobject>
</figure>
-
<para>Also, as you can see, the ranking and sorting are available in EL code
completions.</para>
-
<section id="JSFProjectFiles3087">
-
<title>JSF Project Files</title>
-
<para>When working with JSF project in JBoss Developer Studio, you can use various
<property>Content Assist features</property> while developing:</para>
<itemizedlist>
<listitem>
- <para>Content Assist for XML, XHTML, JSP and JSF configuration files</para>
- </listitem>
+ <para>Content Assist for XML, XHTML, JSP and JSF configuration files</para>
+ </listitem>
<listitem>
<para>Content Assist for Composite Components</para>
- </listitem>
+ </listitem>
<listitem>
<para>Content Assist based on project data</para>
</listitem>
@@ -488,16 +452,12 @@
<para>Content Assist with graphical JSF editor</para>
</listitem>
</itemizedlist>
-
<section id="ContentAssistForXMLJSPAndJSFConfigurationFiles865">
-
<title>Content Assist for XML, JSP and JSF configuration files</title>
-
<para>At any point when working with any XML, JSP and JSF configuration files
Content Assist is available to help you. Simply type <emphasis>
<property>Ctrl-Space</property>
</emphasis> to see what is available.</para>
-
<para>Content Assist for JSF configuration file:</para>
<figure>
<title>Content Assist in JSF Configuration File</title>
@@ -528,29 +488,26 @@
</imageobject>
</mediaobject>
</figure>
- </section>
-
+ </section>
<section id="ContentAssistforCompositeComponents">
<title>Content Assist for Composite Components</title>
- <para>Content assist functionality is also available for composite components. On the screen is shown content assist for a composite component file <property>"tag.xhtml"</property> within a JSF 1.2 project with facelets</para>
-
+ <para>Content assist functionality is also available for composite components.
+ On the screen is shown content assist for a composite component file
+ <property>"tag.xhtml"</property> within a JSF 1.2 project with
+ facelets</para>
<figure>
<title>Content Assist for Composite Components</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/editors_features/editors_features_ca_composite_component.png"
+ <imagedata
+ fileref="images/editors_features/editors_features_ca_composite_component.png"
scale="85"/>
</imageobject>
</mediaobject>
</figure>
- </section>
-
-
-
+ </section>
<section id="ContentAssistBasedOnProjectData86">
-
<title>Content Assist Based on Project Data</title>
-
<para>JBoss Developer Studio takes Content Assist to the next level. Studio will
constantly scan your project and you will be able to insert code into the
JSP page from your project that includes:</para>
@@ -590,11 +547,9 @@
</figure>
<para>In the following screenshot we are inserting a <emphasis role="italic">
<property>"Managed bean"</property>
- </emphasis> attribute value. Again, by simply clicking
- <emphasis><property>Ctrl-Space</property>,</emphasis> JBoss
- Developer Studio will show a list of all possible values that you can
- insert.</para>
-
+ </emphasis> attribute value. Again, by simply clicking <emphasis><property
+ >Ctrl-Space</property>,</emphasis> JBoss Developer Studio will show
+ a list of all possible values that you can insert.</para>
<para>Once you select a Managed bean, it will show you a list of all available
attributes for the selected Managed bean (userBean).</para>
<figure>
@@ -617,35 +572,32 @@
</imageobject>
</mediaobject>
</figure>
-
- <para>Code Assist can also provide you with access to the beans located in jar archives.</para>
-
+ <para>Code Assist can also provide you with access to the beans located in jar
+ archives.</para>
<figure>
- <title>Code Assist: accessing beans in jar archives</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/editors_features/editors_features_14_a.png"
- />
- </imageobject>
- </mediaobject>
+ <title>Code Assist: accessing beans in jar archives</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata
+ fileref="images/editors_features/editors_features_14_a.png"/>
+ </imageobject>
+ </mediaobject>
</figure>
- <para>Moreover <property>Code Assist</property> is able to define <property>Resource Bundles</property> on template page and gives the proposals on the client page. </para>
+ <para>Moreover <property>Code Assist</property> is able to define <property
+ >Resource Bundles</property> on template page and gives the proposals on
+ the client page. </para>
<figure>
<title>Code Assist: Message Bundles proposals from template page</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/editors_features/editors_features_14_b.png"/>
+ <imagedata
+ fileref="images/editors_features/editors_features_14_b.png"/>
</imageobject>
-
</mediaobject>
</figure>
-
-
</section>
<section id="ContentAssistWithinJSFGraphicalEditor44">
-
<title>Content Assist within Tree JSF Editor</title>
-
<para>JBoss Developer Studio also provides Content Assist when working within
the Tree JSF configuration editor. Just click <emphasis>
<property>Ctrl-Space</property>. </emphasis></para>
@@ -658,7 +610,6 @@
</imageobject>
</mediaobject>
</figure>
-
<!--
<para>If a field contains right class name and you click a link near the
@@ -744,20 +695,13 @@
-->
</section>
</section>
-
<section id="StrutsProjectFile46s3">
<title>Struts Project Files</title>
<para>Content Assist features are available when you work with Struts
projects.</para>
-
-
<section id="ContentAssistForStrutsConfigurationFile75">
-
-
<title>Content Assist for Struts Configuration File</title>
-
<para>Content Assist helps you in Struts Configuration file.</para>
-
<figure>
<title>Struts Content Assist</title>
<mediaobject>
@@ -769,11 +713,8 @@
</figure>
</section>
<section id="ContentAssistForStrutsJSPFile07">
-
<title>Content Assist for Struts JSP File</title>
-
<para>Using Code Assist in Struts JSP file is shown below.</para>
-
<figure>
<title>Struts JSP Content Assist</title>
<mediaobject>
@@ -786,15 +727,10 @@
</section>
</section>
<section id="JSPPages434">
-
<title>JSP Pages</title>
-
-
<section id="ContentAssistForJSFTags96">
-
<title>Content Assist for JSF Tags</title>
<para>JBDS provides full code completion for JSF tags:</para>
-
<figure>
<title>JSF Tags Content Assist</title>
<mediaobject>
@@ -816,10 +752,8 @@
</imageobject>
</mediaobject>
</figure>
-
</section>
<section id="ContentAssistForJSTLTags6332">
-
<title>Content Assist for JSTL Tags</title>
<figure>
<title>JSTL Tags Content Assist</title>
@@ -832,7 +766,6 @@
</figure>
</section>
<section id="ContentAssistForHTMLTags7454">
-
<title>Content Assist for HTML Tags</title>
<para>Content assist for HTML tags has the same mechanism as for JSF
tags:</para>
@@ -857,7 +790,6 @@
</figure>
</section>
<section id="ContentAssistForJavaScriptTags67433">
-
<title>Content Assist for JavaScript Tags</title>
<figure>
<title>JavaScript Tags Content Assist</title>
@@ -870,26 +802,27 @@
</figure>
</section>
</section>
-
- <section id="ContentAssistForXHTMLPages">
- <title>Content Assist for XHTML Pages</title>
-
- <para>The code completion for the Seam components in a Seam project shows the proposals marked with Seam icon.</para>
- <figure>
- <title>Content Assist for Seam Components in the XHTML Page</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/contentAssistXHTMLpages1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>If XHTML file uses custom Facelets components, the Content Assist should also be available for them. For details, see
- <link linkend="contentAssistForCustomFacelets">"Content Assist for Custom Facelets Components"</link> later in this guide.</para>
- </section>
+ <section id="ContentAssistForXHTMLPages">
+ <title>Content Assist for XHTML Pages</title>
+ <para>The code completion for the Seam components in a Seam project shows the
+ proposals marked with Seam icon.</para>
+ <figure>
+ <title>Content Assist for Seam Components in the XHTML Page</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/contentAssistXHTMLpages1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>If XHTML file uses custom Facelets components, the Content Assist should also
+ be available for them. For details, see <link
+ linkend="contentAssistForCustomFacelets">"Content Assist for Custom
+ Facelets Components"</link> later in this guide.</para>
+ </section>
<section id="ContentAssistForInsertTag">
<title>Content Assist for Insert Tag Wizard</title>
- <para>Content Assist is also available for any attribute value of <emphasis>Insert Tag wizard</emphasis>.</para>
+ <para>Content Assist is also available for any attribute value of <emphasis>Insert
+ Tag wizard</emphasis>.</para>
<figure>
<title>Content Assist for Insert Tag Wizard</title>
<mediaobject>
@@ -898,11 +831,8 @@
</imageobject>
</mediaobject>
</figure>
-
</section>
-
<section id="AddingDynamicCodeAssistToCustomComponents8745">
-
<title>Adding dynamic code assist to custom components that were added to JBoss
Tools Palette</title>
<para>Here is what you need to do to add project based code assist to a custom
@@ -922,8 +852,7 @@
<itemizedlist>
<listitem>
<para>Adds code assist for JSF pre-defined objects, such as
- <code>value="#{param}"</code>
- :</para>
+ <code>value="#{param}"</code> :</para>
</listitem>
</itemizedlist>
<programlisting role="XML"><![CDATA[<AttributeType ...>
@@ -987,15 +916,16 @@
uri="http://www.jenia.org/jsf/dataTools"/>]]>
</programlisting>
</listitem>
-
<listitem>
<para>Restart Eclipse. You should now have code assist for the
component.</para>
</listitem>
</orderedlist>
- <para>From <emphasis>JBoss Developer Studio 3.0.0.M1</emphasis> you should not do any of the steps described
- before,dynamic code assist to custom components is added automatically.</para>
- <para>If you open projects that were created in older studio versions such message could appear:</para>
+ <para>From <emphasis>JBoss Developer Studio 3.0.0.M1</emphasis> you should not do
+ any of the steps described before,dynamic code assist to custom components is
+ added automatically.</para>
+ <para>If you open projects that were created in older studio versions such message
+ could appear:</para>
<figure>
<title>Missing Natures Message</title>
<mediaobject>
@@ -1004,28 +934,33 @@
</imageobject>
</mediaobject>
</figure>
- <para>It shows that some features of content assist including this one probably will not work.
- To fix this problem and turn off the message box execute the following steps:</para>
+ <para>It shows that some features of content assist including this one probably will
+ not work. To fix this problem and turn off the message box execute the following
+ steps:</para>
<itemizedlist>
- <listitem><para>Right click the project in Package Explorer.</para></listitem>
- <listitem><para>Select <property>Configure -> Add JSF Capabilities</property> from the context menu.</para></listitem>
- <listitem><para>Configure your project using Add JSF Capabilities wizard and press <property>Finish</property></para></listitem>
+ <listitem>
+ <para>Right click the project in Package Explorer.</para>
+ </listitem>
+ <listitem>
+ <para>Select <property>Configure -> Add JSF Capabilities</property> from the
+ context menu.</para>
+ </listitem>
+ <listitem>
+ <para>Configure your project using Add JSF Capabilities wizard and press
+ <property>Finish</property></para>
+ </listitem>
</itemizedlist>
</section>
</section>
<section id="FullControlOverSourceFiles-SynchronizedSourcAndVisualEditing74">
-
<title>Synchronized Source and Visual Editing</title>
-
<para><property>JBoss Developer Studio</property> offers the flexibility to edit any
files in either source or extra visual modes at the same time.</para>
-
<para>The project is yours and so is the source. <property>JBoss Developer
Studio</property> provides you many different graphical editors to speed your
application development. At the same time, you always have a full control over all
project source files. Any changes you make in the source view immediately appear in
the graphical view.</para>
-
<para>The JSF configuration file editor has three views: <property>Diagram</property>,
<property>Tree</property> and <property>Source</property>. All views are
synchronized, you can edit the file in any view.</para>
@@ -1038,13 +973,10 @@
</imageobject>
</mediaobject>
</figure>
-
<para>The same is relevant to all other <property>JBoss Developer Studio</property>
editors.</para>
-
<para>Web XML editor is shown. Web XML editor has a graphical view (Tree) and source
(Source).</para>
-
<figure>
<title>Two Views are Synchronized</title>
<mediaobject>
@@ -1054,7 +986,6 @@
</imageobject>
</mediaobject>
</figure>
-
<para><property>JBoss Developer Studio</property> TLD file editor is shown in Tree view.
At any point you can edit the source by switching to Source view.</para>
<figure>
@@ -1066,29 +997,31 @@
</imageobject>
</mediaobject>
</figure>
-
</section>
</section>
<section id="visual_page" role="updated">
-
<title>Visual Page Editor</title>
-
<para><property>JBoss Developer Studio</property> comes with a powerful and customizable
<property>Visual Page Editor</property> (VPE). You can use the Visual Page Editor to
- develop an application using any technology: JSF, Struts, JSP, HTML and others. Double-click on the necessary file in the Package Explorer view to open it in the Visual Editor or just drag-and-drop it into perspective (the drag-and-drop feature can be also applied to JSP, XHTML or HTML files created locally).</para>
-
- <para>As a new JSF 2.0 specification has been released, support of new features is now implemented in the <property>Visual Page Editor</property>.
- The JSF 2.0 tags like <literal><h:body></literal>, <literal><h:head></literal>, <literal><h:outputscript></literal>, <literal><h:outputstyle></literal>
- are supported in the editor as well as the composite components and the resource handling from the expression language. (See the <ulink url="http://www.ibm.com/developerworks/java/library/j-jsf2fu2/index.html">following link</ulink> on how to use composite components and
- <ulink url="http://blogs.sun.com/rlubke/entry/jsf_2_0_new_feature3">following blog post</ulink> on how to handle the resources form the EL).
- </para>
-
- <para>Current VPE version has three tabs: <property>Visual/Source</property>,
- <property>Source</property> and <property>Preview</property>. To switch between the
- views you can use tabs at the bottom of the VPE or the shortcuts <emphasis>
+ develop an application using any technology: JSF, Struts, JSP, HTML and others.
+ Double-click on the necessary file in the Package Explorer view to open it in the Visual
+ Editor or just drag-and-drop it into perspective (the drag-and-drop feature can be also
+ applied to JSP, XHTML or HTML files created locally).</para>
+ <para>As a new JSF 2.0 specification has been released, support of new features is now
+ implemented in the <property>Visual Page Editor</property>. The JSF 2.0 tags like
+ <literal><h:body></literal>, <literal><h:head></literal>, <literal
+ ><h:outputscript></literal>, <literal><h:outputstyle></literal> are
+ supported in the editor as well as the composite components and the resource handling
+ from the expression language. (See the <ulink
+ url="http://www.ibm.com/developerworks/java/library/j-jsf2fu2/index.html">following
+ link</ulink> on how to use composite components and <ulink
+ url="http://blogs.sun.com/rlubke/entry/jsf_2_0_new_feature3">following blog
+ post</ulink> on how to handle the resources form the EL). </para>
+ <para>Current VPE version has three tabs: <property>Visual/Source</property>, <property
+ >Source</property> and <property>Preview</property>. To switch between the views you
+ can use tabs at the bottom of the VPE or the shortcuts <emphasis>
<property>Ctrl + PageUp/Ctrl + PageDown</property>
</emphasis>.</para>
-
<figure>
<title>Visual Page Editor</title>
<mediaobject>
@@ -1097,10 +1030,8 @@
</imageobject>
</mediaobject>
</figure>
-
<section id="visual_source">
<title>Visual/Source View</title>
-
<para>Using the <property>Visual/Source view</property> you can edit your pages in the
Source and Visual modes simultaneously having an instant synchronization between
them:</para>
@@ -1112,11 +1043,9 @@
</imageobject>
</mediaobject>
</figure>
-
<para>The view is designed in the form of a split pane with toggle buttons for quickly
moving between Source, Visual or Source/Visual modes as shown on the figure
above.</para>
-
<para>One more way to toggle between the various states of the split pane is using the
shortcuts <emphasis>
<property>Shift + F6</property>
@@ -1128,7 +1057,6 @@
<para>When editing large documents hiding the Visual part will speed up the
editing.</para>
</tip>
-
<para>It should be pointed out that, no matter in what mode you are working, you get a
full integration with <property>Properties</property> and <property>Outline
views</property>:</para>
@@ -1140,12 +1068,16 @@
</imageobject>
</mediaobject>
</figure>
-
-
- <para>The Outline view displays a specific outline of a structured file that is currently open in the editor area, and lists its structural elements. Right-click on the elements will open additional options that allow adding other specific elements in necessary positions.</para>
- <para>The Properties view shows property names and their values for a selected item. The values are editable, just select any and click on the button that appeared to choose a new value. Key combination <property>Ctrl+Z</property> will return the previous value, <property>Ctrl+Y</property> will return the new value again. The Properties view has additional options and can be set up to display categories and advanced properties. </para>
-
-
+ <para>The Outline view displays a specific outline of a structured file that is
+ currently open in the editor area, and lists its structural elements. Right-click on
+ the elements will open additional options that allow adding other specific elements
+ in necessary positions.</para>
+ <para>The Properties view shows property names and their values for a selected item. The
+ values are editable, just select any and click on the button that appeared to choose
+ a new value. Key combination <property>Ctrl+Z</property> will return the previous
+ value, <property>Ctrl+Y</property> will return the new value again. The Properties
+ view has additional options and can be set up to display categories and advanced
+ properties. </para>
<para>It's also possible to use the <link linkend="palette">JBoss Tools
Palette</link> to insert any tag from the list of tag libraries to the page you
are editing with just a click or drag-and-drop.</para>
@@ -1160,10 +1092,9 @@
<para> You can insert a tag/component from the palette into either the Source or the
Visual part by calling a context menu and selecting <property>Insert
around</property>, <property>Insert before</property>, <property>Insert
- after</property> or <property>Replace With</property>, pointing to
- <property>From Palette</property>, picking the type of the tag and finally
- choosing the tag you want to insert. </para>
-
+ after</property> or <property>Replace With</property>, pointing to <property
+ >From Palette</property>, picking the type of the tag and finally choosing the
+ tag you want to insert. </para>
<para>The image below illustrates how you can insert a tag into the Source part.</para>
<figure>
<title>Inserting a tag into the Source part </title>
@@ -1173,9 +1104,7 @@
</imageobject>
</mediaobject>
</figure>
-
<para>And this is how a tag is inserted using a context menu in the Visual part.</para>
-
<figure>
<title>Inserting a tag into the Visual part</title>
<mediaobject>
@@ -1184,10 +1113,10 @@
</imageobject>
</mediaobject>
</figure>
-
- <para>Visual Page Editor also displays custom tags correctly if they are configured properly.
- The picture below shows an example how custom tags <emphasis><property>"pagination"</property></emphasis> and <emphasis><property>"echo"</property></emphasis> will be displayed in VPE.
- </para>
+ <para>Visual Page Editor also displays custom tags correctly if they are configured
+ properly. The picture below shows an example how custom tags <emphasis><property
+ >"pagination"</property></emphasis> and <emphasis><property
+ >"echo"</property></emphasis> will be displayed in VPE. </para>
<figure>
<title>Custom Tags in the VPE</title>
<mediaobject>
@@ -1196,21 +1125,19 @@
</imageobject>
</mediaobject>
</figure>
- <para>
- The listings of the custom tags implementations will help to clear how VPE works.
- </para>
-
- <itemizedlist>
- <listitem><para>echo.xhtml: </para>
- <programlisting role="XML"><![CDATA[
+ <para> The listings of the custom tags implementations will help to clear how VPE works. </para>
+ <itemizedlist>
+ <listitem>
+ <para>echo.xhtml: </para>
+ <programlisting role="XML"><![CDATA[
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets">
<span class="message">#{msg}</span>
</ui:composition>
-]]></programlisting></listitem>
-
- <listitem><para>paginator.xhtml:</para>
-
- <programlisting role="XML"><![CDATA[
+]]></programlisting>
+ </listitem>
+ <listitem>
+ <para>paginator.xhtml:</para>
+ <programlisting role="XML"><![CDATA[
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -1239,11 +1166,10 @@
</ui:component>
</html>
]]></programlisting>
- </listitem>
- </itemizedlist>
- <para>
- If your custom tags aren't configured correctly your Visual mode will look like this:
- </para>
+ </listitem>
+ </itemizedlist>
+ <para> If your custom tags aren't configured correctly your Visual mode will look
+ like this: </para>
<figure>
<title>Wrong configured Custom Tags in the VPE</title>
<mediaobject>
@@ -1252,26 +1178,22 @@
</imageobject>
</mediaobject>
</figure>
-
<section id="comments">
<title>Commenting out Code</title>
-
<para><property>VPE</property> supports possibility to add comments in files you are
working with (JSP, XHTML, etc.):</para>
-
<itemizedlist>
<listitem>
- <para>HTML comments (<code><!-- --></code>) which are output to the client </para>
+ <para>HTML comments (<code><!-- --></code>) which are output to the
+ client </para>
</listitem>
<listitem>
- <para>JSP comments (<code>
- <%-- --%>
+ <para>JSP comments (<code> <%-- --%>
</code>) which are not output to the client as part of the JSP page
output</para>
</listitem>
</itemizedlist>
</section>
-
<section id="codefolding">
<title>Using Code Folding</title>
<para>
@@ -1288,7 +1210,6 @@
</imageobject>
</inlinemediaobject> ) will appear on the left margin of the editor next to each
opening block tag. </para>
-
<figure>
<title>Enabled Code Folding </title>
<mediaobject>
@@ -1297,9 +1218,7 @@
</imageobject>
</mediaobject>
</figure>
-
<para>Click the minus sign to collapse a block tag.</para>
-
<para>When the minus sing is clicked on the appropriate tag collapses and a plus
sing ( <inlinemediaobject>
<imageobject>
@@ -1311,7 +1230,6 @@
<imagedata fileref="images/visual_page/visual_page_23e.png"/>
</imageobject>
</inlinemediaobject> ) appears after opening and closing tags. </para>
-
<figure>
<title>Collapsed Code</title>
<mediaobject>
@@ -1320,54 +1238,44 @@
</imageobject>
</mediaobject>
</figure>
-
</section>
-
<section id="JSPsyntaxvalidation84">
-
<title>JSP Syntax Validation</title>
<para>When working in JBoss Tools JSP editor you are constantly provided with
feedback and contextual error checking as you type.</para>
</section>
-
<section id="taglib_versions_support">
<title>Support for custom TagLibs and Taglib versions</title>
- <para>VPE templates support custom tag libs, e.g. Seam Mail facelet taglib, RichFaces taglibs or any other created by you.</para>
-
- <para>VPE templates also provide a support for various versions of tag libraries. It means that the
- <property>VPE</property> takes control over those components which have
- different parameters or preview according to the framework version (like seam
- 1.2 and seam 2.0, or JSF 1.1 and JSF 1.2).</para>
-
- <para>For example, <code>
- <s:decorate>
- </code> element in seam has different parameters in versions 1.2 and 2.0 as
- well as
- <code><h:outputLink></code>
- JSF element has different preview in versions 1.1 and 1.2.</para>
+ <para>VPE templates support custom tag libs, e.g. Seam Mail facelet taglib,
+ RichFaces taglibs or any other created by you.</para>
+ <para>VPE templates also provide a support for various versions of tag libraries. It
+ means that the <property>VPE</property> takes control over those components
+ which have different parameters or preview according to the framework version
+ (like seam 1.2 and seam 2.0, or JSF 1.1 and JSF 1.2).</para>
+ <para>For example, <code> <s:decorate>
+ </code> element in seam has different parameters in versions 1.2 and 2.0 as well
+ as <code><h:outputLink></code> JSF element has different preview in
+ versions 1.1 and 1.2.</para>
</section>
</section>
-
<section id="pages_styling">
<title>Pages Styling</title>
-
<para>Most web pages use the cascading style sheets (CSS) to control the way they look.
- With <property>Visual Page Editor</property> you can easily stylise your pages. In
- this section we are going to introduce you to a powerful mechanism that
- <property>VPE</property> provides for a complete control over pages styling. More helpful information on wok with CSS files can be found in <link linkend="css_perspective">CSS Perspective chapter</link> </para>
-
+ With <property>Visual Page Editor</property> you can easily stylize your pages. In
+ this section we are going to introduce you to a powerful mechanism that <property
+ >VPE</property> provides for a complete control over pages styling. More helpful
+ information on work with CSS files can be found in <link linkend="css_perspective"
+ >CSS Perspective chapter</link>
+ </para>
<section id="inline_styling">
<title>Inline Style Editing</title>
-
<para>In the Visual part of the <property>VPE</property> there is a graphical
toolbar, use it to add inline styling to JSF and Struts tags on your page. The
- toolbar can be hidden with the help of the special button (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/formatting_bar_icon.png"/>
- </imageobject>
- </inlinemediaobject>) on the VPE toolbar.</para>
-
+ toolbar can be hidden with the help of the special button ( <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/formatting_bar_icon.png"/>
+ </imageobject>
+ </inlinemediaobject>) on the VPE toolbar.</para>
<figure>
<title>Text Formatting</title>
<mediaobject>
@@ -1376,13 +1284,11 @@
</imageobject>
</mediaobject>
</figure>
-
- <para>For editing inline styles for DOM elements <property>VPE</property>
- provides the <property>CSS Dialog</property>. It can be called from <emphasis>
+ <para>For editing inline styles for DOM elements <property>VPE</property> provides
+ the <property>CSS Dialog</property>. It can be called from <emphasis>
<property>style</property>
</emphasis> line in the <property>Properties view</property> for a currently
selected element.</para>
-
<figure>
<title>Call the CSS Dialog</title>
<mediaobject>
@@ -1391,12 +1297,11 @@
</imageobject>
</mediaobject>
</figure>
-
- <para id="css_dialog"><property>CSS Style Dialog</property> has several tabs where css
- properties for text, background, borders and others can be specified. A simple
- preview which is generated at the top of the <property>CSS Style Dialog</property>
- allows you to see the changes before you apply them.</para>
-
+ <para id="css_dialog"><property>CSS Style Dialog</property> has several tabs where
+ css properties for text, background, borders and others can be specified. A
+ simple preview which is generated at the top of the <property>CSS Style
+ Dialog</property> allows you to see the changes before you apply
+ them.</para>
<figure>
<title>CSS Style Dialog</title>
<mediaobject>
@@ -1406,7 +1311,6 @@
</mediaobject>
</figure>
</section>
-
<section id="external_stylesheets">
<title>External Stylesheets</title>
<para>The pages you are working with in <property>VPE</property> can use external
@@ -1417,7 +1321,6 @@
button next to <emphasis>
<property>styleClass</property>
</emphasis> field in <property>Properties view</property>.</para>
-
<figure>
<title>Calling the Edit Style Class Dialog</title>
<mediaobject>
@@ -1426,7 +1329,6 @@
</imageobject>
</mediaobject>
</figure>
-
<para>It'll pick up the <property>Edit Style Class Dialog</property> which
looks like on the figure below:</para>
<figure>
@@ -1437,38 +1339,40 @@
</imageobject>
</mediaobject>
</figure>
-
- <para>Choose a style class from the variants provided and click on the <property>Ok</property> button to apply the changes.</para>
-
+ <para>Choose a style class from the variants provided and click on the <property
+ >Ok</property> button to apply the changes.</para>
<para>To open a CSS dialog based on the active CSS file click on <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/visual_page_19.png"/>
- </imageobject>
- </inlinemediaobject> in the top panel or use hot-keys (<property>Shift+Ctrl+C</property>). </para>
-
- <para>To create a new CSS class for the file click on the <property>Add CSS Class</property> button, write its name in the field appeared and click on the <property>Ok</property> button:</para>
-
- <figure>
- <title>Add CSS Class</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/visual_page_20_b.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Then you can configure style settings switching between the tabs: <emphasis>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_19.png"/>
+ </imageobject>
+ </inlinemediaobject> in the top panel or use hot-keys (<property
+ >Shift+Ctrl+C</property>). </para>
+ <para>To create a new CSS class for the file click on the <property>Add CSS
+ Class</property> button, write its name in the field appeared and click on
+ the <property>Ok</property> button:</para>
+ <figure>
+ <title>Add CSS Class</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_20_b.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Then you can configure style settings switching between the tabs: <emphasis>
<property>Text/Font</property>, </emphasis>
<emphasis>
<property>Background</property>, </emphasis>
<emphasis>
<property>Boxes</property>, </emphasis>
<emphasis>
- <property>Property Sheet</property>. </emphasis>The list of already existing classes with names beginning with the symbols printed will be displayed on standard "Ctrl+Space" key combination. To add existing styling to
- the chosen element just point to the
- necessary one. Each time you select any class it is displayed in the Preview tab. Click on the <emphasis><property>Apply</property></emphasis> button will apply the changes without closing the window.</para>
-
- <figure>
+ <property>Property Sheet</property>. </emphasis>The list of already existing
+ classes with names beginning with the symbols printed will be displayed on
+ standard "Ctrl+Space" key combination. To add existing styling to the chosen
+ element just point to the necessary one. Each time you select any class it is
+ displayed in the Preview tab. Click on the <emphasis><property
+ >Apply</property></emphasis> button will apply the changes without closing
+ the window.</para>
+ <figure>
<title>Style Class Selection</title>
<mediaobject>
<imageobject>
@@ -1476,15 +1380,10 @@
</imageobject>
</mediaobject>
</figure>
-
-
-
-
<para>The <emphasis>
<property>Edited properties</property>
</emphasis> tab gives a preview of the properties which are set for the existing
style class. You can easily modify them with the help of this wizard.</para>
-
<figure>
<title>Edited Properties</title>
<mediaobject>
@@ -1493,9 +1392,8 @@
</imageobject>
</mediaobject>
</figure>
-
- <para>If the style class isn't chosen, the tab doesn't show any properties.</para>
-
+ <para>If the style class isn't chosen, the tab doesn't show any
+ properties.</para>
<figure>
<title>Edited Properties when the style class isn't chosen</title>
<mediaobject>
@@ -1504,11 +1402,10 @@
</imageobject>
</mediaobject>
</figure>
-
<para>The <emphasis>
<property>Preview tab</property>
- </emphasis> is for observing the content of the chosen CSS file. This tab is hidden if no CSS file is chosen.</para>
-
+ </emphasis> is for observing the content of the chosen CSS file. This tab is
+ hidden if no CSS file is chosen.</para>
<figure>
<title>Preview Tab</title>
<mediaobject>
@@ -1517,11 +1414,10 @@
</imageobject>
</mediaobject>
</figure>
-
- <para>At the top of the <property>CSS Class Dialog</property>
- you can see a preview box which visualizes the result. To edit the preview you should double click in the box. To leave the focus, use <emphasis>
+ <para>At the top of the <property>CSS Class Dialog</property> you can see a preview
+ box which visualizes the result. To edit the preview you should double click in
+ the box. To leave the focus, use <emphasis>
<property>Ctrl + Tab</property>.</emphasis></para>
-
<figure>
<title>Editing the Preview</title>
<mediaobject>
@@ -1530,11 +1426,9 @@
</imageobject>
</mediaobject>
</figure>
-
<para>The dialog for creating a new CSS class, which is called from <emphasis>
<property>New > Other... > JBoss Tools Web > CSS Class</property>,
</emphasis> looks this way:</para>
-
<figure>
<title>New CSS Class Dialog</title>
<mediaobject>
@@ -1543,7 +1437,8 @@
</imageobject>
</mediaobject>
</figure>
- <para>Click on the <property>Browse</property> button to open a dialog to select the CSS file to create a CSS class for:</para>
+ <para>Click on the <property>Browse</property> button to open a dialog to select the
+ CSS file to create a CSS class for:</para>
<figure>
<title>CSS File Selection</title>
<mediaobject>
@@ -1552,22 +1447,17 @@
</imageobject>
</mediaobject>
</figure>
- <para>Choose the necessary CSS file and click on the <property>Ok</property> button.</para>
-
-
+ <para>Choose the necessary CSS file and click on the <property>Ok</property>
+ button.</para>
</section>
</section>
-
<section id="vpe_templating">
<title>Templating</title>
-
<para>The VPE also makes it possible to create templates for unknown tags.</para>
-
<para>To call the <property>Template dialog</property> for a tag, right-click on it in
Visual mode and select <emphasis>
<property>Setup Template for <tag name></property>
</emphasis> option.</para>
-
<figure>
<title>Calling Template Dialog</title>
<mediaobject>
@@ -1576,10 +1466,8 @@
</imageobject>
</mediaobject>
</figure>
-
<para id="template_dialog">Here is what the <property>Template dialog</property> looks
like.</para>
-
<figure>
<title>Template Dialog</title>
<mediaobject>
@@ -1588,14 +1476,12 @@
</imageobject>
</mediaobject>
</figure>
-
<para><emphasis>
<property>Tag for Display</property>
</emphasis> field in the <property>Template dialog</property> requires specifying a
type of tag. It can be SPAN, DIV, TABLE or any other html element. Check <emphasis>
<property>Children</property>
</emphasis>, if you want to mark a tag as a child element.</para>
-
<para>The <emphasis>
<property>Value</property>
</emphasis> field is for setting a tag value.</para>
@@ -1604,11 +1490,9 @@
</emphasis> field, you can fill it out manually or make use of the button next to
the field to bring the <link linkend="css_dialog">CSS Dialog</link> for editing
styles.</para>
-
<para>You can observe all defined templates in the <link linkend="VisualPageEditor2">VPE
Preferences</link> on the Templates tab which you can quickly access by pressing
<link linkend="AdvancedSettings954">Preferences button</link>.</para>
-
<figure>
<title>Templates Tab of the VPE Preferences Page</title>
<mediaobject>
@@ -1617,110 +1501,83 @@
</imageobject>
</mediaobject>
</figure>
-
- <para>Here it's possible to edit or remove any listed in the table
- template.</para>
-
+ <para>Here it's possible to edit or remove any listed in the table template.</para>
</section>
-
<section id="AdvancedSettings954">
-
<title>VPE Toolbar</title>
-
<para>The Visual Page Editor toolbar includes the next buttons: </para>
-
- <itemizedlist>
- <listitem><para><link linkend="vpe_preferences">Preferences</link>
- (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/icon_1.png"/>
- </imageobject>
- </inlinemediaobject>
- )</para>
- </listitem>
-
- <listitem><para><link linkend="vpe_refresh">Refresh</link>
- (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/icon_2.png"/>
- </imageobject>
- </inlinemediaobject>
- )</para>
- </listitem>
-
- <listitem><para><link linkend="vpe_page_design_options">Page Design Options</link>
- (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/icon_3.png"/>
- </imageobject>
- </inlinemediaobject>
- )
- </para>
- </listitem>
-
- <listitem>
- <para><link linkend="splitting_buttons">the button to switch the current Visual/Source layout</link>
- (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/source_top.png"/>
- </imageobject>
- </inlinemediaobject>)</para>
- </listitem>
-
- <listitem>
- <para><link linkend="vpe_show_border">Show border for unknown tags</link>
- (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/show_border_button.png"/>
- </imageobject>
- </inlinemediaobject>)</para>
- </listitem>
-
- <listitem>
- <para><link linkend="vpe_show_nonvisual_tags">Show non-visual tags</link>
- (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/show_nonvisual.png"/>
- </imageobject>
- </inlinemediaobject>)</para>
- </listitem>
-
- <listitem>
- <para><link linkend="vpe_show_selection_bar">Show selection bar</link>
- (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/show_selection_bar.png"/>
- </imageobject>
- </inlinemediaobject>)</para>
- </listitem>
-
- <listitem>
- <para><link linkend="inline_styling">Show text formatting bar</link>
- (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/formatting_bar_icon.png"/>
- </imageobject>
- </inlinemediaobject>)</para>
- </listitem>
-
- <listitem>
- <para>Show bundle's messages as EL expressions (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/show_bundles_mess_button.png"/>
- </imageobject>
- </inlinemediaobject>)</para>
- </listitem>
- </itemizedlist>
-
+ <itemizedlist>
+ <listitem>
+ <para><link linkend="vpe_preferences">Preferences</link> ( <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/icon_1.png"/>
+ </imageobject>
+ </inlinemediaobject> )</para>
+ </listitem>
+ <listitem>
+ <para><link linkend="vpe_refresh">Refresh</link> ( <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/icon_2.png"/>
+ </imageobject>
+ </inlinemediaobject> )</para>
+ </listitem>
+ <listitem>
+ <para><link linkend="vpe_page_design_options">Page Design Options</link> (
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/icon_3.png"/>
+ </imageobject>
+ </inlinemediaobject> ) </para>
+ </listitem>
+ <listitem>
+ <para><link linkend="splitting_buttons">the button to switch the current
+ Visual/Source layout</link> ( <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/source_top.png"/>
+ </imageobject>
+ </inlinemediaobject>)</para>
+ </listitem>
+ <listitem>
+ <para><link linkend="vpe_show_border">Show border for unknown tags</link> (
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/show_border_button.png"/>
+ </imageobject>
+ </inlinemediaobject>)</para>
+ </listitem>
+ <listitem>
+ <para><link linkend="vpe_show_nonvisual_tags">Show non-visual tags</link> (
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/show_nonvisual.png"/>
+ </imageobject>
+ </inlinemediaobject>)</para>
+ </listitem>
+ <listitem>
+ <para><link linkend="vpe_show_selection_bar">Show selection bar</link> (
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/show_selection_bar.png"/>
+ </imageobject>
+ </inlinemediaobject>)</para>
+ </listitem>
+ <listitem>
+ <para><link linkend="inline_styling">Show text formatting bar</link> (
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/formatting_bar_icon.png"/>
+ </imageobject>
+ </inlinemediaobject>)</para>
+ </listitem>
+ <listitem>
+ <para>Show bundle's messages as EL expressions ( <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/show_bundles_mess_button.png"
+ />
+ </imageobject>
+ </inlinemediaobject>)</para>
+ </listitem>
+ </itemizedlist>
<figure>
<title>Buttons on the VPE Toolbar</title>
<mediaobject>
@@ -1729,517 +1586,456 @@
</imageobject>
</mediaobject>
</figure>
-
- <section id="vpe_preferences">
- <title>Preferences</title>
-
- <para>The <emphasis>
- <property>Preferences</property>
- </emphasis> button
- (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/icon_1.png"/>
- </imageobject>
- </inlinemediaobject>
- )
- provides a quick access to the <property>Visual Page
- Editor</property> preferences.</para>
-
- <figure>
- <title>Visual Page Editor Preferences Window</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/visual_page_9.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>This page provides a number of options associated with the editor representation.
- The more detailed description on each one you can find in the <property>"JBoss Tools Preferences"</property> chapter
- under <link linkend="VisualPageEditor2">Visual Page Editor</link>.</para>
- </section>
-
- <section id="vpe_refresh">
- <title>Refresh</title>
-
- <para>Clicking on the <emphasis>
- <property>Refresh</property>
- </emphasis> button
- (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/icon_2.png"/>
- </imageobject>
- </inlinemediaobject>
- )
- refreshes the displayed information.</para>
- </section>
-
- <section id="vpe_page_design_options">
- <title>Page Design Options</title>
-
- <para>The <emphasis>
- <property>Page Design Options</property>
- </emphasis> button
- (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/icon_3.png"/>
- </imageobject>
- </inlinemediaobject>
- )
- leads to a window which helps you specify necessary
- references of the resources. It is represented by a window with 4 tabs. The
- first one, <emphasis>
- <property>Actual Run-Time folders</property>,
- </emphasis> is used to replace absolute and relative path values when
- generating a preview: </para>
- <figure>
- <title>Page Design Options: Actual Run-Time folders</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/visual_page_10.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
-
- <para>The second tab, <emphasis>
- <property>Included CSS files</property>
- </emphasis>, is used to add CSS files to be linked by Visual Page Editor
- when generating a preview:</para>
-
- <figure>
- <title>Page Design Options: Included CSS files</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/visual_page_10_2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The third one, <emphasis>
- <property>Included tag libs</property></emphasis>, can be used to add Taglibs that can be used by the editor for
- getting appropriate templates to generate a preview:</para>
-
- <figure>
- <title>Page Design Options: Included tag libs</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/visual_page_10_3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para id="el_exp_para">And finally, the <emphasis>
- <property>Substituted El expressions</property>
- </emphasis> tab is used to add El expressions that will be substituted by
- the editor when generating a preview:</para>
-
- <figure>
- <title>Page Design Options: Substituted El expressions</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/visual_page_10_4.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
-
- <para>The first two tabs of the window let you define actual runtime folders.
- The example below will help you understand how this can be done.</para>
-
- <para>Suppose you have the following project structure:</para>
-
- <programlisting role="XML"><![CDATA[WebContent/
+ <section id="vpe_preferences">
+ <title>Preferences</title>
+ <para>The <emphasis>
+ <property>Preferences</property>
+ </emphasis> button ( <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/icon_1.png"/>
+ </imageobject>
+ </inlinemediaobject> ) provides a quick access to the <property>Visual Page
+ Editor</property> preferences.</para>
+ <figure>
+ <title>Visual Page Editor Preferences Window</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_9.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>This page provides a number of options associated with the editor
+ representation. The more detailed description on each one you can find in the
+ <property>"JBoss Tools Preferences"</property> chapter under <link
+ linkend="VisualPageEditor2">Visual Page Editor</link>.</para>
+ </section>
+ <section id="vpe_refresh">
+ <title>Refresh</title>
+ <para>Clicking on the <emphasis>
+ <property>Refresh</property>
+ </emphasis> button ( <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/icon_2.png"/>
+ </imageobject>
+ </inlinemediaobject> ) refreshes the displayed information.</para>
+ </section>
+ <section id="vpe_page_design_options">
+ <title>Page Design Options</title>
+ <para>The <emphasis>
+ <property>Page Design Options</property>
+ </emphasis> button ( <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/icon_3.png"/>
+ </imageobject>
+ </inlinemediaobject> ) leads to a window which helps you specify necessary
+ references of the resources. It is represented by a window with 4 tabs. The
+ first one, <emphasis>
+ <property>Actual Run-Time folders</property>, </emphasis> is used to replace
+ absolute and relative path values when generating a preview: </para>
+ <figure>
+ <title>Page Design Options: Actual Run-Time folders</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_10.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The second tab, <emphasis>
+ <property>Included CSS files</property>
+ </emphasis>, is used to add CSS files to be linked by Visual Page Editor when
+ generating a preview:</para>
+ <figure>
+ <title>Page Design Options: Included CSS files</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_10_2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The third one, <emphasis>
+ <property>Included tag libs</property></emphasis>, can be used to add
+ Taglibs that can be used by the editor for getting appropriate templates to
+ generate a preview:</para>
+ <figure>
+ <title>Page Design Options: Included tag libs</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_10_3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para id="el_exp_para">And finally, the <emphasis>
+ <property>Substituted El expressions</property>
+ </emphasis> tab is used to add El expressions that will be substituted by the
+ editor when generating a preview:</para>
+ <figure>
+ <title>Page Design Options: Substituted El expressions</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_10_4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>The first two tabs of the window let you define actual runtime folders. The
+ example below will help you understand how this can be done.</para>
+ <para>Suppose you have the following project structure:</para>
+ <programlisting role="XML"><![CDATA[WebContent/
pages/
img/
a.gif
header.jsp
main.jsp
]]></programlisting>
-
- <para>The content of the <emphasis>
- <property>header.jsp</property>
- </emphasis> is:</para>
- <programlisting role="XML"><![CDATA[My Header
+ <para>The content of the <emphasis>
+ <property>header.jsp</property>
+ </emphasis> is:</para>
+ <programlisting role="XML"><![CDATA[My Header
<img src="img/a.gif"/>
]]></programlisting>
- <para>and <emphasis>
- <property>main.jsp</property>
- </emphasis> content is:</para>
- <programlisting role="XML"><![CDATA[<jsp:include page="pages/header.jsp" />
+ <para>and <emphasis>
+ <property>main.jsp</property>
+ </emphasis> content is:</para>
+ <programlisting role="XML"><![CDATA[<jsp:include page="pages/header.jsp" />
]]></programlisting>
- <para> When you open <emphasis>
- <property>main.jsp</property>
- </emphasis> in <property>Visual Page Editor</property>, it will not be able
- to resolve the image from the header, however, it will work fine in runtime.
- To fix this in design time, click the <emphasis>
- <property>Page Design Options</property>
- </emphasis> button and set <emphasis>
- <property>Actual Run-Time Relative Folder</property>
- </emphasis> to <emphasis>'projectName > WebContent >
- pages'</emphasis> and you will see the image appeared.</para>
- <para/>
-
- <para>Let' consider an example for other tabs. For instance, the
- definition of your CSS on the page is the next:</para>
-
- <programlisting role="XML"><![CDATA[<link rel="stylesheet" type="text/css"
+ <para> When you open <emphasis>
+ <property>main.jsp</property>
+ </emphasis> in <property>Visual Page Editor</property>, it will not be able to
+ resolve the image from the header, however, it will work fine in runtime. To fix
+ this in design time, click the <emphasis>
+ <property>Page Design Options</property>
+ </emphasis> button and set <emphasis>
+ <property>Actual Run-Time Relative Folder</property>
+ </emphasis> to <emphasis>'projectName > WebContent >
+ pages'</emphasis> and you will see the image appeared.</para>
+ <para/>
+ <para>Let' consider an example for other tabs. For instance, the definition of
+ your CSS on the page is the next:</para>
+ <programlisting role="XML"><![CDATA[<link rel="stylesheet" type="text/css"
href="#{facesContext.externalContext.requestContextPath}/style.css"/>
]]></programlisting>
-
- <para>This will work fine in runtime, but the <property>Visual Page
- Editor</property> doesn't know what
- <emphasis>requestContextPath</emphasis> in design time is. In order to
- see the necessary styles applied in design time your should add a path to
- your stylesheet in the <property>CSS File Path</property> section.</para>
-
- <para>The next <property>URI</property> section lets you add URI taglibs so that
- the editor knows where to find the tag libraries.</para>
-
- <para>And the last <property>Substituted EL expressions</property> section is
- provided to specify the values for specific EL variables. It can be useful
- for a preview generation.</para>
- <para>As an example look at the figure below:</para>
- <figure>
- <title>EL Expression</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/visual_page_12.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>Here bath in Source and Visual modes you see the EL expression
- <emphasis>#{user.name}</emphasis>. When you switch to <property>Preview
- view</property>, you'll also see this expression. Now press <emphasis>
- <property>Page Design Options</property>
- </emphasis> button and set the value for the
- <emphasis>"user.name"</emphasis> as
- <emphasis><property>World</property>.</emphasis></para>
-
- <figure>
- <title>Setting the Value for the EL Expression</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/visual_page_13.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>As a result in Visual mode and Preview view the word <emphasis>
- <property>World</property>
- </emphasis> is displayed.</para>
- <figure>
- <title>The EL Expression Value</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/visual_page_14.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="splitting_buttons">
- <title>Visual/Source Editors splitting buttons</title>
-
- <para>The <emphasis>
- <property>Visual/Source Editors splitting buttons</property></emphasis>
- provide the possibility to choose one of the four possible layouts for the Visual/Source Editor.
- </para>
-
-
- <para>The available layouts and corresponding buttons are as follows:
- <itemizedlist>
- <listitem><para>Vertical Source on top(<inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/source_top.png"/>
- </imageobject>
- </inlinemediaobject>)</para></listitem>
- <listitem><para>Vertical Visual on top ( <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/source_bottom.png"/>
- </imageobject>
- </inlinemediaobject>)</para></listitem>
- <listitem><para>Horizontal Source to the left ( <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/source_left.png"/>
- </imageobject>
- </inlinemediaobject>)</para></listitem>
- <listitem><para>Horizontal Visual to the left ( <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/source_right.png"/>
- </imageobject>
- </inlinemediaobject>)</para></listitem>
-
- </itemizedlist>
- <figure>
- <title>Visual Page Editor Before Layout Changing </title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/visual_page_24.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- Note, at the current view there is only <emphasis>
- <property> one</property></emphasis> button, that proposes the possibility to change it in order the Source and the View are moved <emphasis>
- <property>in a clockwise direction</property></emphasis>.
- <figure>
- <title>Visual Page Editor After Layout Changing </title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/visual_page_25.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </para>
- </section>
-
- <section id="vpe_show_border">
- <title>Show Border for Unknown Tags</title>
-
- <para>The option is a self explanatory, i. e. if you want unknown tags to be wrapped in a border in the VPE visual part, just press the
- <emphasis>
- <property>Show border for unknown tags</property></emphasis> button
- (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/show_border_button.png"/>
- </imageobject>
- </inlinemediaobject>) on the toolbar.</para>
- </section>
-
- <section id="vpe_show_nonvisual_tags">
- <title>Show Non-visual Tags</title>
-
- <para><property>Visual Page Editor</property> provides the option for displaying
- non-visual tags in Visual mode of the editor. To enable it select the <emphasis>
- <property>Show non-visual tags</property></emphasis> button (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/show_nonvisual.png"/>
- </imageobject>
- </inlinemediaobject>) on the VPE toolbar.</para>
-
- <para>On the figure you can see non-visual elements with gray dashed borders.</para>
-
- <figure>
- <title>Non-visual Tag in the VPE</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/visual_page_4b.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>You can also switch on this option in the VPE preferences, having clicked on the <emphasis><property>Preferences</property>
- </emphasis> button
- (<inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/icon_1.png"/>
- </imageobject>
- </inlinemediaobject>).</para>
- </section>
-
- <section id="vpe_show_selection_bar">
- <title>Show Selection Bar</title>
-
- <para>You can find useful one more functionality provided by VPE. At the bottom of the
- <property>Visual/Source view</property> there is a <property>Selection Tag
- Bar</property>. It's updated automatically allowing to see tags tree for a current component selected in
- Visual or Source mode, also it allows to select tags back and forward.</para>
-
- <figure>
- <title>Selection Tag Bar</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/visual_page_15.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>If you want to hide the <property>Selection Tag Bar</property>, use
- the <emphasis>
- <property>Show Selection Bar</property></emphasis> button (
- <inlinemediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/show_selection_bar.png"/>
- </imageobject>
- </inlinemediaobject>) on the VPE toolbar.</para>
- </section>
+ <para>This will work fine in runtime, but the <property>Visual Page
+ Editor</property> doesn't know what
+ <emphasis>requestContextPath</emphasis> in design time is. In order to see
+ the necessary styles applied in design time your should add a path to your
+ stylesheet in the <property>CSS File Path</property> section.</para>
+ <para>The next <property>URI</property> section lets you add URI taglibs so that the
+ editor knows where to find the tag libraries.</para>
+ <para>And the last <property>Substituted EL expressions</property> section is
+ provided to specify the values for specific EL variables. It can be useful for a
+ preview generation.</para>
+ <para>As an example look at the figure below:</para>
+ <figure>
+ <title>EL Expression</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_12.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Here bath in Source and Visual modes you see the EL expression
+ <emphasis>#{user.name}</emphasis>. When you switch to <property>Preview
+ view</property>, you'll also see this expression. Now press <emphasis>
+ <property>Page Design Options</property>
+ </emphasis> button and set the value for the
+ <emphasis>"user.name"</emphasis> as <emphasis><property
+ >World</property>.</emphasis></para>
+ <figure>
+ <title>Setting the Value for the EL Expression</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_13.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>As a result in Visual mode and Preview view the word <emphasis>
+ <property>World</property>
+ </emphasis> is displayed.</para>
+ <figure>
+ <title>The EL Expression Value</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_14.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="splitting_buttons">
+ <title>Visual/Source Editors splitting buttons</title>
+ <para>The <emphasis>
+ <property>Visual/Source Editors splitting buttons</property></emphasis>
+ provide the possibility to choose one of the four possible layouts for the
+ Visual/Source Editor. </para>
+ <para>The available layouts and corresponding buttons are as follows: <itemizedlist>
+ <listitem>
+ <para>Vertical Source on top(<inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/source_top.png"/>
+ </imageobject>
+ </inlinemediaobject>)</para>
+ </listitem>
+ <listitem>
+ <para>Vertical Visual on top ( <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/source_bottom.png"/>
+ </imageobject>
+ </inlinemediaobject>)</para>
+ </listitem>
+ <listitem>
+ <para>Horizontal Source to the left ( <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/source_left.png"/>
+ </imageobject>
+ </inlinemediaobject>)</para>
+ </listitem>
+ <listitem>
+ <para>Horizontal Visual to the left ( <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/source_right.png"/>
+ </imageobject>
+ </inlinemediaobject>)</para>
+ </listitem>
+ </itemizedlist><figure>
+ <title>Visual Page Editor Before Layout Changing </title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_24.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure> Note, at the current view there is only <emphasis>
+ <property> one</property></emphasis> button, that proposes the possibility
+ to change it in order the Source and the View are moved <emphasis>
+ <property>in a clockwise direction</property></emphasis>. <figure>
+ <title>Visual Page Editor After Layout Changing </title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_25.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure></para>
+ </section>
+ <section id="vpe_show_border">
+ <title>Show Border for Unknown Tags</title>
+ <para>The option is a self explanatory, i. e. if you want unknown tags to be wrapped
+ in a border in the VPE visual part, just press the <emphasis>
+ <property>Show border for unknown tags</property></emphasis> button (
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/show_border_button.png"/>
+ </imageobject>
+ </inlinemediaobject>) on the toolbar.</para>
+ </section>
+ <section id="vpe_show_nonvisual_tags">
+ <title>Show Non-visual Tags</title>
+ <para><property>Visual Page Editor</property> provides the option for displaying
+ non-visual tags in Visual mode of the editor. To enable it select the <emphasis>
+ <property>Show non-visual tags</property></emphasis> button (
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/show_nonvisual.png"/>
+ </imageobject>
+ </inlinemediaobject>) on the VPE toolbar.</para>
+ <para>On the figure you can see non-visual elements with gray dashed borders.</para>
+ <figure>
+ <title>Non-visual Tag in the VPE</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_4b.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>You can also switch on this option in the VPE preferences, having clicked on
+ the <emphasis><property>Preferences</property>
+ </emphasis> button (<inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/icon_1.png"/>
+ </imageobject>
+ </inlinemediaobject>).</para>
+ </section>
+ <section id="vpe_show_selection_bar">
+ <title>Show Selection Bar</title>
+ <para>You can find useful one more functionality provided by VPE. At the bottom of
+ the <property>Visual/Source view</property> there is a <property>Selection Tag
+ Bar</property>. It's updated automatically allowing to see tags tree for a
+ current component selected in Visual or Source mode, also it allows to select
+ tags back and forward.</para>
+ <figure>
+ <title>Selection Tag Bar</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_15.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>If you want to hide the <property>Selection Tag Bar</property>, use the
+ <emphasis>
+ <property>Show Selection Bar</property></emphasis> button (
+ <inlinemediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/show_selection_bar.png"/>
+ </imageobject>
+ </inlinemediaobject>) on the VPE toolbar.</para>
+ </section>
</section>
-
- <section id="page_preview">
- <title>Page Preview</title>
-
- <para><property>VPE</property> comes with design-time preview feature which is available
- for:</para>
-
- <itemizedlist>
- <listitem>
- <para>Struts Pages</para>
- </listitem>
- <listitem>
- <para>JSF Pages</para>
- </listitem>
- <listitem>
+ <section id="page_preview">
+ <title>Page Preview</title>
+ <para><property>VPE</property> comes with design-time preview feature which is available
+ for:</para>
+ <itemizedlist>
+ <listitem>
+ <para>Struts Pages</para>
+ </listitem>
+ <listitem>
+ <para>JSF Pages</para>
+ </listitem>
+ <listitem>
<para>Seam Pages</para>
</listitem>
</itemizedlist>
-
- <para><property>Preview view</property> is read-only, it shows how the page will look
- like in a browser.</para>
- <figure>
- <title>Preview View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/visual_page_16.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <!--para>You can even
+ <para><property>Preview view</property> is read-only, it shows how the page will look
+ like in a browser.</para>
+ <figure>
+ <title>Preview View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_16.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <!--para>You can even
attach your stylesheet to the preview.</para-->
- </section>
-
- <section id="custom_facelets_support">
- <title>Support for Custom Facelets Components</title>
-
- <para><property>Visual Page Editor</property> (starting from 3.0.0.M3 version of <property>JBoss Tools</property>) supports
- custom Facelets tag libraries both declared in the <literal>web.xml</literal> file
- (for details, see
- <ulink url="http://www.ibm.com/developerworks/java/library/j-facelets/#N10294">Creating a component</ulink>) and packed into the JAR file.</para>
-
- <tip>
- <title>Tip:</title>
- <para>In case of Facelets tag library packed in <literal>.jar</literal>, remember to put <literal>*.taglib.xml</literal> in right place:
- <literal>[filename].jar/META-INF/*.taglib.xml</literal></para>
- </tip>
-
- <para><property>Visual Page Editor</property> recognizes the tags from the custom Facelets tag library and correctly
- renders them both in source and visual view of the editor.</para>
-
- <figure>
- <title>Custom Facelets Tags in the VPE</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/customFacelets1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>While editing an XHTML file that uses a custom Facelets components
- you can always make use of the following editor's features:</para>
-
- <itemizedlist>
- <listitem>
- <para><link linkend="contentAssistForCustomFacelets">Content Assist for Custom Facelets Components</link></para>
- </listitem>
- <listitem>
- <para><link linkend="openOnForCustomFacelets">OpenOn for Custom Facelets Components</link></para>
- </listitem>
- </itemizedlist>
-
- <section id="contentAssistForCustomFacelets">
- <title>Content Assist for Custom Facelets Components</title>
- <para>Call the content assist as usual by using <emphasis><property>Ctrl+Space</property></emphasis>
- when typing a tag. As proposals you should see custom Facelets tags defined in your Facelets tag library.</para>
-
- <figure>
- <title>Content Assist for Custom Facelets Tags</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/customFacelets2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- <section id="openOnForCustomFacelets">
- <title>OpenOn for Custom Facelets Components</title>
-
- <para>While developing using Facelets you can make use of:</para>
- <itemizedlist>
- <listitem><para><link linkend="openOnInXHTML">OpenOn in XHTML Files That Use Custom Facelets Components</link></para></listitem>
- <listitem><para><link linkend="openOnInCustomFaceletsTaglibs">OpenOn in Custom Facelets Tag File (<literal>*.taglib.xml</literal>)</link></para></listitem>
- </itemizedlist>
-
- <section id="openOnInXHTML">
- <title>OpenOn in XHTML Files That Use Custom Facelets Components</title>
- <para>OpenOn functionality in XHTML files is available in two views of the <property>Visual Page Editor</property>:</para>
-
- <orderedlist>
- <listitem>
- <para>Source view</para>
-
- <para><emphasis><property>Ctrl+Click</property></emphasis> on the namespace will open the Facelets tag file
- in a separate window.</para>
-
- <figure>
- <title>Opening a Custom Facelets Tag File</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/customFacelets3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para><emphasis><property>Ctrl+Click</property></emphasis> on any custom Facelets tag declared on the page will do the same.
- The selected tag will be highlighted in the opened file.</para>
-
- <figure>
- <title>Opening a Custom Facelets Tag File</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/customFacelets4.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </listitem>
-
- <listitem>
- <para>Visual view</para>
-
- <para>In the visual view of the <property>VPE</property>, double-click a custom component and the Facelets tag file
- (<literal>*.taglib.xml</literal>) where it is declared will be opened.</para>
- </listitem>
- </orderedlist>
- </section>
-
- <section id="openOnInCustomFaceletsTaglibs">
- <title>OpenOn in Custom Facelets Tag File (<literal>*.taglib.xml</literal>)</title>
-
- <para><emphasis><property>Ctrl+Click</property></emphasis> on the path to source of the Facelets tag will
- open the component in its own editor.</para>
- <figure>
- <title>Opening a Custom Facelets Component</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/visual_page/customFacelets5.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
-
- </section>
- </section>
-
- <section id="SetupnotesforLinu895x">
-
+ </section>
+ <section id="custom_facelets_support">
+ <title>Support for Custom Facelets Components</title>
+ <para><property>Visual Page Editor</property> (starting from 3.0.0.M3 version of
+ <property>JBoss Tools</property>) supports custom Facelets tag libraries both
+ declared in the <literal>web.xml</literal> file (for details, see <ulink
+ url="http://www.ibm.com/developerworks/java/library/j-facelets/#N10294">Creating
+ a component</ulink>) and packed into the JAR file.</para>
+ <tip>
+ <title>Tip:</title>
+ <para>In case of Facelets tag library packed in <literal>.jar</literal>, remember to
+ put <literal>*.taglib.xml</literal> in right place: <literal
+ >[filename].jar/META-INF/*.taglib.xml</literal></para>
+ </tip>
+ <para><property>Visual Page Editor</property> recognizes the tags from the custom
+ Facelets tag library and correctly renders them both in source and visual view of
+ the editor.</para>
+ <figure>
+ <title>Custom Facelets Tags in the VPE</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/customFacelets1.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>While editing an XHTML file that uses a custom Facelets components you can always
+ make use of the following editor's features:</para>
+ <itemizedlist>
+ <listitem>
+ <para><link linkend="contentAssistForCustomFacelets">Content Assist for Custom
+ Facelets Components</link></para>
+ </listitem>
+ <listitem>
+ <para><link linkend="openOnForCustomFacelets">OpenOn for Custom Facelets
+ Components</link></para>
+ </listitem>
+ </itemizedlist>
+ <section id="contentAssistForCustomFacelets">
+ <title>Content Assist for Custom Facelets Components</title>
+ <para>Call the content assist as usual by using <emphasis><property
+ >Ctrl+Space</property></emphasis> when typing a tag. As proposals you
+ should see custom Facelets tags defined in your Facelets tag library.</para>
+ <figure>
+ <title>Content Assist for Custom Facelets Tags</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/customFacelets2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="openOnForCustomFacelets">
+ <title>OpenOn for Custom Facelets Components</title>
+ <para>While developing using Facelets you can make use of:</para>
+ <itemizedlist>
+ <listitem>
+ <para><link linkend="openOnInXHTML">OpenOn in XHTML Files That Use Custom
+ Facelets Components</link></para>
+ </listitem>
+ <listitem>
+ <para><link linkend="openOnInCustomFaceletsTaglibs">OpenOn in Custom
+ Facelets Tag File (<literal>*.taglib.xml</literal>)</link></para>
+ </listitem>
+ </itemizedlist>
+ <section id="openOnInXHTML">
+ <title>OpenOn in XHTML Files That Use Custom Facelets Components</title>
+ <para>OpenOn functionality in XHTML files is available in two views of the
+ <property>Visual Page Editor</property>:</para>
+ <orderedlist>
+ <listitem>
+ <para>Source view</para>
+ <para><emphasis><property>Ctrl+Click</property></emphasis> on the
+ namespace will open the Facelets tag file in a separate
+ window.</para>
+ <figure>
+ <title>Opening a Custom Facelets Tag File</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/customFacelets3.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para><emphasis><property>Ctrl+Click</property></emphasis> on any custom
+ Facelets tag declared on the page will do the same. The selected tag
+ will be highlighted in the opened file.</para>
+ <figure>
+ <title>Opening a Custom Facelets Tag File</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/customFacelets4.png"
+ />
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </listitem>
+ <listitem>
+ <para>Visual view</para>
+ <para>In the visual view of the <property>VPE</property>, double-click a
+ custom component and the Facelets tag file (<literal
+ >*.taglib.xml</literal>) where it is declared will be
+ opened.</para>
+ </listitem>
+ </orderedlist>
+ </section>
+ <section id="openOnInCustomFaceletsTaglibs">
+ <title>OpenOn in Custom Facelets Tag File (<literal
+ >*.taglib.xml</literal>)</title>
+ <para><emphasis><property>Ctrl+Click</property></emphasis> on the path to source
+ of the Facelets tag will open the component in its own editor.</para>
+ <figure>
+ <title>Opening a Custom Facelets Component</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/customFacelets5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ </section>
+ </section>
+ <section id="SetupnotesforLinu895x">
<title>Setup notes for Linux</title>
-
- <para>Linux users who are going to use earlier then JBoss Tools 3.1.0.M4 versions may need to do the following to get the <property>Visual Page
- Editor</property> to work correctly on their machines.</para>
-
-
+ <para>Linux users who are going to use earlier then JBoss Tools 3.1.0.M4 versions may
+ need to do the following to get the <property>Visual Page Editor</property> to work
+ correctly on their machines.</para>
<para> The Visual Page Editor requires the library libstdc++.so.5. This library is
- contained in the compat-libstdc++-33.i386 package.</para>
-
- <note><title>Note</title>
- <para> Starting from JBoss Tools 3.1.0.M4 the libstdc++.so.5 library isn't required.</para> </note>
-
+ contained in the compat-libstdc++-33.i386 package.</para>
+ <note>
+ <title>Note</title>
+ <para> Starting from JBoss Tools 3.1.0.M4 the libstdc++.so.5 library isn't
+ required.</para>
+ </note>
<itemizedlist>
<listitem>
<para>To install this package on Fedora Core or Red Hat Enterprise Linux run the
@@ -2247,47 +2043,45 @@
<programlisting role="JAVA"><![CDATA[yum install compat-libstdc++-33.i386
]]></programlisting>
</listitem>
-
-
<listitem>
<para>On any other rpm based distributions download libstdc++.so.5 and run the
following command:</para>
<programlisting role="JAVA"><![CDATA[rpm -Uvh compat-libstdc++-33.i386
]]></programlisting>
</listitem>
-
-
<listitem>
<para>On Debian based distributives run the following command: </para>
<programlisting role="JAVA"><![CDATA[apt-get install compat-libstdc++-33.i386
]]></programlisting>
</listitem>
-
</itemizedlist>
-
<para> In case you have the library installed and you still have issue with starting the
visual page editor then close all browser views/editors and leave one visual page
editor open and restart eclipse. This should force a load of the right XULRunner
viewer.</para>
- <para> If it doesn't help and you use Fedora Core Linux and Eclipse Version: 3.4.1,the issue can be produced because libswt-xulrunner-gtk-3449.so file doesn't present
- in eclipse-swt-3.4.1-5.fc10.x86_64.rpm/eclipse/plugins/org.eclipse.swt.gtk.linux.x86_64_3.4.1.v3449c.jar.To add this file to eclipse you should:
- </para>
+ <para> If it doesn't help and you use Fedora Core Linux and Eclipse Version: 3.4.1,the
+ issue can be produced because libswt-xulrunner-gtk-3449.so file doesn't present in
+ eclipse-swt-3.4.1-5.fc10.x86_64.rpm/eclipse/plugins/org.eclipse.swt.gtk.linux.x86_64_3.4.1.v3449c.jar.To
+ add this file to eclipse you should: </para>
<itemizedlist>
<listitem>
- <para>Decompress eclipse/plugins/org.eclipse.swt.gtk.linux.x86_3.4.1.v3449c.jar form eclipse-SDK-3.4.1-linux-gtk-x86_64.tar.gz</para>
- </listitem>
+ <para>Decompress eclipse/plugins/org.eclipse.swt.gtk.linux.x86_3.4.1.v3449c.jar
+ form eclipse-SDK-3.4.1-linux-gtk-x86_64.tar.gz</para>
+ </listitem>
<listitem>
- <para>Copy <property>libswt-xulrunner-gtk-3449.so</property> file to your Fedora Eclipse location.</para>
- </listitem>
-
+ <para>Copy <property>libswt-xulrunner-gtk-3449.so</property> file to your Fedora
+ Eclipse location.</para>
+ </listitem>
<listitem>
- <para>Open the file eclipse.ini,which can be found in your Fedora Eclipse location and add the following line: </para>
+ <para>Open the file eclipse.ini,which can be found in your Fedora Eclipse
+ location and add the following line: </para>
<programlisting role="JAVA"><![CDATA[-Dswt.library.path=/usr/lib/eclipse
-]]></programlisting><para>,where <code>/usr/lib/eclipse</code> is the path to your eclipse folder.</para>
- </listitem>
+]]></programlisting>
+ <para>,where <code>/usr/lib/eclipse</code> is the path to your eclipse
+ folder.</para>
+ </listitem>
</itemizedlist>
</section>
-
<!-- <section id="CreateLookAndFeel(Design-timeMetadate)ForAnyCustomJSFComponents41">
<?dbhtml filename="CreateLookAndFeel(Design-timeMetadate)ForAnyCustomJSFComponents.html"?>
<title>JSP Visual Page Editor - Design Time Look and Feel for Custom Components</title>
@@ -2327,22 +2121,15 @@
<title>JSP 2.0, JSTL 1.0/1.1 support</title>
</section>
-->
-
</section>
-
<section id="more_editors">
-
<title>More Editors</title>
-
<para>Besides Visual Page Editor JBDS is supplied with a huge range of various editors for
different file types: properties, TLD, web.xml, tiles, and so on.</para>
<section id="GraphicalPropertiesEditor">
-
<title>Graphical Properties Editor</title>
-
<para><property>The Properties editor</property> allows you to work in two different
modes and also supports unicode characters.</para>
-
<para>To create a new properties file, in the Package Explorer view, select <emphasis>
<property>New > Properties File</property>
</emphasis> from the right-click context menu on the folder where you want to create
@@ -2355,10 +2142,7 @@
</imageobject>
</mediaobject>
</figure>
-
- <para>You can edit the file using a table-oriented "Properties"
- viewer:</para>
-
+ <para>You can edit the file using a table-oriented "Properties" viewer:</para>
<figure>
<title>"Properties" Viewer</title>
<mediaobject>
@@ -2367,7 +2151,6 @@
</imageobject>
</mediaobject>
</figure>
-
<para>You can also use a Source viewer for editing the file:</para>
<figure>
<title>Source Viewer</title>
@@ -2378,14 +2161,10 @@
</mediaobject>
</figure>
</section>
-
<section id="GraphicalTLDEditor">
-
<title>Graphical TLD Editor</title>
-
<para><property>The TLD editor</property> comes with same features you will find in all
other JBoss Developer Studio editors:</para>
-
<itemizedlist>
<listitem>
<para>Graphical and source edit modes</para>
@@ -2395,9 +2174,7 @@
</listitem>
</itemizedlist>
<section id="TreeView2">
-
<title>Tree view</title>
-
<figure>
<title>Tree View</title>
<mediaobject>
@@ -2408,12 +2185,9 @@
</figure>
</section>
<section id="SourceView1">
-
<title>Source view</title>
-
<para>You can easily switch from Tree to Source by selecting the Source tab at the
bottom of the editor.</para>
-
<figure>
<title>Source View</title>
<mediaobject>
@@ -2422,9 +2196,7 @@
</imageobject>
</mediaobject>
</figure>
-
<para>You can easily add a <property>new tag</property>:</para>
-
<figure>
<title>Adding a New TLD Tag</title>
<mediaobject>
@@ -2433,7 +2205,6 @@
</imageobject>
</mediaobject>
</figure>
-
<para>You can also easily add a <property>new attribute</property> to an existing
tag:</para>
<figure>
@@ -2446,7 +2217,6 @@
</figure>
<para>Content assist is available when editing the file using the Source
viewer:</para>
-
<figure>
<title>TLD Content Assist</title>
<mediaobject>
@@ -2455,11 +2225,9 @@
</imageobject>
</mediaobject>
</figure>
-
<para>In the Source viewer, if at any point a tag is incorrect or incomplete, an
error will be indicated next to the line and also in the Problems view
below.</para>
-
<figure>
<title>Error Reporting</title>
<mediaobject>
@@ -2470,19 +2238,15 @@
</figure>
</section>
</section>
-
-
<section id="GraphicalWebApplicationFileEditor">
-
<title>Graphical Web Application File (web.xml) Editor</title>
-
- <para>The deployment descriptor <emphasis>
- <property>web.xml</property></emphasis> file is intended for describing the servlets, container-managed
- security constraints and various deployment properties specific for your Web Application.</para>
-
- <para>To edit the deployment descriptor <property>JBoss Developer Studio</property> provides its own
- <property>web.xml editor</property> that comes with the same features you will find in all other <property>JBDS</property> editors:</para>
-
+ <para>The deployment descriptor <emphasis>
+ <property>web.xml</property></emphasis> file is intended for describing the
+ servlets, container-managed security constraints and various deployment properties
+ specific for your Web Application.</para>
+ <para>To edit the deployment descriptor <property>JBoss Developer Studio</property>
+ provides its own <property>web.xml editor</property> that comes with the same
+ features you will find in all other <property>JBDS</property> editors:</para>
<itemizedlist>
<listitem>
<para>Graphical and source edit modes</para>
@@ -2493,12 +2257,12 @@
</itemizedlist>
<section id="TreeView1">
<title>Tree View</title>
-
- <para>Switch to the <property>Tree view</property> if you want to edit <emphasis>
- <property>web.xml</property></emphasis> in a graphical mode.
- All elements that <emphasis>
- <property>web.xml</property></emphasis> could include are located in the left area of the editor in a tree format.
- Click a node on the left to display and edit its properties that will appear in the right-hand area.</para>
+ <para>Switch to the <property>Tree view</property> if you want to edit <emphasis>
+ <property>web.xml</property></emphasis> in a graphical mode. All elements
+ that <emphasis>
+ <property>web.xml</property></emphasis> could include are located in the
+ left area of the editor in a tree format. Click a node on the left to display
+ and edit its properties that will appear in the right-hand area.</para>
<figure>
<title>Tree View for editing web.xml in a graphical mode</title>
<mediaobject>
@@ -2507,10 +2271,8 @@
</imageobject>
</mediaobject>
</figure>
-
<para>You can add any new elements right in the <property>Tree
viewer</property>:</para>
-
<figure>
<title>Adding New Elements in Web XML Editor</title>
<mediaobject>
@@ -2521,12 +2283,9 @@
</figure>
</section>
<section id="SourceView2">
-
<title>Source View</title>
-
<para>Switch to the <property>Source viewer </property>to edit the web.xml file by
hand at any time:</para>
-
<figure>
<title>Web XML Source View</title>
<mediaobject>
@@ -2537,13 +2296,10 @@
</figure>
</section>
<section id="ContentAssist">
-
<title>Content Assist</title>
-
<para>Content assist is available in the Source viewer. Simply click <emphasis>
<property>CTRL-Space</property>
</emphasis> anywhere in the file.</para>
-
<figure>
<title>Web XML Content Assist</title>
<mediaobject>
@@ -2555,13 +2311,10 @@
</figure>
</section>
<section id="ErrorCheckingAndValidation">
-
<title>Errors Checking and Validation</title>
-
<para>If errors occur anywhere in the file, small red dots will appear next to the
lines where the errors occurred. Also, note that the file is marked by a small x
in the Package Explorer view.</para>
-
<figure>
<title>Errors Reporting</title>
<mediaobject>
@@ -2572,14 +2325,10 @@
</figure>
</section>
</section>
-
<section id="CSSEditor">
-
<title>CSS Editor</title>
-
<para>The <property>CSS editor</property> comes with the same features you will find in
all other JBoss Developer Studio editors.</para>
-
<itemizedlist>
<listitem>
<para>Content assist</para>
@@ -2588,10 +2337,8 @@
<para>Validation and error checking</para>
</listitem>
</itemizedlist>
-
<para>With the CSS (Cascading Style Sheet) editor, you can take advantage of code
prompting:</para>
-
<figure>
<title>CSS Editor</title>
<mediaobject>
@@ -2600,7 +2347,6 @@
</imageobject>
</mediaobject>
</figure>
-
<!-- <para>You can also use the Outline view next to the editor to navigate through the CSS
file:</para>
@@ -2613,10 +2359,8 @@
</mediaobject>
</figure>
-->
-
<para>And you can also use the Properties view next to the editor to edit existing
stylesheet declaration properties:</para>
-
<figure>
<title>Properties View in CSS Editor</title>
<mediaobject>
@@ -2625,17 +2369,14 @@
</imageobject>
</mediaobject>
</figure>
-
- <para>To make you work on CSS files more comfortable, CSS perspective is available, read more about it in <link linkend ="css_perspective">CSS Editing Perspective chapter</link></para>
+ <para>To make you work on CSS files more comfortable, CSS perspective is available, read
+ more about it in <link linkend="css_perspective">CSS Editing Perspective
+ chapter</link></para>
</section>
<section id="JavaScriptEditor">
-
-
<title>JavaScript Editor</title>
-
<para>The <property>JavaScript editor</property> includes a Preview viewer and a Source
viewer. In the Source viewer, you can use code assist:</para>
-
<figure>
<title>JavaScript Editor</title>
<mediaobject>
@@ -2644,10 +2385,8 @@
</imageobject>
</mediaobject>
</figure>
-
<para>You can also use the Source viewer with the Outline view to navigate around the
file:</para>
-
<figure>
<title>Source Viewer in JavaScript Editor </title>
<mediaobject>
@@ -2656,7 +2395,6 @@
</imageobject>
</mediaobject>
</figure>
-
</section>
<!-- <section id="ImageViewer">
@@ -2675,21 +2413,17 @@
</section> -->
<section id="XSDEditor">
-
<title>XSD Editor</title>
-
<para>JBoss Developer Studio comes with an <property>XSD Editor</property> for XML
Schema files. This editor comes from the Web Tools Project (WTP) (see <ulink
url="http://www.eclipse.org/webtools/testtutorials/gettingstarted/GettingStart..."
>WTP Getting Started</ulink>).</para>
-
<para>To create a new XSD file, right-click a folder in the Package Explorer view,
select <emphasis>
<property>New > Other...</property>
</emphasis> from the context menu and then select <emphasis>
<property>XML > XML Schema</property>
</emphasis> in the dialog box.</para>
-
<figure>
<title>Creating New XSD file</title>
<mediaobject>
@@ -2698,10 +2432,8 @@
</imageobject>
</mediaobject>
</figure>
-
<para>The XSD Editor includes two viewers for working on the file, a Design viewer and a
Source viewer:</para>
-
<figure>
<title>Source Viewer in XSD Editor</title>
<mediaobject>
@@ -2710,10 +2442,8 @@
</imageobject>
</mediaobject>
</figure>
-
<para>In the Design viewer, you can drill down on an element by double-clicking on
it:</para>
-
<figure>
<title>Design Viewer in XSD Editor</title>
<mediaobject>
@@ -2722,10 +2452,8 @@
</imageobject>
</mediaobject>
</figure>
-
<para>Various edit options are available when you right-click an element in the
diagram:</para>
-
<figure>
<title>Edit Options in XSD Editor Context Menu.</title>
<mediaobject>
@@ -2734,9 +2462,7 @@
</imageobject>
</mediaobject>
</figure>
-
<para>You can also use the Properties view to edit a selected element:</para>
-
<figure>
<title>Properties View in XSD Editor</title>
<mediaobject>
@@ -2745,25 +2471,21 @@
</imageobject>
</mediaobject>
</figure>
-
<para>You can also use a Source viewer for the file. In this viewer, along with direct
editing of the source code, you can also edit the file by using the Properties view
on the right:</para>
-
<figure>
- <title>Using Source Viewer and Properties View together for source code editing</title>
+ <title>Using Source Viewer and Properties View together for source code
+ editing</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/more_editors/more_editors_52.png" scale="85"/>
</imageobject>
</mediaobject>
</figure>
-
</section>
<section id="SupportforXMLSchema">
-
<title>Support for XML Schema</title>
-
<para>JBoss Developer Studio fully supports XML files based on schemas as well as
DTDs:</para>
<figure>
@@ -2774,8 +2496,6 @@
</imageobject>
</mediaobject>
</figure>
-
</section>
</section>
-
</chapter>
14 years, 3 months
JBoss Tools SVN: r20845 - trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-03-16 12:06:57 -0400 (Tue, 16 Mar 2010)
New Revision: 20845
Modified:
trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta
Log:
https://jira.jboss.org/jira/browse/JBIDE-6059
Modified: trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta 2010-03-16 16:05:11 UTC (rev 20844)
+++ trunk/esb/plugins/org.jboss.tools.esb.core/resources/meta/esb-actions.meta 2010-03-16 16:06:57 UTC (rev 20845)
@@ -198,7 +198,7 @@
<Editor name="ListString"/>
</XModelAttribute>
<XModelAttribute PROPERTIES="pre=true;category=general"
- name="process definition name" xmlname="processdefinition"/>
+ name="process definition name" xmlname="process-definition-name"/>
<XModelAttribute PROPERTIES="pre=true;category=general"
name="process definition id" xmlname="process-definition-id"/>
<XModelAttribute PROPERTIES="pre=true;category=general" name="actor" xmlname="actor"/>
14 years, 3 months