JBoss Tools SVN: r3628 - in trunk/documentation/GettingStartedGuide/docs/userguide/en: modules and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: sabrashevich
Date: 2007-09-14 09:36:40 -0400 (Fri, 14 Sep 2007)
New Revision: 3628
Added:
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/RADdevelopmentOfSimpleJSFapplication.xml
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/master.xml
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/DevelopAsimpleJSPWebApplication.xml
Log:
http://jira.jboss.com/jira/browse/RHDS-160 updated context
Modified: trunk/documentation/GettingStartedGuide/docs/userguide/en/master.xml
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/userguide/en/master.xml 2007-09-14 11:54:20 UTC (rev 3627)
+++ trunk/documentation/GettingStartedGuide/docs/userguide/en/master.xml 2007-09-14 13:36:40 UTC (rev 3628)
@@ -6,6 +6,7 @@
<!ENTITY ManageJBossAS SYSTEM "modules/ManageJBossAS.xml">
<!ENTITY GetStartSeamGen SYSTEM "modules/GetStartSeamGen.xml">
<!ENTITY DevelopAsimpleJSPWebApplication SYSTEM "modules/DevelopAsimpleJSPWebApplication.xml">
+<!ENTITY RADdevelopmentOfSimpleJSFapplication SYSTEM "modules/RADdevelopmentOfSimpleJSFapplication.xml">
<!ENTITY GenCURDDatabaseApp SYSTEM "modules/GenCURDDatabaseApp.xml">
<!ENTITY CURDAppWalkthrough SYSTEM "modules/CURDAppWalkthrough.xml">
<!ENTITY AddBusinessProcess SYSTEM "modules/AddBusinessProcess.xml">
@@ -33,6 +34,7 @@
&ManageJBossAS;
&GetStartSeamGen;
&DevelopAsimpleJSPWebApplication;
+&RADdevelopmentOfSimpleJSFapplication;
&GenCURDDatabaseApp;
&CURDAppWalkthrough;
<!-- TODO: drools used in this section is not available for eclipse .3.3 &AddBusinessProcess; -->
Modified: trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/DevelopAsimpleJSPWebApplication.xml
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/DevelopAsimpleJSPWebApplication.xml 2007-09-14 11:54:20 UTC (rev 3627)
+++ trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/DevelopAsimpleJSPWebApplication.xml 2007-09-14 13:36:40 UTC (rev 3628)
@@ -184,7 +184,7 @@
</mediaobject>
</figure>
<orderedlist continuation="continues">
-<listitem><para>Click the Run icon.</para></listitem>
+<listitem><para>Click the Run icon or right click your project folder and select <emphasis>Run on Server</emphasis>. If you haven't made any changes in web.xml file or cleared it out you can launch the application by right clicking the hello.jsp page and selecting <emphasis>Run on Server</emphasis>.</para></listitem>
</orderedlist>
<figure>
<title>Run project</title>
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/RADdevelopmentOfSimpleJSFapplication.xml
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/RADdevelopmentOfSimpleJSFapplication.xml (rev 0)
+++ trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/RADdevelopmentOfSimpleJSFapplication.xml 2007-09-14 13:36:40 UTC (rev 3628)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="RADdevelopmentOfSimpleJSFapplication" xreflabel="RADdevelopmentOfSimpleJSFapplication">
+ <?dbhtml filename="RADdevelopmentOfSimpleJSFapplication.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>Red Hat Developer Studio</keyword>
+ <keyword>JSF</keyword>
+ <keyword>JBoss</keyword>
+ <keyword>RAD</keyword>
+ </keywordset>
+ </chapterinfo>
+ <title>RAD development of a simple JSF application</title>
+ <para>In this chapter you will see how to create a simple JSF application being based on <property>"RAD"</property> philosophy. We will develop an application simulating a game of Craps. The user will "roll" two dice by entering two numbers and clicking two buttons and the program will announce if the user won or not depending on the program's logic.</para>
+ <para>We'll show you how to create such an application from scratch, along the way demonstrating powerful features of Red Hat Developer Studio such as project templating, Visual Page Editor, code completion and others. You will design the
+JSF application and then run the application from inside Red Hat Developer Studio using the bundled JBoss server.</para>
+</chapter>
\ No newline at end of file
17 years, 3 months
JBoss Tools SVN: r3627 - 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-09-14 07:54:20 -0400 (Fri, 14 Sep 2007)
New Revision: 3627
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/AbstractExtendedXMLFileImpl.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FileSystemsImpl.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FolderImpl.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelObjectImpl.java
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java
Log:
JBIDE-903
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/AbstractExtendedXMLFileImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/AbstractExtendedXMLFileImpl.java 2007-09-14 10:59:19 UTC (rev 3626)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/AbstractExtendedXMLFileImpl.java 2007-09-14 11:54:20 UTC (rev 3627)
@@ -206,6 +206,11 @@
}
}
+ protected void safeChangeTimeStamp() {
+ boolean b = ("" + getTimeStamp()).equals(get("actualBodyTimeStamp"));
+ changeTimeStamp();
+ if(b) set("actualBodyTimeStamp", "" + getTimeStamp());
+ }
protected void mergeAll(XModelObject f, boolean update) {
merge(f, !update);
}
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FileSystemsImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FileSystemsImpl.java 2007-09-14 10:59:19 UTC (rev 3626)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FileSystemsImpl.java 2007-09-14 11:54:20 UTC (rev 3627)
@@ -26,6 +26,7 @@
public class FileSystemsImpl extends OrderedObjectImpl implements IResourceChangeListener {
private static final long serialVersionUID = 1527918897367197051L;
+ boolean needsUpdateOverlapping = false;
protected Set<String> overlapped = null;
Ov overlapper = null;
FileSystemsRenameListener fileSystemsRenameListener = new FileSystemsRenameListener(this);
@@ -57,14 +58,22 @@
super.removeChild_0(o);
updateOverlappedLater();
}
+
+ private static int OV_SLEEPING = 0;
+ private static int OV_STOPPED = 1;
+ private static int OV_RUNNING = 2;
class Ov implements XJob.XRunnable {
+ int status = OV_SLEEPING;
public void run() {
+
try {
Thread.sleep(200);
} catch (InterruptedException e) {
return;
}
+ if(status == OV_STOPPED) return;
+ status = OV_RUNNING;
try {
updateOverlappedInternal();
} catch (Exception e) {
@@ -81,17 +90,27 @@
private void updateOverlappedLater() {
if(isActive() && overlapper == null) {
if(EclipseResourceUtil.isProjectFragment(getModel())) return;
+ needsUpdateOverlapping = true;
XJob.addRunnable(overlapper = new Ov());
// (overlapper = new Thread(new Ov())).start();
}
}
- public void updateOverlapped() {
- if(overlapper != null) return;
+ public boolean updateOverlapped() {
+ if(overlapper != null && overlapper.status == OV_RUNNING) {
+ return false;
+ } else if(overlapper != null) {
+ overlapper.status = OV_STOPPED;
+ overlapper = null;
+ }
updateOverlappedInternal();
+ return true;
}
+
private //synchronized
void updateOverlappedInternal() {
+ if(!needsUpdateOverlapping) return;
+ needsUpdateOverlapping = false;
if(EclipseResourceUtil.isProjectFragment(getModel())) return;
if(overlapped == null) overlapped = new HashSet<String>();
Set<String> _overlapped = new HashSet<String>();
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FolderImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FolderImpl.java 2007-09-14 10:59:19 UTC (rev 3626)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/filesystems/impl/FolderImpl.java 2007-09-14 11:54:20 UTC (rev 3627)
@@ -992,7 +992,9 @@
((FolderImpl)p).getFileSystem().getPeer().register(f);
}
ef.refreshLocal(IFile.DEPTH_INFINITE, null);
- } catch (Exception e) {}
+ } catch (Exception e) {
+ //ignore
+ }
return true;
}
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelObjectImpl.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelObjectImpl.java 2007-09-14 10:59:19 UTC (rev 3626)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/XModelObjectImpl.java 2007-09-14 11:54:20 UTC (rev 3627)
@@ -193,6 +193,12 @@
++timeStamp;
if(parent != null) parent.changeTimeStamp();
}
+
+ protected void safeChangeTimeStamp() {
+ changeTimeStamp();
+ }
+
+
// children
@@ -540,7 +546,7 @@
}
private void fireErrorStateChanged() {
- changeTimeStamp();
+ safeChangeTimeStamp();
String path = getPath();
if(path != null) {
fireObjectChanged(null);
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-09-14 10:59:19 UTC (rev 3626)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/util/EclipseResourceUtil.java 2007-09-14 11:54:20 UTC (rev 3627)
@@ -103,6 +103,7 @@
if (model != null) {
FileSystemsImpl fso = (FileSystemsImpl)model.getByPath("FileSystems");
if(fso == null) return null;
+ fso.updateOverlapped();
XModelObject[] fs = fso.getChildren("FileSystemFolder");
for (int i = 0; i < fs.length; i++) {
FileSystemImpl s = (FileSystemImpl)fs[i];
17 years, 3 months
JBoss Tools SVN: r3626 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/support/kb.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2007-09-14 06:59:19 -0400 (Fri, 14 Sep 2007)
New Revision: 3626
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/support/kb/WTPTextJspKbConnector.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-814 Resource bundle completion works for <f:loadBundle> but doesn't work for <a4j:loadBundle>
Issue is fixed
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/support/kb/WTPTextJspKbConnector.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/support/kb/WTPTextJspKbConnector.java 2007-09-14 10:26:31 UTC (rev 3625)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/support/kb/WTPTextJspKbConnector.java 2007-09-14 10:59:19 UTC (rev 3626)
@@ -180,13 +180,24 @@
private Map<String,Object> trackers = new HashMap<String,Object>();
private Map<String,LoadBundleInfo> loadedBundles = new HashMap<String,LoadBundleInfo>();
- private final static String TRACKERS_TO_WATCH = "http://java.sun.com/jsf/core";
+ private final static String[] TRACKERS_TO_WATCH = {"http://java.sun.com/jsf/core",
+ "https://ajax4jsf.dev.java.net/ajax"
+ };
private boolean taglibTrackerListenerInstalled = false;
public void invokeDelayedUpdateKnownTagLists() {
timer.schedule(new MyTimerTask(), 500);
}
+ private boolean isTrackerToWatch(String trackerUri) {
+ for(int i=0; TRACKERS_TO_WATCH != null && i<TRACKERS_TO_WATCH.length; i++) {
+ if (TRACKERS_TO_WATCH[i].equals(trackerUri)) {
+ return true;
+ }
+ }
+ return false;
+ }
+
public void initTaglibPrefixes() {
trackers.clear();
if(taglibManagerProvider==null || taglibManagerProvider.getTaglibManager()==null) {
@@ -195,7 +206,7 @@
List list = manager.getTaglibTrackers();
for(int i=0; i<list.size(); i++) {
TaglibTracker tracker = (TaglibTracker)list.get(i);
- if (TRACKERS_TO_WATCH.equals(tracker.getURI())) {
+ if (isTrackerToWatch(tracker.getURI())) {
trackers.put(tracker.getPrefix(), tracker);
}
}
@@ -204,7 +215,7 @@
List list = taglibManagerProvider.getTaglibManager().getTagLibs();
for(int i=0; i<list.size(); i++) {
TaglibData data = (TaglibData)list.get(i);
- if (TRACKERS_TO_WATCH.equals(data.getUri())) {
+ if (isTrackerToWatch(data.getUri())) {
trackers.put(data.getPrefix(), data);
}
}
@@ -219,7 +230,7 @@
List list = manager.getTaglibTrackers();
for(int i=0; i<list.size(); i++) {
TaglibTracker tracker = (TaglibTracker)list.get(i);
- if (TRACKERS_TO_WATCH.equals(tracker.getURI())) {
+ if (isTrackerToWatch(tracker.getURI())) {
trackers.put(tracker.getPrefix(), tracker);
}
}
@@ -227,7 +238,7 @@
List list = taglibManagerProvider.getTaglibManager().getTagLibs();
for(int i=0; i<list.size(); i++) {
TaglibData data = (TaglibData)list.get(i);
- if (TRACKERS_TO_WATCH.equals(data.getUri())) {
+ if (isTrackerToWatch(data.getUri())) {
trackers.put(data.getPrefix(), data);
}
}
17 years, 3 months
JBoss Tools SVN: r3625 - in trunk/seam: tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2007-09-14 06:26:31 -0400 (Fri, 14 Sep 2007)
New Revision: 3625
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/actions/SeamViewLayoutActionGroup.java
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java
Log:
http://jira.jboss.com/jira/browse/EXIN-337
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/actions/SeamViewLayoutActionGroup.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/actions/SeamViewLayoutActionGroup.java 2007-09-14 09:34:15 UTC (rev 3624)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/views/actions/SeamViewLayoutActionGroup.java 2007-09-14 10:26:31 UTC (rev 3625)
@@ -62,10 +62,11 @@
private String property;
private final boolean value;
- public CommonLayoutAction(String property, boolean value) {
+ public CommonLayoutAction(String property, boolean value, String id) {
super("", AS_RADIO_BUTTON);
this.property = property;
this.value = value;
+ this.setId(id);
}
public void run() {
@@ -87,13 +88,13 @@
IMenuManager viewMenu = actionBars.getMenuManager();
// Create layout sub menu
if (layoutSubMenu == null) {
- layoutSubMenu = new MenuManager("Seam Packages");
+ layoutSubMenu = new MenuManager("Seam Packages", "Seam Packages");
addLayoutActions(layoutSubMenu);
viewMenu.insertAfter(IWorkbenchActionConstants.MB_ADDITIONS, new Separator(LAYOUT_GROUP_NAME));
}
if(scopeSubMenu == null) {
- scopeSubMenu = new MenuManager("Scope Presentation");
+ scopeSubMenu = new MenuManager("Scope Presentation", "Scope Presentation");
addScopeActions(scopeSubMenu);
}
@@ -145,14 +146,14 @@
}
private void createActions() {
- flatLayoutAction = new CommonLayoutAction(PACKAGE_STRUCTURE, true);
- hierarchicalLayoutAction = new CommonLayoutAction(PACKAGE_STRUCTURE, false);
- labelScopeAction = new CommonLayoutAction(SCOPE_PRESENTATION, true);
- nodeScopeAction = new CommonLayoutAction(SCOPE_PRESENTATION, false);
+ flatLayoutAction = new CommonLayoutAction(PACKAGE_STRUCTURE, true, "package.flat");
+ hierarchicalLayoutAction = new CommonLayoutAction(PACKAGE_STRUCTURE, false,"package.hierarchical");
+ labelScopeAction = new CommonLayoutAction(SCOPE_PRESENTATION, true,"layout.label");
+ nodeScopeAction = new CommonLayoutAction(SCOPE_PRESENTATION, false,"layout.node");
}
protected void addLayoutActions(IMenuManager viewMenu) {
- viewMenu.add(new ContributionItem() {
+ viewMenu.add(new SeamContributionItem(flatLayoutAction) {
public void fill(Menu menu, int index) {
int style = SWT.RADIO;
MenuItem mi = new MenuItem(menu, style, index);
@@ -179,7 +180,7 @@
}
});
- viewMenu.add(new ContributionItem() {
+ viewMenu.add(new SeamContributionItem(hierarchicalLayoutAction) {
public void fill(Menu menu, int index) {
int style = SWT.RADIO;
MenuItem mi = new MenuItem(menu, style, index);
@@ -209,7 +210,7 @@
}
protected void addScopeActions(IMenuManager viewMenu) {
- viewMenu.add(new ContributionItem() {
+ viewMenu.add(new SeamContributionItem(labelScopeAction) {
public void fill(Menu menu, int index) {
int style = SWT.RADIO;
MenuItem mi = new MenuItem(menu, style, index);
@@ -236,7 +237,7 @@
}
});
- viewMenu.add(new ContributionItem() {
+ viewMenu.add(new SeamContributionItem(nodeScopeAction) {
public void fill(Menu menu, int index) {
int style = SWT.RADIO;
MenuItem mi = new MenuItem(menu, style, index);
@@ -264,5 +265,16 @@
});
}
-
+ public class SeamContributionItem extends ContributionItem{
+ IAction action;
+
+ public SeamContributionItem(IAction action){
+ super(action.getId());
+ this.action = action;
+ }
+
+ public IAction getAction(){
+ return action;
+ }
+ }
}
Modified: trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java 2007-09-14 09:34:15 UTC (rev 3624)
+++ trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/view/SeamComponentsViewTest.java 2007-09-14 10:26:31 UTC (rev 3625)
@@ -22,11 +22,16 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.NullProgressMonitor;
import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.jface.action.IContributionItem;
+import org.eclipse.jface.action.IMenuManager;
+import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Tree;
import org.eclipse.swt.widgets.TreeItem;
+import org.eclipse.ui.IActionBars;
import org.eclipse.ui.IViewPart;
+import org.eclipse.ui.IViewSite;
import org.eclipse.ui.IWorkbenchPage;
import org.eclipse.ui.internal.decorators.DecoratorManager;
import org.eclipse.ui.navigator.CommonNavigator;
@@ -39,6 +44,7 @@
import org.jboss.tools.seam.core.SeamCorePlugin;
import org.jboss.tools.seam.ui.ISeamUiConstants;
import org.jboss.tools.seam.ui.views.actions.ScopePresentationActionProvider;
+import org.jboss.tools.seam.ui.views.actions.SeamViewLayoutActionGroup.SeamContributionItem;
import org.jboss.tools.test.util.JUnitUtils;
import org.jboss.tools.test.util.WorkbenchUtils;
@@ -55,7 +61,7 @@
@Override
protected void setUp() throws Exception {
super.setUp();
- ScopePresentationActionProvider.setPackageStructureFlat(false);
+ //ScopePresentationActionProvider.setPackageStructureFlat(false);
WorkbenchUtils.getWorkbench().showPerspective(
RedHat4WebPerspectiveFactory.PERSPECTIVE_ID,
WorkbenchUtils.getWorkbench().getActiveWorkbenchWindow());
@@ -70,31 +76,6 @@
assertTrue("Cannot find components.xml in test project", componentsFile != null && componentsFile.exists());
}
- public void testFlatSeamPackages(){
- SeamCorePlugin.getSeamProject(project, true);
-
- refreshProject(project);
-
- CommonNavigator navigator = getSeamComponentsView();
-
- navigator.getCommonViewer().expandAll();
-
-
- Tree tree = navigator.getCommonViewer().getTree();
-
- updateTree(tree);
-
- ISeamPackage seamPackage = findSeamPackage(tree, "package1");
-
- assertTrue("Unexpected package 'package1' was" +
- " found",seamPackage==null);
-
- seamPackage = findSeamPackage(tree, "package1.package2.package3.package4");
-
- assertTrue("Expected package 'package1.package2.package3.package4' was not" +
- " found",seamPackage!=null);
- }
-
public void testAddComponentInXmlFile(){
SeamCorePlugin.getSeamProject(project, true);
@@ -416,19 +397,54 @@
assertTrue("Created Seam enabled project haven't been deleted from tree",0==content.getElements(ResourcesPlugin.getWorkspace().getRoot()).length);
}
+ public void testFlatSeamPackages(){
+ SeamCorePlugin.getSeamProject(project, true);
+
+ refreshProject(project);
+ CommonNavigator navigator = getSeamComponentsView();
+
+ IActionBars bars = ((IViewSite)navigator.getSite()).getActionBars();
+ IMenuManager mm = bars.getMenuManager();
+ IContributionItem item = ((MenuManager)mm).find("Seam Packages");
+ SeamContributionItem item2 = (SeamContributionItem)((MenuManager)item).find("package.flat");
+ item2.getAction().run();
+
+ refreshProject(project);
+
+ navigator.getCommonViewer().expandAll();
+
+ Tree tree = navigator.getCommonViewer().getTree();
+
+ updateTree(tree);
+
+ ISeamPackage seamPackage = findSeamPackage(tree, "package1");
+
+ assertTrue("Unexpected package 'package1' was" +
+ " found",seamPackage==null);
+
+ seamPackage = findSeamPackage(tree, "package1.package2.package3.package4");
+
+ assertTrue("Expected package 'package1.package2.package3.package4' was not" +
+ " found",seamPackage!=null);
+ }
+
public void testHierarchicalSeamPackages(){
SeamCorePlugin.getSeamProject(project, true);
refreshProject(project);
CommonNavigator navigator = getSeamComponentsView();
-
+
+ IActionBars bars = ((IViewSite)navigator.getSite()).getActionBars();
+ IMenuManager mm = bars.getMenuManager();
+ IContributionItem item = ((MenuManager)mm).find("Seam Packages");
+ SeamContributionItem item2 = (SeamContributionItem)((MenuManager)item).find("package.hierarchical");
+ item2.getAction().run();
+
+ refreshProject(project);
+
navigator.getCommonViewer().expandAll();
-// IActionBars bars = ((IViewSite)navigator.getSite()).getActionBars();
-// IMenuManager mm = bars.getMenuManager();
-// IContributionItem item = ((MenuManager)mm).find("Seam Packages");
-// IContributionItem item2 = ((MenuManager)item).find("package.hierarchical");
Tree tree = navigator.getCommonViewer().getTree();
17 years, 3 months
JBoss Tools SVN: r3624 - in trunk/documentation/GettingStartedGuide/docs/userguide/en: modules and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: sabrashevich
Date: 2007-09-14 05:34:15 -0400 (Fri, 14 Sep 2007)
New Revision: 3624
Added:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/default.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/webxmldesign.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/webxmlsource.png
Modified:
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/newproject1.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/newproject2.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/newproject3.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/newproject4.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/images/newproject5.png
trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/DevelopAsimpleJSPWebApplication.xml
Log:
http://jira.jboss.com/jira/browse/RHDS-160 chapter 4 is retaken
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/default.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/default.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/newproject1.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/newproject2.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/newproject3.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/newproject4.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/newproject5.png
===================================================================
(Binary files differ)
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/webxmldesign.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/webxmldesign.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/webxmlsource.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/GettingStartedGuide/docs/userguide/en/images/webxmlsource.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/DevelopAsimpleJSPWebApplication.xml
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/DevelopAsimpleJSPWebApplication.xml 2007-09-14 09:30:18 UTC (rev 3623)
+++ trunk/documentation/GettingStartedGuide/docs/userguide/en/modules/DevelopAsimpleJSPWebApplication.xml 2007-09-14 09:34:15 UTC (rev 3624)
@@ -5,13 +5,11 @@
<keywordset>
<keyword>Red Hat Developer Studio</keyword>
<keyword>JSP</keyword>
- <keyword>JSF</keyword>
<keyword>JBoss</keyword>
</keywordset>
</chapterinfo>
<title>Develop a simple JSP web application</title>
- <para>In this chapter we are going to show you how to create a simple JSP application using the Red Hat Developer Studio. The completed application will ask a user to enter a name and click a button. The resulting new page will display the familiar message, "Hello <name>!"</para>
-<para>You will learn how to create such an application from the beginning, along the way demonstrating some of the powerful features of Red Hat Developer Studio. You will design the JSP application and then run the application from inside RHDS.</para>
+ <para>In this chapter we are going to show you how to create a simple JSP application using the Red Hat Developer Studio. The application will show a classic "Hello World!" on the page.</para>
<para>We'll assume that you have already launched Red Hat Developer Studio installed and
also that the Red Hat perspective is the current perspective. (If not, make it active by selecting <emphasis>Window/Open Perspective/Red Hat Developer Studio</emphasis> from the menu bar or by selecting <emphasis>Window/
Open Perspective/Other...</emphasis> from the menu bar and then selecting Red Hat Developer Studio from
@@ -22,453 +20,190 @@
<para>We are first going to create a new project for the application.</para>
<orderedlist>
<listitem><para>Go to the menu bar and select <emphasis>File/New/Project...</emphasis></para></listitem>
- <listitem><para>Select <emphasis>Red Hat Developer Studio/JSF/JSF Project</emphasis> in the New Project dialog box</para></listitem>
+ <listitem><para>Select <emphasis>Web/Dynamic Web Project</emphasis> in the New Project dialog box</para></listitem>
<listitem><para>Click Next ></para></listitem>
- <listitem><para>Enter "jsfHello" as the project name</para></listitem>
+ <listitem><para>Enter "jspHello" as the project name</para></listitem>
<listitem><para>Leave everything else as is, and click Finish</para></listitem>
</orderedlist>
<figure>
- <title>Create New JSF Project</title>
+ <title>Create New Web Project</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/newproject1.png"/>
</imageobject>
</mediaobject>
</figure>
- </section>
-
- <section id="TheJSFApplicationConfigurationFile">
- <?dbhtml filename="TheJSFApplicationConfigurationFile.html"?>
- <title>The JSF Application Configuration File</title>
- <para>A <emphasis>jsfHello</emphasis> node should appear in the upper-left Package Explorer view.</para>
- <orderedlist continuation="continues">
- <listitem><para>Click the right-pointing-arrow sign next to <emphasis>jsfHello</emphasis> to reveal the child nodes</para></listitem>
- </orderedlist>
- <figure>
- <title>New JSF Project</title>
+ <para>A jspHello node should appear in the upper-left Package Explorer view.</para>
+ <figure>
+ <title>New Web Project</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/newproject2.png"/>
</imageobject>
</mediaobject>
</figure>
+ </section>
+
+ <section id="CreatingJSPPage">
+ <?dbhtml filename="CreatingJSPPage.html"?>
+ <title>Creating JSP Page</title>
+ <para>In our simple application we need to create only one JSP page which will display a "Hello World!" message.</para>
<orderedlist continuation="continues">
- <listitem><para>Click the right-pointing-arrow sign next to WebContent under <emphasis>jsfHello</emphasis></para></listitem>
- <listitem><para>Click the right-pointing-arrow sign next to WEB-INF under WebContent.</para></listitem>
- <listitem><para>Then double-click on the faces-config.xml node to display the JSF application configuration file editor</para></listitem>
- </orderedlist>
- <para>The configuration file will be opened in Diagram View.</para>
- <figure>
- <title>Diagram View</title>
+<listitem><para>Right click <emphasis>WebContent > New > JSP.</emphasis></para></listitem>
+<listitem><para>Type "hello.jsp" for file name and click Next button.</para></listitem>
+</orderedlist>
+<para>In the next window you can choose a template for your jsp page and see its preview.</para>
+<orderedlist continuation="continues">
+<listitem><para>Select "New JSP File (xhtml)" template and click Finish button.</para></listitem>
+</orderedlist>
+<figure>
+ <title>Create JSP Page</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/newproject3.png"/>
</imageobject>
</mediaobject>
</figure>
- </section>
-
- <section id="AddingNavigationToTheApplication">
- <?dbhtml filename="AddingNavigationToTheApplication.html"?>
- <title>Adding Navigation to the Application</title>
- <para>In our simple application, the flow is defined as a single navigation rule connecting two views (presentation files). At this point, we will create the placeholders for the two JSP presentation files and then the navigation rule to connect them as views. Later, we will complete the coding for the JSP presentation files. With Red Hat Developer Studio, we can do all of this in the Diagram mode of the configuration file editor.</para>
- <section id="AddingTwoViewsJSPPages">
- <?dbhtml filename="AddingTwoViewsJSPPages.html"?>
- <title>Adding Two Views (JSP Pages)</title>
+ <para>Our hello.jsp page will now appear in Project Explorer.</para>
+ <section id="EditingJSPPage">
+ <?dbhtml filename="EditingJSPPage.html"?>
+ <title>Editing JSP Page</title>
+ <para>Let's now make a little change so that jsp page displays that "Hello World!" message.</para>
<orderedlist continuation="continues">
- <listitem><para>Right-click anywhere on the diagram and select <emphasis>New View...</emphasis> from the pop-up
-menu</para></listitem>
- <listitem><para>In the dialog box, type <emphasis>pages/inputname</emphasis> as the value for From-view-id</para></listitem>
- <listitem><para>Leave everything else as is</para></listitem>
- <listitem><para>Click Finish</para></listitem>
- </orderedlist>
- <figure>
- <title>Create New View</title>
+<listitem><para>Insert this line inside the <emphasis role="bold"><property><body></property></emphasis><emphasis role="bold"><property></body></property></emphasis> tag:
+</para></listitem>
+</orderedlist>
+<programlisting role="XML"><![CDATA[<% out.println("Hello World!"); %>]]>
+</programlisting>
+
+<para>Notice that content assist is always available when you are typing:</para>
+<figure>
+ <title>Content Assist in JSP page</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/newproject4.png"/>
</imageobject>
</mediaobject>
</figure>
- <para>If you look in the Package Explorer view you should see a pages folder under WebContent and the icon of the just created view. Opening it will reveal the JSP file you just created.</para>
+ <para>After changes are made your hello.jsp page should look like this:</para>
<figure>
- <title>New View is created</title>
+ <title>Hello.jsp page</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/newproject5.png"/>
</imageobject>
</mediaobject>
</figure>
- <orderedlist continuation="continues">
- <listitem><para>Back on the diagram, right-click anywhere and select <emphasis>New View...</emphasis> from the popup menu.</para></listitem>
- <listitem><para>In the dialog box, type <emphasis>pages/greeting</emphasis> as the value for From-view-id</para></listitem>
- <listitem><para>Leave everything else as is</para></listitem>
- <listitem><para>Click Finish</para></listitem>
- </orderedlist>
- <para>The second view is created.</para>
- <figure>
- <title>New View is created</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/newproject6.png"/>
- </imageobject>
- </mediaobject>
- </figure>
</section>
- <section id="CreatingTheTransitionNavigationRule">
- <?dbhtml filename="CreatingTheTransitionNavigationRule.html"?>
- <title>Creating the Transition (Navigation Rule)</title>
- <para>Let's now create a navigation transition between these two views.</para>
- <orderedlist continuation="continues">
- <listitem><para>In the diagram, select the connection icon third from the top along the upper left
-side of the diagram
+ <section id="WebXML">
+ <?dbhtml filename="WebXML.html"?>
+ <title>Web.xml File</title>
+ <para>When you are creating web project the wizard creates the web.xml for you automatically. The web.xml file editor provided by Red Hat Developer Studio is available in two modes: design and source.</para>
<figure>
- <title>Connection Icon</title>
+ <title>Web.xml in design mode</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/connectionicon.png"/>
+ <imagedata fileref="images/webxmldesign.png"/>
</imageobject>
</mediaobject>
</figure>
- to get an arrow cursor with a two-pronged plug at the arrow's bottom</para></listitem>
- <listitem><para>Click on the <emphasis>pages/inputname page</emphasis> icon and then click on the <emphasis>pages/greeting page</emphasis> icon</para></listitem>
- </orderedlist>
- <para>A transition should appear between the two icons.</para>
<figure>
- <title>Transition between two views</title>
+ <title>Web.xml in source mode</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/newproject7.png"/>
+ <imagedata fileref="images/webxmlsource.png"/>
</imageobject>
</mediaobject>
</figure>
- <orderedlist continuation="continues">
- <listitem><para>Select <emphasis>File/Save</emphasis> from the menu bar to save the configuration file</para></listitem>
- </orderedlist>
+ <para>Both modes are fully synchronized. Let's add mapping to our hello.jsp page in web.xml file.</para>
+ <itemizedlist>
+ <listitem><para>Switch to source mode.</para></listitem>
+ <listitem><para>Add the next code into <emphasis role="bold"><property><welcome-file-list></property></emphasis>:</para></listitem>
+ </itemizedlist>
+ <programlisting role="XML"><![CDATA[<welcome-file>hello.jsp</welcome-file>
+]]></programlisting>
+<para>If you come back to design mode you will see that the changes made are automatically reflected in that mode.</para>
+<para>Actually you don't really need any config right now. You can clear the web.xml file, save it and you'll still be able to launch your application.</para>
</section>
+
+ <section id="DeployTheProject">
+ <?dbhtml filename="DeployTheProject.html"?>
+ <title>Deploy the project</title>
+ <para>While creating any web project one is usually experiencing a pain writing ant scripts and managing the
+packaging even if she is writing the most trivial web applications. With Red Hat Developer Studio you are saved from such a pain. All you need is start JBoss server and launch your application in your favorite browser.</para>
+ <para>You can also create a war archive with RHDS's Archive Tools and export it to any web server.</para>
+ <section id="WarConfig">
+ <?dbhtml filename="WarConfig.html"?>
+ <title>WAR config</title>
+ <para>TO BE DONE</para>
</section>
- <section id="AddingAManagedBeanToTheApplication">
- <?dbhtml filename="AddingAManagedBeanToTheApplication.html"?>
- <title>Adding a Managed Bean to the Application</title>
- <para>To store data in the application, we will use a managed bean. Let's create it.</para>
- <orderedlist continuation="continues">
- <listitem><para>Click on the Tree tab at the bottom of the editing window</para></listitem>
- <listitem><para>Select the Managed Beans node and then click the <emphasis>Add...</emphasis> button displayed along the right side of the editor window</para></listitem>
- <listitem><para>Type in <emphasis>jsfHello.PersonBean</emphasis> for Class and <emphasis>personBean</emphasis> for Name. Leave Scope as is and Generate Source Code as is (checked).</para></listitem>
- </orderedlist>
- <figure>
- <title>Create managed bean</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/newproject8.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <orderedlist continuation="continues">
- <listitem><para>Click Finish</para></listitem>
- </orderedlist>
- <para><emphasis>personBean</emphasis> will now be selected and three sections of information, "Managed
-Bean", "Properties", and "Advanced", will be displayed about it.</para>
- <orderedlist continuation="continues">
- <listitem><para>Under the Properties section, click the <emphasis>Add...</emphasis> button.
- <figure>
- <title>Managed bean is created</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/newproject9.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </para></listitem>
- </orderedlist>
- <orderedlist continuation="continues">
- <listitem><para>For <emphasis>Property-Name</emphasis> type in name. Leave everything else as is. (When <emphasis>Property-Class</emphasis> is not filled in, String is the assumed type.).</para></listitem>
- <listitem><para>Click Finish.</para></listitem>
- <listitem><para>Select the personBean node in the tree.</para></listitem>
- <para>You should see this now:</para>
- <figure>
- <title>Managed bean with name property</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/newproject10.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- </orderedlist>
- <orderedlist continuation="continues">
- <listitem><para>Select <emphasis>File/Save</emphasis> from the menu bar.</para></listitem>
- </orderedlist>
- </section>
+ <section id="AutoRedeploy">
+ <?dbhtml filename="AutoRedeploy.html"?>
+ <title>Auto redeploy</title>
+ <para>TO BE DONE</para>
+ </section>
+ </section>
- <section id="EditingTheJSPViewFiles">
- <?dbhtml filename="EditingTheJSPViewFiles.html"?>
- <title>Editing the JSP View Files</title>
- <para>Now we will finish editing the JSP files for our two "views" using Red's JSP Visual Page
-Editor.</para>
-
-<section id="inputnamejspView">
- <?dbhtml filename="inputnamejspView.html"?>
- <title>inputname.jsp view</title>
- <orderedlist continuation="continues">
-<listitem><para>Click on the Diagram tab for the configuration file editor.</para></listitem>
-<listitem><para>Open the editor for this first JSP file by double-clicking on the /pages/inputname.
-jsp icon.</para></listitem>
-</orderedlist>
-<para>The Red Hat Visual Page Editor will open in a screen split between source code along the top and a WYSIWIG view along the bottom:</para>
-<figure>
- <title>inputname.jsp in visual/source mode</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/newproject11.png"/>
- </imageobject>
- </mediaobject>
- </figure>
- <para>Some JSF code will already be in the file because we selected a template when creating the page.</para>
- <orderedlist continuation="continues">
-<listitem><para>Select the Visual tab, so we can work with the editor completely in its WYSIWYG
-mode.</para></listitem>
-<listitem><para>To the right of the editor, in the Red Hat Palette, expand the JSF HTML palette folder by selecting it.</para>
-
-<figure>
- <title>JSF HTML palette</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/newproject12.png"/>
- </imageobject>
- </mediaobject>
- </figure></listitem>
- <listitem><para>Click on "form" within this folder, drag the cursor over to the editor, and drop it inside the red box in the editor.</para></listitem></orderedlist>
- <para>An "Insert Tag" dialog will be prompted</para>
- <orderedlist continuation="continues">
-<listitem><para>In the value field next to <emphasis>id</emphasis>, type "greeting" and click on the Finish button.</para>
-<figure>
- <title>Insert Tag dialog</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/newproject13.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-</listitem>
-</orderedlist>
-<para>Another red box will appear inside the first red box.</para>
-<orderedlist continuation="continues">
-<listitem><para>Type "Please enter name:" inside the boxes.</para>
-<figure>
- <title>Editing View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/newproject14.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-</listitem>
-<listitem><para>Select "inputText" within the JSF HTML palette folder and drag it into the innermost box in the editor after "Please enter name: ".</para></listitem>
-<listitem><para>In the attributes dialog, click in the value field next to the <emphasis role="italic"><property>"value"</property></emphasis> attribute and click on the <emphasis>...</emphasis> button.</para></listitem>
-
-<listitem><para>Then, select the <emphasis>Managed Beans/personBean/name</emphasis> node and click on the Ok button.</para>
-<figure>
- <title>Select bean property</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/newproject15.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-</listitem>
-<listitem><para>Back in the attributes dialog, select the Advanced tab, type in "name" as the value
-for the <emphasis role="italic"><property>"id"</property></emphasis> attribute, and then click on the Finish button.</para></listitem>
-<listitem><para>Select "commandButton" within the JSF HTML palette folder and drag it into the innermost box in the editor after the input box.</para></listitem>
-<listitem><para>In the attributes dialog, click in the "value" field next to the <emphasis role="italic"><property>"action"</property></emphasis> attribute and click on the <emphasis>...</emphasis> button.</para></listitem>
-<listitem><para>Then, select the <emphasis>View Actions/greeting</emphasis> node and click on the Ok button.</para></listitem>
-<listitem><para>Back in the attributes dialog box, type in "Say Hello" as the value for the <emphasis role="italic"><property>"value"</property></emphasis> attribute and then click on the Finish button.</para></listitem>
-</orderedlist>
-<para>The source coding should be something like this now:</para>
-<programlisting role="XML"><![CDATA[<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<html>
- <head>
- <title></title>
- </head>
- <body>
- <f:view>
- <h:form id="greeting">
- Please enter a name:
- <h:inputText value="#{personBean.name}" id="name"/>
- <h:commandButton action="greeting" value="Say Hello"/>
- </h:form>
- </f:view>
- </body>
-</html>
+ <section id="Previewtab">
+ <?dbhtml filename="Previewtab.html"?>
+ <title>JSP Page Preview</title>
+ <para>RHDS comes with JSP design-time preview features. When designing JSP pages you can easily preview how they will look during runtime. You can even attach your stylesheet to the preview.</para>
+ <itemizedlist>
+ <listitem><para>Make a little change to hello.jsp page, e.g. put this code snippet:</para></listitem>
+ </itemizedlist>
+ <programlisting role="XML"><![CDATA[<%= new java.util.Date() %>
]]></programlisting>
-<para>The editor should look like this:</para>
-<figure>
- <title>inputname.jsp view</title>
+ <itemizedlist>
+ <listitem><para>Click Save button.</para></listitem>
+ <listitem><para>Switch to Preview page by clicking Preview tab at the bottom of the page. You will see how the page will look at runtime.</para></listitem>
+ </itemizedlist>
+ <figure>
+ <title>Preview Page</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/newproject16.png"/>
+ <imagedata fileref="images/default.png"/>
</imageobject>
</mediaobject>
</figure>
- <orderedlist continuation="continues">
-<listitem><para>Save the file by selecting <emphasis>File/Save</emphasis> from the menu bar.</para></listitem>
-</orderedlist>
-<para>As you see with Red Hat Visual Editor you can easily create JSF components on a page and bind them with managed bean and view actions.</para>
</section>
- <section id="greetingjspView">
- <?dbhtml filename="greetingjspView.html"?>
- <title>greeting.jsp view</title>
- <para>Let's now write a code for a greeting page that will display a name of the user.</para>
+ <section id="LaunchingTheProject">
+ <?dbhtml filename="LaunchingTheProject.html"?>
+ <title>Launch JSP Project</title>
+ <para>Let's now launch our project on server. We'll be using JBoss server that ships with Red Hat Developer Studio.</para>
<orderedlist continuation="continues">
-<listitem><para>Click on the faces-config.xml tab to bring the diagram back.</para></listitem>
-<listitem><para>Open the editor for the second file by double-clicking on the <emphasis>/pages/greeting.jsp</emphasis> icon.</para></listitem>
-<listitem><para>Select the Visual tab, so we can work with the editor completely in its WYSIWYG mode.</para></listitem>
-<listitem><para>Type "Hello " (note space after hello) into the box.</para></listitem>
-<listitem><para>Select <emphasis role="italic"><property>outputText</property></emphasis> within the JSF HTML palette folder and drag it into the innermost box in the editor after "Hello ".</para></listitem>
-<listitem><para>In the attributes dialog, click in <emphasis>value</emphasis> field next to the <emphasis role="italic"><property>"value"</property></emphasis> attribute and click on the <emphasis>...</emphasis> button.</para></listitem>
-<listitem><para>Then, select the <emphasis>Managed Beans/personBean/name</emphasis> node, click on the Ok button,
-and then click on the Finish button.</para></listitem>
-<listitem><para>Right after the output field, type an exclamation point (!).</para></listitem>
+<listitem><para>Start JBoss server from JBoss Server view by clicking the Start icon.</para></listitem>
</orderedlist>
-<para>The source coding should be something like this now:</para>
-<programlisting role="XML"><![CDATA[<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
-<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
-<html>
- <head>
- <title></title>
- </head>
- <body>
- <f:view>
- Hello <h:outputText value="#{personBean.name}"/>!
- </f:view>
- </body>
-</html>
-]]></programlisting>
-<orderedlist continuation="continues">
-<listitem><para>Save the file.</para></listitem>
-</orderedlist>
- </section>
- </section>
- <section id="CreatingTheStartPage">
- <?dbhtml filename="CreatingTheStartPage.html"?>
- <title>Creating the Start Page</title>
- <para>You also need to create a start page as an entry point into the application.</para>
- <orderedlist continuation="continues">
-<listitem><para>In the Package Explorer view to the left, right-click <emphasis>jsfHello/WebContent</emphasis> and select
-<emphasis>New/JSP File</emphasis> .</para></listitem>
-<listitem><para>For Name type in "index", for Template select "JSPRedirect", and click Finish.</para></listitem>
-</orderedlist>
-<para>A JSP editor will open up on the newly created file.</para>
<figure>
- <title>index.jsp view</title>
+ <title>Starting server</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/newproject17.png"/>
+ <imagedata fileref="images/startingfromicon.png"/>
</imageobject>
</mediaobject>
</figure>
-<orderedlist continuation="continues">
-<listitem><para>In the Source part of the split screen, type <emphasis>/pages/inputname.jsf</emphasis> in between the quotes for the page attribute.</para></listitem>
-</orderedlist>
-<para>The source coding should look like this now:</para>
-<programlisting role="XML"><![CDATA[<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
-<html>
- <head></head>
- <body>
- <jsp:forward page="/pages/inputname.jsf" />
- </body>
-</html>
-]]></programlisting>
-<para>Note the <emphasis>.jsf</emphasis> extension for the file name. This is a mapping defined in the web.xml file
-for the project for invoking JavaServer Faces when you run the application.</para>
-<orderedlist continuation="continues">
-<listitem><para>Select <emphasis>File/Save</emphasis> from the menu bar.</para></listitem>
-</orderedlist>
- </section>
-
- <section id="RunningTheApplication1">
- <?dbhtml filename="RunningTheApplication1.html"?>
- <title>Running the Application</title>
- <para>Everything is now ready for running our application—without having to leave Red Hat Developer Studio —
-by using the JBoss engine that comes with the RHDS. For controlling JBoss within Studio, there is a special view - JBoss Server View (if it is not open select <emphasis>Window > Show View > Other > Server > JBoss Server View</emphasis>).</para>
-<figure>
- <title>JBoss Server View</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/newproject18.png"/>
- </imageobject>
- </mediaobject>
- </figure>
<orderedlist continuation="continues">
-<listitem><para>Start up JBoss by clicking on the second icon from left.</para></listitem>
+<listitem><para>Click the Run icon.</para></listitem>
</orderedlist>
-<para>After the messages in the Console tabbed view stop scrolling, JBoss server is available.</para>
-<orderedlist continuation="continues">
-<listitem><para>Click on the <emphasis>Run</emphasis> icon in the toolbar.</para>
<figure>
- <title>Run icon</title>
+ <title>Run project</title>
<mediaobject>
<imageobject>
<imagedata fileref="images/newproject19.png"/>
</imageobject>
</mediaobject>
</figure>
-</listitem>
-</orderedlist>
-<para>This is the equivalent of launching the browser and typing http://localhost:8080/
-jsfHello into your browser. Our JSF application should now appear.</para>
- </section>
- <section id="RunningTheApplication">
- <?dbhtml filename="RunningTheApplication.html"?>
- <title>Making changes to JSP page</title>
- <para>Red Hat Developer Studio comes with JSP design-time preview features. When designing JSP pages you can easily preview how they will look during runtime. You can even attach your stylesheet to the preview.</para>
- <para>Open the inputname.jsp page and after this line</para>
- <programlisting role="XML"><![CDATA[<h:commandButton action="greeting" value="Say Hello"/>
-]]></programlisting>
-<para>Type the next script:</para>
-<programlisting role="XML"><![CDATA[<%= new
-java.util.Date() %>
-]]></programlisting>
-<para>Then swich to Preview tab to see the changes.</para>
- </section>
-
- <section id="WebXML">
- <?dbhtml filename="WebXML.html"?>
- <title>web.xml file</title>
- <para>When you create a JSF project Red Hat Developer Studio is generating web.xml file for you. You don't need to write any configuration manually. The integrated web.xml editor comes both in source and tree modes.</para>
+ <para>You should see in browser the next page:</para>
<figure>
- <title>Web.xml editor in source mode</title>
+ <title>Running project</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/newproject20.png"/>
+ <imagedata fileref="images/default.png"/>
</imageobject>
</mediaobject>
</figure>
-
- <figure>
- <title>Web.xml editor in tree mode</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/newproject21.png"/>
- </imageobject>
- </mediaobject>
- </figure>
</section>
- <section id="WarDeploy">
- <?dbhtml filename="WarDeploy.html"?>
- <title>Deploy with War archive</title>
- <para>With Red Hat Developer Studio you can easily export your project in a <emphasis>.war</emphasis> and deploy to any web server.</para>
- <para>Just right click the project folder in Package Explorer and select <emphasis>Export > Web > WAR file</emphasis></para>
- <para>Then click Next > and in Export dialog specify the destination of the <emphasis>.war</emphasis> file and press Finish.</para>
- <figure>
- <title>Export war file</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/newproject22.png"/>
- </imageobject>
- </mediaobject>
- </figure>
</section>
+
</chapter>
\ No newline at end of file
17 years, 3 months
JBoss Tools SVN: r3623 - in branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces: src/org/jboss/tools/jsf/vpe/richfaces/template and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: ezheleznyakov
Date: 2007-09-14 05:30:18 -0400 (Fri, 14 Sep 2007)
New Revision: 3623
Modified:
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/scrollableDataTable/scrollableDataTable.css
branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesScrollableDataTableTemplate.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-847
Fix bug with selection in <rich:scrollableDataTable>.
Modified: branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/scrollableDataTable/scrollableDataTable.css
===================================================================
--- branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/scrollableDataTable/scrollableDataTable.css 2007-09-13 23:39:43 UTC (rev 3622)
+++ branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/resources/scrollableDataTable/scrollableDataTable.css 2007-09-14 09:30:18 UTC (rev 3623)
@@ -111,7 +111,7 @@
display: block;
}
-.dr-table-scroll {
- overflow: scroll;
+.dr-table-hidden {
+ overflow: hidden;
border: solid 1px #C4C0C9;
}
\ No newline at end of file
Modified: branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesScrollableDataTableTemplate.java
===================================================================
--- branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesScrollableDataTableTemplate.java 2007-09-13 23:39:43 UTC (rev 3622)
+++ branches/jbosstools_xulrunner/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesScrollableDataTableTemplate.java 2007-09-14 09:30:18 UTC (rev 3623)
@@ -21,7 +21,6 @@
import org.jboss.tools.vpe.editor.template.VpeCreationData;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
-import org.mozilla.interfaces.nsIDOMNode;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
@@ -43,7 +42,10 @@
final static String CAPTION_CLASS = "captionClass";
final static String CAPTION_STYLE = "captionStyle";
final static String SPACE = " ";
-
+
+ private static String STYLE_FOR_LOW_SCROLL = "overflow: scroll; width: 100%; height: 17px;";
+ private static String STYLE_FOR_RIGHT_SCROLL = "overflow: scroll; width: 17px; height: 100%;";
+
private static int NUM_ROW = 5;
/**
@@ -69,23 +71,68 @@
String height = sourceElement
.getAttribute(HtmlComponentUtil.HTML_HEIGHT_ATTR);
+ // -----------CommonTable
+ nsIDOMElement tableCommon = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TABLE);
+
+ VpeCreationData creationData = new VpeCreationData(tableCommon);
+
+ nsIDOMElement tr1 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TR);
+
+ nsIDOMElement tr2 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TR);
+
+ tableCommon.appendChild(tr1);
+ tableCommon.appendChild(tr2);
+
+ // ---------tr2
+ nsIDOMElement tr2_TD = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TD);
+ tr2.appendChild(tr2_TD);
+
+ nsIDOMElement tr2_td_DIV = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ tr2_td_DIV.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
+ STYLE_FOR_LOW_SCROLL);
+ tr2_TD.appendChild(tr2_td_DIV);
+
+ // --------------------------------------------
+
+ // ---------------------tr1------------------------
+ nsIDOMElement tr1_TD1 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TD);
+ tr1.appendChild(tr1_TD1);
+
+ nsIDOMElement tr1_TD2 = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_TD);
+ tr1.appendChild(tr1_TD2);
+
+ nsIDOMElement tr1_td2_DIV = visualDocument
+ .createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ tr1_td2_DIV.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR,
+ STYLE_FOR_RIGHT_SCROLL);
+ tr1_TD2.appendChild(tr1_td2_DIV);
+
+ // -------------------------------------------------------
nsIDOMElement div = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_DIV);
+ tr1_TD1.appendChild(div);
+ div.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, "dr-table-hidden");
String divStyle = HtmlComponentUtil.HTML_WIDTH_ATTR + " : "
+ (width == null ? DEFAULT_WIDTH : width) + ";"
+ HtmlComponentUtil.HTML_HEIGHT_ATTR + " : "
+ (height == null ? DEFAULT_HEIGHT : height) + ";";
+
div.setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, divStyle);
- div.setAttribute(HtmlComponentUtil.HTML_CLASS_ATTR, "dr-table-scroll");
+
nsIDOMElement table = visualDocument
.createElement(HtmlComponentUtil.HTML_TAG_TABLE);
ComponentUtil.copyAttributes(sourceNode, table);
- table.removeAttribute("height");
+ table.removeAttribute(HtmlComponentUtil.HTML_ATR_HEIGHT);
div.appendChild(table);
- VpeCreationData creationData = new VpeCreationData(div);
-
ComponentUtil.setCSSLink(pageContext,
"scrollableDataTable/scrollableDataTable.css",
"richFacesDataTable");
@@ -126,7 +173,7 @@
headerClass, HtmlComponentUtil.HTML_TAG_TD);
}
if (!columnsHeaders.isEmpty()) {
- nsIDOMElement tr = visualDocument.createElement("tr");
+ nsIDOMElement tr = visualDocument.createElement(HtmlComponentUtil.HTML_TAG_TR);
thead.appendChild(tr);
String styleClass = encodeStyleClass(null,
"dr-table-subheader rich-table-subheader", null,
@@ -532,65 +579,118 @@
return count;
}
- @Override
- public void removeAttribute(VpePageContext pageContext,
+ /**
+ * 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
+ * Attribute 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.
+ */
+ public boolean isRecreateAtAttrChange(VpePageContext pageContext,
Element sourceElement, nsIDOMDocument visualDocument,
- nsIDOMNode visualNode, Object data, String name) {
- nsIDOMElement visualElement = (nsIDOMElement) visualNode
- .queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
- if (name.equalsIgnoreCase(HtmlComponentUtil.HTML_WIDTH_ATTR)) {
- String style = visualElement
- .getAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
- visualElement.removeAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
- style += "; " + HtmlComponentUtil.HTML_WIDTH_ATTR + " : "
- + DEFAULT_WIDTH + ";";
- visualElement
- .setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, style);
-
- } else
-
- if (name.equalsIgnoreCase(HtmlComponentUtil.HTML_HEIGHT_ATTR)) {
- String style = visualElement
- .getAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
- visualElement.removeAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
- style += "; " + HtmlComponentUtil.HTML_HEIGHT_ATTR + " : "
- + DEFAULT_HEIGHT + ";";
- visualElement
- .setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, style);
-
- } else {
- visualElement.removeAttribute(name);
- }
+ nsIDOMElement visualNode, Object data, String name, String value) {
+ return true;
}
- @Override
- public void setAttribute(VpePageContext pageContext, Element sourceElement,
- nsIDOMDocument visualDocument, nsIDOMNode visualNode, Object data,
- String name, String value) {
- nsIDOMElement visualElement = (nsIDOMElement) visualNode
- .queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
- if (name.equalsIgnoreCase(HtmlComponentUtil.HTML_WIDTH_ATTR)) {
- String style = visualElement
- .getAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
- visualElement.removeAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
- style += "; " + HtmlComponentUtil.HTML_WIDTH_ATTR + " : " + value
- + ";";
- visualElement
- .setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, style);
+ // @Override
+ // public void removeAttribute(VpePageContext pageContext,
+ // Element sourceElement, nsIDOMDocument visualDocument,
+ // nsIDOMNode visualNode, Object data, String name) {
+ // nsIDOMElement visualElement = (nsIDOMElement) visualNode
+ // .queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
+ // if (name.equalsIgnoreCase(HtmlComponentUtil.HTML_WIDTH_ATTR)) {
+ // String style = visualElement
+ // .getAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
+ // visualElement.removeAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
+ // style += "; " + HtmlComponentUtil.HTML_WIDTH_ATTR + " : "
+ // + DEFAULT_WIDTH + ";";
+ // visualElement
+ // .setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, style);
+ //
+ // } else
+ //
+ // if (name.equalsIgnoreCase(HtmlComponentUtil.HTML_HEIGHT_ATTR)) {
+ // String style = visualElement
+ // .getAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
+ // visualElement.removeAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
+ // style += "; " + HtmlComponentUtil.HTML_HEIGHT_ATTR + " : "
+ // + DEFAULT_HEIGHT + ";";
+ // visualElement
+ // .setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, style);
+ //
+ // } else {
+ // visualElement.removeAttribute(name);
+ // }
+ // }
+ //
+ // @Override
+ // public void setAttribute(VpePageContext pageContext, Element
+ // sourceElement,
+ // nsIDOMDocument visualDocument, nsIDOMNode visualNode, Object data,
+ // String name, String value) {
+ // nsIDOMElement visualElement = (nsIDOMElement) visualNode
+ // .queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
+ // if (name.equalsIgnoreCase(HtmlComponentUtil.HTML_WIDTH_ATTR)) {
+ // String style = visualElement
+ // .getAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
+ // visualElement.removeAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
+ // style += "; " + HtmlComponentUtil.HTML_WIDTH_ATTR + " : " + value
+ // + ";";
+ // visualElement
+ // .setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, style);
+ //
+ // }
+ //
+ // if (name.equalsIgnoreCase(HtmlComponentUtil.HTML_HEIGHT_ATTR)) {
+ // String style = visualElement
+ // .getAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
+ // visualElement.removeAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
+ // style += "; " + HtmlComponentUtil.HTML_HEIGHT_ATTR + " : " + value
+ // + ";";
+ // visualElement
+ // .setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, style);
+ //
+ // }
+ // visualElement.setAttribute(name, value);
+ // }
- }
-
- if (name.equalsIgnoreCase(HtmlComponentUtil.HTML_HEIGHT_ATTR)) {
- String style = visualElement
- .getAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
- visualElement.removeAttribute(HtmlComponentUtil.HTML_STYLE_ATTR);
- style += "; " + HtmlComponentUtil.HTML_HEIGHT_ATTR + " : " + value
- + ";";
- visualElement
- .setAttribute(HtmlComponentUtil.HTML_STYLE_ATTR, style);
-
- }
- visualElement.setAttribute(name, value);
- }
-
-}
\ No newline at end of file
+}
+// html code
+// <table style="border: 1px solid;">
+// <tr>
+// <td>
+// <table>
+// <tr>
+// <td>
+// <input type="text"/>ibsert content
+// sdfsdfsdf
+// </td>
+// </tr>
+// </table>
+// </td>
+// <td>
+// <div style="overflow: scroll; width: 17px; height: 100%;">
+// </div>
+// </td>
+// </tr>
+// <tr>
+// <td>
+// <div style="overflow: scroll; width: 100%; height: 17px;">
+// </div>
+// </td>
+// </tr>
+// <table/>
17 years, 3 months
JBoss Tools SVN: r3622 - trunk/documentation/qa/emma.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2007-09-13 19:39:43 -0400 (Thu, 13 Sep 2007)
New Revision: 3622
Modified:
trunk/documentation/qa/emma/build.xml
Log:
emma jars, ant script for sources instrmentation and command file to run eclipse wit emma and generate coverage report
Modified: trunk/documentation/qa/emma/build.xml
===================================================================
--- trunk/documentation/qa/emma/build.xml 2007-09-13 23:28:59 UTC (rev 3621)
+++ trunk/documentation/qa/emma/build.xml 2007-09-13 23:39:43 UTC (rev 3622)
@@ -9,16 +9,12 @@
====================================================================== -->
<project name="project" default="default">
- <description>
- description
- </description>
-
<path id="emma.lib">
<fileset dir=".">
<include name="*emma*.jar"/>
</fileset>
</path>
- <path id="rhds">
+ <path id="rhds.lib">
<fileset dir="./rhds/eclipse/plugins">
<include name="org.jboss.tools.*/*.jar"/>
<include name="org.jboss.tools.*.jar"/>
@@ -32,9 +28,7 @@
================================= -->
<target name="default" description="" >
<emma enabled="true">
- <instr mode="overwrite" instrpathref="rhds">
-
- </instr>
+ <instr mode="overwrite" instrpathref="rhds.lib"/>
</emma>
</target>
</project>
17 years, 3 months
JBoss Tools SVN: r3621 - in trunk/documentation/qa: emma and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2007-09-13 19:28:59 -0400 (Thu, 13 Sep 2007)
New Revision: 3621
Added:
trunk/documentation/qa/emma/
trunk/documentation/qa/emma/build.xml
trunk/documentation/qa/emma/coverage.bat
trunk/documentation/qa/emma/emma.bat
trunk/documentation/qa/emma/emma.jar
trunk/documentation/qa/emma/emma_ant.jar
Log:
emma jars, ant script for sources instrmentation and command file to run eclipse wit emma and generate coverage report
Added: trunk/documentation/qa/emma/build.xml
===================================================================
--- trunk/documentation/qa/emma/build.xml (rev 0)
+++ trunk/documentation/qa/emma/build.xml 2007-09-13 23:28:59 UTC (rev 3621)
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- ======================================================================
+ Sep 13, 2007 11:27:06 AM
+
+ project
+ description
+
+ eskimo
+ ====================================================================== -->
+
+<project name="project" default="default">
+ <description>
+ description
+ </description>
+
+ <path id="emma.lib">
+ <fileset dir=".">
+ <include name="*emma*.jar"/>
+ </fileset>
+ </path>
+ <path id="rhds">
+ <fileset dir="./rhds/eclipse/plugins">
+ <include name="org.jboss.tools.*/*.jar"/>
+ <include name="org.jboss.tools.*.jar"/>
+ </fileset>
+ </path>
+
+ <taskdef resource="emma_ant.properties" classpathref="emma.lib" />
+
+ <!-- =================================
+ target: default
+ ================================= -->
+ <target name="default" description="" >
+ <emma enabled="true">
+ <instr mode="overwrite" instrpathref="rhds">
+
+ </instr>
+ </emma>
+ </target>
+</project>
Property changes on: trunk/documentation/qa/emma/build.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/documentation/qa/emma/coverage.bat
===================================================================
--- trunk/documentation/qa/emma/coverage.bat (rev 0)
+++ trunk/documentation/qa/emma/coverage.bat 2007-09-13 23:28:59 UTC (rev 3621)
@@ -0,0 +1,3 @@
+call ant
+call .\eclipse\eclipse.exe -clean -vm %JAVA_HOME%/bin/java -vmargs -Xms64m -Xmx512m -XX:MaxPermSize=128m -Xbootclasspath/a:emma.jar
+call %JAVA_HOME%/bin/java -cp emma.jar emma report -r html -in coverage.em -in coverage.ec
\ No newline at end of file
Added: trunk/documentation/qa/emma/emma.bat
===================================================================
--- trunk/documentation/qa/emma/emma.bat (rev 0)
+++ trunk/documentation/qa/emma/emma.bat 2007-09-13 23:28:59 UTC (rev 3621)
@@ -0,0 +1,46 @@
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.common_2.0.0.200709100004-nightly/common.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.common.gef_2.0.0.200709100004-nightly/common-gef.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.common.kb_2.0.0.200709100004-nightly/kb.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.common.model_2.0.0.200709100004-nightly/model.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.common.model.ui_2.0.0.200709100004-nightly/model_ui.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.common.projecttemplates_2.0.0.200709100004-nightly/projtempl.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.common.text.ext_2.0.0.200709100004-nightly/texteditorextensions.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.common.text.xml_2.0.0.200709100004-nightly/xmleditor.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.common.verification_2.0.0.200709100004-nightly/verification.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.common.verification.ui_2.0.0.200709100004-nightly/verificationui.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.jst.jsp_2.0.0.200709100004-nightly/jspeditor.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.jst.web_2.0.0.200709100004-nightly/web.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.jst.web.debug_2.0.0.200709100004-nightly/debug.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.jst.web.debug.ui_2.0.0.200709100004-nightly/ui.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.jst.web.tiles_2.0.0.200709100004-nightly/web-tiles.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.jst.web.tiles.ui_2.0.0.200709100004-nightly/tilesui.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.jst.web.ui_2.0.0.200709100004-nightly/webui.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.jst.web.verification_2.0.0.200709100004-nightly/web-verification.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.jsf_2.0.0.200709100004-nightly/jsf.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.jsf.text.ext_2.0.0.200709100004-nightly/jsfextensions.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.jsf.text.ext.facelets_2.0.0.200709100004-nightly/jsfextensions.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.jsf.ui_2.0.0.200709100004-nightly/jsfui.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.jsf.verification_2.0.0.200709100004-nightly/jsf-verification.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.jsf.vpe.facelets_2.0.0.200709100004-nightly/vpefacelets.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.jsf.vpe.tomahawk_2.0.0.200709100004-nightly/vpetomahawk.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.vpe_2.0.0.200709100004-nightly/vpe.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.vpe.mozilla.win32_2.0.0/mozilla-vpe.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.vpe.ui_2.0.0.200709100004-nightly/vpeproui.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.vpe.ui.palette_2.0.0.200709100004-nightly/palettegef.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.seam.core_2.0.0.200709100004-nightly/seam-core.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.seam.ui_*.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.seam.xml_2.0.0.200709100004-nightly/seam-xml.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.seam.xml.ui_2.0.0.200709100004-nightly/seam-xml-ui.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.struts_2.0.0/struts.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.struts.debug_2.0.0.200709100004-nightly/strutsdebug.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.struts.text.ext_2.0.0.200709100004-nightly/strutsextensions.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.struts.ui_2.0.0.200709100004-nightly/strutsui.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.struts.validator.ui_2.0.0.200709100004-nightly/strutsvalidatorui.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.struts.verification_2.0.0.200709100004-nightly/struts-verification.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.hibernate.ui.veditor/orm2-veditor.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.hibernate.ui.view/view.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.hibernate.xml/orm2-xml.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.hibernate.xml.ui/orm2-xml-ui.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.shale_2.0.0/shale.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.shale.text.ext_2.0.0.200709100004-nightly/shaleextensions.jar
+java -classpath ./emma.jar emma instr -m overwrite -verbose -cp ./rhds/eclipse/plugins/org.jboss.tools.shale.ui_2.0.0.200709100004-nightly/shaleui.jar
\ No newline at end of file
Added: trunk/documentation/qa/emma/emma.jar
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/qa/emma/emma.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/documentation/qa/emma/emma_ant.jar
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/qa/emma/emma_ant.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 3 months
JBoss Tools SVN: r3620 - in trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test: server and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2007-09-13 18:35:59 -0400 (Thu, 13 Sep 2007)
New Revision: 3620
Added:
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/server/
trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/server/StartupShutdownTest.java
Log:
Added startup / shutdown tests
Added: trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/server/StartupShutdownTest.java
===================================================================
--- trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/server/StartupShutdownTest.java (rev 0)
+++ trunk/as/tests/org.jboss.ide.eclipse.as.test/src/org/jboss/ide/eclipse/as/test/server/StartupShutdownTest.java 2007-09-13 22:35:59 UTC (rev 3620)
@@ -0,0 +1,288 @@
+package org.jboss.ide.eclipse.as.test.server;
+
+import java.util.ArrayList;
+import java.util.Date;
+
+import junit.framework.AssertionFailedError;
+import junit.framework.TestCase;
+
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.debug.core.ILaunchManager;
+import org.eclipse.debug.core.IStreamListener;
+import org.eclipse.debug.core.model.IStreamMonitor;
+import org.eclipse.jdt.launching.IVMInstall;
+import org.eclipse.jdt.launching.JavaRuntime;
+import org.eclipse.swt.SWTException;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.wst.server.core.IRuntime;
+import org.eclipse.wst.server.core.IRuntimeType;
+import org.eclipse.wst.server.core.IRuntimeWorkingCopy;
+import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.core.IServerListener;
+import org.eclipse.wst.server.core.IServerType;
+import org.eclipse.wst.server.core.IServerWorkingCopy;
+import org.eclipse.wst.server.core.ServerCore;
+import org.eclipse.wst.server.core.ServerEvent;
+import org.eclipse.wst.server.core.ServerUtil;
+import org.eclipse.wst.server.core.IServer.IOperationListener;
+import org.eclipse.wst.server.core.internal.RuntimeWorkingCopy;
+import org.jboss.ide.eclipse.as.core.server.IJBossServerRuntime;
+import org.jboss.ide.eclipse.as.core.server.internal.JBossServerBehavior;
+
+/**
+ * These tests are for a simple startup / shutdown of a basic,
+ * default configuration. The deploy folder should be normal,
+ * with only required deployments that should not fail at all.
+ *
+ * @author Rob Stryker
+ *
+ */
+public class StartupShutdownTest extends TestCase {
+ private static final String RUNTIME_32 = "org.jboss.ide.eclipse.as.runtime.32";
+ private static final String RUNTIME_40 = "org.jboss.ide.eclipse.as.runtime.40";
+ private static final String RUNTIME_42 = "org.jboss.ide.eclipse.as.runtime.42";
+ private static final String SERVER_32 = "org.jboss.ide.eclipse.as.32";
+ private static final String SERVER_40 = "org.jboss.ide.eclipse.as.40";
+ private static final String SERVER_42 = "org.jboss.ide.eclipse.as.42";
+ private static final String JBOSS_AS_32_HOME = System.getProperty("jbosstools.test.jboss.home.3.2", "C:\\apps\\jboss\\jboss-3.2.8.SP1\\");
+ private static final String JBOSS_AS_40_HOME = System.getProperty("jbosstools.test.jboss.home.4.0", "C:\\apps\\jboss\\jboss-4.0.5.GA\\");
+ private static final String JBOSS_AS_42_HOME = System.getProperty("jbosstools.test.jboss.home.4.2", "C:\\apps\\jboss\\jboss-4.2.1.GA\\");
+
+ protected static final IVMInstall VM_INSTALL = JavaRuntime.getDefaultVMInstall();
+ protected static final String DEFAULT_CONFIG = "default";
+
+ protected static final int DEFAULT_STARTUP_TIME = 150000;
+ protected static final int DEFAULT_SHUTDOWN_TIME = 90000;
+
+ protected IRuntime currentRuntime;
+ protected IServer currentServer;
+ protected ServerStateListener stateListener;
+
+ public void setUp() {
+ try {
+ if( getName().equals("test32"))
+ createServer(RUNTIME_32, SERVER_32, JBOSS_AS_32_HOME, DEFAULT_CONFIG);
+ else if( getName().equals("test40"))
+ createServer(RUNTIME_40, SERVER_40, JBOSS_AS_40_HOME, DEFAULT_CONFIG);
+ else if( getName().equals("test42"))
+ createServer(RUNTIME_42, SERVER_42, JBOSS_AS_42_HOME, DEFAULT_CONFIG);
+
+ // first thing's first. Let's add a server state listener
+ stateListener = new ServerStateListener();
+ currentServer.addServerListener(stateListener);
+
+ } catch( CoreException ce ) {
+ fail("Failed during setUp for " + getName() + ": " + ce.getMessage());
+ }
+ }
+
+ public void tearDown() {
+ System.out.println("tearing down " + getName());
+ try {
+ currentServer.removeServerListener(stateListener);
+ currentServer.delete();
+ } catch( CoreException ce ) {
+ // report
+ }
+ }
+
+
+
+ protected void createServer(String runtimeID, String serverID,
+ String location, String configuration) throws CoreException {
+ // if file doesnt exist, abort immediately.
+ assertTrue(new Path(location).toFile().exists());
+
+ currentRuntime = createRuntime(runtimeID, location, configuration);
+ IServerType serverType = ServerCore.findServerType(serverID);
+ IServerWorkingCopy serverWC = serverType.createServer(null, null, new NullProgressMonitor());
+ serverWC.setRuntime(currentRuntime);
+ serverWC.setName(serverID);
+ serverWC.setServerConfiguration(null);
+ currentServer = serverWC.save(true, new NullProgressMonitor());
+ }
+
+
+ private IRuntime createRuntime(String runtimeId, String homeDir, String config) throws CoreException {
+ IRuntimeType[] runtimeTypes = ServerUtil.getRuntimeTypes(null,null, runtimeId);
+ assertEquals("expects only one runtime type", runtimeTypes.length, 1);
+ IRuntimeType runtimeType = runtimeTypes[0];
+ IRuntimeWorkingCopy runtimeWC = runtimeType.createRuntime(null, new NullProgressMonitor());
+ runtimeWC.setName(runtimeId);
+ runtimeWC.setLocation(new Path(homeDir));
+ ((RuntimeWorkingCopy) runtimeWC).setAttribute(
+ IJBossServerRuntime.PROPERTY_VM_ID, VM_INSTALL.getId());
+ ((RuntimeWorkingCopy) runtimeWC).setAttribute(
+ IJBossServerRuntime.PROPERTY_VM_TYPE_ID, VM_INSTALL
+ .getVMInstallType().getId());
+ ((RuntimeWorkingCopy) runtimeWC).setAttribute(
+ IJBossServerRuntime.PROPERTY_CONFIGURATION_NAME, config);
+
+ IRuntime savedRuntime = runtimeWC.save(true, new NullProgressMonitor());
+ return savedRuntime;
+ }
+
+ public class StatusWrapper {
+ protected IStatus status;
+ public IStatus getStatus() { return this.status; }
+ public void setStatus(IStatus s) { this.status = s; }
+ }
+
+ public void test32() {
+ startup();
+ shutdown();
+ }
+
+ public void test40() {
+ startup();
+ shutdown();
+ }
+
+ public void test42() {
+ startup();
+ shutdown();
+ }
+
+ protected class ServerStateListener implements IServerListener {
+ private ArrayList stateChanges;
+ public ServerStateListener() {
+ this.stateChanges = new ArrayList();
+ }
+ public ArrayList getStateChanges() {
+ return stateChanges;
+ }
+ public void serverChanged(ServerEvent event) {
+ if((event.getKind() & ServerEvent.SERVER_CHANGE) != 0) {
+ if((event.getKind() & ServerEvent.STATE_CHANGE) != 0) {
+ if( event.getState() != IServer.STATE_STOPPED)
+ stateChanges.add(new Integer(event.getState()));
+ }
+ }
+ }
+ }
+
+ protected class ErrorStreamListener implements IStreamListener {
+ protected boolean errorFound = false;
+ String entireLog = "";
+ public void streamAppended(String text, IStreamMonitor monitor) {
+ entireLog += text;
+ }
+
+ // will need to be fixed or decided how to figure out errors
+ public boolean hasError() {
+ return errorFound;
+ }
+ }
+
+ protected void startup() { startup(DEFAULT_STARTUP_TIME); }
+ protected void startup(int maxWait) {
+ long finishTime = new Date().getTime() + maxWait;
+
+ // operation listener, which is only alerted when the startup is *done*
+ final StatusWrapper opWrapper = new StatusWrapper();
+ final IOperationListener listener = new IOperationListener() {
+ public void done(IStatus result) {
+ opWrapper.setStatus(result);
+ } };
+
+
+ // a stream listener to listen for errors
+ ErrorStreamListener streamListener = new ErrorStreamListener();
+
+ // the thread to actually start the server
+ Thread startThread = new Thread() {
+ public void run() {
+ currentServer.start(ILaunchManager.RUN_MODE, listener);
+ }
+ };
+
+ startThread.start();
+
+ boolean addedStream = false;
+ while( finishTime > new Date().getTime() && opWrapper.getStatus() == null) {
+ // we're waiting for startup to finish
+ if( !addedStream ) {
+ IStreamMonitor mon = getStreamMonitor();
+ if( mon != null ) {
+ mon.addListener(streamListener);
+ addedStream = true;
+ }
+ }
+ try {
+ Display.getDefault().readAndDispatch();
+ } catch( SWTException swte ) {}
+ }
+
+ try {
+ assertTrue("Startup has taken longer than what is expected for a default startup", finishTime >= new Date().getTime());
+ assertNotNull("Startup never finished", opWrapper.getStatus());
+ assertFalse("Startup had System.error output", streamListener.hasError());
+ } catch( AssertionFailedError afe ) {
+ // cleanup
+ currentServer.stop(true);
+ // rethrow
+ throw afe;
+ }
+ getStreamMonitor().removeListener(streamListener);
+ }
+
+
+ protected void shutdown() { shutdown(DEFAULT_SHUTDOWN_TIME); }
+ protected void shutdown(int maxWait) {
+ long finishTime = new Date().getTime() + maxWait;
+
+ // operation listener, which is only alerted when the startup is *done*
+ final StatusWrapper opWrapper = new StatusWrapper();
+ final IOperationListener listener = new IOperationListener() {
+ public void done(IStatus result) {
+ opWrapper.setStatus(result);
+ } };
+
+
+ // a stream listener to listen for errors
+ ErrorStreamListener streamListener = new ErrorStreamListener();
+ if( getStreamMonitor() != null )
+ getStreamMonitor().addListener(streamListener);
+
+ // the thread to actually start the server
+ Thread stopThread = new Thread() {
+ public void run() {
+ currentServer.stop(false, listener);
+ }
+ };
+
+ stopThread.start();
+
+ while( finishTime > new Date().getTime() && opWrapper.getStatus() == null) {
+ // we're waiting for startup to finish
+ try {
+ Display.getDefault().readAndDispatch();
+ } catch( SWTException swte ) {}
+ }
+
+ try {
+ assertTrue("Startup has taken longer than what is expected for a default startup", finishTime >= new Date().getTime());
+ assertNotNull("Startup never finished", opWrapper.getStatus());
+ assertFalse("Startup had System.error output", streamListener.hasError());
+ } catch( AssertionFailedError afe ) {
+ // cleanup
+ currentServer.stop(true);
+ // rethrow
+ throw afe;
+ }
+ }
+
+ protected IStreamMonitor getStreamMonitor() {
+ JBossServerBehavior behavior =
+ (JBossServerBehavior)currentServer.loadAdapter(JBossServerBehavior.class, null);
+ if( behavior != null ) {
+ if( behavior.getProcess() != null ) {
+ return behavior.getProcess().getStreamsProxy().getOutputStreamMonitor();
+ }
+ }
+ return null;
+ }
+}
17 years, 3 months
JBoss Tools SVN: r3619 - trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2007-09-13 18:35:12 -0400 (Thu, 13 Sep 2007)
New Revision: 3619
Modified:
trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/AbstractJBossLaunchConfigType.java
Log:
Do not need to use superclass's implementation of preLaunchCheck.
No checking required
Modified: trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/AbstractJBossLaunchConfigType.java
===================================================================
--- trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/AbstractJBossLaunchConfigType.java 2007-09-13 22:34:02 UTC (rev 3618)
+++ trunk/as/plugins/org.jboss.ide.eclipse.as.core/jbosscore/org/jboss/ide/eclipse/as/core/server/internal/launch/AbstractJBossLaunchConfigType.java 2007-09-13 22:35:12 UTC (rev 3619)
@@ -33,6 +33,11 @@
public abstract class AbstractJBossLaunchConfigType extends AbstractJavaLaunchConfigurationDelegate {
protected static final String SERVER_ID = "server-id";
+ // we have no need to do anything in pre-launch check
+ public boolean preLaunchCheck(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor) throws CoreException {
+ return true;
+ }
+
protected void preLaunch(ILaunchConfiguration configuration,
String mode, ILaunch launch, IProgressMonitor monitor) {
// override me
17 years, 3 months