JBoss Tools SVN: r13602 - trunk/jsf/docs/userguide/en/images/visual_page.
by jbosstools-commits@lists.jboss.org
Author: msorokin
Date: 2009-02-12 11:56:12 -0500 (Thu, 12 Feb 2009)
New Revision: 13602
Added:
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_24a.png
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_24b.png
Log:
https://jira.jboss.org/jira/browse/JBDS-599
pictures for code folding
Added: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_24a.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_24a.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_24b.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_24b.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 2 months
JBoss Tools SVN: r13601 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: msorokin
Date: 2009-02-12 11:55:40 -0500 (Thu, 12 Feb 2009)
New Revision: 13601
Modified:
trunk/jsf/docs/userguide/en/modules/editors.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-599
code folding is documented
Modified: trunk/jsf/docs/userguide/en/modules/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/editors.xml 2009-02-12 16:31:06 UTC (rev 13600)
+++ trunk/jsf/docs/userguide/en/modules/editors.xml 2009-02-12 16:55:40 UTC (rev 13601)
@@ -736,7 +736,7 @@
<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>
+ <property>Ctrl + PageUp/Ctrl + PageDown</property></emphasis>.</para>
<figure>
<title>Visual Page Editor</title>
@@ -888,6 +888,43 @@
</itemizedlist>
</section>
+<section id="codefolding">
+ <title>Using Code Folding</title>
+ <para>
+ <property>Visual Page Editor</property> lets you collapse (hide) and expand (show) sections of your code to make it easier to navigate and read.
+
+ </para>
+ <para>Code folding can be enabled by
+ right-clicking on the left margin on the Source part of Visual
+ Page Editor, selecting <property>Folding</property> and checking the <property>Enable Folding</property> checkbox or using the <emphasis><property>Ctrl+Numpad_Divide</property></emphasis> shortcut.</para>
+ <para>When the code folding is enabled a minus sing will
+ appear on the left margin of the editor next to each opening block tag. </para>
+
+ <figure>
+ <title>Enabled Code Folding </title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_24a.png"/>
+ </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 is displayed on the left margin as well as
+ a gray rectangle two dots appears after opening and closing tags. </para>
+
+ <figure>
+ <title>Collapsed Code</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_24b.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+</section>
+
<section id="JSPsyntaxvalidation84">
<title>JSP Syntax Validation</title>
@@ -899,7 +936,7 @@
<title>Support for Taglib versions</title>
<para>VPE templates now support various versions of tag libraries. It means that the
- <property>VPE</property> takes control under those components which have
+ <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>
15 years, 2 months
JBoss Tools SVN: r13600 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-02-12 11:31:06 -0500 (Thu, 12 Feb 2009)
New Revision: 13600
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java
Log:
JBIDE-3725
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java 2009-02-12 15:41:01 UTC (rev 13599)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/wizard/SeamProjectWizard.java 2009-02-12 16:31:06 UTC (rev 13600)
@@ -25,6 +25,10 @@
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.Path;
+import org.eclipse.jdt.core.IClasspathContainer;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.wizard.IWizardPage;
import org.eclipse.jst.j2ee.internal.common.classpath.J2EEComponentClasspathUpdater;
@@ -210,7 +214,7 @@
SeamInstallWizardPage page = (SeamInstallWizardPage)getPage(SeamUIMessages.SEAM_INSTALL_WIZARD_PAGE_SEAM_FACET);
page.finishPressed();
IDataModel model = page.getConfig();
- model.setProperty(ISeamFacetDataModelProperties.CREATE_EAR_PROJECTS, Boolean.TRUE);
+ model.setProperty(ISeamFacetDataModelProperties.CREATE_EAR_PROJECTS, Boolean.TRUE);
return super.performFinish();
}
@@ -241,6 +245,11 @@
projects.add(ejbProject);
}
projects.add(warProject);
+
+ if(ejbProject != null) {
+ provideClassPath(projects, ejbProject);
+ }
+
buildProjects(projects, monitor);
// copy JDBC driver to server libraries folder;
@@ -268,10 +277,50 @@
}
}
- private void buildProjects(List<IProject> projects, IProgressMonitor monitor) {
- J2EEComponentClasspathUpdater.getInstance().forceUpdate(projects);
+ private void provideClassPath(List<IProject> projects, IProject ejbProject) throws CoreException {
+ if(ejbProject == null) return;
+ int k = 0;
+ while(k < 50) {
+ k++;
+ J2EEComponentClasspathUpdater.getInstance().forceUpdate(projects, false);
+ try {
+ boolean ok = checkClassPath(ejbProject);
+// System.out.println("-->" + k);
+ if(ok) break;
+ } catch(CoreException ee1) {
+ break;
+ }
+ try {
+ Thread.sleep(1000);
+ } catch (InterruptedException e) {}
+ }
+// System.out.println("SeamProjectWizard: Class path provided in " + k + " iterations.");
+ }
+
+ public static boolean checkClassPath(IProject project) throws CoreException {
+ if(project == null || !project.isAccessible() || !project.hasNature(JavaCore.NATURE_ID)) return false;
+ IJavaProject javaProject = JavaCore.create(project);
+ IClasspathEntry[] es = javaProject.getRawClasspath();
+ for (int i = 0; i < es.length; i++) {
+ if(es[i].getEntryKind() == IClasspathEntry.CPE_CONTAINER) {
+ IPath p = es[i].getPath();
+ //"org.eclipse.jst.j2ee.internal.module.container"
+ if(p.toString().startsWith("org.eclipse.jst.j2ee")) {
+ IClasspathContainer c = JavaCore.getClasspathContainer(p, javaProject);
+ if(c == null) return false;
+ IClasspathEntry[] cs = c.getClasspathEntries();
+ return cs != null && cs.length > 0;
+ }
+ }
+ }
+ return true;
+ }
+
+ private void buildProjects(List<IProject> projects, IProgressMonitor monitor) {
+ J2EEComponentClasspathUpdater.getInstance().forceUpdate(projects, false);
try {
for (IProject project : projects) {
+ project.build(IncrementalProjectBuilder.CLEAN_BUILD, monitor);
project.build(IncrementalProjectBuilder.FULL_BUILD, monitor);
}
} catch (CoreException e) {
15 years, 2 months
JBoss Tools SVN: r13599 - in trunk/jsf: tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2009-02-12 10:41:01 -0500 (Thu, 12 Feb 2009)
New Revision: 13599
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuGroupTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuTemplate.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/panelMenu.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/panelMenuGroup.xhtml.xml
trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1605Test.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3740, expandSingle and disabled state icons, styles and classes were updated, toggling was updated, JUnit tests were updated.
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuGroupTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuGroupTemplate.java 2009-02-12 14:56:14 UTC (rev 13598)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuGroupTemplate.java 2009-02-12 15:41:01 UTC (rev 13599)
@@ -136,7 +136,7 @@
div.setAttribute(COMPONENT_ATTR_VPE_SUPPORT, NAME_COMPONENT);
div.setAttribute(VpeVisualDomBuilder.VPE_USER_TOGGLE_ID, childId);
- buildTable(pageContext, anySuitableParent, groupSourceElement,
+ buildTable(pageContext, anySuitableParent, panelMenuParent, groupSourceElement,
visualDocument, div, expanded, childId, attrs);
nsIDOMElement childSpan = visualDocument
@@ -181,7 +181,7 @@
}
private void buildTable(VpePageContext pageContext,
- Element anySuitableParent, Element groupSourceElement,
+ Element anySuitableParent, Element panelMenuParent, Element groupSourceElement,
nsIDOMDocument visualDocument, nsIDOMElement div,
boolean expanded, String activeChildId, Attributes attrs) {
String tableStyle = Constants.EMPTY;
@@ -324,8 +324,8 @@
iconCell.appendChild(imgIcon);
emptyCell.appendChild(imgSpacer);
- setIcon(pageContext, anySuitableParent, groupSourceElement,
- imgIcon, expanded, attrs);
+ setIcon(pageContext, panelMenuParent, groupSourceElement,
+ imgIcon, expanded, childOfPanelMenu, attrs);
/*
* Group Style Classes Routine
@@ -478,25 +478,31 @@
return parent;
}
- private void setIcon(VpePageContext pageContext, Node anySuitableParent,
- Element groupSourceElement, nsIDOMElement imgIcon, boolean expanded, Attributes attrs) {
+ private void setIcon(VpePageContext pageContext, Node panelMenuParent,
+ Element groupSourceElement, nsIDOMElement imgIcon,
+ boolean expanded, boolean childOfPanelMenu, Attributes attrs) {
String pathIconExpanded = attrs.getPmg_iconExpanded();
String pathIconCollapsed = attrs.getPmg_iconCollapsed();
String pathIconDisabled = attrs.getPmg_iconDisabled();
-
- if ((anySuitableParent != null)
- && (anySuitableParent.getNodeName()
- .endsWith(PANEL_MENU_END_TAG))) {
+
if (pathIconExpanded == null) {
+ if (childOfPanelMenu) {
pathIconExpanded = attrs.getPm_iconExpandedTopGroup();
+ }
+ pathIconExpanded = attrs.getPm_iconExpandedGroup();
}
if (pathIconCollapsed == null) {
+ if (childOfPanelMenu) {
pathIconCollapsed = attrs.getPm_iconCollapsedTopGroup();
+ }
+ pathIconCollapsed = attrs.getPm_iconCollapsedGroup();
}
if (pathIconDisabled == null) {
- pathIconDisabled = attrs.getPm_iconTopDisableGroup();
+ if (childOfPanelMenu) {
+ pathIconDisabled = attrs.getPm_iconTopDisabledGroup();
+ }
+ pathIconDisabled = attrs.getPm_iconDisabledGroup();
}
- }
if (TRUE.equalsIgnoreCase(attrs.getPmg_disabled())) {
if (ComponentUtil.isNotBlank(pathIconDisabled)) {
@@ -560,7 +566,6 @@
String pmg_disabled = groupSourceElement.getAttribute(HTML.ATTR_DISABLED);
String pm_disabled = panelMenuParent.getAttribute(HTML.ATTR_DISABLED);
String pm_expandSingle = panelMenuParent.getAttribute(RichFacesPanelMenuTemplate.EXPAND_SINGLE);
-
/*
* Do nothing when panel menu or panel group are disabled.
*/
@@ -636,6 +641,8 @@
}
}
sourceNode.setUserData(VPE_EXPANDED_TOGGLE_IDS, expandedIds, null);
+ panelMenuParent.setUserData(VPE_EXPANDED_TOGGLE_IDS, expandedIds, null);
+ builder.updateNode(panelMenuParent);
}
/* (non-Javadoc)
@@ -677,8 +684,8 @@
private String pm_iconCollapsedTopGroup;
private String pm_iconExpandedGroup;
private String pm_iconExpandedTopGroup;
- private String pm_iconDisableGroup;
- private String pm_iconTopDisableGroup;
+ private String pm_iconDisabledGroup;
+ private String pm_iconTopDisabledGroup;
private String pm_expandSingle;
/*
@@ -734,8 +741,8 @@
pm_iconCollapsedTopGroup = sourceParentElement.getAttribute(RichFacesPanelMenuTemplate.ICON_COLLAPSED_TOP_GROUP);
pm_iconExpandedGroup = sourceParentElement.getAttribute(RichFacesPanelMenuTemplate.ICON_EXPANDED_GROUP);
pm_iconExpandedTopGroup = sourceParentElement.getAttribute(RichFacesPanelMenuTemplate.ICON_EXPANDED_TOP_GROUP);
- pm_iconDisableGroup = sourceParentElement.getAttribute(RichFacesPanelMenuTemplate.ICON_DISABLE_GROUP);
- pm_iconTopDisableGroup = sourceParentElement.getAttribute(RichFacesPanelMenuTemplate.ICON_TOP_DISABLE_GROUP);
+ pm_iconDisabledGroup = sourceParentElement.getAttribute(RichFacesPanelMenuTemplate.ICON_DISABLED_GROUP);
+ pm_iconTopDisabledGroup = sourceParentElement.getAttribute(RichFacesPanelMenuTemplate.ICON_TOP_DISABLED_GROUP);
pm_expandSingle = sourceParentElement.getAttribute(RichFacesPanelMenuTemplate.EXPAND_SINGLE);
/*
@@ -802,12 +809,12 @@
return pm_iconExpandedTopGroup;
}
- public String getPm_iconDisableGroup() {
- return pm_iconDisableGroup;
+ public String getPm_iconDisabledGroup() {
+ return pm_iconDisabledGroup;
}
- public String getPm_iconTopDisableGroup() {
- return pm_iconTopDisableGroup;
+ public String getPm_iconTopDisabledGroup() {
+ return pm_iconTopDisabledGroup;
}
public String getPm_expandSingle() {
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuTemplate.java 2009-02-12 14:56:14 UTC (rev 13598)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesPanelMenuTemplate.java 2009-02-12 15:41:01 UTC (rev 13599)
@@ -58,8 +58,8 @@
public static final String ICON_COLLAPSED_TOP_GROUP = "iconCollapsedTopGroup"; //$NON-NLS-1$
public static final String ICON_EXPANDED_GROUP = "iconExpandedGroup"; //$NON-NLS-1$
public static final String ICON_EXPANDED_TOP_GROUP = "iconExpandedTopGroup"; //$NON-NLS-1$
- public static final String ICON_DISABLE_GROUP = "iconDisableGroup"; //$NON-NLS-1$
- public static final String ICON_TOP_DISABLE_GROUP = "iconTopDisableGroup"; //$NON-NLS-1$
+ public static final String ICON_DISABLED_GROUP = "iconDisabledGroup"; //$NON-NLS-1$
+ public static final String ICON_TOP_DISABLED_GROUP = "iconTopDisabledGroup"; //$NON-NLS-1$
/*
* rich:panelMenu attributes for items
@@ -130,10 +130,14 @@
styleClass += Constants.WHITE_SPACE + styleClassAttr;
}
div.setAttribute(HTML.ATTR_CLASS, styleClass);
-
+
List<Node> children = ComponentUtil.getChildren(sourceElement);
int i = 1;
- List<String> expandedIds = new ArrayList<String>();
+ List<String> expandedIds = (List<String>) sourceNode
+ .getUserData(RichFacesPanelMenuGroupTemplate.VPE_EXPANDED_TOGGLE_IDS);
+ if (null == expandedIds) {
+ expandedIds = new ArrayList<String>();
+ }
for (Node child : children) {
if (child.getNodeName().endsWith(PANEL_MENU_GROUP_END)) {
child.setUserData(VpeVisualDomBuilder.VPE_USER_TOGGLE_ID, String.valueOf(i), null);
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/panelMenu.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/panelMenu.xhtml.xml 2009-02-12 14:56:14 UTC (rev 13598)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/panelMenu.xhtml.xml 2009-02-12 15:41:01 UTC (rev 13599)
@@ -1,6 +1,6 @@
<tests>
<test id="panelMenu">
- <DIV BORDER="0" STYLE="margin-top: 3px; width: 200px;">
+ <DIV BORDER="0" STYLE="width: 200px;" CLASS="rich-pmenu">
<DIV CLASS="dr-pmenu-top-self-div" BORDER="0" STYLE="margin-top: 3px;"
VPESUPPORT="panelMenuItem">
<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"
@@ -9,80 +9,91 @@
<TD STYLE="" CLASS="dr-pmenu-nowrap">
<IMG WIDTH="16" VSPACE="0" HSPACE="0" HEIGHT="16"
SRC="/.*resources/panelMenuItem/spacer.gif/" />
+
<IMG WIDTH="16" VSPACE="0" HSPACE="0" HEIGHT="16"
SRC="/.*resources/panelMenuItem/points.gif/"
CLASS="rich-pmenu-item-icon rich-pmenu-top-item-icon" />
+
</TD>
- <TD STYLE="width: 100%;" CLASS="rich-pmenu-item-label rich-pmenu-top-item-label"> Item 1</TD>
+ <TD STYLE="width: 100%;" CLASS="rich-pmenu-item-label rich-pmenu-top-item-label">
+ Item 1
+</TD>
<TD STYLE="" CLASS="dr-pmenu-nowrap">
<IMG WIDTH="16" VSPACE="0" HSPACE="0" HEIGHT="16"
SRC="/.*resources/panelMenuItem/spacer.gif/" />
+
</TD>
</TR>
</TABLE>
</DIV>
- <DIV>
- <DIV VPESUPPORT="panelMenuGroup" VPE-USER-TOGGLE-ID="1"
- CLASS="dr-pmenu-group-div dr-pmenu-top-group-div">
- <TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"
- CLASS="dr-pmenu-top-group rich-pmenu-group" STYLE="margin-top: 3px;">
- <TR>
- <TD VPE-USER-TOGGLE-ID="1" CLASS="rich-pmenu-top-group-self-icon">
- <IMG WIDTH="16" VSPACE="0" HSPACE="0" HEIGHT="16"
- SRC="/.*resources/panelMenuGroup/spacer.gif/" />
- </TD>
- <TD STYLE="width: 100%;" VPE-USER-TOGGLE-ID="1"
- CLASS="rich-pmenu-top-group-self-label"> Group 1</TD>
- <TD VPE-USER-TOGGLE-ID="1"
- CLASS="rich-pmenu-group-self-icon rich-pmenu-top-group-self-icon">
- <IMG
- SRC="/.*resources/panelMenuGroup/chevronDown.gif/" />
- </TD>
- </TR>
- </TABLE>
- </DIV>
+ <DIV VPESUPPORT="panelMenuGroup" VPE-USER-TOGGLE-ID="1"
+ CLASS="dr-pmenu-top-group-div rich-pmenu-top-group-div">
+ <TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"
+ CLASS="dr-pmenu-top-group rich-pmenu-group" STYLE="">
+ <TR>
+ <TD VPE-USER-TOGGLE-ID="1" CLASS="rich-pmenu-top-group-self-icon">
+ <IMG WIDTH="16" VSPACE="0" HSPACE="0" HEIGHT="16"
+ SRC="/.*resources/panelMenuGroup/spacer.gif/" />
+
+ </TD>
+ <TD STYLE="width: 100%;" VPE-USER-TOGGLE-ID="1"
+ CLASS="rich-pmenu-top-group-self-label">
+ Group 1
+</TD>
+ <TD VPE-USER-TOGGLE-ID="1"
+ CLASS="rich-pmenu-group-self-icon rich-pmenu-top-group-self-icon">
+ <IMG
+ SRC="/.*resources/panelMenuGroup/disc.gif/" />
+
+ </TD>
+ </TR>
+ </TABLE>
</DIV>
- <DIV>
- <DIV VPESUPPORT="panelMenuGroup" VPE-USER-TOGGLE-ID="2"
- CLASS="dr-pmenu-group-div dr-pmenu-top-group-div">
- <TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"
- CLASS="dr-pmenu-top-group rich-pmenu-group" STYLE="margin-top: 3px;">
- <TR>
- <TD VPE-USER-TOGGLE-ID="2" CLASS="rich-pmenu-top-group-self-icon">
- <IMG WIDTH="16" VSPACE="0" HSPACE="0" HEIGHT="16"
- SRC="/.*resources/panelMenuGroup/spacer.gif/" />
- </TD>
- <TD STYLE="width: 100%;" VPE-USER-TOGGLE-ID="2"
- CLASS="rich-pmenu-top-group-self-label"> Group 2</TD>
- <TD VPE-USER-TOGGLE-ID="2"
- CLASS="rich-pmenu-group-self-icon rich-pmenu-top-group-self-icon">
- <IMG
- SRC="/.*resources/panelMenuGroup/chevronDown.gif/" />
- </TD>
- </TR>
- </TABLE>
- </DIV>
+ <DIV VPESUPPORT="panelMenuGroup" VPE-USER-TOGGLE-ID="2"
+ CLASS="dr-pmenu-top-group-div rich-pmenu-top-group-div">
+ <TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"
+ CLASS="dr-pmenu-top-group rich-pmenu-group" STYLE="">
+ <TR>
+ <TD VPE-USER-TOGGLE-ID="2" CLASS="rich-pmenu-top-group-self-icon">
+ <IMG WIDTH="16" VSPACE="0" HSPACE="0" HEIGHT="16"
+ SRC="/.*resources/panelMenuGroup/spacer.gif/" />
+
+ </TD>
+ <TD STYLE="width: 100%;" VPE-USER-TOGGLE-ID="2"
+ CLASS="rich-pmenu-top-group-self-label">
+ Group 2
+</TD>
+ <TD VPE-USER-TOGGLE-ID="2"
+ CLASS="rich-pmenu-group-self-icon rich-pmenu-top-group-self-icon">
+ <IMG
+ SRC="/.*resources/panelMenuGroup/disc.gif/" />
+
+ </TD>
+ </TR>
+ </TABLE>
</DIV>
- <DIV>
- <DIV VPESUPPORT="panelMenuGroup" VPE-USER-TOGGLE-ID="3"
- CLASS="dr-pmenu-group-div dr-pmenu-top-group-div">
- <TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"
- CLASS="dr-pmenu-top-group rich-pmenu-group" STYLE="margin-top: 3px;">
- <TR>
- <TD VPE-USER-TOGGLE-ID="3" CLASS="rich-pmenu-top-group-self-icon">
- <IMG WIDTH="16" VSPACE="0" HSPACE="0" HEIGHT="16"
- SRC="/.*resources/panelMenuGroup/spacer.gif/" />
- </TD>
- <TD STYLE="width: 100%;" VPE-USER-TOGGLE-ID="3"
- CLASS="rich-pmenu-top-group-self-label"> Group 3</TD>
- <TD VPE-USER-TOGGLE-ID="3"
- CLASS="rich-pmenu-group-self-icon rich-pmenu-top-group-self-icon">
- <IMG
- SRC="/.*resources/panelMenuGroup/chevronDown.gif/" />
- </TD>
- </TR>
- </TABLE>
- </DIV>
+ <DIV VPESUPPORT="panelMenuGroup" VPE-USER-TOGGLE-ID="3"
+ CLASS="dr-pmenu-top-group-div rich-pmenu-top-group-div">
+ <TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"
+ CLASS="dr-pmenu-top-group rich-pmenu-group" STYLE="">
+ <TR>
+ <TD VPE-USER-TOGGLE-ID="3" CLASS="rich-pmenu-top-group-self-icon">
+ <IMG WIDTH="16" VSPACE="0" HSPACE="0" HEIGHT="16"
+ SRC="/.*resources/panelMenuGroup/spacer.gif/" />
+
+ </TD>
+ <TD STYLE="width: 100%;" VPE-USER-TOGGLE-ID="3"
+ CLASS="rich-pmenu-top-group-self-label">
+ Group 3
+</TD>
+ <TD VPE-USER-TOGGLE-ID="3"
+ CLASS="rich-pmenu-group-self-icon rich-pmenu-top-group-self-icon">
+ <IMG
+ SRC="/.*resources/panelMenuGroup/disc.gif/" />
+
+ </TD>
+ </TR>
+ </TABLE>
</DIV>
</DIV>
</test>
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/panelMenuGroup.xhtml.xml
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/panelMenuGroup.xhtml.xml 2009-02-12 14:56:14 UTC (rev 13598)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/resources/richFacesTest/WebContent/pages/components/panelMenuGroup.xhtml.xml 2009-02-12 15:41:01 UTC (rev 13599)
@@ -1,25 +1,27 @@
<tests>
<test id="panelMenuGroup">
- <DIV>
- <DIV VPESUPPORT="panelMenuGroup" VPE-USER-TOGGLE-ID="1"
- CLASS="dr-pmenu-group-div dr-pmenu-top-group-div">
- <TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"
- CLASS="dr-pmenu-top-group rich-pmenu-group" STYLE="margin-top: 3px;">
- <TR>
- <TD VPE-USER-TOGGLE-ID="1" CLASS="rich-pmenu-top-group-self-icon">
- <IMG WIDTH="16" VSPACE="0" HSPACE="0" HEIGHT="16"
- SRC="/.*resources/panelMenuGroup/spacer.gif/"/>
- </TD>
- <TD STYLE="width: 100%;" VPE-USER-TOGGLE-ID="1"
- CLASS="rich-pmenu-top-group-self-label"> Group 1</TD>
- <TD VPE-USER-TOGGLE-ID="1"
- CLASS="rich-pmenu-group-self-icon rich-pmenu-top-group-self-icon">
- <IMG
- SRC="/.*resources/panelMenuGroup/chevronDown.gif/"/>
- </TD>
- </TR>
- </TABLE>
- </DIV>
- </DIV>
+ <DIV VPESUPPORT="panelMenuGroup" VPE-USER-TOGGLE-ID="1"
+ CLASS="dr-pmenu-top-group-div rich-pmenu-top-group-div">
+ <TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0"
+ CLASS="dr-pmenu-top-group rich-pmenu-group" STYLE="">
+ <TR>
+ <TD VPE-USER-TOGGLE-ID="1" CLASS="rich-pmenu-top-group-self-icon">
+ <IMG WIDTH="16" VSPACE="0" HSPACE="0" HEIGHT="16"
+ SRC="/.*resources/panelMenuGroup/spacer.gif/" />
+
+ </TD>
+ <TD STYLE="width: 100%;" VPE-USER-TOGGLE-ID="1"
+ CLASS="rich-pmenu-top-group-self-label">
+ Group 1
+</TD>
+ <TD VPE-USER-TOGGLE-ID="1"
+ CLASS="rich-pmenu-group-self-icon rich-pmenu-top-group-self-icon">
+ <IMG
+ SRC="/.*resources/panelMenuGroup/disc.gif/" />
+
+ </TD>
+ </TR>
+ </TABLE>
+ </DIV>
</test>
</tests>
\ No newline at end of file
Modified: trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1605Test.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1605Test.java 2009-02-12 14:56:14 UTC (rev 13598)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/src/org/jboss/tools/jsf/vpe/richfaces/test/jbide/JBIDE1605Test.java 2009-02-12 15:41:01 UTC (rev 13599)
@@ -38,7 +38,7 @@
private static final String PAGE = "components/panelMenuGroup/jbide1605.xhtml"; //$NON-NLS-1$
/** The Constant COUNT_OF_DIVS. */
- private static final int COUNT_OF_DIVS = 16;
+ private static final int COUNT_OF_DIVS = 13;
/**
* The Constructor.
15 years, 2 months
JBoss Tools SVN: r13598 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2009-02-12 09:56:14 -0500 (Thu, 12 Feb 2009)
New Revision: 13598
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/KeyEventManager.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/SelectionManager.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-3650
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/KeyEventManager.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/KeyEventManager.java 2009-02-12 11:37:02 UTC (rev 13597)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/KeyEventManager.java 2009-02-12 14:56:14 UTC (rev 13598)
@@ -21,7 +21,6 @@
import org.jboss.tools.vpe.editor.mapping.VpeElementData;
import org.jboss.tools.vpe.editor.mapping.VpeElementMapping;
import org.jboss.tools.vpe.editor.mapping.VpeNodeMapping;
-import org.jboss.tools.vpe.editor.selection.VpeSelectionController;
import org.jboss.tools.vpe.editor.util.NodesManagingUtil;
import org.jboss.tools.vpe.editor.util.SelectionUtil;
import org.jboss.tools.vpe.editor.util.TextUtil;
@@ -262,14 +261,14 @@
return true;
}
-
+
editable = nodeData.isEditable()
&& !isBorderPosition(
nodeData.getSourceNode(),
SelectionUtil
.getSourceSelectionRange(getSourceEditor()),
delete);
-
+
}
// if template can't give necessary information
else {
@@ -286,6 +285,7 @@
}
if (editable) {
+
sourceEditor.getTextViewer().getTextWidget().invokeAction(delete);
}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/SelectionManager.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/SelectionManager.java 2009-02-12 11:37:02 UTC (rev 13597)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/SelectionManager.java 2009-02-12 14:56:14 UTC (rev 13598)
@@ -17,6 +17,7 @@
import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
import org.eclipse.wst.sse.ui.StructuredTextEditor;
+import org.eclipse.wst.xml.core.internal.document.TextImpl;
import org.jboss.tools.vpe.editor.context.VpePageContext;
import org.jboss.tools.vpe.editor.mapping.NodeData;
import org.jboss.tools.vpe.editor.mapping.VpeDomMapping;
@@ -251,7 +252,7 @@
* source selection to visual selection
*/
final public void refreshVisualSelection() {
- // TODO Max Areshkau Adjust for restoring cursor position
+
IStructuredModel model = null;
try {
@@ -370,13 +371,13 @@
if (focusOffcetReferenceToSourceNode > length
|| anchorOffcetReferenceToSourceNode > length)
return;
-
+ TextImpl sourceTextImpl = (TextImpl) targetSourceNode;
int visualNodeFocusOffcet = TextUtil.visualPosition(
- ((Node) targetSourceNode).getNodeValue(),
+ sourceTextImpl.getValueSource(),
focusOffcetReferenceToSourceNode);
int visualNodeAnchorOffcet = TextUtil.visualPosition(
- ((Node) targetSourceNode).getNodeValue(),
+ sourceTextImpl.getValueSource(),
anchorOffcetReferenceToSourceNode);
nsISelection selection = selectionController.getSelection(
15 years, 2 months
JBoss Tools SVN: r13597 - trunk/jsf/docs/userguide/en/images/visual_page.
by jbosstools-commits@lists.jboss.org
Author: msorokin
Date: 2009-02-12 06:37:02 -0500 (Thu, 12 Feb 2009)
New Revision: 13597
Added:
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_23a.png
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_23b.png
Log:
https://jira.jboss.org/jira/browse/JBDS-598
images
Added: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_23a.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_23a.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_23b.png
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_23b.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 2 months
JBoss Tools SVN: r13596 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: msorokin
Date: 2009-02-12 06:36:30 -0500 (Thu, 12 Feb 2009)
New Revision: 13596
Modified:
trunk/jsf/docs/userguide/en/modules/editors.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-598
Insert around, Insert before, Insert after or Replace With options are documented
Modified: trunk/jsf/docs/userguide/en/modules/editors.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/editors.xml 2009-02-12 10:22:07 UTC (rev 13595)
+++ trunk/jsf/docs/userguide/en/modules/editors.xml 2009-02-12 11:36:30 UTC (rev 13596)
@@ -801,7 +801,35 @@
</imageobject>
</mediaobject>
</figure>
-
+ <para>
+
+ You can insert a tag/component from the pallet 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>
+
+ <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>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_23a.png"/>
+ </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>
+ <imageobject>
+ <imagedata fileref="images/visual_page/visual_page_23b.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+
<para><property>Visual Page Editor</property> provides the option for displaying
non-visual tags in Visual mode of the editor. To enable this option expand the
submenu in the top left corner of the Visual part and select <emphasis>
15 years, 2 months
JBoss Tools SVN: r13595 - trunk/jsf/docs/userguide/en/images/visual_page.
by jbosstools-commits@lists.jboss.org
Author: msorokin
Date: 2009-02-12 05:22:07 -0500 (Thu, 12 Feb 2009)
New Revision: 13595
Modified:
trunk/jsf/docs/userguide/en/images/visual_page/visual_page_7c.png
Log:
Corrected an icon in the image
Modified: trunk/jsf/docs/userguide/en/images/visual_page/visual_page_7c.png
===================================================================
(Binary files differ)
15 years, 2 months
JBoss Tools SVN: r13594 - trunk/as/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2009-02-12 04:29:45 -0500 (Thu, 12 Feb 2009)
New Revision: 13594
Modified:
trunk/as/docs/reference/en/modules/perspective.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-594 - adding the description of Explore option in the context menu of the server and deployed modules;
Modified: trunk/as/docs/reference/en/modules/perspective.xml
===================================================================
--- trunk/as/docs/reference/en/modules/perspective.xml 2009-02-12 08:20:10 UTC (rev 13593)
+++ trunk/as/docs/reference/en/modules/perspective.xml 2009-02-12 09:29:45 UTC (rev 13594)
@@ -264,6 +264,17 @@
<row>
<entry>
+ <para>Explore</para>
+ </entry>
+ <entry>
+ <para>This action uses the native OS file explorer to browse the
+ deploy destination. Note: The option is also available for
+ deployed resources/projects (see the figure below).</para>
+ </entry>
+ </row>
+
+ <row>
+ <entry>
<para>Add and Remove Projects</para>
</entry>
<entry>
@@ -323,8 +334,8 @@
<para>To add a new file filter, right-click the <emphasis>
<property>Filesets</property>
</emphasis> category and select <emphasis>
- <property>Create File Filter</property>.</emphasis>The
- <property>New File Filter wizard</property> should appear.</para>
+ <property>Create File Filter</property>.</emphasis>The <property>New File
+ Filter wizard</property> should appear.</para>
<figure>
<title>Creating a New File Filter</title>
@@ -353,10 +364,12 @@
</emphasis> category in the <property>JBoss Server View</property>.</para>
<para>It's possible now to edit files directly from the <emphasis>
- <property>Filesets</property></emphasis> category. Double clicking on a file from <emphasis>
- <property>Filesets</property></emphasis> opens up
- the editor automatically or you can use the <emphasis>
- <property>Edit File</property></emphasis> context menu command.</para>
+ <property>Filesets</property>
+ </emphasis> category. Double clicking on a file from <emphasis>
+ <property>Filesets</property>
+ </emphasis> opens up the editor automatically or you can use the <emphasis>
+ <property>Edit File</property>
+ </emphasis> context menu command.</para>
<figure>
<title>Direct Editing from the Filesets</title>
@@ -368,9 +381,12 @@
</figure>
<para>To delete a file filter (or just a file) from the <emphasis>
- <property>Filesets</property>,</emphasis> right-click a file filter (or the unnecessary file) and select the <emphasis>
- <property>Delete File Filter</property></emphasis> <emphasis>(<property>Delete File</property>)</emphasis> command.</para>
-
+ <property>Filesets</property>,</emphasis> right-click a file filter (or the
+ unnecessary file) and select the <emphasis>
+ <property>Delete File Filter</property>
+ </emphasis>
+ <emphasis>(<property>Delete File</property>)</emphasis> command.</para>
+
<figure>
<title>Deleting the File from the Filesets</title>
<mediaobject>
15 years, 2 months
JBoss Tools SVN: r13593 - trunk/esb/plugins/org.jboss.tools.esb.project.core.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-02-12 03:20:10 -0500 (Thu, 12 Feb 2009)
New Revision: 13593
Modified:
trunk/esb/plugins/org.jboss.tools.esb.project.core/plugin.xml
Log:
JBIDE-3801 - excluding esb runtime cp container from deployment bundling
Modified: trunk/esb/plugins/org.jboss.tools.esb.project.core/plugin.xml
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.project.core/plugin.xml 2009-02-12 07:59:40 UTC (rev 13592)
+++ trunk/esb/plugins/org.jboss.tools.esb.project.core/plugin.xml 2009-02-12 08:20:10 UTC (rev 13593)
@@ -185,4 +185,10 @@
</enablement>
</moduleArtifactAdapter>
</extension>
+ <extension
+ point="org.eclipse.jst.j2ee.classpathdep">
+ <filteredClasspathContainer
+ containerID="org.jboss.esb.runtime.classpath">
+ </filteredClasspathContainer>
+ </extension>
</plugin>
15 years, 2 months