JBoss Tools SVN: r4624 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2007-11-01 09:54:46 -0400 (Thu, 01 Nov 2007)
New Revision: 4624
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionHref.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionSrc.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1232
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionHref.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionHref.java 2007-11-01 13:40:17 UTC (rev 4623)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionHref.java 2007-11-01 13:54:46 UTC (rev 4624)
@@ -35,7 +35,7 @@
IPath tagPath = new Path(tagValue);
if (tagPath.isEmpty()) return new VpeValue(getUnresolved());
- String device = (tagPath.getDevice()==null?tagPath.segment(0):tagPath.getDevice());;
+ String device = (tagPath.getDevice()==null?tagPath.segment(0):tagPath.getDevice());
if (device != null &&
("http:".equalsIgnoreCase(device) || "file:".equalsIgnoreCase(device))) return new VpeValue(tagValue);
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionSrc.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionSrc.java 2007-11-01 13:40:17 UTC (rev 4623)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionSrc.java 2007-11-01 13:54:46 UTC (rev 4624)
@@ -45,7 +45,7 @@
IPath tagPath = new Path(tagValue);
if (tagPath.isEmpty()) return new VpeValue(getUnresolved());
- String device = tagPath.getDevice();
+ String device = (tagPath.getDevice()==null?tagPath.segment(0):tagPath.getDevice());
if (device != null &&
("http:".equalsIgnoreCase(device) || "file:".equalsIgnoreCase(device))) return new VpeValue(tagValue);
17 years, 2 months
JBoss Tools SVN: r4623 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2007-11-01 09:40:17 -0400 (Thu, 01 Nov 2007)
New Revision: 4623
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionHref.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1232
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionHref.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionHref.java 2007-11-01 13:34:02 UTC (rev 4622)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeFunctionHref.java 2007-11-01 13:40:17 UTC (rev 4623)
@@ -31,12 +31,11 @@
public VpeValue exec(VpePageContext pageContext, Node sourceNode) {
String tagValue = getParameter(0).exec(pageContext, sourceNode).stringValue();
- String localFile = tagValue;
IPath tagPath = new Path(tagValue);
if (tagPath.isEmpty()) return new VpeValue(getUnresolved());
- String device = tagPath.getDevice();
+ String device = (tagPath.getDevice()==null?tagPath.segment(0):tagPath.getDevice());;
if (device != null &&
("http:".equalsIgnoreCase(device) || "file:".equalsIgnoreCase(device))) return new VpeValue(tagValue);
17 years, 2 months
JBoss Tools SVN: r4622 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2007-11-01 09:34:02 -0400 (Thu, 01 Nov 2007)
New Revision: 4622
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
Log:
code adjustment
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-11-01 13:30:15 UTC (rev 4621)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-11-01 13:34:02 UTC (rev 4622)
@@ -1090,7 +1090,7 @@
linkNode.setAttribute(VpeTemplateManager.ATTR_LINK_EXT, ext_val);
try {
StringBuffer styleText = new StringBuffer(EMPTY_STRING);
- URL url = new URL((new Path(href_val)).setDevice("").toOSString());
+ URL url = new URL((new Path(href_val)).toOSString());
String fileName=url.getFile();
BufferedReader in = new BufferedReader(new FileReader(
(fileName)));
17 years, 2 months
JBoss Tools SVN: r4621 - trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/extractor.
by jbosstools-commits@lists.jboss.org
Author: max.andersen(a)jboss.com
Date: 2007-11-01 09:30:15 -0400 (Thu, 01 Nov 2007)
New Revision: 4621
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/extractor/HBMInfoExtractor.java
Log:
fixed hyperlinking in hbm.xml for many class references (e.g. many-to-one, one-to-many etc.)
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/extractor/HBMInfoExtractor.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/extractor/HBMInfoExtractor.java 2007-11-01 13:12:09 UTC (rev 4620)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/extractor/HBMInfoExtractor.java 2007-11-01 13:30:15 UTC (rev 4621)
@@ -213,6 +213,14 @@
javaTypeProvider.put("composite-id", "class");
javaTypeProvider.put("component", "class");
javaTypeProvider.put("composite-element", "class");
+
+ javaTypeProvider.put("many-to-one", "class");
+ javaTypeProvider.put("one-to-many", "class");
+ javaTypeProvider.put("many-to-many", "class");
+ javaTypeProvider.put("composite-element", "class");
+ javaTypeProvider.put("composite-id", "class");
+ javaTypeProvider.put("key-many-to-one", "class");
+ javaTypeProvider.put("one-to-many", "class");
}
private void setupTableFinder() {
17 years, 2 months
JBoss Tools SVN: r4619 - trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2007-11-01 09:08:45 -0400 (Thu, 01 Nov 2007)
New Revision: 4619
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1185
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-11-01 13:02:50 UTC (rev 4618)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-11-01 13:08:45 UTC (rev 4619)
@@ -14,6 +14,7 @@
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
+import java.net.URL;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
@@ -1089,8 +1090,10 @@
linkNode.setAttribute(VpeTemplateManager.ATTR_LINK_EXT, ext_val);
try {
StringBuffer styleText = new StringBuffer(EMPTY_STRING);
+ URL url = new URL((new Path(href_val)).setDevice("").toOSString());
+ String fileName=url.getFile();
BufferedReader in = new BufferedReader(new FileReader(
- (new Path(href_val)).setDevice("").toOSString()));
+ (fileName)));
String str = EMPTY_STRING;
while ((str = in.readLine()) != null) {
styleText.append(str);
17 years, 2 months
JBoss Tools SVN: r4618 - in trunk/documentation/GettingStartedGuide/docs/userguide/en: modules and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: afedosik
Date: 2007-11-01 09:02:50 -0400 (Thu, 01 Nov 2007)
New Revision: 4618
Removed:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/Enableprefer.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBSVAddinganxpath.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBSVAddxpath.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBSVaddingcategory.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBSVxpathpreview.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBVEventlogactions.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBVExtensions.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBVModulesactions.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBVServerisstopped.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBVxmlconfigandprop.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/archives1.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/archives2.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/archives3.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/archives4.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/deploytoserver.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/jbossserverview.png
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/ManageJBossAS.xml
Log:
http://jira.jboss.com/jira/browse/RHDS-270 "JBoss Server Manager" chapter deleted and moved in the separate JBoss Server Manager Reference Guide
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/Enableprefer.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBSVAddinganxpath.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBSVAddxpath.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBSVaddingcategory.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBSVxpathpreview.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBVEventlogactions.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBVExtensions.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBVModulesactions.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBVServerisstopped.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/JBVxmlconfigandprop.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/archives1.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/archives2.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/archives3.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/archives4.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/deploytoserver.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/ManageJBossAS/jbossserverview.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/ManageJBossAS.xml
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/ManageJBossAS.xml 2007-11-01 12:35:14 UTC (rev 4617)
+++ trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/ManageJBossAS.xml 2007-11-01 13:02:50 UTC (rev 4618)
@@ -245,251 +245,5 @@
</figure>
</section>
-
-
</section>
-
-
- <section id="Server Manager Features">
- <?dbhtml filename="ServerManagerFeatures.html"?>
- <title>Server Manager Features</title>
-
- <section id="JBossASPerspective">
- <title>JBoss AS Perspective</title>
- <para>The <property>JBoss AS</property> Perspective is similar to the Java perspective, but it contains a few additional views. Two of the additional views are standard views, specifically the <property>Console </property> view and the <property>Properties</property> view.
- The other two views that are added are the <property>Project archives</property> view and the <property>JBoss Servers View</property>.</para>
-
- <section id="JBossServersView">
- <?dbhtml filename="JBossServerView.html"?>
- <title>The JBoss Servers View</title>
- <para>This chapter will focus on the the JBoss Server's View. The JBoss Servers View is based on the Webtool's view, Servers View. The top half of the JBoss Servers View essentially embeds the original Servers View directly into it, making slight changes to the context menu.
- A second half was added to provide additional information about the server selected in the top half. In the image provided, categories in the second half include which modules are currently deployed.</para>
-
- <figure>
- <title>The JBoss Servers View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/ManageJBossAS/jbossserverview.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
-
- <para>In order to access the view's preferences, you should access <emphasis><property>Window > Preferences > JBoss Tools > JBoss Servers > View</property></emphasis>.
- This preference page allows you to select which view extensions you want on or off, the order they appear
- in the view, as well as any other extension-specific preferences that may be available.</para>
- <figure>
- <title>View Preferences</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/ManageJBossAS/Enableprefer.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Extender is meant to provide additional functionality relevent to the server selected in the top half of the view. If a standard server element is selected from above, some
- of the extensions may still provide the additional information. Others may not.
-
- So, let's look at the currently available extensions to the JBoss Server's View.</para>
- <figure>
- <title>View Extensions</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/ManageJBossAS/JBVExtensions.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The <property>Modules</property> section shows what modules are currently deployed to the server, and allows you to remove them
- from the server, or force a full republish upon them. It only shows which modules have been deployed through Eclipse,
- not any and all modules that happen to be in the deploy directory.</para>
- <figure>
- <title>Modules Action</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/ManageJBossAS/JBVModulesactions.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The <property>Event Log</property> will show relevent information to your server's startup, shutdown, and publish processes. This allows
- you to keep an eye on what's going on (such as automatic incremental deployment if you have it enabled).
- The only action available is to clear the event log. However if the properties view is opened, you can receive further
- information on each event log item (when available).</para>
- <figure>
- <title>Event Log Actions</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/ManageJBossAS/JBVEventlogactions.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <figure>
- <title>Stopping the Server</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/ManageJBossAS/JBVServerisstopped.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The <property>XML Configuration</property> category allows you to quickly browse to descriptor files in your server's deploy directory and
- check or change the values. Its use requires the Properties view. Basically, XML Configuration are XML XPaths where a xpath is a path used to access
- some specific part of an xml document.</para>
- <figure>
- <title>XML Configuration and Properties View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/ManageJBossAS/JBVxmlconfigandprop.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The view itself contains only a list of categories. By right-clicking on <emphasis><property>XML Configuration</property></emphasis>, you can create a new category.
- Ports are provided by default and is filled with many of the most commonly used ports in the JBoss Server.</para>
- <figure>
- <title>Adding New Category</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/ManageJBossAS/JBSVaddingcategory.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>By right-clicking on <emphasis><property>Ports</property></emphasis>, you can create a new XPaths.</para>
- <figure>
- <title>Adding New XPath</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/ManageJBossAS/JBSVAddxpath.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>After that, the dialog shown below will appear.</para>
- <figure>
- <title>Adding New XPath</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/ManageJBossAS/JBSVAddinganxpath.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>As you type, the fields autocomplete to help you locate exactly what xpath you're looking for. The goal here is to
- get an end result where the xpath matches up with an easily changed property. With that in mind, if the property
- you want to change is the text of an element, then the final field Attribute Name
- should be left blank and your xpath should end with port.
- If, on the other hand, your desired field is the port attribute of <fieldName port="35">, then your xpath will end
- with fieldName and your Attribute Name will be "port".
- When finished, you can click <emphasis><property>Preview</property></emphasis> to see how many matches you have for that particular xpath, as shown below.</para>
- <figure>
- <title>XPath Preview</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/ManageJBossAS/JBSVxpathpreview.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </section>
- <section id="Project_archivesView">
- <title>Project archives View</title>
- <para>Every application, whether plain old Java, J2EE, or some other language altogether, needs to be packaged in some way. In Java-related projects,
- many people use ANT. Red Hat Developer Studio comes with our own archives tool with a bit easier and less-verbose XML and a handy user interface.</para>
- <para>The Project Archives plugin consists primarily of a view to set up each packaging configuration. Each project can enable or disable its builder, or depend on the global setting.</para>
- <para>The packaging configuration for each project is stored in that project's root folder, and is in a file named <property>.packages</property>, which has a fairly simple XML
- structure. Modifying the file by hand is neither required nor reccommended, and using the UI is the official way of modifying your packaging structure.</para>
- <para>Aside from the builder, the other preferences for the plugin are mostly cosmetic, allowing you to show full or truncated paths, show the project at the
- root, etc. None of these have any effect on the functionality of the packaging plugin.</para>
-
- <section id="Creating an archive">
- <title>Creating an Archive</title>
- <para>When creating a new archive, you have some different options at your disposal. If the project has no <property>.packages</property> file, your
- options will be presented to you all at once for you to choose from (as above). Otherwise you will right-click inside the view and select <emphasis><property>New Archive</property></emphasis>
- to see your archive type options.</para>
- <figure>
- <title>Create an Archive</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/ManageJBossAS/archives1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>JAR is the standard archive type, and does very little configuration, leaving most of the work up to you. You can customize the name, add folders,
- filesets, and inner jars to it.</para>
- <para>The other types, for the most part, simply start off with a default setting, usually the jar with some specific children based on an expected
- structure of the project. For example, if the project is a dynamic web project, and you create a WAR archive, the archive will be created with a few filesets relevant to the known structure of the project.</para>
-
- <para>Because the first page of all new archive wizards are the same, and it is also the only page in the New Jar Wizard, that page is shown below.</para>
- <figure>
- <title>New JAR Wizard</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/ManageJBossAS/archives2.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>The page is pretty simple. All it asks is for the name of your new archive, a destination, which we'll get to in a moment, and whether the archive
- is exploded or packaged up.</para>
- <para>The destination of an archive can be anywhere on the filesystem, anywhere in the workspace, inside some other archive, or inside a folder
- declared inside an archive. You can browse to workspace or filesystem destinations by clicking on their respective buttons. To select a destination
- inside some other archive, you'll need to press the <property>Workspace...</property> button. At the bottom of the list, you'll see archives that have been declared in the
- workspace.</para>
- <section id="CreatingaFolder">
- <title>Creating a Folder</title>
- <para>Creating a folder is much easier. You simply right-click on an archive or folder you want your new folder to be a child under. The only piece of
- required information is naming the file.</para>
- </section>
- <section id="CreatingaFileSet">
- <title>Creating a FileSet</title>
- <para>To create a new fileset, you click on an available target location such as an archive, a nested archive, or a folder within an archive, and select
- New Fileset. The New Fileset Wizard requires a destination (where the files will go), and a root directory (or where the files are coming from).
- The source can be anywhere in the workspace or from the filesystem at large.</para>
- <para>Below that, the fileset requires only an includes pattern and an excludes pattern. As you type in either of these fields, the preview viewer should
- update itself with which files are matched.</para>
- </section>
- </section>
- <section id="View Actions">
- <title>View Actions</title>
- <figure>
- <title>Context Menu on the Item</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/ManageJBossAS/archives3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The context menu on the items in the view is extendable, but there are several that come standard. The first is the <property>Build Archive</property> action, enabled
- only on top-level archives, which initiates a full build on that archive. Editing and deleting nodes are also standard actions, with deletion not needing
- an explanation. The edit action brings up the wizard associated with that particular node type and allows the details to be changed. The final action
- contribution here is the ability to publish to a declared server.</para>
- </section>
- <section id="PublishToServer">
- <title>Publish to Server</title>
- <figure>
- <title>Context Menu on the Item</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/ManageJBossAS/archives4.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The dialog above appears after selecting <property>Publish To Server</property>. To simply publish once, you just select the server(s) that you want, and finish.
- If you want the Publish to Server action on that particular Archive to always publish to that set of servers, then check the appropriate checkbox.
- And finally, to enable automatic publishing upon build events, check the last checkbox.</para>
- <para>The automatic publishing feature is nice if, for example, your package's destination (where it is built) is a temporary folder and you want the
- archive published to several servers. If you only really want your archive published to one server, it might be easier to have the archive's destination
- folder be the deploy folder of the server.</para>
- </section>
- </section>
- </section>
-
- <section id="Deploy to Server">
- <?dbhtml filename="DeployToServer.html"?>
- <title>Deploy to Server</title>
- <para>In the context menu of files there is a <property>Deploy To Server</property> option that allows a single file deployment. To deploy these non-WTP files/projects right click on the file (-ds.xml, .ear, .jar etc.) and select <emphasis><property>Deploy To server</property></emphasis> and it will be automatically deployed.</para>
- <figure>
- <title>Deploy to Sever</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/ManageJBossAS/deploytoserver.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>The deployed files are listed side-by-side with other modules that are deployed to the server.</para>
- </section>
-</section>
</chapter>
17 years, 2 months
JBoss Tools SVN: r4617 - trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-11-01 08:35:14 -0400 (Thu, 01 Nov 2007)
New Revision: 4617
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/ImportWebWarWizardPage.java
trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/NewWebProjectWizardPage.java
Log:
JBIDE-1236
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/ImportWebWarWizardPage.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/ImportWebWarWizardPage.java 2007-11-01 12:34:48 UTC (rev 4616)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/ImportWebWarWizardPage.java 2007-11-01 12:35:14 UTC (rev 4617)
@@ -135,6 +135,7 @@
lock = true;
try {
context.setProjectName(nameLocationAdapter.getStringValue(true));
+ appRegister.loadApplicationName();
if(!isDefaultPath()) return;
context.setCustomerLocation(getDefaultLocation());
projectLocationAdapter.setValue(getDefaultLocation());
Modified: trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/NewWebProjectWizardPage.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/NewWebProjectWizardPage.java 2007-11-01 12:34:48 UTC (rev 4616)
+++ trunk/jst/plugins/org.jboss.tools.jst.web.ui/src/org/jboss/tools/jst/web/ui/wizards/project/NewWebProjectWizardPage.java 2007-11-01 12:35:14 UTC (rev 4617)
@@ -51,6 +51,7 @@
import org.jboss.tools.common.model.ui.ModelUIPlugin;
import org.jboss.tools.common.model.ui.widgets.DefaultSettings;
import org.jboss.tools.common.model.ui.widgets.IWidgetSettings;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.jst.web.project.helpers.IWebProjectTemplate;
import org.jboss.tools.jst.web.project.helpers.NewWebProjectContext;
import org.jboss.tools.jst.web.project.version.ProjectVersion;
@@ -298,14 +299,7 @@
private boolean projectExistsIgnoreCase() {
String name = getProjectName();
- if(name == null || name.length() == 0) return false;
- IProject[] ps = ModelPlugin.getWorkspace().getRoot().getProjects();
- for (int i = 0; i < ps.length; i++) {
- if(ps[i].getName().equalsIgnoreCase(name)) {
- return true;
- }
- }
- return false;
+ return EclipseResourceUtil.projectExistsIgnoreCase(name);
}
private IProject overlaps(String projectLocation) {
17 years, 2 months
JBoss Tools SVN: r4616 - trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-11-01 08:34:48 -0400 (Thu, 01 Nov 2007)
New Revision: 4616
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebWarContext.java
Log:
JBIDE-1236
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebWarContext.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebWarContext.java 2007-11-01 12:34:23 UTC (rev 4615)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebWarContext.java 2007-11-01 12:34:48 UTC (rev 4616)
@@ -20,11 +20,15 @@
import java.util.zip.ZipEntry;
import java.util.zip.ZipFile;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.IStatus;
import org.eclipse.osgi.util.NLS;
import org.jboss.tools.common.model.XModel;
import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.plugin.ModelPlugin;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.common.util.FileUtil;
import org.jboss.tools.jst.web.messages.xpl.WebUIMessages;
import org.jboss.tools.jst.web.project.WebModuleImpl;
@@ -43,11 +47,6 @@
customerLocation = location;
}
- public IProject getProjectHandle() {
- String n = getProjectName();
- return (n == null || n.length() == 0) ? null : ResourcesPlugin.getWorkspace().getRoot().getProject(n);
- }
-
public String getProjectLocation() {
IProject p = getProjectHandle();
return (p == null || p.getLocation() == null) ? null : p.getLocation().toString();
@@ -116,14 +115,22 @@
registry.setApplicationName(value);
if(value == null || value.length() == 0) {
nameError = WebUIMessages.NAME_MUST_BE_SET;
- } else if(getProjectHandle() != null && getProjectHandle().exists()) {
- nameError = NLS.bind(WebUIMessages.PROJECT_ALREADY_EXISTS_IN_THE_WORKSPACE, value); //$NON-NLS-2$
} else {
- nameError = null;
+ IStatus nameStatus = ModelPlugin.getWorkspace().validateName(projectName, IResource.PROJECT);
+ if (!nameStatus.isOK()) {
+ nameError = nameStatus.getMessage();
+ } else if(getProjectHandle() != null && getProjectHandle().exists()) {
+ nameError = NLS.bind(WebUIMessages.PROJECT_ALREADY_EXISTS_IN_THE_WORKSPACE, value); //$NON-NLS-2$
+ } else if(EclipseResourceUtil.projectExistsIgnoreCase(projectName)) {
+ nameError = NLS.bind(WebUIMessages.PROJECT_ALREADY_EXISTS_IN_THE_WORKSPACE, value); //$NON-NLS-2$
+ } else {
+ nameError = null;
+ }
}
projectName = value;
}
+
private void loadEntries() {
Enumeration en = zip.entries();
while(en.hasMoreElements()) {
17 years, 2 months
JBoss Tools SVN: r4615 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-11-01 08:34:23 -0400 (Thu, 01 Nov 2007)
New Revision: 4615
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java
Log:
JBIDE-1236
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java 2007-11-01 11:45:27 UTC (rev 4614)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java 2007-11-01 12:34:23 UTC (rev 4615)
@@ -843,4 +843,15 @@
return (relative == null) ? path : XModelConstants.WORKSPACE_REF + relative;
}
+ public static boolean projectExistsIgnoreCase(String name) {
+ if(name == null || name.length() == 0) return false;
+ IProject[] ps = ModelPlugin.getWorkspace().getRoot().getProjects();
+ for (int i = 0; i < ps.length; i++) {
+ if(ps[i].getName().equalsIgnoreCase(name)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
}
17 years, 2 months