JBoss Tools SVN: r10663 - trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/script.
by jbosstools-commits@lists.jboss.org
Author: artdaw
Date: 2008-10-03 10:36:04 -0400 (Fri, 03 Oct 2008)
New Revision: 10663
Removed:
trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/script/toggle.js
Log:
https://jira.jboss.org/jira/browse/JBDS-336 - We do not need 'script' folder any more
Deleted: trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/script/toggle.js
===================================================================
--- trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/script/toggle.js 2008-10-03 14:34:59 UTC (rev 10662)
+++ trunk/documentation/jbosstools-jdocbook-style/src/main/org/css/script/toggle.js 2008-10-03 14:36:04 UTC (rev 10663)
@@ -1 +0,0 @@
-document.write('<div id="overlay"> </div>');
16 years, 5 months
JBoss Tools SVN: r10662 - trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools.
by jbosstools-commits@lists.jboss.org
Author: artdaw
Date: 2008-10-03 10:34:59 -0400 (Fri, 03 Oct 2008)
New Revision: 10662
Modified:
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single.xsl
trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml.xsl
Log:
https://jira.jboss.org/jira/browse/JBDS-336 - overlay was added as <div> element
Modified: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl 2008-10-03 14:29:45 UTC (rev 10661)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/common.xsl 2008-10-03 14:34:59 UTC (rev 10662)
@@ -56,7 +56,6 @@
<link rel="shortcut icon" type="image/vnd.microsoft.icon" href="images/favicon.ico" />
<xsl:apply-templates select="." mode="head.keywords.content"/>
-<script type="text/javascript" src="script/toggle.js"><xsl:comment>If you see this message, your web browser doesn't support JavaScript or JavaScript is disabled.</xsl:comment></script>
</xsl:template>
Modified: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single.xsl 2008-10-03 14:29:45 UTC (rev 10661)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml-single.xsl 2008-10-03 14:34:59 UTC (rev 10662)
@@ -10,5 +10,83 @@
<xsl:import href="classpath:/xslt/org/jboss/xhtml-single.xsl"/>
<xsl:import href="common.xsl"/>
-
+ <xsl:template name="book.titlepage.recto">
+ <div id="overlay">
+ <xsl:text> </xsl:text>
+ </div>
+ <p xmlns="http://www.w3.org/1999/xhtml">
+ <xsl:attribute name="id">
+ <xsl:text>title</xsl:text>
+ </xsl:attribute>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="$siteHref" />
+ </xsl:attribute>
+ <xsl:attribute name="class">
+ <xsl:text>site_href</xsl:text>
+ </xsl:attribute>
+ <strong>
+ <xsl:value-of select="$siteLinkText"/>
+ </strong>
+ </a>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="$docHref" />
+ </xsl:attribute>
+ <xsl:attribute name="class">
+ <xsl:text>doc_href</xsl:text>
+ </xsl:attribute>
+ <strong>
+ <xsl:value-of select="$docLinkText"/>
+ </strong>
+ </a>
+ </p>
+ <xsl:choose>
+ <xsl:when test="bookinfo/title">
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/title"/>
+ </xsl:when>
+ <xsl:when test="info/title">
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/title"/>
+ </xsl:when>
+ <xsl:when test="title">
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="title"/>
+ </xsl:when>
+ </xsl:choose>
+
+ <xsl:choose>
+ <xsl:when test="bookinfo/subtitle">
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/subtitle"/>
+ </xsl:when>
+ <xsl:when test="info/subtitle">
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/subtitle"/>
+ </xsl:when>
+ <xsl:when test="subtitle">
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="subtitle"/>
+ </xsl:when>
+ </xsl:choose>
+
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/corpauthor"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/corpauthor"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/authorgroup"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/authorgroup"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/author"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/author"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/othercredit"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/othercredit"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/releaseinfo"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/releaseinfo"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/copyright"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/copyright"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/legalnotice"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/legalnotice"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/pubdate"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/pubdate"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/revision"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/revision"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/revhistory"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/revhistory"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="bookinfo/abstract"/>
+ <xsl:apply-templates mode="book.titlepage.recto.auto.mode" select="info/abstract"/>
+</xsl:template>
+
</xsl:stylesheet>
Modified: trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml.xsl
===================================================================
--- trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml.xsl 2008-10-03 14:29:45 UTC (rev 10661)
+++ trunk/documentation/jbosstools-docbook-xslt/src/main/resources/xslt/org/jboss/tools/xhtml.xsl 2008-10-03 14:34:59 UTC (rev 10662)
@@ -10,5 +10,88 @@
<xsl:import href="classpath:/xslt/org/jboss/xhtml.xsl"/>
<xsl:import href="common.xsl"/>
-
+ <xsl:template name="header.navigation">
+ <xsl:param name="prev" select="/foo"/>
+ <xsl:param name="next" select="/foo"/>
+ <xsl:param name="nav.context"/>
+ <xsl:variable name="home" select="/*[1]"/>
+ <xsl:variable name="up" select="parent::*"/>
+ <xsl:variable name="row1" select="$navig.showtitles != 0"/>
+ <xsl:variable name="row2" select="count($prev) > 0 or (count($up) > 0 and generate-id($up) != generate-id($home) and $navig.showtitles != 0) or count($next) > 0"/>
+ <xsl:if test="$suppress.navigation = '0' and $suppress.header.navigation = '0'">
+ <xsl:if test="$row1 or $row2">
+ <xsl:if test="$row1">
+ <div id="overlay">
+ <xsl:text> </xsl:text>
+ </div>
+ <p xmlns="http://www.w3.org/1999/xhtml">
+ <xsl:attribute name="id">
+ <xsl:text>title</xsl:text>
+ </xsl:attribute>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="$siteHref" />
+ </xsl:attribute>
+ <xsl:attribute name="class">
+ <xsl:text>site_href</xsl:text>
+ </xsl:attribute>
+ <strong>
+ <xsl:value-of select="$siteLinkText"/>
+ </strong>
+ </a>
+ <a>
+ <xsl:attribute name="href">
+ <xsl:value-of select="$docHref" />
+ </xsl:attribute>
+ <xsl:attribute name="class">
+ <xsl:text>doc_href</xsl:text>
+ </xsl:attribute>
+ <strong>
+ <xsl:value-of select="$docLinkText"/>
+ </strong>
+ </a>
+ </p>
+ </xsl:if>
+ <xsl:if test="$row2">
+ <ul class="docnav" xmlns="http://www.w3.org/1999/xhtml">
+ <li class="previous">
+ <xsl:if test="count($prev)>0">
+ <a accesskey="p">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="$prev"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <strong>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'prev'"/>
+ </xsl:call-template>
+ </strong>
+ </a>
+ </xsl:if>
+ </li>
+ <li class="next">
+ <xsl:if test="count($next)>0">
+ <a accesskey="n">
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="$next"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <strong>
+ <xsl:call-template name="navig.content">
+ <xsl:with-param name="direction" select="'next'"/>
+ </xsl:call-template>
+ </strong>
+ </a>
+ </xsl:if>
+ </li>
+ </ul>
+ </xsl:if>
+ </xsl:if>
+ <xsl:if test="$header.rule != 0">
+ <hr/>
+ </xsl:if>
+ </xsl:if>
+</xsl:template>
</xsl:stylesheet>
16 years, 5 months
JBoss Tools SVN: r10661 - trunk/birt/docs/en/images/BirtSupport.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2008-10-03 10:29:45 -0400 (Fri, 03 Oct 2008)
New Revision: 10661
Added:
trunk/birt/docs/en/images/BirtSupport/14EditDataSet.png
Log:
new image added
Added: trunk/birt/docs/en/images/BirtSupport/14EditDataSet.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtSupport/14EditDataSet.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 5 months
JBoss Tools SVN: r10660 - in trunk/jst/plugins: org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline and 7 other directories.
by jbosstools-commits@lists.jboss.org
Author: dsakovich
Date: 2008-10-03 10:22:03 -0400 (Fri, 03 Oct 2008)
New Revision: 10660
Added:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/images/xstudio/wizards/new_css_class.gif
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPDialogCellEditor.java
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/common/Util.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF
trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml
Log:
https://jira.jboss.org/jira/browse/JBIDE-2530
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF 2008-10-03 14:19:16 UTC (rev 10659)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/META-INF/MANIFEST.MF 2008-10-03 14:22:03 UTC (rev 10660)
@@ -62,5 +62,6 @@
org.eclipse.ui.views
Bundle-Version: 2.0.0
Export-Package: org.jboss.tools.jst.jsp.outline.cssdialog.common,
+ org.jboss.tools.jst.jsp.outline.cssdialog.events,
org.jboss.tools.jst.jsp.outline.cssdialog.parsers
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPDialogCellEditor.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPDialogCellEditor.java 2008-10-03 14:19:16 UTC (rev 10659)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/JSPDialogCellEditor.java 2008-10-03 14:22:03 UTC (rev 10660)
@@ -126,7 +126,7 @@
}
} else if (attributeName.endsWith("Class") || attributeName.endsWith("class") ) {
- CSSClassDialog dialog = new CSSClassDialog(cellEditorWindow.getShell());
+ CSSClassDialog dialog = new CSSClassDialog(cellEditorWindow.getShell(),false);
if (dialog.open() == Window.OK) {
externalEditing = false;
return dialog.getSelectorName();
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 2008-10-03 14:19:16 UTC (rev 10659)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/CSSClassDialog.java 2008-10-03 14:22:03 UTC (rev 10660)
@@ -16,6 +16,8 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.IWorkspace;
+import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jface.dialogs.Dialog;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.SWT;
@@ -60,6 +62,7 @@
private Combo classCombo;
private CSSModel cssModel;
private String selectorName;
+ private boolean allProject;
final static int MIN_HEIGHT_FOR_BROWSER = 60;
final static String[] fileExtensions = { "css" };
@@ -68,22 +71,25 @@
final static String CSS_FILE_SELECT_DIALOG_EMPTY_MESSAGE = "No CSS file in the current project";
final static String SKIP_FIRST_CHAR = ".";
- public CSSClassDialog(Shell parentShell) {
+ /**
+ *
+ * @param parentShell
+ * @param allProject (if allProject is true - browse css file in all projects, else only in current project)
+ */
+ public CSSClassDialog(Shell parentShell,boolean allProject) {
super(parentShell);
+ this.allProject = allProject;
setShellStyle(getShellStyle() | SWT.RESIZE | SWT.MAX
| SWT.APPLICATION_MODAL);
styleAttributes = new StyleAttributes();
}
/**
- * Method for creating dialog area
*
* @param parent
+ * @return
*/
- protected Control createDialogArea(final Composite parent) {
-
- final Composite composite = (Composite) super.createDialogArea(parent);
-
+ public Control createDialogComposite(Composite composite) {
GridLayout layout = new GridLayout();
layout.numColumns = 1;
composite.setLayout(layout);
@@ -110,8 +116,18 @@
text.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
- IProject project = Util.getCurrentProject();
- IResource res = project.findMember(text.getText());
+ IResource res = null;
+ if (allProject) {
+ IWorkspace workspace = Util.getCurrentWorkspace();
+ if(workspace!=null) {
+ res = workspace.getRoot().findMember(text.getText());
+ }
+ } else {
+ IProject project = Util.getCurrentProject();
+ if (project!=null)
+ res = project.findMember(text.getText());
+ }
+
if (res != null) {
if (res instanceof IFile) {
file = (IFile) res;
@@ -171,7 +187,10 @@
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent event) {
- IProject project = Util.getCurrentProject();
+ IAdaptable project = Util.getCurrentWorkspace();
+ if (!allProject) {
+ project = Util.getCurrentProject();
+ }
ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(
getShell(), new WorkbenchLabelProvider(),
@@ -185,8 +204,11 @@
.setEmptyListMessage(CSS_FILE_SELECT_DIALOG_EMPTY_MESSAGE);
dialog.open();
IResource res = (IResource) dialog.getFirstResult();
- text.setText(res.getProjectRelativePath().toOSString());
-
+ if (allProject) {
+ text.setText(res.getFullPath().toOSString());
+ } else {
+ text.setText(res.getProjectRelativePath().toOSString());
+ }
}
});
@@ -216,8 +238,32 @@
return composite;
}
+
+ public void saveChanges() {
+ styleComposite.updateStyle();
+ String newStyle = styleComposite.getNewStyle();
+ cssModel.setCSS(classCombo.getText(), newStyle);
+ cssModel.saveModel();
+ }
+ public String getSelectorName() {
+ return selectorName;
+ }
+
/**
+ * Method for creating dialog area
+ *
+ * @param parent
+ *
+ */
+ protected Control createDialogArea(final Composite parent) {
+
+ final Composite composite = (Composite) super.createDialogArea(parent);
+
+ return createDialogComposite(composite);
+ }
+
+ /**
* Method for setting title for dialog
*
* @param newShell
@@ -228,10 +274,7 @@
}
protected void okPressed() {
- styleComposite.updateStyle();
- String newStyle = styleComposite.getNewStyle();
- cssModel.setCSS(classCombo.getText(), newStyle);
- cssModel.saveModel();
+ saveChanges();
String sel = classCombo.getText();
if (sel.trim().startsWith(SKIP_FIRST_CHAR)) {
sel = sel.substring(1);
@@ -239,9 +282,7 @@
selectorName = sel;
super.okPressed();
}
+
+
- public String getSelectorName() {
- return selectorName;
- }
-
}
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Util.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Util.java 2008-10-03 14:19:16 UTC (rev 10659)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/outline/cssdialog/common/Util.java 2008-10-03 14:22:03 UTC (rev 10660)
@@ -17,6 +17,7 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IWorkspace;
import org.eclipse.swt.graphics.RGB;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorPart;
@@ -349,6 +350,24 @@
IProject project = file.getProject();
return project;
-
}
+
+ /**
+ * Get current workspace
+ *
+ * @return
+ */
+ public static IWorkspace getCurrentWorkspace() {
+ IEditorPart editor = JspEditorPlugin.getDefault().getWorkbench()
+ .getActiveWorkbenchWindow().getActivePage().getActiveEditor();
+ IEditorInput input = editor.getEditorInput();
+ IFile file = null;
+ if (input instanceof IFileEditorInput) {
+ file = ((IFileEditorInput) input).getFile();
+ }
+ if (file == null)
+ return null;
+ IWorkspace workspace = file.getWorkspace();
+ return workspace;
+ }
}
\ No newline at end of file
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF 2008-10-03 14:19:16 UTC (rev 10659)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/META-INF/MANIFEST.MF 2008-10-03 14:22:03 UTC (rev 10660)
@@ -85,6 +85,7 @@
org.eclipse.core.resources,
org.eclipse.core.runtime,
org.eclipse.debug.ui,
- org.jboss.tools.jsf.vpe.jsf
+ org.jboss.tools.jsf.vpe.jsf,
+ org.jboss.tools.jst.jsp;bundle-version="2.0.0"
Bundle-Version: 2.0.0
Added: trunk/jst/plugins/org.jboss.tools.jst.web.ui/images/xstudio/wizards/new_css_class.gif
===================================================================
(Binary files differ)
Property changes on: trunk/jst/plugins/org.jboss.tools.jst.web.ui/images/xstudio/wizards/new_css_class.gif
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml 2008-10-03 14:19:16 UTC (rev 10659)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/plugin.xml 2008-10-03 14:22:03 UTC (rev 10660)
@@ -109,6 +109,21 @@
</wizard>
<wizard
category="org.jboss.tools.jst.web"
+ class="org.jboss.tools.jst.web.ui.wizards.css.NewCSSClassWizard"
+ finalPerspective="org.jboss.tools.jst.web.ui.WebDevelopmentPerspective"
+ icon="images/xstudio/wizards/new_css_class.gif"
+ id="org.jboss.tools.jst.web.ui.wizards.newfile.NewCSSClassWizard"
+ name="CSS Class"
+ preferredPerspectives="org.jboss.tools.jst.web.ui.WebDevelopmentPerspective"
+ project="false">
+ <description>
+ Create a CSS Class
+ </description>
+ <selection class="org.eclipse.core.resources.IResource">
+ </selection>
+ </wizard>
+ <wizard
+ category="org.jboss.tools.jst.web"
class="org.jboss.tools.jst.web.ui.wizards.newfile.NewJSFileWizard"
finalPerspective="org.jboss.tools.jst.web.ui.WebDevelopmentPerspective"
icon="images/xstudio/wizards/new_js_file.gif"
Added: 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 (rev 0)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/css/NewCSSClassWizard.java 2008-10-03 14:22:03 UTC (rev 10660)
@@ -0,0 +1,95 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jst.web.ui.wizards.css;
+
+import org.eclipse.jface.dialogs.IDialogPage;
+import org.eclipse.jface.viewers.IStructuredSelection;
+import org.eclipse.jface.wizard.Wizard;
+import org.eclipse.jface.wizard.WizardPage;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.GridLayout;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.ui.INewWizard;
+import org.eclipse.ui.IWorkbench;
+import org.jboss.tools.jst.jsp.outline.cssdialog.CSSClassDialog;
+
+public class NewCSSClassWizard extends Wizard implements INewWizard {
+
+ private NewCSSClassWizardPage page;
+
+
+
+ /**
+ * Constructor for SampleNewWizard.
+ */
+ public NewCSSClassWizard() {
+ super();
+ }
+
+ public void init(IWorkbench workbench, IStructuredSelection selection) {
+
+ }
+
+ /**
+ * Adding the page to the wizard.
+ */
+
+ 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.
+ */
+ public boolean performFinish() {
+ page.saveChanges();
+ return true;
+ }
+
+ private class NewCSSClassWizardPage extends WizardPage {
+
+ private CSSClassDialog dialog;
+
+ final static String WIZARD_TITLE = "Create New CSS Class";
+ final static String WIZARD_DESCRIPTION = "Create New CSS Class";
+
+ /**
+ * 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.NULL);
+ GridLayout layout = new GridLayout();
+ container.setLayout(layout);
+
+ dialog = new CSSClassDialog(getShell(), true);
+ dialog.createDialogComposite(container);
+ setControl(container);
+ }
+
+ public void saveChanges() {
+ dialog.saveChanges();
+ }
+ }
+
+}
\ No newline at end of file
16 years, 5 months
JBoss Tools SVN: r10659 - in trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test: src/org/jboss/tools/jsf/vpe/richfaces/test and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2008-10-03 10:19:16 -0400 (Fri, 03 Oct 2008)
New Revision: 10659
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/RichFacesJBIDE1169Test.java
Modified:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java
Log:
=JBIDE-1169
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF 2008-10-03 14:06:43 UTC (rev 10658)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF 2008-10-03 14:19:16 UTC (rev 10659)
@@ -18,7 +18,10 @@
org.jboss.tools.vpe.xulrunner,
org.jboss.tools.jsf.vpe.richfaces,
org.mozilla.xpcom,
- org.jboss.tools.vpe.ui.test
+ org.jboss.tools.vpe.ui.test,
+ org.jboss.tools.vpe.resref;bundle-version="2.0.0",
+ org.jboss.tools.common.el.ui;bundle-version="1.0.0",
+ org.jboss.tools.common.el.core;bundle-version="2.0.0"
Eclipse-LazyStart: true
Bundle-ClassPath: vpe-rf-test.jar
Export-Package: org.jboss.tools.jsf.vpe.richfaces.test
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java 2008-10-03 14:06:43 UTC (rev 10658)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/RichFacesAllTests.java 2008-10-03 14:19:16 UTC (rev 10659)
@@ -26,6 +26,7 @@
import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1614Test;
import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1639Test;
import org.jboss.tools.jsf.vpe.richfaces.test.jbide.Jbide1682Test;
+import org.jboss.tools.jsf.vpe.richfaces.test.jbide.RichFacesJBIDE1169Test;
import org.jboss.tools.tests.ImportBean;
import org.jboss.tools.vpe.ui.test.VpeTestSetup;
@@ -53,6 +54,7 @@
suite.addTestSuite(Jbide1682Test.class);
suite.addTestSuite(Jbide1548Test.class);
suite.addTestSuite(JBIDE1713Test.class);
+ suite.addTestSuite(RichFacesJBIDE1169Test.class);
suite.addTestSuite(RichFacesComboBoxTemplateTestCase.class);
suite.addTestSuite(RichFacesInplaceInputTemplateTestCase.class);
suite.addTestSuite(RichFacesInplaceSelectTemplateTestCase.class);
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/RichFacesJBIDE1169Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/RichFacesJBIDE1169Test.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/RichFacesJBIDE1169Test.java 2008-10-03 14:19:16 UTC (rev 10659)
@@ -0,0 +1,68 @@
+/*******************************************************************************
+* 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.richfaces.test.jbide;
+
+import org.eclipse.core.resources.IFile;
+import org.jboss.tools.common.el.core.ELReferenceList;
+import org.jboss.tools.common.resref.core.ResourceReference;
+import org.jboss.tools.jsf.vpe.richfaces.test.RichFacesAllTests;
+import org.jboss.tools.vpe.editor.util.ElService;
+import org.jboss.tools.vpe.ui.test.TestUtil;
+import org.jboss.tools.vpe.ui.test.VpeTest;
+
+/**
+ * @author mareshkau
+ * Test Case For JBIDE-1169
+ */
+public class RichFacesJBIDE1169Test extends VpeTest{
+
+ private String RICH_FACES_SKIN_KEY = "org.richfaces.SKIN"; //$NON-NLS-1$
+
+ private String SKIN_VALUE = "ruby"; //$NON-NLS-1$
+
+ private IFile testFile;
+
+ public RichFacesJBIDE1169Test(String name) {
+ super(name);
+ }
+
+ @Override
+ protected void setUp() throws Exception {
+ super.setUp();
+ ResourceReference[] entries = new ResourceReference[1];
+ testFile = (IFile) TestUtil.getComponentPath(
+ "JBIDE/1169/test.xhtml", RichFacesAllTests.IMPORT_PROJECT_NAME); //$NON-NLS-1$
+ entries[0] = new ResourceReference(RICH_FACES_SKIN_KEY,ResourceReference.PROJECT_SCOPE);
+ entries[0].setProperties(SKIN_VALUE);
+ ELReferenceList.getInstance().setAllResources(testFile, entries);
+ //clear exception
+ setException(null);
+ }
+
+ public void testJBIDE1169() {
+ String replacedValue = ElService.getInstance().replaceEl(testFile,"#{"+RICH_FACES_SKIN_KEY+'}'); //$NON-NLS-1$
+ assertEquals("Skin value should be equals",SKIN_VALUE, replacedValue); //$NON-NLS-1$
+ }
+ /**
+ * Tear down.
+ *
+ * @throws Exception the exception
+ */
+ @Override
+ protected void tearDown() throws Exception {
+ if(getException()!=null) {
+ throw new Exception(getException());
+ }
+ ELReferenceList.getInstance().setAllResources(testFile, new ResourceReference[0]);
+ testFile = null;
+ super.tearDown();
+ }
+}
16 years, 5 months
JBoss Tools SVN: r10658 - trunk/birt/docs/en/modules.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2008-10-03 10:06:43 -0400 (Fri, 03 Oct 2008)
New Revision: 10658
Modified:
trunk/birt/docs/en/modules/birt_support.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-388 - screenshots added
Modified: trunk/birt/docs/en/modules/birt_support.xml
===================================================================
--- trunk/birt/docs/en/modules/birt_support.xml 2008-10-03 13:58:58 UTC (rev 10657)
+++ trunk/birt/docs/en/modules/birt_support.xml 2008-10-03 14:06:43 UTC (rev 10658)
@@ -183,11 +183,50 @@
</section>
- <section><title>Builde a Data Set</title>
+ <section><title>Build a Data Set</title>
- text here
+ <para>Data Set is a query to get and represent necessary column data from the data source specified. Select Data Sets in the tree view, right-click on it and select New Data Set:</para>
+
+ <figure>
+ <title>Create a Data Set</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/BirtSupport/11DataSet.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+
+ <para>The New Data Set dialog will appear. Enter a name for the Data Set Name field and ensure that the Data Source field shows the data source already created and that the Data Set Type field is set to "SQL Select Query".
+ Then click on the Next button:</para>
+ <figure>
+ <title>New Data Set Details</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/BirtSupport/12NewDataSet.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ <para>Enter the following details into the query:</para>
+ <programlisting><![CDATA[
+SELECT *
+FROM CUSTOMERS
+WHERE COUNTRY = 'USA']]></programlisting>
+
+
+ <figure>
+ <title>Query Details</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/BirtSupport/13SQLQuery.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+
</section>
</section>
16 years, 5 months
JBoss Tools SVN: r10657 - trunk/birt/docs/en/images/BirtSupport.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2008-10-03 09:58:58 -0400 (Fri, 03 Oct 2008)
New Revision: 10657
Added:
trunk/birt/docs/en/images/BirtSupport/12NewDataSet.png
trunk/birt/docs/en/images/BirtSupport/13SQLQuery.png
Log:
images replaced
Added: trunk/birt/docs/en/images/BirtSupport/12NewDataSet.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtSupport/12NewDataSet.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtSupport/13SQLQuery.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtSupport/13SQLQuery.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 5 months
JBoss Tools SVN: r10656 - trunk/birt/docs/en/images/BirtSupport.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2008-10-03 09:58:25 -0400 (Fri, 03 Oct 2008)
New Revision: 10656
Removed:
trunk/birt/docs/en/images/BirtSupport/12NewDataSet.png
trunk/birt/docs/en/images/BirtSupport/13NewDataSet.png
trunk/birt/docs/en/images/BirtSupport/14SQLQuery.png
Log:
images will be replaced
Deleted: trunk/birt/docs/en/images/BirtSupport/12NewDataSet.png
===================================================================
(Binary files differ)
Deleted: trunk/birt/docs/en/images/BirtSupport/13NewDataSet.png
===================================================================
(Binary files differ)
Deleted: trunk/birt/docs/en/images/BirtSupport/14SQLQuery.png
===================================================================
(Binary files differ)
16 years, 5 months
JBoss Tools SVN: r10655 - in trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el: internal/core/parser and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-10-03 09:52:25 -0400 (Fri, 03 Oct 2008)
New Revision: 10655
Modified:
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/parser/Tokenizer.java
trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/parser/ELParserImpl.java
Log:
JBIDE-1497.
Minor improvements
Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/parser/Tokenizer.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/parser/Tokenizer.java 2008-10-03 13:35:45 UTC (rev 10654)
+++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/core/parser/Tokenizer.java 2008-10-03 13:52:25 UTC (rev 10655)
@@ -24,7 +24,7 @@
*
*/
public class Tokenizer {
- static int LITERAL = -10;
+ public static int LITERAL = -10;
private Map<Integer, ITokenDescription> tokenDescriptions = new HashMap<Integer, ITokenDescription>();
private Map<Integer, List<IRule>> rules = new HashMap<Integer, List<IRule>>();
Modified: trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/parser/ELParserImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/parser/ELParserImpl.java 2008-10-03 13:35:45 UTC (rev 10654)
+++ trunk/common/plugins/org.jboss.tools.common.el.core/src/org/jboss/tools/common/el/internal/core/parser/ELParserImpl.java 2008-10-03 13:52:25 UTC (rev 10655)
@@ -12,6 +12,7 @@
import org.jboss.tools.common.el.core.model.ELObjectType;
import org.jboss.tools.common.el.core.parser.LexicalToken;
+import org.jboss.tools.common.el.core.parser.Tokenizer;
import org.jboss.tools.common.el.internal.core.model.ELArgumentImpl;
import org.jboss.tools.common.el.internal.core.model.ELArgumentExpressionImpl;
import org.jboss.tools.common.el.internal.core.model.ELComplexExpressionImpl;
@@ -288,7 +289,10 @@
private LexicalToken lookUpNextToken(LexicalToken token) {
LexicalToken c = token;
- while(c != null && (c == token || c.getType() == WhiteSpaceTokenDescription.WHITESPACE)) {
+ while(c != null
+ && (c == token
+ || c.getType() == WhiteSpaceTokenDescription.WHITESPACE
+ || c.getType() == Tokenizer.LITERAL)) {
c = c.getNextToken();
}
return c;
16 years, 5 months
JBoss Tools SVN: r10654 - trunk/birt/docs/en/images/BirtSupport.
by jbosstools-commits@lists.jboss.org
Author: abogachuk
Date: 2008-10-03 09:35:45 -0400 (Fri, 03 Oct 2008)
New Revision: 10654
Added:
trunk/birt/docs/en/images/BirtSupport/11DataSet.png
trunk/birt/docs/en/images/BirtSupport/12NewDataSet.png
trunk/birt/docs/en/images/BirtSupport/13NewDataSet.png
trunk/birt/docs/en/images/BirtSupport/14SQLQuery.png
Log:
new images added for the Build Data Set sub-chapter
Added: trunk/birt/docs/en/images/BirtSupport/11DataSet.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtSupport/11DataSet.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtSupport/12NewDataSet.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtSupport/12NewDataSet.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtSupport/13NewDataSet.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtSupport/13NewDataSet.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/birt/docs/en/images/BirtSupport/14SQLQuery.png
===================================================================
(Binary files differ)
Property changes on: trunk/birt/docs/en/images/BirtSupport/14SQLQuery.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
16 years, 5 months