JBoss Tools SVN: r2605 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template.
by jbosstools-commits@lists.jboss.org
Author: ayukhovich
Date: 2007-07-23 10:04:30 -0400 (Mon, 23 Jul 2007)
New Revision: 2605
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplate.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-531
add external java-doc for function isHaveVisualPreview()
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplate.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplate.java 2007-07-23 13:39:44 UTC (rev 2604)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplate.java 2007-07-23 14:04:30 UTC (rev 2605)
@@ -7,7 +7,7 @@
*
* Contributors:
* Exadel, Inc. and Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
+ ******************************************************************************/
package org.jboss.tools.vpe.editor.template;
import org.jboss.tools.jst.jsp.editor.ITextFormatter;
@@ -25,247 +25,395 @@
/**
* Initiates template after its creating
- * @param templateElement <code>Element</code> with a name "vpe:template" from the template file
- * @param caseSensitive The case sensitive of an element of a source file
+ *
+ * @param templateElement
+ * <code>Element</code> with a name "vpe:template" from the
+ * template file
+ * @param caseSensitive
+ * The case sensitive of an element of a source file
*/
void init(Element templateElement, boolean caseSensitive);
/**
- * Creates a node of the visual tree on the node of the source tree.
- * This visual node should not have the parent node
- * This visual node can have child nodes.
- * @param pageContext Contains the information on edited page.
- * @param sourceNode The current node of the source tree.
- * @param visualDocument The document of the visual tree.
- * @return The information on the created node of the visual tree.
+ * Creates a node of the visual tree on the node of the source tree. This
+ * visual node should not have the parent node This visual node can have
+ * child nodes.
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceNode
+ * The current node of the source tree.
+ * @param visualDocument
+ * The document of the visual tree.
+ * @return The information on the created node of the visual tree.
*/
- VpeCreationData create(VpePageContext pageContext, Node sourceNode, Document visualDocument);
-
+ VpeCreationData create(VpePageContext pageContext, Node sourceNode,
+ Document visualDocument);
+
/**
- * Is invoked after construction of all child nodes of the current visual node.
- * @param pageContext Contains the information on edited page.
- * @param sourceNode The current node of the source tree.
- * @param visualDocument The document of the visual tree.
- * @param data Object <code>VpeCreationData</code>, built by a method <code>create</code>
+ * Is invoked after construction of all child nodes of the current visual
+ * node.
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceNode
+ * The current node of the source tree.
+ * @param visualDocument
+ * The document of the visual tree.
+ * @param data
+ * Object <code>VpeCreationData</code>, built by a method
+ * <code>create</code>
*/
- void validate(VpePageContext pageContext, Node sourceNode, Document visualDocument, VpeCreationData data);
-
+ void validate(VpePageContext pageContext, Node sourceNode,
+ Document visualDocument, VpeCreationData data);
+
/**
* Processes keyboard input (without the pressed key Ctrl)
- * @param pageContext Contains the information on edited page.
- * @param sourceDocument The document of the source tree.
- * @param sourceNode The current node of the source tree.
- * @param visualNode The current node of the visual tree.
- * @param data The arbitrary data, built by a method <code>create</code>
- * @param charCode Code of the pressed key
- * @param selection The current selection
- * @param formatter Interface for formatting the source text
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceDocument
+ * The document of the source tree.
+ * @param sourceNode
+ * The current node of the source tree.
+ * @param visualNode
+ * The current node of the visual tree.
+ * @param data
+ * The arbitrary data, built by a method <code>create</code>
+ * @param charCode
+ * Code of the pressed key
+ * @param selection
+ * The current selection
+ * @param formatter
+ * Interface for formatting the source text
* @return <code>true</code> if the key is processed
*/
- boolean nonctrlKeyPressHandler(VpePageContext pageContext, Document sourceDocument, Node sourceNode, Node visualNode, Object data, int charCode, VpeSourceSelection selection, ITextFormatter formatter);
-
+ boolean nonctrlKeyPressHandler(VpePageContext pageContext,
+ Document sourceDocument, Node sourceNode, Node visualNode,
+ Object data, int charCode, VpeSourceSelection selection,
+ ITextFormatter formatter);
+
/**
- * Sets value of attribute of the current visual element.
- * Is invoked at change of attribute of an source element.
- * @param pageContext Contains the information on edited page.
- * @param sourceElement The current element of the source tree.
- * @param visualDocument The document of the visual tree.
- * @param visualNode The current node of the visual tree.
- * @param data The arbitrary data, built by a method <code>create</code>
- * @param name Attribute name.
- * @param value Attribute value.
+ * Sets value of attribute of the current visual element. Is invoked at
+ * change of attribute of an source element.
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceElement
+ * The current element of the source tree.
+ * @param visualDocument
+ * The document of the visual tree.
+ * @param visualNode
+ * The current node of the visual tree.
+ * @param data
+ * The arbitrary data, built by a method <code>create</code>
+ * @param name
+ * Attribute name.
+ * @param value
+ * Attribute value.
*/
- void setAttribute(VpePageContext pageContext, Element sourceElement, Document visualDocument, Node visualNode, Object data, String name, String value);
-
+ void setAttribute(VpePageContext pageContext, Element sourceElement,
+ Document visualDocument, Node visualNode, Object data, String name,
+ String value);
+
/**
* Informs on remove of attribute of the current source element.
- * @param pageContext Contains the information on edited page.
- * @param sourceElement The current element of the source tree.
- * @param visualDocument The document of the visual tree.
- * @param visualNode The current node of the visual tree.
- * @param data The arbitrary data, built by a method <code>create</code>
- * @param name Attribute name.
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceElement
+ * The current element of the source tree.
+ * @param visualDocument
+ * The document of the visual tree.
+ * @param visualNode
+ * The current node of the visual tree.
+ * @param data
+ * The arbitrary data, built by a method <code>create</code>
+ * @param name
+ * Attribute name.
*/
- void removeAttribute(VpePageContext pageContext, Element sourceElement, Document visualDocument, Node visualNode, Object data, String name);
-
+ void removeAttribute(VpePageContext pageContext, Element sourceElement,
+ Document visualDocument, Node visualNode, Object data, String name);
+
/**
* Is invoked before removal of the visiblis node from the tree
- * @param pageContext Contains the information on edited page.
- * @param sourceNode The current node of the source tree.
- * @param visualNode The current node of the visual tree.
- * @param data The arbitrary data, built by a method <code>create</code>
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceNode
+ * The current node of the source tree.
+ * @param visualNode
+ * The current node of the visual tree.
+ * @param data
+ * The arbitrary data, built by a method <code>create</code>
*/
- void beforeRemove(VpePageContext pageContext, Node sourceNode, Node visualNode, Object data);
-
+ void beforeRemove(VpePageContext pageContext, Node sourceNode,
+ Node visualNode, Object data);
+
/**
- * At a modification of the node of an source tree, the method update
- * for this node is invoked. Template can indicate other node for update
- * @param pageContext Contains the information on edited page.
- * @param sourceNode The current node of the source tree.
- * @param visualNode The current node of the visual tree.
- * @param data The arbitrary data, built by a method <code>create</code>
- * @return For this node of an source tree the method update is invoked.
- * If null, that is invoked update for current source node
+ * At a modification of the node of an source tree, the method update for
+ * this node is invoked. Template can indicate other node for update
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceNode
+ * The current node of the source tree.
+ * @param visualNode
+ * The current node of the visual tree.
+ * @param data
+ * The arbitrary data, built by a method <code>create</code>
+ * @return For this node of an source tree the method update is invoked. If
+ * null, that is invoked update for current source node
*/
- Node getNodeForUptate(VpePageContext pageContext, Node sourceNode, Node visualNode, Object data);
-
+ Node getNodeForUptate(VpePageContext pageContext, Node sourceNode,
+ Node visualNode, Object data);
+
/**
* Is invoked at resize of an element visual tree
- * @param pageContext Contains the information on edited page.
- * @param sourceElement The current element of the source tree.
- * @param visualDocument The document of the visual tree.
- * @param visualElement The current element of the visual tree.
- * @param data The arbitrary data, built by a method <code>create</code>
- * @param resizerConstrains Code of resizer:<br>
- * top-left: 1<br>
- * top: 2<br>
- * top-right: 4<br>
- * left: 8<br>
- * right: 16<br>
- * bottomleft: 32<br>
- * bottom: 64<br>
- * bottom-right: 128<br>
- * @param top Element top
- * @param left Element left
- * @param width Element width
- * @param height Element height
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceElement
+ * The current element of the source tree.
+ * @param visualDocument
+ * The document of the visual tree.
+ * @param visualElement
+ * The current element of the visual tree.
+ * @param data
+ * The arbitrary data, built by a method <code>create</code>
+ * @param resizerConstrains
+ * Code of resizer:<br>
+ * top-left: 1<br>
+ * top: 2<br>
+ * top-right: 4<br>
+ * left: 8<br>
+ * right: 16<br>
+ * bottomleft: 32<br>
+ * bottom: 64<br>
+ * bottom-right: 128<br>
+ * @param top
+ * Element top
+ * @param left
+ * Element left
+ * @param width
+ * Element width
+ * @param height
+ * Element height
*/
- void resize(VpePageContext pageContext, Element sourceElement, Document visualDocument, Element visualElement, Object data, int resizerConstrains, int top, int left, int width, int height);
-
+ void resize(VpePageContext pageContext, Element sourceElement,
+ Document visualDocument, Element visualElement, Object data,
+ int resizerConstrains, int top, int left, int width, int height);
+
/**
- * Checks a capability of drag of visual element
- * @param pageContext Contains the information on edited page.
- * @param sourceElement The current element of the source tree.
- * @param visualDocument The document of the visual tree.
- * @param visualElement The current element of the visual tree.
- * @param data The arbitrary data, built by a method <code>create</code>
+ * Checks a capability of drag of visual element
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceElement
+ * The current element of the source tree.
+ * @param visualDocument
+ * The document of the visual tree.
+ * @param visualElement
+ * The current element of the visual tree.
+ * @param data
+ * The arbitrary data, built by a method <code>create</code>
* @return <code>true</code> The element can be dragged
*/
- boolean canInnerDrag(VpePageContext pageContext, Element sourceElement, Document visualDocument, Element visualElement, Object data);
-
+ boolean canInnerDrag(VpePageContext pageContext, Element sourceElement,
+ Document visualDocument, Element visualElement, Object data);
+
/**
* Checks a capability to drop an element in the container
- * @param pageContext Contains the information on edited page.
- * @param container Element-Container
- * @param sourceDragNode Node for drop
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param container
+ * Element-Container
+ * @param sourceDragNode
+ * Node for drop
* @return <code>true</code> The node can be dropped
*/
- boolean canInnerDrop(VpePageContext pageContext, Node container, Node sourceDragNode);
-
+ boolean canInnerDrop(VpePageContext pageContext, Node container,
+ Node sourceDragNode);
+
/**
* Is invoked at drop of an element visual tree
- * @param pageContext Contains the information on edited page.
- * @param dragInfo The information on the dragged element
- * @param dropInfo The information on the drop container
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param dragInfo
+ * The information on the dragged element
+ * @param dropInfo
+ * The information on the drop container
*/
- void innerDrop(VpePageContext pageContext, VpeSourceInnerDragInfo dragInfo, VpeSourceInnerDropInfo dropInfo);
-
+ void innerDrop(VpePageContext pageContext, VpeSourceInnerDragInfo dragInfo,
+ VpeSourceInnerDropInfo dropInfo);
+
/**
* Returns <code>VpeTagDescription</code>
- * @param pageContext Contains the information on edited page.
- * @param sourceElement The current element of the source tree.
- * @param visualDocument The document of the visual tree.
- * @param visualElement The current element of the visual tree.
- * @param data The arbitrary data, built by a method <code>create</code>
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceElement
+ * The current element of the source tree.
+ * @param visualDocument
+ * The document of the visual tree.
+ * @param visualElement
+ * The current element of the visual tree.
+ * @param data
+ * The arbitrary data, built by a method <code>create</code>
* @return <code>VpeTagDescription</code>
*/
- VpeTagDescription getTagDescription(VpePageContext pageContext, Element sourceElement, Document visualDocument, Element visualElement, Object data);
-
+ VpeTagDescription getTagDescription(VpePageContext pageContext,
+ Element sourceElement, Document visualDocument,
+ Element visualElement, Object data);
+
/**
- * Checks, whether it is necessary to re-create an element at change of attribute
- * @param pageContext Contains the information on edited page.
- * @param sourceElement The current element of the source tree.
- * @param visualDocument The document of the visual tree.
- * @param visualNode The current node of the visual tree.
- * @param data The arbitrary data, built by a method <code>create</code>
- * @param name Atrribute name
- * @param value Attribute value
- * @return <code>true</code> if it is required to re-create an element at a modification of attribute, <code>false</code> otherwise.
+ * Checks, whether it is necessary to re-create an element at change of
+ * attribute
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceElement
+ * The current element of the source tree.
+ * @param visualDocument
+ * The document of the visual tree.
+ * @param visualNode
+ * The current node of the visual tree.
+ * @param data
+ * The arbitrary data, built by a method <code>create</code>
+ * @param name
+ * Atrribute name
+ * @param value
+ * Attribute value
+ * @return <code>true</code> if it is required to re-create an element at
+ * a modification of attribute, <code>false</code> otherwise.
*/
- boolean isRecreateAtAttrChange(VpePageContext pageContext, Element sourceElement, Document visualDocument, Node visualNde, Object data, String name, String value);
-
+ boolean isRecreateAtAttrChange(VpePageContext pageContext,
+ Element sourceElement, Document visualDocument, Node visualNde,
+ Object data, String name, String value);
+
/**
* @return <code>true</code> if the element can have children
*/
boolean isChildren();
-
+
/**
* @return <code>true</code> if the element is case sensitive
*/
boolean isCaseSensitive();
-
-
+
/**
+ * Return <code>true</code> if the element has visual preview on tab 'Preview', otherwise <code>false</code>.
+ * This value initialized in attribute <b>haveVisualPreview</b> for tag <b><vpe:template></b>.
+ * Default value <code>true</code> if this attribute not present. <br/>For example tag <code><h:form></code>:<br/>
+ * In visual editor (see tab 'Visual') have a red border, but it not visible on tab 'Preview'. See part code for this template:<br>
+ * <code><vpe:template children="yes" modify="yes" haveVisualPreview="no"></code><br><br>
+ *This element have visible on tab 'Preview:'<br/>
+ *<code><vpe:template children="yes" modify="yes" haveVisualPreview="yes"></code> <br/>
+ *or<br/>
+ *<code><vpe:template children="yes" modify="yes" ></code><br/>
+ * <br/><br/>This element have not visible on tab 'Preview':<br/>
+ * <code><vpe:template children="yes" modify="yes" haveVisualPreview="no"></code>
* @return <code>true</code> if the element is have visual preview
*/
- boolean isHaveVisualPreview();
-
+ boolean isHaveVisualPreview();
+
/**
* Returns the data for formatting an element of source tree
+ *
* @return <code>TextFormatingData</code>
*/
TextFormatingData getTextFormatingData();
-
+
/**
- * Returns a list of attributes of an element of the source tree,
- * the values which one are mapped in the visiblis editor
+ * Returns a list of attributes of an element of the source tree, the values
+ * which one are mapped in the visiblis editor
+ *
* @return attrubute name array
*/
- String [] getOutputAtributeNames();
+ String[] getOutputAtributeNames();
/**
* Is invoked at a change of bundle values
- * @param pageContext Contains the information on edited page.
- * @param sourceElement The current element of the source tree.
- * @param data The arbitrary data, built by a method <code>create</code>
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceElement
+ * The current element of the source tree.
+ * @param data
+ * The arbitrary data, built by a method <code>create</code>
*/
- void refreshBundleValues(VpePageContext pageContext, Element sourceElement, Object data);
+ void refreshBundleValues(VpePageContext pageContext, Element sourceElement,
+ Object data);
/**
- * Opens proprties editor for bundle value
- * Is invoked at double mouse click on visual element
- * @param pageContext Contains the information on edited page.
- * @param sourceElement The current element of the source tree.
- * @param data The arbitrary data, built by a method <code>create</code>
+ * Opens proprties editor for bundle value Is invoked at double mouse click
+ * on visual element
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceElement
+ * The current element of the source tree.
+ * @param data
+ * The arbitrary data, built by a method <code>create</code>
*/
- void openBundleEditors(VpePageContext pageContext, Element sourceElement, Object data);
+ void openBundleEditors(VpePageContext pageContext, Element sourceElement,
+ Object data);
/**
* Opens editor of source file for include-element
- * @param pageContext Contains the information on edited page.
- * @param sourceElement The current element of the source tree.
- * @param data The arbitrary data, built by a method <code>create</code>
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceElement
+ * The current element of the source tree.
+ * @param data
+ * The arbitrary data, built by a method <code>create</code>
*/
- void openIncludeEditor(VpePageContext pageContext, Element sourceElement, Object data);
+ void openIncludeEditor(VpePageContext pageContext, Element sourceElement,
+ Object data);
/**
* @deprecated
- * @param pageContext Contains the information on edited page.
- * @param sourceElement The current element of the source tree.
- * @param data The arbitrary data, built by a method <code>create</code>
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceElement
+ * The current element of the source tree.
+ * @param data
+ * The arbitrary data, built by a method <code>create</code>
*/
- void setSourceAttributeValue(VpePageContext pageContext, Element sourceElement, Object data);
-
+ void setSourceAttributeValue(VpePageContext pageContext,
+ Element sourceElement, Object data);
+
/**
- * If the value of attribute of an element of an source tree
- * is mapped by the way of text node of a visual treer,
- * this method returns the text node, otherwise - null
- * @param pageContext Contains the information on edited page.
- * @param sourceElement The current element of the source tree.
- * @param data The arbitrary data, built by a method <code>create</code>
+ * If the value of attribute of an element of an source tree is mapped by
+ * the way of text node of a visual treer, this method returns the text
+ * node, otherwise - null
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceElement
+ * The current element of the source tree.
+ * @param data
+ * The arbitrary data, built by a method <code>create</code>
* @return Text node or null
*/
- Node getOutputTextNode(VpePageContext pageContext, Element sourceElement, Object data);
+ Node getOutputTextNode(VpePageContext pageContext, Element sourceElement,
+ Object data);
/**
* @deprecated
- * @param pageContext Contains the information on edited page.
- * @param sourceElement The current element of the source tree.
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceElement
+ * The current element of the source tree.
* @param offset
* @param length
* @param data
*/
- void setSourceAttributeSelection(VpePageContext pageContext, Element sourceElement, int offset, int length, Object data);
+ void setSourceAttributeSelection(VpePageContext pageContext,
+ Element sourceElement, int offset, int length, Object data);
/**
* @deprecated
@@ -285,15 +433,20 @@
VpeAnyData getAnyData();
/**
- * The unfilled element of an source tree can be mapped
- * in the visiblis editor with the default contents
- * This method fills default contents
- * @param pageContext Contains the information on edited page.
- * @param sourceContainer The current element of the source tree.
- * @param visualContainer The current element of the visual tree.
- * @param visualDocument The document of the visual tree.
+ * The unfilled element of an source tree can be mapped in the visiblis
+ * editor with the default contents This method fills default contents
+ *
+ * @param pageContext
+ * Contains the information on edited page.
+ * @param sourceContainer
+ * The current element of the source tree.
+ * @param visualContainer
+ * The current element of the visual tree.
+ * @param visualDocument
+ * The document of the visual tree.
*/
- void setPseudoContent(VpePageContext pageContext, Node sourceContainer, Node visualContainer, Document visualDocument);
-
+ void setPseudoContent(VpePageContext pageContext, Node sourceContainer,
+ Node visualContainer, Document visualDocument);
+
boolean containsText();
}
\ No newline at end of file
17 years, 5 months
JBoss Tools SVN: r2604 - in trunk/documentation/GettingStartedGuide/docs/userguide/en: modules and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: sabrashevich
Date: 2007-07-23 09:39:44 -0400 (Mon, 23 Jul 2007)
New Revision: 2604
Added:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/installjdkwindows1.png
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedWithRHDS.xml
Log:
http://jira.jboss.com/jira/browse/EXIN-104?page=all first chapter is modified
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/installjdkwindows1.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/installjdkwindows1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedWithRHDS.xml
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedWithRHDS.xml 2007-07-23 13:28:20 UTC (rev 2603)
+++ trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/GettingStartedWithRHDS.xml 2007-07-23 13:39:44 UTC (rev 2604)
@@ -10,114 +10,57 @@
</keywordset>
</chapterinfo>
<title>Getting Started with Red Hat Developer Studio</title>
- <section id="Prerequisites">
- <?dbhtml filename="Prerequisites.html"?>
- <title>Prerequisites</title>
- <para>Before installation Red Hat Developer Studio make sure you have an appropriate JDK version installed on your Linux system. Studio will properly work with the next JDK's:</para>
+ <section id="JDKInstalling">
+ <?dbhtml filename="JDKInstalling.html"?>
+ <title>JDK Installation</title>
+ <para>Before installing Red Hat Developer Studio make sure you have an appropriate JDK version installed on your Linux system. Studio will properly work with the next JDK's:</para>
<itemizedlist>
<listitem>JDK 1.5</listitem>
<listitem>JDK 1.6</listitem>
</itemizedlist>
- <para>If your Linux comes with no proper JDK you should install it.</para>
- <para>For proper installation the java from Sun there is need to install the java from .rpm file or after installing it from .bin it is need to tune the java with command "alternative".</para>
- <para>Red Hat Enterprise Linux includes several JDK's from Sun, IBM, and BEA. For RHEL 4, they are in the "Extras" RHN Channel. For RHEL 5, they are in the "Supplementary" RHN channel.
-</para>
- <section id="HowToInstallJDK">
- <title>How to setup and install a proper JDK on RHEL</title>
- <section id="RHEL_JDK_support">
- <title>What Java Development Kits (JDKs) are provided with Red Hat Enterprise Linux and what support does Red Hat offer for them?</title>
- <para>To make it as easy as possible for customers to install and run Java applications on Red Hat Enterprise Linux, third-party Java Development Kits
- (JDKs) from IBM and BEA are provided through the Red Hat Enterprise Linux Extras channel on Red Hat Network (RHN) and on the Red Hat Enterprise
- Linux Extras CD. Red Hat's current and planned availability of the IBM JDK is as follows:</para>
-
- <itemizedlist>
- <listitem><para>IBM JDK 1.4.2.3. (currently shipped with Red Hat Enterprise Linux 3 Update 8 and Red Hat Enterprise Linux 4 Update 4)</para></listitem>
- <listitem><para>IBM JDK 1.5.0 (currently shipped with Red Hat Enterprise Linux 4 Update 4)</para></listitem>
- <listitem><para>IBM JDK 1.4.2.6 (planned for Red Hat Enterprise Linux 4 Update 5 and Red Hat Enterprise Linux 5)</para></listitem>
- <listitem><para>IBM JDK 1.5.3 (planned for Red Hat Enterprise Linux 4 Update 5 and Red Hat Enterprise Linux 5)</para></listitem>
- </itemizedlist>
-
- <para>Red Hat does not provide the special version "IBM JDK 1.4.2 for SAP"; this software is available directly from IBM.</para>
- <para>The IBM and BEA JDKs, along with the other packages on the Extras CD, are licensed separately (see http://www.redhat.com/licenses/thirdparty/eula.html)
- and are not included under the Red Hat Enterprise Linux production-level Service Level Agreement (SLA).</para>
- <para>Customers who require enterprise-level support for either JDK package must purchase it directly from the Java vendor. Red Hat's support of the
- IBM and BEA JDKs included on the Red Hat Enteprise Linux Extra CD/RHN channel is limited to:</para>
- <itemizedlist>
- <listitem><para>Assistance with installation and configuration of the Red Hat provided Java Runtime environment.</para></listitem>
- <listitem><para>Verification of proper operation through the use of a Red Hat provided test program written in Java.</para></listitem>
- </itemizedlist>
- <para>Note that this support does not include assistance with the development of Java applications, which is available with Red Hat's Development
- Support Services. In addition, the JDKs are not eligible for a "hotfix" through the Red Hat Hotfix process.</para>
- <para>If the customer problem lies in the Red Hat Enterprise Linux operating system, Red Hat provides full production-level support for problem resolution.
- If the problem lies in the JDK, Red Hat will escalate the problem to the appropriate Java vendor via bugzilla, but cannot guarantee response or problem
- resolution by that vendor.</para>
- </section>
-
- <section id="Java-1.5.0-sun packages"><title>Java-1.5.0-sun packages</title>
-
- <para><emphasis role="bold">Details:</emphasis></para>
- <para>The following packages comprise Sun's 1.5.0 Java release: </para>
- <para>java-1.5.0-sun</para>
- <para>java-1.5.0-sun-demo</para>
- <para>java-1.5.0-sun-devel</para>
- <para>java-1.5.0-sun-jdbc</para>
- <para>java-1.5.0-sun-plugin</para>
- <para>java-1.5.0-sun-src </para>
-
- <para>These packages include the Sun Java 5 Runtime Environment, Sun Java
- 5 Software Development Kit, and Sun's 1.5.0_11-b03 SDK release.</para>
- <para>The Java 5 Runtime Environment (JRE) consists of the Java virtual machine,
- the Java platform core classes and supporting files, and includes a Web
- browser plug-in for running Java applets. It is the runtime section of the
- Java 5 SDK, but without the development tools such as compilers and debuggers.</para>
- <para>The Java 5 Software Development Kit (SDK) is a development environment for
- building applications, applets, and components that can be deployed on the
- Java platform. The Java 5 SDK software includes tools useful for
- developing and testing programs written in the Java programming language.
- The Java 5 SDK software also includes a JDBC/ODBC bridge for Java
- applications that need to communicate with a database. </para>
- <para>Java users are advised to install these packages.</para>
-
- <para><emphasis role="bold">Solution:</emphasis></para>
- <para>Before applying this update, make sure all previously released errata
- relevant to your system have been applied.</para>
- <para>To update all RPMs for your particular architecture, run: </para>
- <programlisting><![CDATA[rpm -Fvh [filenames]]]></programlisting>
- <para>where [filenames] is a list of the RPMs you wish to upgrade. Only those
- RPMs which are currently installed will be updated. Those RPMs which are
- not installed but included in the list will not be updated. Note that you
- can also use wildcards (*.rpm) if your current directory *only* contains the
- desired RPMs.
- </para>
- <para>
- Please note that this update is also available via Red Hat Network. Many
- people find this an easier way to apply updates. To use Red Hat Network,
- launch the Red Hat Update Agent with the following command: </para>
- <programlisting><![CDATA[up2date]]></programlisting>
- <para>This will start an interactive process that will result in the appropriate
- RPMs being upgraded on your system.</para></section>
-
- <section id="RHEL 5"><title>RHEL 5</title>
- <para>The instructions for RHEL 5 are similar to RHEL 4, except that RHEL 5 uses "yum" instead of "up2date",
- and they are in the supplementary channel rather than the extras channel.</para>
-
- <para>Install the 32-bit Java plugin as shown below:</para>
-
- <programlisting><![CDATA[$ yum install java-1.4.2-ibm-plugin java-1.4.2-ibm.i386 libXp.i386 gtk+.i386]]></programlisting>
-<para>or</para>
- <programlisting><![CDATA[$ yum install java-1.5.0-ibm-plugin java-1.5.0-ibm.i386 libXp.i386 gtk +.i386]]></programlisting>
-
- <para>Alternatively, download Java6 ( jdk-6u1-linux-i586-rpm.bin ) from http://java.sun.com, and install it. Once done, install the Java plugin as shown:</para>
-
- <programlisting><![CDATA[$ ln -s /usr/java/latest/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/]]></programlisting>
-
- </section>
- </section>
+ <section id="JDKInstallingOnWindows">
+ <?dbhtml filename="JDKInstallingOnWindows.html"?>
+ <title>JDK Installation on Windows</title>
+ <para>To install JDK on Windows you should download an appropriate JDK package from Sun site. After launching an executable file of this JDK you will see the first window of wizard:</para>
+<figure>
+<title>First Wizard Dialog</title>
+<mediaobject>
+ <imageobject>
+ <imagedata fileref="images/installjdkwindows1.png"/>
+ </imageobject>
+</mediaobject>
+</figure>
+ <para>After accepting the license agreement just follow the intuitive installation wizard's steps.</para>
+ </section>
+ <section id="HowToInstallJDKOnLinux">
+ <?dbhtml filename="JDKInstalling.html"?>
+ <title>How to setup and install JDK on RHEL</title>
+ <para>For proper installation the java from Sun there is need to install the java from .rpm file or after installing it from .bin it is necessary to tune the java with command "alternative".</para>
+ <para>If your Linux distribution comes with no Java you should install it. The installation Java on Linux is pretty straightforward.</para>
+ <orderedlist>
+ <listitem>
+ <para>Download the JDK from Sun, to start go here: <ulink url="http://developers.sun.com/downloads/">Download JDK</ulink></para></listitem>
+ <listitem><para>Choose JDK 1.5 or JDK 1.6.</para></listitem>
+ <listitem><para>Click on "Donwload" button right to the appropriate section.</para></listitem>
+ <listitem><para>Accept the license and continue.</para></listitem>
+ <listitem><para>Under the "Linux Platform", select "RPM in self-extracting file".</para></listitem>
+ <listitem><para>Download this .bin file and save it to your Linux machine.</para></listitem>
+ <listitem><para>Once it has been downloaded, login as root and switch to the directory where you saved the file.</para></listitem>
+ <listitem><para>Execute './filename', where filename is the name of the file that you downloaded. The filename might be very similar to jdk-6-linux-i586-rpm.bin depending on what the latest version is. You may have to make the file executable by executing the 'chmod +x filename.bin' command.</para></listitem>
+ <listitem><para>You will get a license, press space bar a bunch of times until you are prompted to enter yes or no. Type in yes and hit enter.</para></listitem>
+ <listitem><para>This will place an .rpm file in the same directory as your .bin file with the same name (minus the .bin part).</para></listitem>
+ <listitem><para>Install the rpm file by executing 'rpm -i filename.rpm', where filename is the name of your .rpm file. (Such as jdk-6-linux-i586.rpm).</para></listitem>
+ <listitem><para>Now, if you want to be able to execute this version of Java interpretor or compiler from any directory on your Linux system you will have to create a few symbolic links:</para></listitem></orderedlist>
+<programlisting role="JAVA"><![CDATA[ln -s /usr/java/jdk1.6.0/bin/java /usr/bin/java]]></programlisting>
+
+ <programlisting role="JAVA"><![CDATA[ln -s /usr/java/jdk1.6.0/bin/javac /usr/bin/javac]]></programlisting>
+
+ </section>
</section>
- <section id="Installing">
- <?dbhtml filename="Installing.html"?>
- <title>Installation</title>
- <section id="Inst from down ver">
+ <section id="InstallingRHDS">
+ <?dbhtml filename="InstallingRHDS.html"?>
+ <title>Red Hat Developer Studio Installation</title>
+ <section id="Instfromdownver">
<title>Installing from the downloaded version</title>
<itemizedlist>
<listitem>
17 years, 5 months
JBoss Tools SVN: r2603 - trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/webapp/model.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-23 09:28:20 -0400 (Mon, 23 Jul 2007)
New Revision: 2603
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/webapp/model/FileWebAppLoader.java
Log:
EXIN-86 xml validation by meta for web.xml fixed
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/webapp/model/FileWebAppLoader.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/webapp/model/FileWebAppLoader.java 2007-07-23 13:09:01 UTC (rev 2602)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/webapp/model/FileWebAppLoader.java 2007-07-23 13:28:20 UTC (rev 2603)
@@ -10,6 +10,8 @@
******************************************************************************/
package org.jboss.tools.jst.web.webapp.model;
+import java.util.Set;
+
import org.w3c.dom.*;
import org.jboss.tools.common.meta.*;
@@ -33,6 +35,22 @@
class FWLoaderUtil extends XModelObjectLoaderUtil {
boolean schema = false;
+ protected Set<String> getAllowedChildren(XModelEntity entity) {
+ Set<String> children = super.getAllowedChildren(entity);
+ if("WebAppResourceCollection".equals(entity.getName())) {
+ children.add("url-pattern");
+ children.add("http-method");
+ } else if("WebAppServiceRef".equals(entity.getName())) {
+ children.add("port-component-ref");
+ children.add("handler");
+ } else if("WebAppFilterMapping24".equals(entity.getName())) {
+ children.add("dispatcher");
+ } else if(entity.getName().startsWith("FileWebApp")) {
+ children.add("distributable");
+ }
+ return children;
+ }
+
protected boolean isSaveable(XModelEntity entity, String n, String v, String dv) {
if("load-on-startup".equals(n)) return false;
if(v == null) return false;
17 years, 5 months
JBoss Tools SVN: r2602 - in trunk/jst/plugins/org.jboss.tools.jst.web: src/org/jboss/tools/jst/web/project/helpers and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-23 09:09:01 -0400 (Mon, 23 Jul 2007)
New Revision: 2602
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/web.meta
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/helpers/NewWebProjectHelper.java
Log:
Obsolete *.pex extension usage removed
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/web.meta
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/web.meta 2007-07-23 13:08:16 UTC (rev 2601)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/web.meta 2007-07-23 13:09:01 UTC (rev 2602)
@@ -1635,23 +1635,6 @@
HandlerClassName="org.jboss.tools.jst.web.project.handlers.CreateWebPrjHandler"
ICON="main.projects.new" SAVE_REQUIRED="yes"
displayName="Create New Project..." kind="action" name="CreateStrutsProject"/>
- <XActionItem HIDE="always"
- HandlerClassName="org.jboss.tools.struts.webprj.model.handlers.ImportWebPrjHandler"
- ICON="main.projects.item"
- PROPERTIES="support=org.jboss.tools.struts.webprj.model.handlers.ImportWebPrjSupport"
- SAVE_REQUIRED="yes" displayName="Adopt Existing Project..."
- kind="action" name="ImportStrutsProject">
- <EntityData EntityName="WebPrjCreateStepName">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="location"/>
- </EntityData>
- <EntityData EntityName="WebPrjCreateStepDirs">
- <AttributeData AttributeName="webroot"/>
- <AttributeData AttributeName="classes" Mandatory="no"/>
- <AttributeData AttributeName="lib" Mandatory="no"/>
- <AttributeData AttributeName="src" Mandatory="no"/>
- </EntityData>
- </XActionItem>
<XActionItem HandlerClassName="%SpecialWizard%" ICON="action.empty"
PROPERTIES="support=org.jboss.tools.struts.webprj.model.helpers.sync.SyncProjectSupport"
displayName="Modules Configuration" kind="action" name="SynchronizeModules"/>
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/helpers/NewWebProjectHelper.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/helpers/NewWebProjectHelper.java 2007-07-23 13:08:16 UTC (rev 2601)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/project/helpers/NewWebProjectHelper.java 2007-07-23 13:09:01 UTC (rev 2602)
@@ -124,27 +124,6 @@
}
}
- public static String getWorkspace(File folder) {
- File[] files = folder.listFiles(new FileFilter() {
- public boolean accept(File file) {
- String name = file.getName().toLowerCase();
- return file.isFile() && name.endsWith(".pex");
- }
- });
- return (files != null && files.length > 0) ? files[0].getAbsolutePath() : null;
- }
-
- public static void removeWorkspace(File folder) {
- File[] files = folder.listFiles(new FileFilter() {
- public boolean accept(File file) {
- String name = file.getName().toLowerCase();
- return file.isFile() &&
- (name.endsWith(".pex"));
- }
- });
- if(files != null) for (int i = 0; i < files.length; i++) files[i].delete();
- }
-
public static Map<String,String> getTemplates(String version, String templ) {
Map<String,String> map = new HashMap<String,String>();
File dir = new File(templ, "struts/"+version);
17 years, 5 months
JBoss Tools SVN: r2601 - in trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core: event and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-23 09:08:16 -0400 (Mon, 23 Jul 2007)
New Revision: 2601
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamScope.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/event/ISeamValueList.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/event/ISeamValueMap.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/event/ISeamValueMapEntry.java
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/event/ISeamValueString.java
Log:
EXIN-217 - comments added
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamScope.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamScope.java 2007-07-23 13:04:52 UTC (rev 2600)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/ISeamScope.java 2007-07-23 13:08:16 UTC (rev 2601)
@@ -1,3 +1,13 @@
+/*******************************************************************************
+ * 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.seam.core;
import java.util.List;
@@ -2,6 +12,17 @@
+/**
+ * @author Viacheslav Kabanovich
+ */
public interface ISeamScope extends ISeamElement {
+ /**
+ *
+ * @return ScopeType object identifying this object in project
+ */
public ScopeType getType();
+ /**
+ *
+ * @return list of all seam components resolved to this scope
+ */
public List<ISeamComponent> getComponents();
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/event/ISeamValueList.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/event/ISeamValueList.java 2007-07-23 13:04:52 UTC (rev 2600)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/event/ISeamValueList.java 2007-07-23 13:08:16 UTC (rev 2601)
@@ -16,7 +16,10 @@
* @author Viacheslav Kabanovich
*/
public interface ISeamValueList extends ISeamValue {
-
+ /**
+ *
+ * @return values of seam list property
+ */
public List<ISeamValueString> getValues();
}
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/event/ISeamValueMap.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/event/ISeamValueMap.java 2007-07-23 13:04:52 UTC (rev 2600)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/event/ISeamValueMap.java 2007-07-23 13:08:16 UTC (rev 2601)
@@ -17,6 +17,10 @@
*/
public interface ISeamValueMap extends ISeamValue {
+ /**
+ *
+ * @return entries of seam map property
+ */
public List<ISeamValueMapEntry> getEntries();
}
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/event/ISeamValueMapEntry.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/event/ISeamValueMapEntry.java 2007-07-23 13:04:52 UTC (rev 2600)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/event/ISeamValueMapEntry.java 2007-07-23 13:08:16 UTC (rev 2601)
@@ -17,8 +17,16 @@
*/
public interface ISeamValueMapEntry extends ISeamElement {
+ /**
+ *
+ * @return key of entry of seam map property
+ */
public ISeamValueString getKey();
+ /**
+ *
+ * @return value of entry of seam map property
+ */
public ISeamValueString getValue();
}
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/event/ISeamValueString.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/event/ISeamValueString.java 2007-07-23 13:04:52 UTC (rev 2600)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/core/event/ISeamValueString.java 2007-07-23 13:08:16 UTC (rev 2601)
@@ -17,6 +17,11 @@
*/
public interface ISeamValueString extends ISeamValue {
+ /**
+ * Returns value info object that includes string value
+ * of seam property and its position in source.
+ * @return value info object
+ */
public IValueInfo getValue();
}
17 years, 5 months
JBoss Tools SVN: r2600 - trunk/seam/plugins/org.jboss.tools.seam.ui.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-23 09:04:52 -0400 (Mon, 23 Jul 2007)
New Revision: 2600
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml
Log:
EXIN-218 - action provider id uniqueness provided
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml 2007-07-23 12:55:54 UTC (rev 2599)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/plugin.xml 2007-07-23 13:04:52 UTC (rev 2600)
@@ -139,7 +139,7 @@
</possibleChildren>
<actionProvider
class="org.jboss.tools.seam.ui.views.actions.SeamActionProvider"
- id="org.jboss.tools.seam.ui.views.actions.SeamActionProvider">
+ id="org.jboss.tools.seam.ui.views.actions.SeamActionProvider.root">
<enablement>
<or>
<instanceof value="org.jboss.tools.seam.core.ISeamElement"/>
17 years, 5 months
JBoss Tools SVN: r2599 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-23 08:55:54 -0400 (Mon, 23 Jul 2007)
New Revision: 2599
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelImpl.java
Log:
Obsolete *.pex extension usage removed
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelImpl.java 2007-07-23 12:50:32 UTC (rev 2598)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelImpl.java 2007-07-23 12:55:54 UTC (rev 2599)
@@ -50,7 +50,6 @@
import org.jboss.tools.common.model.util.ModelFeatureFactory;
import org.jboss.tools.common.model.util.XBundle;
import org.jboss.tools.common.model.util.XModelObjectLoaderUtil;
-import org.jboss.tools.common.model.util.XModelObjectUtil;
import org.jboss.tools.common.util.FileUtil;
public class XModelImpl implements XModel {
@@ -433,43 +432,6 @@
}
}
- public void loadLastProject() {
- String workspace = properties.getProperty(XModelConstants.WORKSPACE);
- if(workspace != null && workspace.trim().length() > 0) return;
- load(getLastWorkspace());
- }
-
- private String[] getLastWorkspace() {
- XModelObject pr = getRoot().getChildByPath("Workspaces");
- if("no".equals(pr.getAttributeValue("open workspace"))) return null;
- XModelObject[] os = pr.getChildren();
- for (int i = 0; i < os.length; i++) {
- String s = XModelObjectUtil.getExpandedValue(os[i], "name", null);
- s = reduceURLPath(s);
- if(s.lastIndexOf(':') >= 2 || new File(s).exists()) continue;
- os[i].removeFromParent();
- pr.setModified(true);
- }
- if(pr.isModified()) save();
- os = pr.getChildren();
- if(os.length == 0) return null;
- String s = XModelObjectUtil.getExpandedValue(os[0], "name", null);
- s = reduceURLPath(s);
- int q = s.lastIndexOf('/');
- String ws = s.substring(0, q);
- String n = s.substring(q + 1);
- q = n.lastIndexOf('-');
- String wsn = (q < 0) ? null : n.substring(0, q);
- return new String[]{ws, wsn};
- }
-
- private void load(String[] workspace) {
- if(workspace == null || workspace[0] == null) return;
- XModelConstants.setWorkspace(this, workspace[0]);
- XModelConstants.setWorkspaceName(this, workspace[1]);
- load();
- }
-
public void update() {
XModelObject r = getRoot();
XModelObjectLoaderUtil.getObjectLoader(r).update(r);
@@ -572,4 +534,3 @@
return Collections.unmodifiableMap(managers);
}
}
-
17 years, 5 months
JBoss Tools SVN: r2598 - in trunk/struts/plugins/org.jboss.tools.struts: src/org/jboss/tools/struts/webprj/model/handlers and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-23 08:50:32 -0400 (Mon, 23 Jul 2007)
New Revision: 2598
Removed:
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/model/handlers/ImportWebPrjHandler.java
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/model/handlers/ImportWebPrjSupport.java
Modified:
trunk/struts/plugins/org.jboss.tools.struts/plugin.xml
trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/model/helpers/adopt/AdoptProjectStepLocation.java
Log:
Obsolete *.pex extension usage removed
Modified: trunk/struts/plugins/org.jboss.tools.struts/plugin.xml
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/plugin.xml 2007-07-23 12:49:46 UTC (rev 2597)
+++ trunk/struts/plugins/org.jboss.tools.struts/plugin.xml 2007-07-23 12:50:32 UTC (rev 2598)
@@ -293,8 +293,6 @@
<xclass id="org.jboss.tools.struts.webprj.model.WebProjectTree"
class="org.jboss.tools.struts.webprj.model.WebProjectTree"/>
- <xclass id="org.jboss.tools.struts.webprj.model.handlers.ImportWebPrjHandler"
- class="org.jboss.tools.struts.webprj.model.handlers.ImportWebPrjHandler"/>
<xclass id="org.jboss.tools.struts.webprj.model.handlers.SetLocationHandler"
class="org.jboss.tools.struts.webprj.model.handlers.SetLocationHandler"/>
<xclass id="org.jboss.tools.struts.webprj.model.helpers.sync.SortFileSystems"
@@ -351,8 +349,6 @@
class="org.jboss.tools.struts.webprj.model.helpers.sync.AddModuleSupport"/>
<xclass id="org.jboss.tools.struts.model.helpers.path.SelectPathSupport"
class="org.jboss.tools.struts.model.helpers.path.SelectPathSupport"/>
- <xclass id="org.jboss.tools.struts.webprj.model.handlers.ImportWebPrjSupport"
- class="org.jboss.tools.struts.webprj.model.handlers.ImportWebPrjSupport"/>
<xclass id="org.jboss.tools.common.meta.constraint.impl.XAttributeConstraintFileSize"
class="org.jboss.tools.common.meta.constraint.impl.XAttributeConstraintFileSize"/>
Deleted: trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/model/handlers/ImportWebPrjHandler.java
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/model/handlers/ImportWebPrjHandler.java 2007-07-23 12:49:46 UTC (rev 2597)
+++ trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/model/handlers/ImportWebPrjHandler.java 2007-07-23 12:50:32 UTC (rev 2598)
@@ -1,37 +0,0 @@
-/*
- * ImportWebPrjHandler.java
- *
- * Created on February 12, 2003, 10:40 AM
- */
-
-package org.jboss.tools.struts.webprj.model.handlers;
-
-import org.jboss.tools.common.meta.action.impl.handlers.*;
-import org.jboss.tools.common.model.*;
-import org.jboss.tools.jst.web.project.helpers.NewWebProjectHelper;
-
-import java.util.*;
-
-/**
- *
- * @author valera
- */
-public class ImportWebPrjHandler extends DefaultSpecialHandler {
-
- private static NewWebProjectHelper helper = new NewWebProjectHelper();
-
- /** Creates a new instance of ImportWebPrjHandler */
- public ImportWebPrjHandler() {
- }
-
- public void executeHandler(XModelObject object, Properties p) throws Exception {
- if (p == null) p = new Properties();
- super.executeHandler(object, p);
- if (p.getProperty("canceled") != null) return;
- if (p.getProperty("finished") == null) return;
-// String location = p.getProperty("location");
- if(true) throw new Exception("Method changed");
- helper.createProject(object, /*location,*/ p);
- }
-
-}
Deleted: trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/model/handlers/ImportWebPrjSupport.java
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/model/handlers/ImportWebPrjSupport.java 2007-07-23 12:49:46 UTC (rev 2597)
+++ trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/model/handlers/ImportWebPrjSupport.java 2007-07-23 12:50:32 UTC (rev 2598)
@@ -1,177 +0,0 @@
-/*
- * ImportWebPrjSupport.java
- *
- * Created on February 12, 2003, 12:30 PM
- */
-
-package org.jboss.tools.struts.webprj.model.handlers;
-
-import org.jboss.tools.common.model.*;
-import org.jboss.tools.struts.messages.StrutsUIMessages;
-import org.jboss.tools.jst.web.project.helpers.NewWebProjectHelper;
-
-import java.io.*;
-import java.util.*;
-
-import org.eclipse.osgi.util.NLS;
-
-/**
- *
- * @author valera
- */
-public class ImportWebPrjSupport extends WebPrjSupport {
-
- private static String invalidFolderMsg = StrutsUIMessages.ENTER_PATH_TO_EXISTING_FOLDER;
-
- protected Throwable exc = null;
- protected Step[] steps = new Step[] {new Step0(), new Step1()};
-// private static NewWebProjectHelper helper = new NewWebProjectHelper();
-
- /** Creates a new instance of ImportWebPrjSupport */
- public ImportWebPrjSupport() {
- }
-
- protected void reset() {
- super.reset();
- }
-
- public String getDescription() {
- return StrutsUIMessages.IMPORT_WEB_PROJECT;
- }
-
- public Step getStep(int step) {
- return steps[step];
- }
-
- public String getAttributeMessage(int stepId, String attrname) {
- if (stepId == 0) {
- return Character.toUpperCase(attrname.charAt(0))+attrname.substring(1)+"*"; //$NON-NLS-1$
- } else {
- return super.getAttributeMessage(stepId, attrname);
- }
- }
-
- class Step0 implements Step {
-
- public String[] getActionNames() {
- return new String[] {NEXT, FINISH, CANCEL};
- }
-
- String MESSAGE = StrutsUIMessages.ENTER_PROJECT_NAME_AND_SELECT_THE_FOLDER;
- String HTML_MESSAGE = "<html><body><font style=\"font-family:arial;font-size:12;\">" + //$NON-NLS-1$
- MESSAGE + "</font></body></html>"; //$NON-NLS-1$
-
- public String getMessage() {
- return MESSAGE;
- }
-
- public String getTitle() {
- return StrutsUIMessages.STEP1_PROJECTNAME_AND_LOCATION;
- }
-
- public int prepareStep(XModelObject object) {
- String name = p.getProperty("name", ""); //$NON-NLS-1$ //$NON-NLS-2$
- String location = p.getProperty("location", ""); //$NON-NLS-1$ //$NON-NLS-2$
- setAttributeValue(0, "name", name); //$NON-NLS-1$
- setAttributeValue(0, "location", location); //$NON-NLS-1$
- return 0;
- }
-
- public int doStep(XModelObject object) throws Exception {
- Properties p2 = extractStepData(0);
- String name = p2.getProperty("name"); //$NON-NLS-1$
- String location = p2.getProperty("location"); //$NON-NLS-1$
- File webInfDir = new File(location);
- if (webInfDir.isFile()) {
- webInfDir = webInfDir.getParentFile();
- location = webInfDir.getAbsolutePath();
- }
- p.setProperty("name", name); //$NON-NLS-1$
- Object prevloc = p.setProperty("location", location); //$NON-NLS-1$
- if (!webInfDir.exists() || !webInfDir.isDirectory()) {
- throw new RuntimeException(StrutsUIMessages.SPECIFY_EXISTING_FOLDER);
- }
- String wrk = NewWebProjectHelper.getWorkspace(webInfDir);
- if (wrk != null) {
- int i = object.getModel().getService().showDialog(action.getDisplayName(),
- NLS.bind(StrutsUIMessages.FOLDER_ALREADY_CONTAINS_ADOPTED_PROJECT, location), //$NON-NLS-2$
- new String[] {BACK, StrutsUIMessages.REOPEN, StrutsUIMessages.OVERWRITE}, null, ServiceDialog.WARNING);
- if (i <= 0) return 0;
- if (i == 1) {
- if(true) throw new Exception("Method Removed"); //$NON-NLS-1$
-/// NewWebProjectHelper.switchWorkspace(target.getModel(), wrk);
- p.setProperty("canceled", "true"); //$NON-NLS-1$ //$NON-NLS-2$
- setFinished(true);
- return 0;
- }
- NewWebProjectHelper.removeWorkspace(webInfDir);
- }
- if (!location.equals(prevloc) || p.getProperty("webroot") == null) { //$NON-NLS-1$
- throw new Exception("Method Removed"); //$NON-NLS-1$
-/// helper.setDefaultFolders(location, p);
- }
- return 1;
- }
-
- public int undoStep(XModelObject object) {
- return -1;
- }
- }
-
- class Step1 implements Step {
-
- public String[] getActionNames() {
- return new String[] {BACK, FINISH, CANCEL};
- }
-
- public String getMessage() {
- return "Enter project's folders."; //$NON-NLS-1$
- }
-
- public String getTitle() {
- return StrutsUIMessages.STEP2_FOLDERS;
- }
-
- public int prepareStep(XModelObject object) {
- String webroot = p.getProperty("webroot"); //$NON-NLS-1$
- String classes = p.getProperty("classes"); //$NON-NLS-1$
- String lib = p.getProperty("lib"); //$NON-NLS-1$
- String src = p.getProperty("src"); //$NON-NLS-1$
- setAttributeValue(1, "webroot", webroot); //$NON-NLS-1$
- setAttributeValue(1, "classes", classes); //$NON-NLS-1$
- setAttributeValue(1, "lib", lib); //$NON-NLS-1$
- setAttributeValue(1, "src", src); //$NON-NLS-1$
- return 0;
- }
-
-
- private void checkFolder(String folder, String msg) {
- if (folder == null || folder.length() == 0) return;
- File file = new File(folder);
- if (!file.exists() || !file.isDirectory())
- throw new RuntimeException(msg);
- }
-
- public synchronized int doStep(XModelObject object) throws Exception {
- Properties p2 = extractStepData(1);
- String webroot = p2.getProperty("webroot").trim(); //$NON-NLS-1$
- String classes = p2.getProperty("classes").trim(); //$NON-NLS-1$
- String lib = p2.getProperty("lib").trim(); //$NON-NLS-1$
- String src = p2.getProperty("src").trim(); //$NON-NLS-1$
-
- checkFolder(webroot, invalidFolderMsg+getAttributeMessage(1, "webroot")); //$NON-NLS-1$
- checkFolder(classes, invalidFolderMsg+getAttributeMessage(1, "classes")); //$NON-NLS-1$
- checkFolder(lib, invalidFolderMsg+getAttributeMessage(1, "lib")); //$NON-NLS-1$
- checkFolder(src, invalidFolderMsg+getAttributeMessage(1, "src")); //$NON-NLS-1$
-
- p.setProperty("webroot", webroot); //$NON-NLS-1$
- p.setProperty("classes", classes); //$NON-NLS-1$
- p.setProperty("lib", lib); //$NON-NLS-1$
- p.setProperty("src", src); //$NON-NLS-1$
- return 1;
- }
-
- public int undoStep(XModelObject object) { return -1; }
- }
-
-}
Modified: trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/model/helpers/adopt/AdoptProjectStepLocation.java
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/model/helpers/adopt/AdoptProjectStepLocation.java 2007-07-23 12:49:46 UTC (rev 2597)
+++ trunk/struts/plugins/org.jboss.tools.struts/src/org/jboss/tools/struts/webprj/model/helpers/adopt/AdoptProjectStepLocation.java 2007-07-23 12:50:32 UTC (rev 2598)
@@ -47,7 +47,7 @@
location = f.getAbsolutePath();
support.setAttributeValue(id, "location", location); //$NON-NLS-1$
- String wrk = NewWebProjectHelper.getWorkspace(f);
+ String wrk = null; //obsolete code removed
if(wrk != null) {
int i = support.getTarget().getModel().getService().showDialog(support.getTitle(),
NLS.bind(StrutsUIMessages.FOLDER_ALREADY_CONTAINS_ADOPTED_PROJECT, location),
17 years, 5 months
JBoss Tools SVN: r2597 - trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/project.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-23 08:49:46 -0400 (Mon, 23 Jul 2007)
New Revision: 2597
Modified:
trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/project/ImportProjectWizard.java
Log:
Obsolete *.pex extension usage removed
Modified: trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/project/ImportProjectWizard.java
===================================================================
--- trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/project/ImportProjectWizard.java 2007-07-23 12:43:34 UTC (rev 2596)
+++ trunk/struts/plugins/org.jboss.tools.struts.ui/src/org/jboss/tools/struts/ui/wizard/project/ImportProjectWizard.java 2007-07-23 12:49:46 UTC (rev 2597)
@@ -10,13 +10,9 @@
******************************************************************************/
package org.jboss.tools.struts.ui.wizard.project;
-import java.io.File;
import org.jboss.tools.common.model.ui.util.ModelUtilities;
import org.eclipse.jface.operation.IRunnableWithProgress;
import org.jboss.tools.common.meta.key.WizardKeys;
-import org.jboss.tools.common.model.ServiceDialog;
-import org.jboss.tools.common.model.XModel;
-import org.jboss.tools.common.model.options.PreferenceModelUtilities;
import org.jboss.tools.common.model.ui.ModelUIImages;
import org.jboss.tools.struts.ui.operation.StrutsProjectAdoptOperation;
import org.jboss.tools.jst.web.ui.wizards.project.ImportWebProjectWizard;
@@ -57,21 +53,7 @@
protected boolean checkOldVersion() {
if(context.getProjectHandle() != null && context.getProjectHandle().exists()) return true;
- if(!findPexFile(context.getWebInfLocation())) return true;
- XModel model = PreferenceModelUtilities.getPreferenceModel();
- ServiceDialog d = model.getService();
- String message = WizardKeys.getString("IMPORT_STRUTS_PROJECT_EARLIER_VERSION_WARNING");
- int i = d.showDialog("Warning", message, new String[]{"Yes", "No"}, null, ServiceDialog.WARNING);
- return i == 0;
+ return true;
}
- private boolean findPexFile(String location) {
- File f = new File(location);
- if(!f.isDirectory()) return true;
- File[] fs = f.listFiles();
- if(fs != null) for (int i = 0; i < fs.length; i++)
- if(fs[i].getName().endsWith(".pex")) return true;
- return false;
- }
-
}
17 years, 5 months
JBoss Tools SVN: r2596 - in trunk/common/plugins/org.jboss.tools.common.model: src/org/jboss/tools/common/model/impl and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-07-23 08:43:34 -0400 (Mon, 23 Jul 2007)
New Revision: 2596
Modified:
trunk/common/plugins/org.jboss.tools.common.model/resources/meta/base.meta
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelImpl.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/project/ProjectHome.java
Log:
Obsolete *.pex extension usage removed
Modified: trunk/common/plugins/org.jboss.tools.common.model/resources/meta/base.meta
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/resources/meta/base.meta 2007-07-23 12:42:46 UTC (rev 2595)
+++ trunk/common/plugins/org.jboss.tools.common.model/resources/meta/base.meta 2007-07-23 12:43:34 UTC (rev 2596)
@@ -449,7 +449,6 @@
ImplementationLoadingClass="org.jboss.tools.common.model.loaders.impl.RootLoaderImpl"
ImplementingClass="org.jboss.tools.common.model.impl.RootImpl" name="Root">
<XChildrenEntities>
- <XChildEntity maxCount="1" name="Workspaces" required="yes"/>
<XChildEntity maxCount="1" name="FileSystems" required="yes"/>
</XChildrenEntities>
<XEntityRenderer>
@@ -482,7 +481,6 @@
ImplementationLoadingClass="org.jboss.tools.common.model.loaders.impl.RootLoaderImpl"
ImplementingClass="org.jboss.tools.common.model.impl.RootImpl" name="RootDummy">
<XChildrenEntities>
- <XChildEntity maxCount="1" name="Workspaces" required="yes"/>
<XChildEntity maxCount="1" name="SharableXStudio" required="yes"/>
</XChildrenEntities>
<XEntityRenderer>
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelImpl.java 2007-07-23 12:42:46 UTC (rev 2595)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelImpl.java 2007-07-23 12:43:34 UTC (rev 2596)
@@ -243,7 +243,7 @@
return null;
}
try {
- Class c = ent.getImplementingClass();
+ Class<?> c = ent.getImplementingClass();
XModelObjectImpl me = (XModelObjectImpl)c.newInstance();
me.setModel(this);
me.setEntityName_0(entity);
@@ -380,11 +380,7 @@
if(classloader.isUsed()) classloader = new XModelClassLoader(this);
classloader.validate();
fireStructureChanged(getRoot(), 3, null);
- if(!isDummy() && "true".equals(getProperties().getProperty("design"))) {
- OpenedProjectsImpl p = (OpenedProjectsImpl)getRoot().getChildByPath("Workspaces");
- p.last(XModelConstants.getWorkspace(this) + "/" + XModelConstants.getProjectPrefix(this) + "workspace.pex");
- if(p.isModified()) save();
- }
+
///Project Watcher
if(!isDummy()) loadWatcher();
}
@@ -568,11 +564,11 @@
}
}
- public List getTreeListeners() {
+ public List<XModelTreeListener> getTreeListeners() {
return Collections.unmodifiableList(this.treeListeners);
}
- public Map getManagerMap() {
+ public Map<String,Object> getManagerMap() {
return Collections.unmodifiableMap(managers);
}
}
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/project/ProjectHome.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/project/ProjectHome.java 2007-07-23 12:42:46 UTC (rev 2595)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/project/ProjectHome.java 2007-07-23 12:43:34 UTC (rev 2596)
@@ -35,8 +35,8 @@
File f = new File(location + "/" + IModelNature.PROJECT_TEMP);
File ep = new File(location + "/" + IModelNature.PROJECT_FILE);
if(ep.isFile()) {
- // to remove .struts file if workspace.pex is not found
- if(f.isFile()) checkOldStrutsAndPexFile(location, f);
+ // to remove .struts file
+ if(f.isFile()) f.delete();
return getLocationFrom_strutsstudio_File(location, ep);
}
if(f.isFile()) return getLocationFrom_struts_File(location, f);
@@ -49,13 +49,6 @@
return q;
}
- private void checkOldStrutsAndPexFile(String location, File s) {
- String path = XModelObjectLoaderUtil.getCDATA(XMLUtil.getElement(s));
- String q = (path.startsWith("./")) ? location + path.substring(1) : path;
- File pex = new File(q + "/workspace.pex");
- if(!pex.exists()) s.delete();
- }
-
private String getLocationFrom_struts_File(String location, File s) {
String path = XModelObjectLoaderUtil.getCDATA(XMLUtil.getElement(s));
String q = (path.equals(".")) ? location : (path.startsWith("./")) ? location + path.substring(1) : path;
17 years, 5 months