JBoss Tools SVN: r13920 - branches/jbosstools-3.0.x/hibernatetools/plugins/org.hibernate.eclipse/lib/tools.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2009-03-02 13:03:26 -0500 (Mon, 02 Mar 2009)
New Revision: 13920
Modified:
branches/jbosstools-3.0.x/hibernatetools/plugins/org.hibernate.eclipse/lib/tools/hibernate-tools.jar
Log:
updated hibernate-tools.jar to 3.2.4.GA (merge frorm trunk)
Modified: branches/jbosstools-3.0.x/hibernatetools/plugins/org.hibernate.eclipse/lib/tools/hibernate-tools.jar
===================================================================
(Binary files differ)
15 years, 2 months
JBoss Tools SVN: r13919 - trunk/hibernatetools/plugins/org.hibernate.eclipse/lib/tools.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2009-03-02 13:02:17 -0500 (Mon, 02 Mar 2009)
New Revision: 13919
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse/lib/tools/hibernate-tools.jar
Log:
updated hibernate-tools.jar to 3.2.4.GA
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse/lib/tools/hibernate-tools.jar
===================================================================
(Binary files differ)
15 years, 2 months
JBoss Tools SVN: r13918 - trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-03-02 12:43:39 -0500 (Mon, 02 Mar 2009)
New Revision: 13918
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3869
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java 2009-03-02 17:43:08 UTC (rev 13917)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java 2009-03-02 17:43:39 UTC (rev 13918)
@@ -192,6 +192,7 @@
*/
public void saveChanges() {
dialog.saveChanges(true);
+ dialog.close();
}
/**
15 years, 2 months
JBoss Tools SVN: r13917 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-03-02 12:43:08 -0500 (Mon, 02 Mar 2009)
New Revision: 13917
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3869
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-03-02 17:12:05 UTC (rev 13916)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-03-02 17:43:08 UTC (rev 13917)
@@ -497,6 +497,7 @@
classCombo.add(currentClassStyle);
// end select it
classCombo.select(classCombo.getItemCount() - 1);
+ cssModel.setCSS(currentClassStyle, styleAttributes);
}
// /**
// * This method is invoked to correctly process class style combo modify event.
15 years, 2 months
JBoss Tools SVN: r13916 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/messages.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-03-02 12:12:05 -0500 (Mon, 02 Mar 2009)
New Revision: 13916
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/messages/messages.properties
Log:
Error message was adjusted
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/messages/messages.properties
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/messages/messages.properties 2009-03-02 16:41:27 UTC (rev 13915)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/messages/messages.properties 2009-03-02 17:12:05 UTC (rev 13916)
@@ -26,7 +26,7 @@
BUTTON_CLEAR=Clear
BUTTON_ADD_NEW_STYLE_CLASS=Add CSS Class
ENTER_CSS_CLASS_NAME=Enter New CSS Class Name
-CSS_CLASS_NAME_NOT_VALID=CSS Class Name not valid
+CSS_CLASS_NAME_NOT_VALID=CSS Class Name is not valid
IMAGE_COMBO_TABLE_TOOL_TIP=Double click to select color
15 years, 2 months
JBoss Tools SVN: r13915 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-03-02 11:41:27 -0500 (Mon, 02 Mar 2009)
New Revision: 13915
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3869
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-03-02 15:45:31 UTC (rev 13914)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-03-02 16:41:27 UTC (rev 13915)
@@ -493,7 +493,8 @@
styleComposite.updatePreview(currentClassStyle);
updateOKButtonState();
// add new class to end of list
- classCombo.add(currentClassStyle);
+ if (classCombo.indexOf(currentClassStyle) == -1)
+ classCombo.add(currentClassStyle);
// end select it
classCombo.select(classCombo.getItemCount() - 1);
}
@@ -618,12 +619,12 @@
currentClassStyle = classCombo.getText().trim();
// if new css was added
- if (classCombo.indexOf(currentClassStyle) == -1) {
- classCombo.add(currentClassStyle);
+// if (classCombo.indexOf(currentClassStyle) == -1) {
+// classCombo.add(currentClassStyle);
// styleChanged = true;
- } /*else {
- styleChanged = false;
- }*/
+// } else {
+// styleChanged = false;
+// }
applyButton.setEnabled(true);
styleChanged = true;
15 years, 2 months
JBoss Tools SVN: r13914 - in trunk/jst/plugins: org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-03-02 10:45:31 -0500 (Mon, 02 Mar 2009)
New Revision: 13914
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3869
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-03-02 15:43:43 UTC (rev 13913)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2009-03-02 15:45:31 UTC (rev 13914)
@@ -164,7 +164,7 @@
if (currentFile == null) {
currentFile = Util.getActiveCssFile();
}
- currentClassStyle = Util.getActivePageCSSSelectorIfAny();
+// currentClassStyle = Util.getActivePageCSSSelectorIfAny();
}
/**
@@ -484,7 +484,7 @@
* Add New Class to CSS Class Dialog
* @param styleClassName - name of new style class
*/
- protected void addNewStyleClass(String styleClassName) {
+ public void addNewStyleClass(String styleClassName) {
applyButton.setEnabled(true);
styleChanged = true;
currentClassStyle = styleClassName;
@@ -649,8 +649,9 @@
if (file != null) {
// create CSS Model
cssModel = new CSSModel(file);
+ currentClassStyle = null;
+ classCombo.removeAll();
classCombo.setEnabled(true);
- classCombo.removeAll();
// set file path to corresponding text field
if (useRelativePathPath) {
text.setText(file.getProjectRelativePath().toOSString());
@@ -665,19 +666,19 @@
// fill in ComboBox component with CSS model selectors
// List<Selector> selectors = cssModel.getSelectors();
List<String> selectors = cssModel.getSelectorLabels();
- int selectedIndex = -1;
for (int i = 0; i < selectors.size(); i++) {
// Selector value = selectors.get(i);
String label = selectors.get(i);
classCombo.add(/*value.getValue()*/ label);
- if (currentClassStyle != null && currentClassStyle.equals(/*value.getValue()*/label)) {
- selectedIndex = i;
- }
+
}
- if (currentClassStyle != null && selectedIndex == -1) {
+ /*
+ *
+ */
+ if (currentClassStyle != null) {
classCombo.setText(currentClassStyle);
} else {
- classCombo.select(selectedIndex);
+ classCombo.select(0);
}
classCombo.setToolTipText(cssModel.getCSSText(currentClassStyle));
@@ -790,8 +791,10 @@
public void releaseResources() {
- if (cssModel != null)
+ if (cssModel != null){
cssModel.releaseModel();
+ cssModel = null;
+ }
}
/**
@@ -920,4 +923,13 @@
}
}
}
+
+ public void reinit(){
+ releaseResources();
+ initCSSModel(currentFile, true,true);
+ }
+
+ public void setCurrentFile(IFile currentFile) {
+ this.currentFile = currentFile;
+ }
}
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java 2009-03-02 15:43:43 UTC (rev 13913)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java 2009-03-02 15:45:31 UTC (rev 13914)
@@ -10,10 +10,14 @@
******************************************************************************/
package org.jboss.tools.jst.web.ui.wizards.css;
+import org.eclipse.core.resources.IFile;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.jface.dialogs.IDialogPage;
+import org.eclipse.jface.dialogs.IPageChangedListener;
+import org.eclipse.jface.dialogs.PageChangedEvent;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.jface.wizard.WizardDialog;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridLayout;
@@ -24,13 +28,14 @@
import org.jboss.tools.jst.jsp.outline.cssdialog.CSSClassDialog;
import org.jboss.tools.jst.jsp.outline.cssdialog.events.MessageDialogEvent;
import org.jboss.tools.jst.jsp.outline.cssdialog.events.MessageDialogListener;
+import org.jboss.tools.jst.web.ui.wizards.messages.WebUIMessages;
/**
* New CSS class wizard.
*/
public class NewCSSClassWizard extends Wizard implements INewWizard {
- private static final String WIZARD_WINDOW_TITLE = "CSS Style Class Editor";
+ private CSSClassDescription classDescription = new CSSClassDescription();
// workbench selection when the wizard was started
protected IStructuredSelection selection;
@@ -38,18 +43,20 @@
protected IWorkbench workbench;
// wizard contains only one page
- private NewCSSClassWizardPage page;
+ private NewCSSClassWizardPage editFilePage;
- /**
- * Constructor for SampleNewWizard.
- */
- public NewCSSClassWizard() {
- super();
- setWindowTitle(WIZARD_WINDOW_TITLE);
-
- }
+ private WizardNewCssClassPage selectFilePage;
/**
+ * Constructor for SampleNewWizard.
+ */
+ public NewCSSClassWizard() {
+ super();
+ setWindowTitle(WebUIMessages.WIZARD_WINDOW_TITLE);
+ }
+
+
+ /**
* @see IWorkbenchWizard#init(IWorkbench, IStructuredSelection)
*/
public void init(IWorkbench workbench, IStructuredSelection selection) {
@@ -57,138 +64,174 @@
this.selection = selection;
}
- /**
- * Adding the page to the wizard.
- */
- @Override
+ /**
+ * Adding the page to the wizard.
+ */
+ @Override
public void addPages() {
- page = new NewCSSClassWizardPage();
- addPage(page);
- }
- /**
- * This method is called when 'Finish' button is pressed in the wizard. We
- * will create an operation and run it using wizard as execution context.
- */
- @Override
+ selectFilePage = new WizardNewCssClassPage(classDescription);
+ editFilePage = new NewCSSClassWizardPage();
+ addPage(selectFilePage);
+ addPage(editFilePage);
+ }
+
+ /**
+ * This method is called when 'Finish' button is pressed in the wizard. We
+ * will create an operation and run it using wizard as execution context.
+ */
+ @Override
public boolean performFinish() {
- page.saveChanges();
+ editFilePage.saveChanges();
- return true;
- }
+ return true;
+ }
- /**
- * @see org.eclipse.jface.wizard.IWizard#canFinish()
- */
- @Override
+ /**
+ * @see org.eclipse.jface.wizard.IWizard#canFinish()
+ */
+ @Override
public boolean canFinish() {
- return page.canFinish;
+ return selectFilePage.canFlipToNextPage()
+ && getContainer().getCurrentPage() == editFilePage
+ && editFilePage.canFinish;
}
- /**
- * @see org.eclipse.jface.wizard.IWizard#performCancel()
- */
- @Override
- public boolean performCancel() {
- page.cancel();
- return true;
- }
+ /**
+ * @see org.eclipse.jface.wizard.IWizard#performCancel()
+ */
+ @Override
+ public boolean performCancel() {
+ editFilePage.cancel();
+ return true;
+ }
+
+ public class CSSClassDescription{
+ private IFile cssFile;
+ private String cssClassName;
+ public IFile getCssFile() {
+ return cssFile;
+ }
+ public void setCssFile(IFile cssFile) {
+ this.cssFile = cssFile;
+ }
+ public String getCssClassName() {
+ return cssClassName;
+ }
+ public void setCssClassName(String cssClassName) {
+ this.cssClassName = cssClassName;
+ }
+ }
- /**
- * Class representing the first page of the wizard.
- */
- private class NewCSSClassWizardPage extends WizardPage {
+ /**
+ * Class representing the first page of the wizard.
+ */
+ private class NewCSSClassWizardPage extends WizardPage {
- // TODO: take out to the property manager file
- final static String WIZARD_TITLE = "CSS Class";
- final static String WIZARD_DESCRIPTION = "Create New CSS Class";
+ private CSSClassDialog dialog;
- private CSSClassDialog dialog;
+ boolean canFinish = false;
- boolean canFinish = false;
+ /**
+ * Constructor for SampleNewWizardPage.
+ *
+ * @param pageName
+ */
+ public NewCSSClassWizardPage() {
+ super("newCSSClassWizard");
+ setTitle(WebUIMessages.WIZARD_TITLE);
+ setDescription(WebUIMessages.WIZARD_DESCRIPTION);
+
+ }
- /**
- * Constructor for SampleNewWizardPage.
- *
- * @param pageName
- */
- public NewCSSClassWizardPage() {
- super("newCSSClassWizard");
- setTitle(WIZARD_TITLE);
- setDescription(WIZARD_DESCRIPTION);
- }
+ /**
+ * @see IDialogPage#createControl(Composite)
+ */
+ public void createControl(Composite parent) {
+ Composite container = new Composite(parent, SWT.NONE);
+ GridLayout layout = new GridLayout();
+ container.setLayout(layout);
- /**
- * @see IDialogPage#createControl(Composite)
- */
- public void createControl(Composite parent) {
- Composite container = new Composite(parent, SWT.NONE);
- GridLayout layout = new GridLayout();
- container.setLayout(layout);
-
- // Initialize CSS dialog that is integrated to CSS wizard.
- // Also it can be used separately without integration to wizard component.
- dialog = new CSSClassDialog(getShell(), selection, true);
- dialog.addMessageDialogListener(new MessageDialogListener() {
+ // Initialize CSS dialog that is integrated to CSS wizard.
+ // Also it can be used separately without integration to wizard
+ // component.
+ dialog = new CSSClassDialog(getShell(), selection, true);
+ dialog.addMessageDialogListener(new MessageDialogListener() {
public void throwMessage(MessageDialogEvent event) {
if (event != null) {
IStatus status = event.getOperationStatus();
if (status != null) {
applyToStatusLine(status);
}
- getWizard().getContainer().updateButtons();
+ getWizard().getContainer().updateButtons();
}
}
- });
- dialog.createDialog(container);
- setControl(container);
+ });
- }
+ dialog.createDialog(container);
+ setControl(container);
+
+ if (getWizard().getContainer() instanceof WizardDialog){
+ WizardDialog wd = (WizardDialog) getWizard().getContainer();
+ wd.addPageChangedListener(new IPageChangedListener(){
- /**
- * Save page model.
- */
- public void saveChanges() {
- dialog.saveChanges(true);
- }
+ //set console configuration as treeViewer input
+ public void pageChanged(PageChangedEvent event) {
+ if (event.getSelectedPage() == NewCSSClassWizardPage.this){
+ dialog.setCurrentFile(classDescription.getCssFile());
+ dialog.reinit();
+ dialog.addNewStyleClass(classDescription.cssClassName);
+ }
+ }});
+ }
- /**
- * Handle cancel operation correctly.
- */
- public void cancel() {
- dialog.closeDialog();
- }
+ }
- /**
- * Applies the status to the status line of a dialog page.
- */
- private void applyToStatusLine(IStatus status) {
- String message= status.getMessage();
- if (message.length() == 0) {
- message = null;
- }
- switch (status.getSeverity()) {
- case IStatus.OK:
- setErrorMessage(null);
- setMessage(message);
- canFinish = true;
- break;
- case IStatus.WARNING:
- setErrorMessage(null);
- canFinish = true;
- setMessage(message, WizardPage.WARNING);
- break;
- case IStatus.INFO:
- setErrorMessage(null);
- canFinish = true;
- setMessage(message, WizardPage.INFORMATION);
- break;
- default:
- setErrorMessage(message);
- setMessage(null);
- canFinish = false;
- break;
- }
- }
- }
+ /**
+ * Save page model.
+ */
+ public void saveChanges() {
+ dialog.saveChanges(true);
+ }
+
+ /**
+ * Handle cancel operation correctly.
+ */
+ public void cancel() {
+ dialog.closeDialog();
+ }
+
+ /**
+ * Applies the status to the status line of a dialog page.
+ */
+ private void applyToStatusLine(IStatus status) {
+ String message = status.getMessage();
+ if (message.length() == 0) {
+ message = null;
+ }
+ switch (status.getSeverity()) {
+ case IStatus.OK:
+ setErrorMessage(null);
+ setMessage(message);
+ canFinish = true;
+ break;
+ case IStatus.WARNING:
+ setErrorMessage(null);
+ canFinish = true;
+ setMessage(message, WizardPage.WARNING);
+ break;
+ case IStatus.INFO:
+ setErrorMessage(null);
+ canFinish = true;
+ setMessage(message, WizardPage.INFORMATION);
+ break;
+ default:
+ setErrorMessage(message);
+ setMessage(null);
+ canFinish = false;
+ break;
+ }
+ }
+ }
+
}
Added: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/WizardNewCssClassPage.java 2009-03-02 15:45:31 UTC (rev 13914)
@@ -0,0 +1,159 @@
+/*******************************************************************************
+ * 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.jst.web.ui.wizards.css;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.jface.window.Window;
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
+import org.eclipse.swt.events.SelectionAdapter;
+import org.eclipse.swt.events.SelectionEvent;
+import org.eclipse.swt.layout.GridData;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Text;
+import org.eclipse.ui.dialogs.ElementTreeSelectionDialog;
+import org.eclipse.ui.model.BaseWorkbenchContentProvider;
+import org.eclipse.ui.model.WorkbenchLabelProvider;
+import org.jboss.tools.jst.jsp.outline.cssdialog.common.FileExtensionFilter;
+import org.jboss.tools.jst.web.ui.wizards.css.NewCSSClassWizard.CSSClassDescription;
+import org.jboss.tools.jst.web.ui.wizards.messages.WebUIMessages;
+import org.w3c.dom.css.CSSFontFaceRule;
+
+/**
+ * @author Sergey Dzmitrovich
+ *
+ */
+public class WizardNewCssClassPage extends WizardPage implements ModifyListener {
+
+ private final static String REQUIRED_FIELD_SIGN = "*"; //$NON-NLS-1$
+ private final static String CSS_FILE_EXTENSION = "css"; //$NON-NLS-1$
+ private CSSClassDescription classDescription;
+ private final static String[] fileExtensions = { CSS_FILE_EXTENSION };
+ private IFile currentFile;
+ private int numColumns = 3;
+ private Text selectFileText;
+ private Text classNameText;
+
+ /**
+ * @param pageName
+ */
+ public WizardNewCssClassPage(CSSClassDescription classDescription) {
+ super("WizardNewCssClassPage"); //$NON-NLS-1$
+ this.classDescription = classDescription;
+ setTitle(WebUIMessages.WIZARD_TITLE);
+ setDescription(WebUIMessages.WIZARD_DESCRIPTION);
+
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets
+ * .Composite)
+ */
+ public void createControl(Composite parent) {
+ Composite container = new Composite(parent, SWT.NONE);
+ GridLayout layout = new GridLayout();
+ layout.numColumns = numColumns;
+ layout.makeColumnsEqualWidth = false;
+ container.setLayout(layout);
+
+ Label selectFileLabel = new Label(container, SWT.NONE);
+ selectFileLabel.setText(WebUIMessages.FILE_SELECT_LABEL
+ + REQUIRED_FIELD_SIGN);
+
+ selectFileText = new Text(container, SWT.SINGLE | SWT.BORDER);
+ selectFileText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ selectFileText.setFont(parent.getFont());
+ selectFileText.addModifyListener(this);
+
+ Button selectFileButton = new Button(container, SWT.NONE);
+ selectFileButton.setText(WebUIMessages.FILE_SELECT_BUTTON);
+ selectFileButton.addSelectionListener(new SelectionAdapter() {
+
+ @Override
+ public void widgetSelected(SelectionEvent e) {
+ ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(
+ getShell(), new WorkbenchLabelProvider(),
+ new BaseWorkbenchContentProvider());
+ dialog.addFilter(new FileExtensionFilter(fileExtensions));
+ dialog.setTitle(WebUIMessages.FILE_SELECT_DIALOG_TITLE);
+ dialog.setMessage(WebUIMessages.FILE_SELECT_DIALOG_MESSAGE);
+ dialog.setInput(ResourcesPlugin.getWorkspace().getRoot());
+ dialog.setAllowMultiple(false);
+ dialog.setDoubleClickSelects(true);
+ if (currentFile != null) {
+ dialog.setInitialSelection(currentFile);
+ }
+ dialog
+ .setEmptyListMessage(WebUIMessages.FILE_SELECT_DIALOG_EMPTY_MESSAGE);
+
+ if (dialog.open() == Window.OK) {
+ currentFile = (IFile) dialog.getFirstResult();
+ selectFileText
+ .setText(currentFile.getFullPath().toString());
+ }
+
+ }
+ });
+
+ Label classNameLabel = new Label(container, SWT.NONE);
+ classNameLabel.setText(WebUIMessages.CSS_CLASS_NAME_LABEL
+ + REQUIRED_FIELD_SIGN);
+
+ classNameText = new Text(container, SWT.SINGLE | SWT.BORDER);
+ classNameText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
+ classNameText.setFont(parent.getFont());
+ classNameText.addModifyListener(this);
+
+ setControl(container);
+ }
+
+ @Override
+ public boolean canFlipToNextPage() {
+ if ((classNameText.getText().length() != 0)
+ && (getCssFile(selectFileText.getText()) != null)) {
+ return true;
+ }
+ return false;
+ }
+
+ public void modifyText(ModifyEvent e) {
+
+ classDescription.setCssClassName(classNameText.getText());
+ classDescription.setCssFile(getCssFile(selectFileText.getText()));
+ getContainer().updateButtons();
+
+ }
+
+ private IFile getCssFile(String path) {
+ if (path != null) {
+ IResource cssFile = ResourcesPlugin.getWorkspace().getRoot()
+ .findMember(path);
+ if ((cssFile != null)
+ && (CSS_FILE_EXTENSION.equals(cssFile.getFileExtension()))) {
+ return (IFile) cssFile;
+ }
+ }
+ return null;
+ }
+
+}
Added: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/WebUIMessages.java 2009-03-02 15:45:31 UTC (rev 13914)
@@ -0,0 +1,23 @@
+package org.jboss.tools.jst.web.ui.wizards.messages;
+
+import org.eclipse.osgi.util.NLS;
+
+public class WebUIMessages extends NLS {
+ private static final String BUNDLE_NAME = "org.jboss.tools.jst.web.ui.wizards.messages.messages"; //$NON-NLS-1$
+ public static String FILE_SELECT_DIALOG_EMPTY_MESSAGE;
+ public static String FILE_SELECT_DIALOG_MESSAGE;
+ public static String FILE_SELECT_DIALOG_TITLE;
+ public static String FILE_SELECT_LABEL;
+ public static String FILE_SELECT_BUTTON;
+ public static String CSS_CLASS_NAME_LABEL;
+ public static String WIZARD_WINDOW_TITLE;
+ public static String WIZARD_TITLE;
+ public static String WIZARD_DESCRIPTION;
+ static {
+ // initialize resource bundle
+ NLS.initializeMessages(BUNDLE_NAME, WebUIMessages.class);
+ }
+
+ private WebUIMessages() {
+ }
+}
Added: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/messages/messages.properties 2009-03-02 15:45:31 UTC (rev 13914)
@@ -0,0 +1,10 @@
+FILE_SELECT_DIALOG_EMPTY_MESSAGE=No CSS file in the current project
+FILE_SELECT_DIALOG_MESSAGE=Select CSS file from the tree:
+FILE_SELECT_DIALOG_TITLE=CSS File Selection
+FILE_SELECT_LABEL=CSS File
+FILE_SELECT_BUTTON=Browse
+CSS_CLASS_NAME_LABEL=CSS Class
+WIZARD_WINDOW_TITLE=CSS Style Class Editor
+WIZARD_TITLE=CSS Class
+WIZARD_DESCRIPTION=Create New CSS Class
+
15 years, 2 months
JBoss Tools SVN: r13913 - trunk/hibernatetools/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: msorokin
Date: 2009-03-02 10:43:43 -0500 (Mon, 02 Mar 2009)
New Revision: 13913
Modified:
trunk/hibernatetools/docs/reference/en/modules/plugins.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-2679
The infor about console conf. automatic creation in jpa project is added
Modified: trunk/hibernatetools/docs/reference/en/modules/plugins.xml
===================================================================
--- trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2009-03-02 15:37:01 UTC (rev 13912)
+++ trunk/hibernatetools/docs/reference/en/modules/plugins.xml 2009-03-02 15:43:43 UTC (rev 13913)
@@ -38,7 +38,7 @@
</emphasis>, Hibernate Tools provide a basic wizard which you can bring up by navigating <emphasis>
<property>New > Hibernate XML mapping file</property>.</emphasis></para>
- <figure>
+ <figure>p
<title>Hibernate XML Mapping File Wizard</title>
<mediaobject>
@@ -1944,8 +1944,9 @@
<note>
<title>Note:</title>
- <para>Please note, currently the wizards require that you have a <link linkend="console_conf"
- >Hibernate Console Configuration</link> already configured.</para>
+ <para>Please note, if you choose Hibernate as a platform and leave the Target Runtime
+ with <none>, the wizard does not require you to have a <link linkend="console_conf"
+ >Hibernate Console Configuration</link>. A Hibernate Console Configuration is created when the wizard finishes its work.</para>
</note>
</section>
</chapter>
15 years, 2 months
JBoss Tools SVN: r13912 - in trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe: editor/template and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2009-03-02 10:37:01 -0500 (Mon, 02 Mar 2009)
New Revision: 13912
Added:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Message.java
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeEditAnyDialog.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/VpeUIMessages.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/messages.properties
Log:
RESOLVED - issue JBIDE-2521: Allow to select html tag wich should be used to render unknown tag in VPE Template dialog
https://jira.jboss.org/jira/browse/JBIDE-2521
- Validation of VPE Template dialog has been added.
Added: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Message.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Message.java (rev 0)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/Message.java 2009-03-02 15:37:01 UTC (rev 13912)
@@ -0,0 +1,35 @@
+/*******************************************************************************
+ * Copyright (c) 2009 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.editor;
+
+import org.eclipse.jface.dialogs.IMessageProvider;
+
+/**
+ * Simple implementation of {@link IMessageProvider}.
+ *
+ * @author yradtsevich
+ *
+ */
+public class Message implements IMessageProvider {
+ private String message;
+ private int messageType;
+
+ public Message(String text, int type) {
+ this.message = text;
+ this.messageType = type;
+ }
+ public String getMessage() {
+ return message;
+ }
+ public int getMessageType() {
+ return messageType;
+ }
+}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeEditAnyDialog.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeEditAnyDialog.java 2009-03-02 14:51:35 UTC (rev 13911)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeEditAnyDialog.java 2009-03-02 15:37:01 UTC (rev 13912)
@@ -10,12 +10,18 @@
******************************************************************************/
package org.jboss.tools.vpe.editor.template;
+import javax.xml.parsers.DocumentBuilderFactory;
+import javax.xml.parsers.ParserConfigurationException;
+import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.jface.dialogs.IMessageProvider;
import org.eclipse.jface.dialogs.TitleAreaDialog;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.window.Window;
import org.eclipse.swt.SWT;
import org.eclipse.swt.events.DisposeEvent;
import org.eclipse.swt.events.DisposeListener;
+import org.eclipse.swt.events.ModifyEvent;
+import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.graphics.Image;
@@ -30,7 +36,13 @@
import org.jboss.tools.jst.jsp.JspEditorPlugin;
import org.jboss.tools.jst.jsp.outline.cssdialog.CSSStyleDialog;
import org.jboss.tools.jst.jsp.outline.cssdialog.common.Constants;
+import org.jboss.tools.vpe.VpePlugin;
+import org.jboss.tools.vpe.editor.template.expression.VpeExpressionBuilder;
+import org.jboss.tools.vpe.editor.Message;
+import org.jboss.tools.vpe.editor.template.expression.VpeExpressionBuilderException;
import org.jboss.tools.vpe.messages.VpeUIMessages;
+import org.w3c.dom.DOMException;
+import org.w3c.dom.Document;
/**
* Class which presents dialog for any template
@@ -41,9 +53,10 @@
private VpeAnyData data;
private CheckControl ctlChildren;
- private Text txtTagForDisplay;
+ private Text txtTagForDisplay;
private Text txtValue;
private Text txtStyle;
+ private VpeEditAnyDialogValidator templateVerifier;
public VpeEditAnyDialog(Shell shell, VpeAnyData data) {
super(shell);
@@ -52,10 +65,12 @@
@Override
protected Control createDialogArea(Composite parent) {
+ templateVerifier = new VpeEditAnyDialogValidator();
getShell().setText(VpeUIMessages.TEMPLATE);
setTitle(VpeUIMessages.TAG_ATTRIBUTES);
- setMessage((data.getUri() != null ? ("URI: " + data.getUri() + "\n") : "") + VpeUIMessages.TAG_NAME + data.getName()); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ setMessage(getDefaultMessage());
+
Composite topComposite = (Composite)super.createDialogArea(parent);
((GridData)topComposite.getLayoutData()).widthHint = 300;
@@ -80,6 +95,7 @@
gd.horizontalSpan=2;
txtTagForDisplay.setLayoutData(gd);
txtTagForDisplay.setText(data.getTagForDisplay() != null ? data.getTagForDisplay() : ""); //$NON-NLS-1$
+ txtTagForDisplay.addModifyListener(templateVerifier);
// txtTagForDisplay.select(tagNameItemIndex);
@@ -95,6 +111,7 @@
gd.horizontalSpan = 2;
txtValue.setLayoutData(gd);
txtValue.setText(data.getValue() != null ? data.getValue() : ""); //$NON-NLS-1$
+ txtValue.addModifyListener(templateVerifier);
//style control
Label lbStyle = makeLabel(composite, VpeUIMessages.STYLE);
@@ -132,7 +149,20 @@
return composite;
}
+
+
+ @Override
+ public void create() {
+ super.create();
+ templateVerifier.validateAll(false);
+ }
+
+ private IMessageProvider getDefaultMessage() {
+ final String message = (data.getUri() != null ? ("URI: " + data.getUri() + "\n") : "") + VpeUIMessages.TAG_NAME + data.getName(); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
+ return new Message(message, IMessageProvider.NONE);
+ }
+
private Label makeLabel(Composite parent, String text) {
Label lbl = new Label(parent, SWT.NONE);
lbl.setText(text);
@@ -174,6 +204,20 @@
return data.isChanged() || (oldValue != newValue);
}
+ /**
+ * Sets the message for this dialog with an indication of what type of
+ * message it is.
+ * <p>
+ * @param message the message, or <code>null</code> to clear the message
+ */
+ public void setMessage(IMessageProvider message) {
+ if (message == null) {
+ setMessage(null, IMessageProvider.NONE);
+ } else {
+ setMessage(message.getMessage(), message.getMessageType());
+ }
+ }
+
private class CheckControl {
private Label label;
private Button button;
@@ -198,4 +242,97 @@
return button.getSelection();
}
}
+
+ /**
+ * Validator of {@link VpeEditAnyDialog}.
+ *
+ * @author yradtsevich
+ */
+ private class VpeEditAnyDialogValidator implements ModifyListener {
+ /**
+ * Used to validate tag-names.
+ */
+ private Document xmlDocument = null;
+ public VpeEditAnyDialogValidator() {
+ try {
+ xmlDocument = DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();
+ } catch (ParserConfigurationException e) {
+ VpePlugin.getPluginLog().logError(e);
+ }
+ }
+
+ /**
+ * Validates {@link VpeEditAnyDialog#txtTagForDisplay} field.
+ *
+ * @return {@code null} if it is valid or an instance of {@code IMessageProvider} if
+ * it contains any error.
+ */
+ private IMessageProvider validateTagForDisplay() {
+ if (xmlDocument != null) {
+ try {
+ xmlDocument.createElement(txtTagForDisplay.getText());
+ } catch (DOMException e) {
+ return new Message(VpeUIMessages.TAG_FOR_DISPLAY + VpeUIMessages.ERROR_MESSAGE_POSTFIX + " (" + //$NON-NLS-1$
+ e.getMessage() + ")." , IMessageProvider.ERROR); //$NON-NLS-1$
+ }
+ }
+
+ return null;
+ }
+
+ /**
+ * Validates {@link VpeEditAnyDialog#txtValue} field.
+ *
+ * @return {@code null} if it is valid or an instance of {@code IMessageProvider} if
+ * it contains any error.
+ */
+ private IMessageProvider validateValue() {
+
+ try {
+ VpeExpressionBuilder.buildCompletedExpression(txtValue.getText(), true);
+ } catch (VpeExpressionBuilderException e) {
+ return new Message(VpeUIMessages.VALUE + VpeUIMessages.ERROR_MESSAGE_POSTFIX + " (" + //$NON-NLS-1$
+ e.getMessage() + ")." , IMessageProvider.ERROR); //$NON-NLS-1$
+ }
+
+ return null;
+ }
+
+ /**
+ * Validates all fields of {@link VpeEditAnyDialog} and changes the view of
+ * dialog according to validation results.
+ *
+ * @param updateMessage if it is {@code true}, the dialog's message will be updated.
+ */
+ void validateAll(boolean updateMessage) {
+ IMessageProvider message = VpeEditAnyDialog.this.getDefaultMessage();
+
+ IMessageProvider tagForDisplayMessage = validateTagForDisplay();
+ IMessageProvider valueMessage = validateValue();
+
+ if (tagForDisplayMessage != null) {
+ message = tagForDisplayMessage;
+ } else if (valueMessage != null) {
+ message = valueMessage;
+ }
+
+ Button okButton = getButton(IDialogConstants.OK_ID);
+ if (message.getMessageType() <= IMessageProvider.INFORMATION) {
+ okButton.setEnabled(true);
+ } else {
+ okButton.setEnabled(false);
+ }
+
+ if (updateMessage) {
+ VpeEditAnyDialog.this.setMessage(message);
+ }
+ }
+
+ /**
+ * Fired when a field is modified.
+ */
+ public void modifyText(ModifyEvent e) {
+ validateAll(true);
+ }
+ }
}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/VpeUIMessages.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/VpeUIMessages.java 2009-03-02 14:51:35 UTC (rev 13911)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/VpeUIMessages.java 2009-03-02 15:37:01 UTC (rev 13912)
@@ -81,6 +81,7 @@
public static String SHOW;
public static String HIDE;
public static String TAG_FOR_DISPLAY;
+ public static String ERROR_MESSAGE_POSTFIX;
public static String TemplatesPreferencePage_Edit;
public static String TemplatesPreferencePage_Remove;
public static String TemplatesTableProvider_Children;
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/messages.properties
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/messages.properties 2009-03-02 14:51:35 UTC (rev 13911)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/messages/messages.properties 2009-03-02 15:37:01 UTC (rev 13912)
@@ -59,6 +59,7 @@
SHOW=Show
HIDE=Hide
TAG_FOR_DISPLAY=Tag for Display
+ERROR_MESSAGE_POSTFIX=\ is not valid
TemplatesPreferencePage_Edit=Edit
TemplatesPreferencePage_Remove=Remove
TemplatesTableProvider_Children=Children
15 years, 2 months
JBoss Tools SVN: r13911 - in trunk/birt/docs/en: modules and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2009-03-02 09:51:35 -0500 (Mon, 02 Mar 2009)
New Revision: 13911
Modified:
trunk/birt/docs/en/master.xml
trunk/birt/docs/en/modules/birt_integration.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-388
chapter is included in the build
chapter is restructured
Modified: trunk/birt/docs/en/master.xml
===================================================================
--- trunk/birt/docs/en/master.xml 2009-03-02 13:11:38 UTC (rev 13910)
+++ trunk/birt/docs/en/master.xml 2009-03-02 14:51:35 UTC (rev 13911)
@@ -6,6 +6,7 @@
<!ENTITY introduction SYSTEM "modules/introduction.xml">
<!ENTITY birt_support SYSTEM "modules/birt_support.xml">
<!ENTITY birt_designer SYSTEM "modules/birt_designer.xml">
+<!ENTITY birt_integration SYSTEM "modules/birt_integration.xml">
@@ -43,6 +44,7 @@
&introduction;
&birt_support;
&birt_designer;
+ &birt_integration;
</book>
\ No newline at end of file
Modified: trunk/birt/docs/en/modules/birt_integration.xml
===================================================================
--- trunk/birt/docs/en/modules/birt_integration.xml 2009-03-02 13:11:38 UTC (rev 13910)
+++ trunk/birt/docs/en/modules/birt_integration.xml 2009-03-02 14:51:35 UTC (rev 13911)
@@ -1,19 +1,23 @@
<?xml version='1.0' encoding='UTF-8'?>
-<chapter id="Birt_Seam_Web_Project" xreflabel="Birt_Seam_Web_Project">
+<chapter id="Birt_Integration" xreflabel="Birt_Integration">
- <?dbhtml filename="birtSeamWebProject.html"?>
+ <?dbhtml filename="birtSeamWebProject.html"?>
<chapterinfo>
<keywordset>
<keyword>JBoss</keyword>
<keyword>BIRT</keyword>
<keyword>Seam</keyword>
- </keywordset>
+ </keywordset>
</chapterinfo>
+ <title>Birt Integration</title>
+ <para>This chapter covers the steps required for BIRT Integration</para>
+
+ <section id="Birt_Seam_Web_Project" xreflabel="Birt_Seam_Web_Project">
<title> Adding JBoss BIRT functionality to the standard Seam web project</title>
-
- <para>In this chapter you'll find out how to create a web project including Seam and BIRT capabilities </para>
+ <para>In this section you'll find out how to create a web project including Seam and BIRT capabilities </para>
+
<section id="prerequisites" xreflabel="prerequisites">
<title>Prerequisites</title>
@@ -76,12 +80,12 @@
</para>
</listitem>
</orderedlist>
-
+
</section>
<section id="creating_web_project" xreflabel="creating_web_project">
<title>Creating a web project</title>
-
+
<para>Follow the next steps to create a web project</para>
<orderedlist>
<listitem>
@@ -94,7 +98,7 @@
<para>Add the "Birt Reporting Runtime Component" facet </para>
</listitem>
</orderedlist>
-
+
<figure>
<title>Adding "Birt Reporting Runtime Component" Facet </title>
<mediaobject>
@@ -103,14 +107,14 @@
</imageobject>
</mediaobject>
</figure>
-
+
<orderedlist>
<listitem>
<para>Or choose the "JBoss BIRT Integration Web Project"
configuration</para>
</listitem>
</orderedlist>
-
+
<figure>
<title>Choosing "JBoss BIRT Integration Web Project "
Configuration</title>
@@ -120,7 +124,7 @@
</imageobject>
</mediaobject>
</figure>
-
+
<orderedlist>
<listitem>
<para>Create the birttests.xhtml, testbirt.xhtml and testbirt1.xhtml pages as
@@ -130,7 +134,7 @@
<para>
<emphasis role="bold">birttests.xhtml:</emphasis>
</para>
-
+
<programlisting role="XHTML"><![CDATA[
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -153,10 +157,10 @@
</ui:composition>
]]></programlisting>
-
+
<para>
<emphasis role="bold">testbirt.xhtml:</emphasis>
- </para>
+ </para>
<programlisting role="XHTML"><![CDATA[
<p:birt xmlns:ui="http://java.sun.com/jsf/facelets"
@@ -174,7 +178,7 @@
<para>
<emphasis role="bold">testbirt1.xhtml:</emphasis>
</para>
-
+
<programlisting role="XHTML"><![CDATA[
<p:birt xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:s="http://jboss.com/products/seam/taglib"
@@ -227,7 +231,7 @@
</imageobject>
</mediaobject>
</figure>
-
+
<para>The birt tag recognizes most of the parameters described on <ulink url="http://www.eclipse.org/birt/phoenix/deploy/viewerUsage2.2.php#parameters">the BIRT Report Viewer Parameters page</ulink>. The attributes of the birt tag don't contain the "__" prefix. The param tag describes report parameters. It supports the following attributes: </para>
<orderedlist>
<listitem>
@@ -246,10 +250,11 @@
<para>These tags are defined in the org.jboss.birt.core/resources/jboss-seam-birt.jar library that contains source. </para>
<para>It is possible to embed a BIRT report in some Seam xhtml page. For instance: </para>
<para/>
-
- <para>
+
+ <para>
<emphasis role="bold">Example:</emphasis>
</para>
+ <programlisting role="XHTML"><![CDATA[
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
@@ -312,19 +317,18 @@
</ui:composition>
- <programlisting role="XHTML"><![CDATA[
]]></programlisting>
-<figure>
- <title>Embeding BIRT Report in Seam xhtml Page. First Page</title>
+ <figure>
+ <title>Embeding BIRT Report in Seam xhtml Page. First Page</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/BirtSeamProject/BirtReportInSeamPage1.png"/>
</imageobject>
</mediaobject>
</figure>
-
- <figure>
+
+ <figure>
<title>Embeding BIRT Report in Seam xhtml Page. Second Page</title>
<mediaobject>
<imageobject>
@@ -332,26 +336,28 @@
</imageobject>
</mediaobject>
</figure>
-
-
-</section>
-
-<section>
-<title>Hibernate ODA Data Source</title>
-
-<para>The JBoss BIRT Integration feature includes the Hibernate ODA Data Source completely integrated with Hibernate Tools. You can use it in the way you use any of BIRT ODA drivers. For instance, </para>
- <orderedlist>
- <listitem>
- <para>run the Seam Generate Entities action</para>
- </listitem>
- </orderedlist>
- <para>This action will create a Hibernate Console configuration. </para>
- <orderedlist>
- <listitem>
- <para>create a new BIRT report</para>
- </listitem>
- </orderedlist>
+
+
+ </section>
+ </section>
+
+ <section>
+ <title>Hibernate ODA Data Source</title>
+
+ <para>The JBoss BIRT Integration feature includes the Hibernate ODA Data Source completely integrated with Hibernate Tools. You can use it in the way you use any of BIRT ODA drivers. For instance, </para>
+ <orderedlist>
+ <listitem>
+ <para>run the Seam Generate Entities action</para>
+ </listitem>
+ </orderedlist>
+ <para>This action will create a Hibernate Console configuration. </para>
+ <orderedlist>
+ <listitem>
+ <para>create a new BIRT report</para>
+ </listitem>
+ </orderedlist>
+
<figure>
<title>Adding "Birt Reporting Runtime Component" Facet </title>
<mediaobject>
@@ -361,13 +367,13 @@
</mediaobject>
</figure>
- <orderedlist>
- <listitem>
- <para>add the Hibernate ODA datasource</para>
- </listitem>
- </orderedlist>
-
- <figure>
+ <orderedlist>
+ <listitem>
+ <para>add the Hibernate ODA datasource</para>
+ </listitem>
+ </orderedlist>
+
+ <figure>
<title>Adding "Birt Reporting Runtime Component" Facet </title>
<mediaobject>
<imageobject>
@@ -375,8 +381,8 @@
</imageobject>
</mediaobject>
</figure>
-
- <figure>
+
+ <figure>
<title>Adding "Birt Reporting Runtime Component" Facet </title>
<mediaobject>
<imageobject>
@@ -384,16 +390,16 @@
</imageobject>
</mediaobject>
</figure>
-
-
-
-<orderedlist>
- <listitem>
- <para>add the Hibernate ODA dataset</para>
- </listitem>
- </orderedlist>
-
- <figure>
+
+
+
+ <orderedlist>
+ <listitem>
+ <para>add the Hibernate ODA dataset</para>
+ </listitem>
+ </orderedlist>
+
+ <figure>
<title>Adding "Birt Reporting Runtime Component" Facet </title>
<mediaobject>
<imageobject>
@@ -401,8 +407,8 @@
</imageobject>
</mediaobject>
</figure>
-
- <figure>
+
+ <figure>
<title>Adding "Birt Reporting Runtime Component" Facet </title>
<mediaobject>
<imageobject>
@@ -410,15 +416,15 @@
</imageobject>
</mediaobject>
</figure>
-
-<orderedlist>
- <listitem>
- <para>All the HQL features like syntax highlighting, content assist, formatting, Drag and Drop, etc., are available to you here <inlinegraphic fileref="embedded:graphics15" width="8.3335inch" depth="5.2083inch"/>
- </para>
- </listitem>
- </orderedlist>
-
- <figure>
+
+ <orderedlist>
+ <listitem>
+ <para>All the HQL features like syntax highlighting, content assist, formatting, Drag and Drop, etc., are available to you here <inlinegraphic fileref="embedded:graphics15" width="8.3335inch" depth="5.2083inch"/>
+ </para>
+ </listitem>
+ </orderedlist>
+
+ <figure>
<title>Adding "Birt Reporting Runtime Component" Facet </title>
<mediaobject>
<imageobject>
@@ -426,7 +432,7 @@
</imageobject>
</mediaobject>
</figure>
- <figure>
+ <figure>
<title>Adding "Birt Reporting Runtime Component" Facet </title>
<mediaobject>
<imageobject>
@@ -434,11 +440,11 @@
</imageobject>
</mediaobject>
</figure>
-
-<para>You can also use parameters within the Hibernate ODA driver. </para>
-
-
-<figure>
+
+ <para>You can also use parameters within the Hibernate ODA driver. </para>
+
+
+ <figure>
<title>Adding "Birt Reporting Runtime Component" Facet </title>
<mediaobject>
<imageobject>
@@ -446,8 +452,8 @@
</imageobject>
</mediaobject>
</figure>
-
-<figure>
+
+ <figure>
<title>Adding "Birt Reporting Runtime Component" Facet </title>
<mediaobject>
<imageobject>
@@ -455,8 +461,8 @@
</imageobject>
</mediaobject>
</figure>
-
-<figure>
+
+ <figure>
<title>Adding "Birt Reporting Runtime Component" Facet </title>
<mediaobject>
<imageobject>
@@ -464,15 +470,15 @@
</imageobject>
</mediaobject>
</figure>
-
-
-</section>
-
-<section>
-<title>Deploying a BIRT report</title>
-<para>You can deploy this report by adding an action button to the Seam's CRUD xhtml file.</para>
-
-<figure>
+
+
+ </section>
+
+ <section>
+ <title>Deploying a BIRT report</title>
+ <para>You can deploy this report by adding an action button to the Seam's CRUD xhtml file.</para>
+
+ <figure>
<title>Adding "Birt Reporting Runtime Component" Facet </title>
<mediaobject>
<imageobject>
@@ -480,16 +486,16 @@
</imageobject>
</mediaobject>
</figure>
-<orderedlist>
- <listitem>
- <para>create the testHibernateOda.xhtml file </para>
- </listitem>
- </orderedlist>
-
+ <orderedlist>
+ <listitem>
+ <para>create the testHibernateOda.xhtml file </para>
+ </listitem>
+ </orderedlist>
+
<para>
<emphasis role="bold">birttests.xhtml:</emphasis>
</para>
-
+
<programlisting role="XHTML"><![CDATA[
<p:birt xmlns:ui="http://java.sun.com/jsf/facelets"
@@ -502,14 +508,14 @@
</p:birt>
]]></programlisting>
-
-<orderedlist>
- <listitem>
- <para>open the Articles.xhtml page</para>
- </listitem>
- </orderedlist>
-
-<figure>
+
+ <orderedlist>
+ <listitem>
+ <para>open the Articles.xhtml page</para>
+ </listitem>
+ </orderedlist>
+
+ <figure>
<title>Adding "Birt Reporting Runtime Component" Facet </title>
<mediaobject>
<imageobject>
@@ -517,13 +523,13 @@
</imageobject>
</mediaobject>
</figure>
-
-<orderedlist>
- <listitem>
- <para>click the Birt PDF Report button </para>
- </listitem>
- </orderedlist>
-
+
+ <orderedlist>
+ <listitem>
+ <para>click the Birt PDF Report button </para>
+ </listitem>
+ </orderedlist>
+
<figure>
<title>Adding "Birt Reporting Runtime Component" Facet </title>
<mediaobject>
@@ -533,16 +539,18 @@
</mediaobject>
</figure>
- <para>The JNDI URL property can be either Hibernate Session Factory or Hibernate Entity Manager Factory. If a user doesn't specify this property, our engine will try the following JNDI URLs : </para>
- <orderedlist>
- <listitem>
- <para>java:/<project_name></para>
- </listitem>
- <listitem>
- <para>java:/<project_name>EntityManagerFactory</para>
- </listitem>
- </orderedlist></sect2><sect2><title>NOTE:</title>
- <para>If you want to test this feature using PDE Runtime, you need to add osgi.dev=bin to the WebContent/WEB-INF/platform/configuration/config.ini file </para>
-</section>
-
+ <para>The JNDI URL property can be either Hibernate Session Factory or Hibernate Entity Manager Factory. If a user doesn't specify this property, our engine will try the following JNDI URLs : </para>
+ <orderedlist>
+ <listitem>
+ <para>java:/<project_name></para>
+ </listitem>
+ <listitem>
+ <para>java:/<project_name>EntityManagerFactory</para>
+ </listitem>
+ </orderedlist>
+ <note><title>Note:</title>
+ <para>If you want to test this feature using PDE Runtime, you need to add osgi.dev=bin to the WebContent/WEB-INF/platform/configuration/config.ini file </para>
+ </note>
+ </section>
+
</chapter>
15 years, 2 months