JBoss Tools SVN: r24005 - in trunk: vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2010-08-09 13:24:18 -0400 (Mon, 09 Aug 2010)
New Revision: 24005
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/ManagePaletteGroups.java
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/tools/SWTBotWebBrowser.java
Log:
Adde Manage Palette Groups Test
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java 2010-08-09 15:51:43 UTC (rev 24004)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java 2010-08-09 17:24:18 UTC (rev 24005)
@@ -139,6 +139,7 @@
public static final String PROPERTIES_FOR = "Properties for";
public static final String COPY_FILE_FROM_GUVNOR_TO_PACKAGE_EXPLORER = "File Operation";
public static final String INSERT_TAG = "Insert Tag";
+ public static final String SHOW_HIDE_DRAWERS = "Show/Hide Drawers";
}
public class EntityGroup {
@@ -530,5 +531,12 @@
public static final String PREVIEW_TAB_LABEL = "Preview";
}
-
+
+ public static class JBossToolsPalette{
+
+ public static final String IMPORT_TOOL_ITEM = "Import";
+ public static final String PALETTE_EDITOR_TOOL_ITEM = "Palette Editor";
+ public static final String SHOW_HIDE_TOOL_ITEM = "Show/Hide";
+
+ }
}
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java 2010-08-09 15:51:43 UTC (rev 24004)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java 2010-08-09 17:24:18 UTC (rev 24005)
@@ -19,6 +19,7 @@
import org.jboss.tools.vpe.ui.bot.test.jbide.JBIDE4556Test;
import org.jboss.tools.vpe.ui.bot.test.palette.CancelTagLibDefenitionTest;
import org.jboss.tools.vpe.ui.bot.test.palette.ImportTagsFromTLDFileTest;
+import org.jboss.tools.vpe.ui.bot.test.palette.ManagePaletteGroups;
import org.jboss.tools.vpe.ui.bot.test.smoke.EditorSynchronizationTest;
import org.jboss.tools.vpe.ui.bot.test.smoke.JSPPageCreationTest;
import org.jboss.tools.vpe.ui.bot.test.smoke.RenameFacesConfigFileTest;
@@ -59,6 +60,7 @@
suite.addTestSuite(ExternalizeStringsDialogTest.class);
suite.addTestSuite(JspFileEditingTest.class);
suite.addTestSuite(XhtmlFilePerformanceTest.class);
+ suite.addTestSuite(ManagePaletteGroups.class);
return new TestSetup(suite);
}
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/ManagePaletteGroups.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/ManagePaletteGroups.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/ManagePaletteGroups.java 2010-08-09 17:24:18 UTC (rev 24005)
@@ -0,0 +1,72 @@
+/*******************************************************************************
+
+ * Copyright (c) 2007-2010 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test.palette;
+
+import org.eclipse.swtbot.swt.finder.SWTBot;
+import org.eclipse.swtbot.swt.finder.widgets.SWTBotTreeItem;
+import org.jboss.tools.ui.bot.ext.SWTBotExt;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+import org.jboss.tools.vpe.ui.bot.test.VPEAutoTestCase;
+import org.jboss.tools.vpe.ui.bot.test.tools.SWTBotWebBrowser;
+/**
+ * Tests Showing/hiding JBoss Tools Palette Groups
+ * @author vlado pakan
+ *
+ */
+public class ManagePaletteGroups extends VPEAutoTestCase {
+
+ private static final String TEST_PALETTE_GROUP_LABEL = "JSF HTML";
+ private static final String TEST_PALETTE_TREE_GROUP_LABEL = "JSF";
+
+ private SWTBotExt botExt = null;
+
+ public ManagePaletteGroups() {
+ super();
+ botExt = new SWTBotExt();
+ }
+ public void testManagePaletteGroups(){
+
+ openPage();
+ openPalette();
+ bot.toolbarButtonWithTooltip(IDELabel.JBossToolsPalette.SHOW_HIDE_TOOL_ITEM).click();
+ SWTBot dialogBot = bot.shell(IDELabel.Shell.SHOW_HIDE_DRAWERS).activate().bot();
+ SWTBotTreeItem tiTestPaletteGroup = dialogBot.tree().getTreeItem(ManagePaletteGroups.TEST_PALETTE_TREE_GROUP_LABEL);
+ if (tiTestPaletteGroup.isChecked()){
+ // Check Palette Group hiding
+ tiTestPaletteGroup.uncheck();
+ dialogBot.button("Ok").click();
+ assertTrue("Palette Group " + ManagePaletteGroups.TEST_PALETTE_GROUP_LABEL +
+ " has to be hidden but is visible.",
+ !SWTBotWebBrowser.paletteContainsPaletteEntry(botExt, ManagePaletteGroups.TEST_PALETTE_GROUP_LABEL));
+ }
+ else{
+ // Check Palette Group showing
+ tiTestPaletteGroup.check();
+ dialogBot.button("Ok").click();
+ assertTrue("Palette Group " + ManagePaletteGroups.TEST_PALETTE_GROUP_LABEL +
+ " has to be visible but is hidden.",
+ SWTBotWebBrowser.paletteContainsPaletteEntry(botExt, ManagePaletteGroups.TEST_PALETTE_GROUP_LABEL));
+ }
+
+
+ }
+ @Override
+ protected void closeUnuseDialogs() {
+
+ }
+
+ @Override
+ protected boolean isUnuseDialogOpened() {
+ return false;
+ }
+
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/palette/ManagePaletteGroups.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/tools/SWTBotWebBrowser.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/tools/SWTBotWebBrowser.java 2010-08-09 15:51:43 UTC (rev 24004)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/tools/SWTBotWebBrowser.java 2010-08-09 17:24:18 UTC (rev 24005)
@@ -29,6 +29,7 @@
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.swtbot.eclipse.gef.finder.finders.PaletteFinder;
import org.eclipse.swtbot.eclipse.gef.finder.matchers.ToolEntryLabelMatcher;
+import org.eclipse.swtbot.swt.finder.SWTBot;
import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
import org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable;
import org.eclipse.swtbot.swt.finder.results.Result;
@@ -434,54 +435,9 @@
*/
public void activatePaletteTool (String toolLabel){
- SWTEclipseExt.showView(bot, ViewType.JBOSS_TOOLS_PALETTE);
-
- IViewReference ref = UIThreadRunnable.syncExec(new Result<IViewReference>() {
- public IViewReference run() {
- IViewReference ref = null;
- IViewReference[] viewReferences = null;
- viewReferences = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getViewReferences();
- for (IViewReference reference : viewReferences) {
- if (reference.getTitle().equals("JBoss Tools Palette")){
- return reference;
- }
- }
- return ref;
- }
- });
- // Find Palette Viewer dirty way
- PaletteViewPart pvp = (PaletteViewPart)ref.getPart(true);
- try {
- PaletteCreator pc = ReflectionsHelper.getPrivateFieldValue(PaletteViewPart.class,
- "paletteCreator",
- pvp,
- PaletteCreator.class);
- PaletteAdapter pa = ReflectionsHelper.getPrivateFieldValue(PaletteCreator.class,
- "paletteAdapter",
- pc,
- PaletteAdapter.class);
- PaletteViewer paletteViewer = ReflectionsHelper.getPrivateFieldValue(PaletteAdapter.class,
- "viewer",
- pa,
- PaletteViewer.class);
-
- EditDomain ed = new EditDomain();
- ed.setPaletteViewer(paletteViewer);
- ed.setPaletteRoot(paletteViewer.getPaletteRoot());
- PaletteFinder pf = new PaletteFinder(ed);
- ToolEntryLabelMatcher telm = new ToolEntryLabelMatcher(toolLabel);
- PaletteEntry peJsfHtml = pf.findEntries(telm).get(0);
- // Activate outputText Tool from Palette
- paletteViewer.setActiveTool((ToolEntry)peJsfHtml);
- } catch (SecurityException e) {
- throw new RuntimeException(e);
- } catch (IllegalArgumentException e) {
- throw new RuntimeException(e);
- } catch (NoSuchFieldException e) {
- throw new RuntimeException(e);
- } catch (IllegalAccessException e) {
- throw new RuntimeException(e);
- }
+ PaletteViewer paletteViewer = SWTBotWebBrowser.getPaletteViewer(bot);
+ PaletteEntry peJsfHtml = SWTBotWebBrowser.getPaletteEntry(paletteViewer , toolLabel);
+ paletteViewer.setActiveTool((ToolEntry) peJsfHtml);
}
/**
@@ -519,5 +475,91 @@
return result;
}
+ /**
+ * Returns Palette Viewer associated to JBoss Tools Palette
+ * @return
+ */
+ private static PaletteViewer getPaletteViewer (SWTBotExt bot){
+ SWTEclipseExt.showView(bot, ViewType.JBOSS_TOOLS_PALETTE);
+
+ IViewReference ref = UIThreadRunnable
+ .syncExec(new Result<IViewReference>() {
+ public IViewReference run() {
+ IViewReference ref = null;
+ IViewReference[] viewReferences = null;
+ viewReferences = PlatformUI.getWorkbench()
+ .getActiveWorkbenchWindow().getActivePage().getViewReferences();
+ for (IViewReference reference : viewReferences) {
+ if (reference.getTitle().equals("JBoss Tools Palette")) {
+ return reference;
+ }
+ }
+ return ref;
+ }
+ });
+ // Find Palette Viewer dirty way
+ PaletteViewPart pvp = (PaletteViewPart) ref.getPart(true);
+ try {
+ PaletteCreator pc = ReflectionsHelper.getPrivateFieldValue(
+ PaletteViewPart.class, "paletteCreator", pvp, PaletteCreator.class);
+ PaletteAdapter pa = ReflectionsHelper.getPrivateFieldValue(
+ PaletteCreator.class, "paletteAdapter", pc, PaletteAdapter.class);
+ PaletteViewer paletteViewer = ReflectionsHelper.getPrivateFieldValue(
+ PaletteAdapter.class, "viewer", pa, PaletteViewer.class);
+
+ return paletteViewer;
+ } catch (SecurityException e) {
+ throw new RuntimeException(e);
+ } catch (IllegalArgumentException e) {
+ throw new RuntimeException(e);
+ } catch (NoSuchFieldException e) {
+ throw new RuntimeException(e);
+ } catch (IllegalAccessException e) {
+ throw new RuntimeException(e);
+ }
+
+ }
+ /**
+ * Returns Palette Entry from Palette Viewer paletteViewer with entryLabel label
+ * @param paletteViewer
+ * @param entryLabel
+ * @return
+ */
+ private static PaletteEntry getPaletteEntry (PaletteViewer paletteViewer , String entryLabel) {
+
+ PaletteEntry result = null;
+ EditDomain ed = new EditDomain();
+ ed.setPaletteViewer(paletteViewer);
+ ed.setPaletteRoot(paletteViewer.getPaletteRoot());
+ PaletteFinder pf = new PaletteFinder(ed);
+ ToolEntryLabelMatcher telm = new ToolEntryLabelMatcher(entryLabel);
+ List<PaletteEntry> paletteEntries = pf.findEntries(telm);
+ if (paletteEntries != null && paletteEntries.size() > 0) {
+ result = paletteEntries.get(0);
+ } else {
+ throw new WidgetNotFoundException(
+ "Unable to find JBoss Tools Palette Entry with label: " + entryLabel);
+ }
+
+ return result;
+
+ }
+ /**
+ * Returns true if JBoss Tools Palette Contains Palette Entry with label paletteENtryLabel
+ * @param paletteEntryLabel
+ * @return
+ */
+ public static boolean paletteContainsPaletteEntry (SWTBotExt bot,String paletteEntryLabel){
+ boolean result = false;
+ PaletteViewer paletteViewer = SWTBotWebBrowser.getPaletteViewer(bot);
+ try{
+ SWTBotWebBrowser.getPaletteEntry(paletteViewer , paletteEntryLabel);
+ result = true;
+ } catch (WidgetNotFoundException wnfe){
+ result = false;
+ }
+
+ return result;
+ }
}
15 years, 5 months
JBoss Tools SVN: r24004 - in trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui: src/org/jboss/tools/deltacloud/ui and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: jjohnstn
Date: 2010-08-09 11:51:43 -0400 (Mon, 09 Aug 2010)
New Revision: 24004
Added:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/DeltaCloudPerspective.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/preferences/
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/preferences/DeltaCloudPreferencePage.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/preferences/PreferenceMessages.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/preferences/PreferenceMessages.properties
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.properties
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.xml
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstance.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/ProfileComposite.java
Log:
2010-08-09 Jeff Johnston <jjohnstn(a)redhat.com>
* src/org/jboss/tools/deltacloud/ui/DeltaCloudPerspective.java: New file.
* src/org/jboss/tools/deltacloud/ui/preferences/DeltaCloudPreferencePage.java: New file.
* src/org/jboss/tools/deltacloud/ui/preferences/PreferenceMessages.java: New file.
* src/org/jboss/tools/deltacloud/ui/preferences/PreferenceMessages.properties: New file.
* plugin.properties: Add new messages to use in plugin extensions.
* plugin.xml: Add perspective and preference page extensions.
* src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstance.java (performFinish): Fix
logic to not use PreferenceStore with MessageDialogWithToggle dialog since it is not the
same as the InstanceScope preference area we are using elsewhere. Manually use the toggle
value to set the preference.
* src/org/jboss/tools/internal/deltacloud/ui/wizards/ProfileComposite.java (ProfileComposite): Don't
make cpu, memory, or storage labels go 100% to the right.
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-08-09 15:34:42 UTC (rev 24003)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-08-09 15:51:43 UTC (rev 24004)
@@ -1,3 +1,18 @@
+2010-08-09 Jeff Johnston <jjohnstn(a)redhat.com>
+
+ * src/org/jboss/tools/deltacloud/ui/DeltaCloudPerspective.java: New file.
+ * src/org/jboss/tools/deltacloud/ui/preferences/DeltaCloudPreferencePage.java: New file.
+ * src/org/jboss/tools/deltacloud/ui/preferences/PreferenceMessages.java: New file.
+ * src/org/jboss/tools/deltacloud/ui/preferences/PreferenceMessages.properties: New file.
+ * plugin.properties: Add new messages to use in plugin extensions.
+ * plugin.xml: Add perspective and preference page extensions.
+ * src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstance.java (performFinish): Fix
+ logic to not use PreferenceStore with MessageDialogWithToggle dialog since it is not the
+ same as the InstanceScope preference area we are using elsewhere. Manually use the toggle
+ value to set the preference.
+ * src/org/jboss/tools/internal/deltacloud/ui/wizards/ProfileComposite.java (ProfileComposite): Don't
+ make cpu, memory, or storage labels go 100% to the right.
+
2010-08-06 Jeff Johnston <jjohnstn(a)redhat.com>
* src/org/jboss/tools/deltacloud/ui/IDeltaCloudPreferenceConstants.java: New file.
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.properties
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.properties 2010-08-09 15:34:42 UTC (rev 24003)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.properties 2010-08-09 15:51:43 UTC (rev 24004)
@@ -1,5 +1,7 @@
DeltaCloudCategory=Delta Cloud
CloudViewerName=Cloud Viewer
+DeltaCloudPerspective.name=Delta Cloud
+Preferences.name=Delta Cloud
Advanced.label=Advanced
NewWizard.name=Cloud Connection
\ No newline at end of file
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.xml
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.xml 2010-08-09 15:34:42 UTC (rev 24003)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/plugin.xml 2010-08-09 15:51:43 UTC (rev 24004)
@@ -70,5 +70,22 @@
name="%NewWizard.name">
</wizard>
</extension>
+ <extension
+ point="org.eclipse.ui.perspectives">
+ <perspective
+ class="org.jboss.tools.deltacloud.ui.DeltaCloudPerspective"
+ icon="icons/delta.gif"
+ id="org.jboss.tools.deltacloud.ui.perspective"
+ name="%DeltaCloudPerspective.name">
+ </perspective>
+ </extension>
+ <extension
+ point="org.eclipse.ui.preferencePages">
+ <page
+ class="org.jboss.tools.deltacloud.ui.preferences.DeltaCloudPreferencePage"
+ id="org.jboss.tools.deltacloud.ui.page1"
+ name="%Preferences.name">
+ </page>
+ </extension>
</plugin>
Added: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/DeltaCloudPerspective.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/DeltaCloudPerspective.java (rev 0)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/DeltaCloudPerspective.java 2010-08-09 15:51:43 UTC (rev 24004)
@@ -0,0 +1,16 @@
+package org.jboss.tools.deltacloud.ui;
+
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IPerspectiveFactory;
+
+public class DeltaCloudPerspective implements IPerspectiveFactory {
+
+ @Override
+ public void createInitialLayout(IPageLayout layout) {
+ layout.addView("org.jboss.tools.deltacloud.ui.views.CloudView", IPageLayout.LEFT,
+ 0.25f, IPageLayout.ID_EDITOR_AREA);
+ layout.addView(IPageLayout.ID_PROP_SHEET, IPageLayout.BOTTOM,
+ 0.80f, IPageLayout.ID_EDITOR_AREA);
+ }
+
+}
Added: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/preferences/DeltaCloudPreferencePage.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/preferences/DeltaCloudPreferencePage.java (rev 0)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/preferences/DeltaCloudPreferencePage.java 2010-08-09 15:51:43 UTC (rev 24004)
@@ -0,0 +1,84 @@
+package org.jboss.tools.deltacloud.ui.preferences;
+
+import org.eclipse.core.runtime.preferences.InstanceScope;
+import org.eclipse.jface.preference.PreferencePage;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.layout.FormLayout;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+import org.jboss.tools.deltacloud.ui.Activator;
+import org.jboss.tools.deltacloud.ui.IDeltaCloudPreferenceConstants;
+import org.osgi.service.prefs.BackingStoreException;
+import org.osgi.service.prefs.Preferences;
+
+public class DeltaCloudPreferencePage extends PreferencePage implements
+ IWorkbenchPreferencePage {
+
+ private final static String LAUNCH_WARN = "LaunchWarnPreference.msg"; //$NON-NLS-1$
+
+ private Button warnLaunch;
+
+ public DeltaCloudPreferencePage() {
+ // TODO Auto-generated constructor stub
+ }
+
+ public DeltaCloudPreferencePage(String title) {
+ super(title);
+ // TODO Auto-generated constructor stub
+ }
+
+ public DeltaCloudPreferencePage(String title, ImageDescriptor image) {
+ super(title, image);
+ // TODO Auto-generated constructor stub
+ }
+
+ @Override
+ public void performDefaults() {
+ warnLaunch.setSelection(false);
+ }
+
+
+ @Override
+ public boolean performOk() {
+ Preferences prefs = new InstanceScope().getNode(Activator.PLUGIN_ID);
+
+ boolean oldWarn = prefs.getBoolean(IDeltaCloudPreferenceConstants.DONT_CONFIRM_CREATE_INSTANCE, false);
+ if (oldWarn != warnLaunch.getSelection()) {
+ prefs.putBoolean(IDeltaCloudPreferenceConstants.DONT_CONFIRM_CREATE_INSTANCE, warnLaunch.getSelection());
+ }
+
+ try {
+ prefs.flush();
+ } catch (BackingStoreException e) {
+ Activator.log(e);
+ }
+ return super.performOk();
+ }
+
+ @Override
+ protected Control createContents(Composite parent) {
+ final Composite container = new Composite(parent, SWT.NULL);
+ FormLayout layout = new FormLayout();
+ layout.marginHeight = 5;
+ layout.marginWidth = 5;
+ container.setLayout(layout);
+
+ Preferences prefs = new InstanceScope().getNode(Activator.PLUGIN_ID);
+
+ warnLaunch = new Button(container, SWT.CHECK);
+ warnLaunch.setText(PreferenceMessages.getString(LAUNCH_WARN));
+ warnLaunch.setSelection(prefs.getBoolean(IDeltaCloudPreferenceConstants.DONT_CONFIRM_CREATE_INSTANCE, false));
+
+ return container;
+ }
+
+ @Override
+ public void init(IWorkbench workbench) {
+ // Do nothing
+ }
+
+}
Added: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/preferences/PreferenceMessages.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/preferences/PreferenceMessages.java (rev 0)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/preferences/PreferenceMessages.java 2010-08-09 15:51:43 UTC (rev 24004)
@@ -0,0 +1,29 @@
+package org.jboss.tools.deltacloud.ui.preferences;
+
+import java.text.MessageFormat;
+import java.util.MissingResourceException;
+import java.util.ResourceBundle;
+
+public class PreferenceMessages {
+
+ private static final String BUNDLE_NAME = PreferenceMessages.class.getName();
+
+ public static String getString(String key) {
+ try {
+ return ResourceBundle.getBundle(BUNDLE_NAME).getString(key);
+ } catch (MissingResourceException e) {
+ return '!' + key + '!';
+ } catch (NullPointerException e) {
+ return '#' + key + '#';
+ }
+ }
+
+ public static String getFormattedString(String key, String arg) {
+ return MessageFormat.format(getString(key), new Object[] { arg });
+ }
+
+ public static String getFormattedString(String key, String[] args) {
+ return MessageFormat.format(getString(key), (Object[])args);
+ }
+
+}
Added: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/preferences/PreferenceMessages.properties
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/preferences/PreferenceMessages.properties (rev 0)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/preferences/PreferenceMessages.properties 2010-08-09 15:51:43 UTC (rev 24004)
@@ -0,0 +1 @@
+LaunchWarnPreference.msg=Do not warn me when launching an instance
\ No newline at end of file
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstance.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstance.java 2010-08-09 15:34:42 UTC (rev 24003)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/NewInstance.java 2010-08-09 15:51:43 UTC (rev 24004)
@@ -71,9 +71,15 @@
MessageDialogWithToggle.openOkCancelConfirm(getShell(), WizardMessages.getString(CONFIRM_CREATE_TITLE),
WizardMessages.getString(CONFIRM_CREATE_MSG),
WizardMessages.getString(DONT_SHOW_THIS_AGAIN_MSG),
- false, Activator.getDefault().getPreferenceStore(), IDeltaCloudPreferenceConstants.DONT_CONFIRM_CREATE_INSTANCE);
- if (dialog.getReturnCode() == Dialog.CANCEL)
+ false, null, null);
+ int retCode = dialog.getReturnCode();
+ boolean toggleState = dialog.getToggleState();
+ if (retCode == Dialog.CANCEL)
return true;
+ // If warning turned off by user, set the preference for future usage
+ if (toggleState) {
+ prefs.putBoolean(IDeltaCloudPreferenceConstants.DONT_CONFIRM_CREATE_INSTANCE, true);
+ }
}
result = cloud.createInstance(name, imageId, realmId, profileId);
} catch (DeltaCloudException e) {
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/ProfileComposite.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/ProfileComposite.java 2010-08-09 15:34:42 UTC (rev 24003)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/internal/deltacloud/ui/wizards/ProfileComposite.java 2010-08-09 15:51:43 UTC (rev 24004)
@@ -163,7 +163,6 @@
FormData f = new FormData();
f.top = new FormAttachment(cpuControl, 8);
f.left = new FormAttachment(storageLabel, 50);
- f.right = new FormAttachment(100, 0);
memory.setLayoutData(f);
memoryControl = memory;
} else if (memoryProperty.getKind() == DeltaCloudHardwareProperty.Kind.RANGE) {
@@ -260,7 +259,6 @@
FormData f = new FormData();
f.left = new FormAttachment(storageLabel, 50);
f.top = new FormAttachment(memoryControl, 8);
- f.right = new FormAttachment(100, 0);
storage.setLayoutData(f);
storage.setVisible(true);
storageControl = storage;
15 years, 5 months
JBoss Tools SVN: r24003 - in trunk: vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources and 6 other directories.
by jbosstools-commits@lists.jboss.org
Author: vpakan(a)redhat.com
Date: 2010-08-09 11:34:42 -0400 (Mon, 09 Aug 2010)
New Revision: 24003
Added:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/address.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/careerRanks.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/childs.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/competenceMeasures.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/contracts.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/cumuls.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/decorations.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/developmentCircles.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/diplomas.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/formations.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/illnesses.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/leaves.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/nok.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pdata.dtd
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pdataCheckSingle.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pdata_single.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pictureUpload.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/promotionExams.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/rank.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/salaryRanks.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectEntry.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectFunctionClass.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectGrade.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectMedicalCenter.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectSecretariat.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/transportation.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/workAccidents.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/employee.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/done.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/functionClassesEditor.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/gradesEditor.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/listEditor.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/medicalCentersEditor.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/secretariatsEditor.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/selectEntriesEditor.xhtml
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/XhtmlFilePerformanceTest.java
Modified:
trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/tools/SWTBotWebBrowser.java
Log:
Added Xhtml File Performance Test.
Modified: trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java
===================================================================
--- trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java 2010-08-09 14:59:22 UTC (rev 24002)
+++ trunk/tests/plugins/org.jboss.tools.ui.bot.ext/src/org/jboss/tools/ui/bot/ext/types/IDELabel.java 2010-08-09 15:34:42 UTC (rev 24003)
@@ -515,4 +515,20 @@
public static final String GUVNOR_URL_TEMPLATE = "Guvnor URL template: ";
}
+
+ public static class JsfProjectTree {
+
+ public static final String WEB_CONTENT = "WebContent";
+ public static final String PAGES = "pages";
+
+ }
+
+ public static class VisualPageEditor{
+
+ public static final String SOURCE_TAB_LABEL = "Source";
+ public static final String VISUAL_SOURCE_TAB_LABEL = "Visual/Source";
+ public static final String PREVIEW_TAB_LABEL = "Preview";
+
+ }
+
}
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/address.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/address.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/address.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,76 @@
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html">
+<ui:composition>
+<table style="border:none;">
+ <tr>
+ <td>
+ <h:outputText value="#{bundle['Address.number']}"/>
+ </td>
+ <td>
+ <h:inputText value="#{address.number}" size="3" id="addressnumber"/>
+ <h:message for="addressnumber" showDetails="true" showSummary="false"/>
+ </td>
+ <td>
+ #{bundle['Address.street']}
+ </td>
+ <td>
+ <h:inputText value="#{address.street}" size="50" id="street"/>
+ <h:message for="street" showDetails="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <h:outputText value="#{bundle['Address.zip']}"/>
+ </td>
+ <td>
+ <h:inputText value="#{address.zip}" size="5" id="zip"/>
+ <h:message for="zip" showDetails="true" showSummary="false"/>
+ </td>
+ <td>
+ <h:outputText value="#{bundle['Address.city']}"/>
+ </td>
+ <td>
+ <h:inputText value="#{address.city}" size="48" id="city"/>
+ <h:message for="city" showDetails="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <h:outputText value="#{bundle['Address.country']}"/>
+ </td>
+ <td colspan="3">
+ <h:selectOneMenu value="#{address.country}" id="country">
+ <f:selectItems value="#{hrRequest.countries}"/>
+ </h:selectOneMenu>
+ <h:message for="country" showDetails="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <h:outputText value="#{bundle['Address.phone']}"/>
+ </td>
+ <td>
+ <h:inputText value="#{address.phone}" size="15" id="phone"/>
+ <h:message for="phone" showDetails="true" showSummary="false"/>
+ </td>
+ <td>
+ <h:outputText value="#{bundle['Address.gsm']}"/>
+ </td>
+ <td>
+ <h:inputText value="#{address.gsm}" size="15" id="gsm"/>
+ <h:message for="gsm" showDetails="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <h:outputText value="#{bundle['Address.fax']}"/>
+ </td>
+ <td colspan="3">
+ <h:inputText value="#{address.fax}" size="15" id="fax"/>
+ <h:message for="fax" showDetails="true" showSummary="false"/>
+ </td>
+ </tr>
+</table>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/address.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/careerRanks.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/careerRanks.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/careerRanks.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,165 @@
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:s="http://myfaces.apache.org/sandbox"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <a4j:region id="careerRegion">
+
+ <a4j:outputPanel id="a4jCareer" layout="block">
+ <table class="list" cellpadding="5" width="100%">
+ <thead></thead>
+ <t:dataList var="rank" rowIndexVar="index" value="#{ranks}">
+ <tbody class="highlight">
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td><h:outputText value="#{bundle['CareerRank.start']}" /></td>
+ <td><h:outputText value="#{rank.start}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td><h:outputText value="#{bundle['CareerRank.end']}" /></td>
+ <td><h:outputText value="#{rank.end}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td rowspan="5" valign="top"><a4j:commandLink action="#{hrActions.editCareerRank}" immediate="true"
+ reRender=":#{parentClientId}:a4jCareer" limitToList="true">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editCareerRank" />
+ <f:param name="editId" value="#{index}" />
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td><h:outputText
+ value="#{bundle['CareerRank.grade']}" /></td>
+ <td><h:outputText value="#{rank.grade}"><f:converter converterId="NamedIdConverter" /></h:outputText></td>
+ <td><h:outputText value="#{bundle['CareerRank.level']}" /></td>
+ <td><h:outputText value="#{rank.level}" /></td>
+
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td><h:outputText
+ value="#{bundle['CareerRank.functionClass']}" /></td>
+ <td colspan="3"><b>#{rank.functionClass.code}</b> <h:outputText value="#{rank.functionClass}"><f:converter converterId="NamedIdConverter" /></h:outputText></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td><h:outputText value="#{bundle['CareerRank.careerPath']}" />
+ </td>
+ <td colspan="3">
+ <h:outputText value="#{rank.careerPath}">
+ <f:converter converterId="SelectConverter" />
+ </h:outputText>
+ </td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td><h:outputText
+ value="#{bundle['CareerRank.functionFamily']}" /></td>
+ <td colspan="3"><b>#{rank.functionFamily.pdata}</b> <h:outputText value="#{rank.functionFamily}"><f:converter converterId="NamedIdConverter" /></h:outputText></td>
+ </tr>
+ </tbody>
+ </t:dataList>
+ <tbody>
+ <tr><td colspan="5" align="right"><a4j:commandLink immediate="true"
+ rendered="#{hrSession.edits.careerRank == null}"
+ reRender=":#{parentClientId}:a4jCareer" limitToList="true"
+ action="#{hrActions.addCareerRank}">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editCareerRank" />
+ <h:graphicImage url="/images/icon_create.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ </tbody>
+ </table>
+ <s:subForm id="editCareerRank"
+ rendered="#{hrSession.edits.careerRank != null}">
+ <table style="border:none;">
+ <tr>
+ <td><h:outputText value="#{bundle['CareerRank.start']}" /></td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.careerRank.start}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="rankstart">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="rankstart" showDetails="true" showSummary="false"/></td>
+ <td><h:outputText value="#{bundle['CareerRank.end']}" /></td>
+ <td><t:inputCalendar value="#{hrSession.edits.careerRank.end}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy" id="rankend">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="rankend" showDetails="true" showSummary="false"/></td>
+ <td rowspan="3" valign="top">
+ <a4j:commandLink action="#{hrActions.deleteCareerRank}" immediate="true"
+ onclick="if (!confirm('#{bundle['Interface.confirmDelete']}')) return false"
+ reRender=":#{parentClientId}:a4jCareer" limitToList="true">
+ <h:graphicImage url="/images/icon_delete.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['CareerRank.grade']}</td>
+ <td colspan="3">
+ <!-- <h:selectOneMenu value="#{hrSession.edits.careerRank.grade}" id="rankgrade">
+ <f:selectItem itemValue="[nothing]" itemLabel=""/>
+ <f:selectItems value="#{hrRequest.grades}"/>
+ </h:selectOneMenu>
+ <h:outputLink value="#{facesContext.externalContext.requestContextPath}/faces/hr/edit/lists/gradesEditor.xhtml" target="_blank" ><h:graphicImage value="/images/icon_edit.gif"/></h:outputLink>-->
+
+ <ui:include src="selectGrade.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.careerRank.grade}" />
+ <ui:param name="id" value="rankgrade" />
+ </ui:include>
+ <h:message for="rankgrade" showDetails="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td><h:outputText
+ value="#{bundle['CareerRank.functionClass']}" /></td>
+ <td colspan="3">
+ <ui:include src="selectFunctionClass.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.careerRank.functionClass}" />
+ <ui:param name="id" value="functionClass" />
+ </ui:include>
+ <h:message for="functionClass" showDetails="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td><h:outputText value="#{bundle['CareerRank.careerPath']}" />
+ </td>
+ <td colspan="3">
+ <!-- <h:selectOneMenu value="#{hrSession.edits.careerRank.careerPath}" id="careerPath">
+ <f:selectItem itemValue="[nothing]" itemLabel=""/>
+ <f:selectItems value="#{hrRequest.selectEntries['Career path']}"/>
+ </h:selectOneMenu> -->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.careerRank.careerPath}" />
+ <ui:param name="id" value="careerPath" />
+ <ui:param name="key" value="Career path" />
+ </ui:include>
+ <h:message for="careerPath" showDetails="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td><h:outputText
+ value="#{bundle['CareerRank.functionFamily']}" /></td>
+ <td colspan="3">
+ <!-- <h:selectOneMenu value="#{hrSession.edits.careerRank.functionFamily}" id="functionFamily">
+ <f:selectItem itemValue="[nothing]" itemLabel=""/>
+ <f:selectItems value="#{hrRequest.selectEntries['Function family']}"/>
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.careerRank.functionFamily}" />
+ <ui:param name="id" value="functionFamily" />
+ <ui:param name="key" value="Function family" />
+ </ui:include>
+ <h:message for="functionFamily" showDetails="true" showSummary="false"/>
+ </td>
+ </tr>
+ </table>
+ <a4j:commandButton value="Done" action="#{hrActions.doneCareerRank}"
+ actionFor="editCareerRank"
+ reRender=":#{parentClientId}:a4jCareer" limitToList="true" />
+ </s:subForm>
+ </a4j:outputPanel>
+ </a4j:region>
+</ui:composition>
+</html>
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/careerRanks.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/childs.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/childs.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/childs.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,105 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:s="http://myfaces.apache.org/sandbox"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <a4j:region id="childrenRegion">
+
+ <a4j:outputPanel id="a4jChildren" layout="block">
+ <fieldset><legend><h:outputText
+ value="#{bundle['Employee.children']}" /></legend>
+ <table border="0" width="100%" class="list">
+ <thead>
+ <tr>
+ <th><h:outputText value="#{bundle['Child.firstName']}" /></th>
+ <th><h:outputText value="#{bundle['Child.lastName']}" /></th>
+ <th><h:outputText value="#{bundle['Child.birthDate']}" /></th>
+ <th><h:outputText value="#{bundle['Child.allocation']}" /></th>
+ <th></th>
+ </tr>
+ </thead>
+ <t:dataList value="#{hrSession.employee.childrenArray}"
+ var="child" id="childs" rowIndexVar="index">
+ <tbody class="highlight">
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td><h:outputText value="#{child.firstName}" /></td>
+ <td><h:outputText value="#{child.lastName}" /></td>
+ <td><h:outputText value="#{child.birthDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td><h:graphicImage url="/images/icon_checked.png" rendered="#{child.allocation}"/></td>
+ <td><a4j:commandLink action="#{hrActions.editChild}"
+ reRender=":#{parentClientId}:a4jChildren" limitToList="true"
+ immediate="true">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editChild" />
+ <f:param name="editId" value="#{index}" />
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ </tbody>
+ </t:dataList>
+ <tr>
+ <td align="right" colspan="5"><a4j:commandLink immediate="true"
+ rendered="#{hrSession.edits.child == null}"
+ reRender=":#{parentClientId}:a4jChildren" limitToList="true"
+ action="#{hrActions.addChild}">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editChild" />
+ <h:graphicImage url="/images/icon_create.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ <tr>
+ <td colspan="5"><s:subForm id="editChild"
+ rendered="#{hrSession.edits.child != null}">
+
+ <table border="0" width="100%">
+ <tr>
+ <td><h:outputText value="#{bundle['Child.firstName']}" /></td>
+ <td><h:inputText value="#{hrSession.edits.child.firstName}" id="firstname"/><h:message for="firstname" showDetails="true" showSummary="false"/></td>
+ <td><h:outputText value="#{bundle['Child.lastName']}" /></td>
+ <td><h:inputText value="#{hrSession.edits.child.lastName}" id="lastname"/><h:message for="lastname" showDetails="true" showSummary="false"/></td>
+ <td rowspan="3" valign="top">
+ <a4j:commandLink action="#{hrActions.deleteChild}" immediate="true"
+ reRender=":#{parentClientId}:a4jChildren" limitToList="true"
+ onclick="if (!confirm('#{bundle['Interface.confirmDelete']}')) return false">
+ <h:graphicImage url="/images/icon_delete.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr>
+ <td><h:outputText value="#{bundle['Child.birthDate']}" /></td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.child.birthDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="birthdate">
+
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="birthdate" showDetails="true" showSummary="false"/></td>
+ <td>Leeftijd kind huidig jaar:</td>
+ <td><h:outputText value="#{hrSession.edits.child.age}" /></td>
+ </tr>
+ <tr>
+ <td><h:outputText value="#{bundle['Child.allocation']}" /></td>
+ <td><h:selectBooleanCheckbox
+ value="#{hrSession.edits.child.allocation}" /></td>
+ <td colspan="2"></td>
+ </tr>
+ <tr>
+ <td colspan="5" align="right"><a4j:commandButton value="Done"
+ reRender=":#{parentClientId}:a4jChildren" limitToList="true"
+ action="#{hrActions.clearEdits}" actionFor="doneChild" /></td>
+ </tr>
+ </table>
+
+ </s:subForm> <h:messages showDetail="true" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ </a4j:outputPanel>
+ </a4j:region>
+</ui:composition>
+</html>
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/childs.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/competenceMeasures.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/competenceMeasures.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/competenceMeasures.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,410 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:s="http://myfaces.apache.org/sandbox"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <style type="text/css">
+ tr.separator td,tr.separator th {
+ border-bottom:1px solid black;
+ }
+ </style>
+ <a4j:region id="compRegion">
+
+ <a4j:outputPanel id="a4jComp" layout="block">
+ <table class="list" width="100%">
+ <thead></thead>
+ <t:dataList id="measures" var="measure" rowIndexVar="index"
+ value="#{competenceMeasures}">
+ <tbody class="highlight">
+ <tr class="#{(index%2)==0?'even':'odd'}" width="100%">
+ <td>#{bundle['CompetenceMeasure.name']}</td>
+ <td>#{measure.name}</td>
+ <td>#{bundle['CompetenceMeasure.reference']}</td>
+ <td>#{measure.reference}</td>
+ <td rowspan="11" valign="top"><a4j:commandLink
+ action="#{hrActions.editCompetenceMeasure}" immediate="true"
+ reRender=":#{parentClientId}:a4jComp" limitToList="true">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editCompetenceMeasure" />
+ <f:param name="editId" value="#{index}" />
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>#{bundle['CompetenceMeasure.organismApplyDate']}</td>
+ <td><h:outputText value="#{measure.organismApplyDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td>#{bundle['CompetenceMeasure.IRMApplyDate']}</td>
+ <td><h:outputText value="#{measure.IRMApplyDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>#{bundle['CompetenceMeasure.validityStart']}</td>
+ <td><h:outputText value="#{measure.validityStart}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td>#{bundle['CompetenceMeasure.validityEnd']}</td>
+ <td><h:outputText value="#{measure.validityEnd}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>#{bundle['CompetenceMeasure.level']}</td>
+ <td>#{measure.level}</td>
+ <td>#{bundle['CompetenceMeasure.premium']}</td>
+ <td><h:outputText value="#{measure.premium}">
+ <f:converter converterId="SelectConverter" />
+ </h:outputText></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td valign="top">#{bundle['CompetenceMeasure.competenceMeasureTests']}</td>
+
+ <td colspan="3" valign="top">
+ <table class="list" style="border-spacing: 0px;">
+ <!-- <tr>
+ <th>#{bundle['CompetenceMeasureTest.date']}</th>
+ <th>#{bundle['CompetenceMeasureTest.score']}</th>
+ <th>#{bundle['CompetenceMeasureTest.result']}</th>
+ </tr> -->
+ <t:dataList rowIndexVar="index2" var="test"
+ value="#{measure.competenceMeasureTestsArray}">
+ <tr class="#{((index2+index)%2)==0?'odd':'even'}">
+ <td><h:outputText value="#{test.date}">
+ <f:convertDateTime pattern="dd MMMM yyyy"
+ timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td>#{test.score}</td>
+ <td><h:outputText value="#{test.result}">
+ <f:converter converterId="SelectConverter" />
+ </h:outputText></td>
+ </tr>
+ </t:dataList>
+ </table>
+ </td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>#{bundle['CompetenceMeasure.evolution']}</td>
+ <td><h:outputText value="#{measure.evolution}">
+ <f:converter converterId="SelectConverter" />
+ </h:outputText></td>
+ <td>#{bundle['CompetenceMeasure.scoreTotal']}</td>
+ <td>#{measure.scoreTotal}</td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>#{bundle['CompetenceMeasure.pvDate']}</td>
+ <td><h:outputText value="#{measure.pvDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td>#{bundle['CompetenceMeasure.nextDate']}</td>
+ <td><h:outputText value="#{measure.nextDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>#{bundle['CompetenceMeasure.nextSalaryScale']}</td>
+ <td>#{measure.nextSalaryScale}</td>
+ <td>#{bundle['CompetenceMeasure.nextSalaryScaleDate']}</td>
+ <td><h:outputText value="#{measure.nextSalaryScaleDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>#{bundle['CompetenceMeasure.location']}</td>
+ <td>#{measure.location}</td>
+ <td>#{bundle['CompetenceMeasure.duration']}</td>
+ <td>#{measure.duration}</td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>#{bundle['CompetenceMeasure.testNumber']}</td>
+ <td>#{measure.testNumber}</td>
+ <td colspan="2"></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td valign="top">#{bundle['CompetenceMeasure.note']}</td>
+ <td colspan="3">#{measure.note}</td>
+ </tr>
+ </tbody>
+ </t:dataList>
+ <tbody>
+ <tr>
+ <td colspan="5" align="right">
+ <a4j:commandLink immediate="true"
+ rendered="#{hrSession.edits.competenceMeasure == null}"
+ reRender=":#{parentClientId}:a4jComp" limitToList="true"
+ action="#{hrActions.addCompetenceMeasure}">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editCompetenceMeasure" />
+ <h:graphicImage url="/images/icon_create.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <s:subForm id="editCompetenceMeasure"
+ rendered="#{hrSession.edits.competenceMeasure != null}">
+ <fieldset>
+ <table style="border-spacing: 0px;" width="100%">
+ <tr>
+ <td>#{bundle['CompetenceMeasure.name']}</td>
+ <td><h:inputText
+ value="#{hrSession.edits.competenceMeasure.name}" id="cmname"/>
+ <h:message for="cmname" showDetails="true" showSummary="false"/></td>
+ <td>#{bundle['CompetenceMeasure.reference']}</td>
+ <td><h:inputText
+ value="#{hrSession.edits.competenceMeasure.reference}" id="mref"/>
+ <h:message for="mref" showDetails="true" showSummary="false"/></td>
+
+ <td rowspan="10" valign="top">
+ <a4j:commandLink action="#{hrActions.deleteCompetenceMeasure}" immediate="true"
+ reRender=":#{parentClientId}:a4jComp" limitToList="true"
+ onclick="if (!confirm('#{bundle['Interface.confirmDelete']}')) return false">
+ <h:graphicImage url="/images/icon_delete.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['CompetenceMeasure.organismApplyDate']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.competenceMeasure.organismApplyDate}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy" id="cmoadate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="cmoadate" showDetails="true" showSummary="false"/></td>
+ <td>#{bundle['CompetenceMeasure.IRMApplyDate']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.competenceMeasure.IRMApplyDate}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy" id="cmiadate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="cmiadate" showDetails="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['CompetenceMeasure.validityStart']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.competenceMeasure.validityStart}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy" id="cmvstart">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="cmvstart" showDetails="true" showSummary="false"/></td>
+ <td>#{bundle['CompetenceMeasure.validityEnd']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.competenceMeasure.validityEnd}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy" id="cmvend">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="cmvend" showDetails="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['CompetenceMeasure.level']}</td>
+ <td><h:inputText
+ value="#{hrSession.edits.competenceMeasure.level}" id="cmlevel"/>
+ <h:message for="cmlevel" showDetails="true" showSummary="false"/></td>
+ <td>#{bundle['CompetenceMeasure.premium']}</td>
+ <td><!-- <h:selectOneMenu
+ value="#{hrSession.edits.competenceMeasure.premium}" id="cmpremium">
+ <f:selectItems
+ value="#{hrRequest.selectEntries['Competence premium']}" />
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.competenceMeasure.premium}" />
+ <ui:param name="id" value="cmpremium" />
+ <ui:param name="key" value="Competence premium" />
+ </ui:include>
+ <h:message for="cmpremium" showDetails="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td valign="top">#{bundle['CompetenceMeasure.competenceMeasureTests']}</td>
+ <td colspan="3" valign="top">
+ <a4j:region>
+ <a4j:outputPanel id="tests">
+ <table class="list">
+ <thead>
+ <tr>
+ <th>#{bundle['CompetenceMeasureTest.date']}</th>
+ <th>#{bundle['CompetenceMeasureTest.score']}</th>
+ <th>#{bundle['CompetenceMeasureTest.result']}</th>
+ <th></th>
+ </tr>
+ </thead>
+ <t:dataList rowIndexVar="index2" var="test"
+ value="#{hrSession.edits.competenceMeasure.competenceMeasureTestsArray}">
+ <tbody class="highlight">
+ <tr class="#{((index2+index)%2)==0?'odd':'even'}">
+ <td><h:outputText value="#{test.date}">
+ <f:convertDateTime pattern="dd MMMM yyyy"
+ timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td>#{test.score}</td>
+ <td><h:outputText value="#{test.result}">
+ <f:converter converterId="SelectConverter" />
+ </h:outputText></td>
+ <td><a4j:commandLink
+ action="#{hrActions.editCompetenceMeasureTest}" immediate="true"
+ reRender=":#{parentClientId}:editCompetenceMeasure:tests" limitToList="true">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset"
+ value="editCompetenceMeasureTest" />
+ <f:param name="editId" value="#{index2}" />
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ </tbody>
+ </t:dataList>
+ <tbody>
+ <tr>
+ <td colspan="3"></td>
+ <td><a4j:commandLink immediate="true"
+ rendered="#{hrSession.edits.competenceMeasureTest == null}"
+ reRender=":#{parentClientId}:editCompetenceMeasure:tests" limitToList="true"
+ action="#{hrActions.addCompetenceMeasureTest}">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset"
+ value="editCompetenceMeasureTest" />
+ <h:graphicImage url="/images/icon_create.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ </tbody>
+ <tbody>
+ <tr>
+ <td colspan="4"><s:subForm id="editCompetenceMeasureTest"
+ rendered="#{hrSession.edits.competenceMeasureTest != null}">
+ <fieldset>
+ <table style="border-spacing: 0px;">
+ <tr>
+ <td>#{bundle['CompetenceMeasureTest.date']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.competenceMeasureTest.date}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy" id="cmtdate">
+ <f:convertDateTime pattern="dd MMMM yyyy"
+ timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="cmtdate" showDetails="true" showSummary="false"/></td>
+
+ <td rowspan="3" valign="top">
+ <a4j:commandLink action="#{hrActions.deleteCompetenceMeasureTest}" immediate="true"
+ onclick="if (!confirm('#{bundle['Interface.confirmDelete']}')) return false"
+ reRender=":#{parentClientId}:editCompetenceMeasure:tests" limitToList="true">
+ <h:graphicImage url="/images/icon_delete.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['CompetenceMeasureTest.score']}</td>
+ <td><h:inputText
+ value="#{hrSession.edits.competenceMeasureTest.score}" maxlength="50" id="cmtscore"></h:inputText>
+ <h:message for="cmtscore" showDetails="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['CompetenceMeasureTest.result']}</td>
+ <td><!-- <h:selectOneMenu
+ value="#{hrSession.edits.competenceMeasureTest.result}" id="cmtresult">
+ <f:selectItems
+ value="#{hrRequest.selectEntries['Exam result']}" />
+ </h:selectOneMenu> -->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.competenceMeasureTest.result}" />
+ <ui:param name="id" value="cmtresult" />
+ <ui:param name="key" value="Exam result" />
+ </ui:include>
+ <h:message for="cmtresult" showDetails="true" showSummary="false"/></td>
+ </tr>
+
+ </table>
+ <a4j:commandButton value="Done"
+ action="#{hrActions.clearCompetenceMeasureTestEdit}"
+ reRender=":#{parentClientId}:editCompetenceMeasure:tests" limitToList="true"
+ actionFor="editCompetenceMeasureTest" /></fieldset>
+ </s:subForm></td>
+ </tr>
+ </tbody>
+ </table>
+ </a4j:outputPanel>
+ </a4j:region>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['CompetenceMeasure.evolution']}</td>
+ <td><!-- <h:selectOneMenu
+ value="#{hrSession.edits.competenceMeasure.evolution}" id="cmevolution">
+ <f:selectItems
+ value="#{hrRequest.selectEntries['Competence evolution']}" />
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.competenceMeasure.evolution}" />
+ <ui:param name="id" value="cmevolution" />
+ <ui:param name="key" value="Competence evolution" />
+ </ui:include>
+ <h:message for="cmevolution" showDetails="true" showSummary="false"/></td>
+ <td>#{bundle['CompetenceMeasure.scoreTotal']}</td>
+ <td><h:inputText
+ value="#{hrSession.edits.competenceMeasure.scoreTotal}" id="cmscoretotal"/>
+ <h:message for="cmscoretotal" showDetails="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['CompetenceMeasure.pvDate']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.competenceMeasure.pvDate}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy" id="cmpvdate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="cmpvdate" showDetails="true" showSummary="false"/></td>
+ <td>#{bundle['CompetenceMeasure.nextDate']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.competenceMeasure.nextDate}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy" id="cmnextdate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="cmnextdate" showDetails="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['CompetenceMeasure.nextSalaryScale']}</td>
+ <td><h:inputText
+ value="#{hrSession.edits.competenceMeasure.nextSalaryScale}" id="cmnextsalary"/>
+ <h:message for="cmnextsalary" showDetails="true" showSummary="false"/></td>
+ <td>#{bundle['CompetenceMeasure.nextSalaryScaleDate']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.competenceMeasure.nextSalaryScaleDate}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy" id="cmnextsalarydate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="cmnextsalarydate" showDetails="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['CompetenceMeasure.location']}</td>
+ <td><h:inputText
+ value="#{hrSession.edits.competenceMeasure.location}" id="cmlocation"/>
+ <h:message for="cmlocation" showDetails="true" showSummary="false"/></td>
+ <td>#{bundle['CompetenceMeasure.duration']}</td>
+ <td><h:inputText
+ value="#{hrSession.edits.competenceMeasure.duration}" id="cmduration"/>
+ <h:message for="cmduration" showDetails="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['CompetenceMeasure.testNumber']}</td>
+ <td><h:inputText
+ value="#{hrSession.edits.competenceMeasure.testNumber}" id="cmtestnumber"/>
+ <h:message for="cmtestnumber" showDetails="true" showSummary="false"/></td>
+ <td colspan="2"></td>
+ </tr>
+ <tr>
+ <td valign="top">#{bundle['CompetenceMeasure.note']}</td>
+ <td colspan="3"><h:inputTextarea
+ value="#{hrSession.edits.competenceMeasure.note}" cols="50"
+ rows="5" id="cmnote"/>
+ <h:message for="cmnote" showDetails="true" showSummary="false"/></td>
+ </tr>
+ </table>
+ <a4j:commandButton value="Done" action="#{hrActions.doneCompetenceMeasure}"
+ reRender=":#{parentClientId}:a4jComp" limitToList="true"
+ actionFor="editCompetenceMeasure" /></fieldset>
+ </s:subForm>
+ </a4j:outputPanel>
+ </a4j:region>
+</ui:composition>
+</html>
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/competenceMeasures.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/contracts.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/contracts.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/contracts.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,310 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:s="http://myfaces.apache.org/sandbox"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+
+ <a4j:region id="contractRegion">
+
+ <a4j:outputPanel id="a4jContract" layout="block">
+ <table class="list" cellpadding="5" width="100%">
+ <thead>
+ <tr>
+ <th><h:outputText value="#{bundle['Contract.reference']}" /></th>
+ <th><h:outputText value="#{bundle['Contract.function']}" /></th>
+ <th><h:outputText value="#{bundle['Contract.startDate']}" /></th>
+ <th><h:outputText value="#{bundle['Contract.endDate']}" /></th>
+ <th><h:outputText value="#{bundle['Contract.workPermitStart']}" /></th>
+ <th><h:outputText value="#{bundle['Contract.workPermitEnd']}" /></th>
+ <th></th>
+ </tr>
+ <tr>
+ <th><h:outputText value="#{bundle['Contract.project']}" /></th>
+ <th><h:outputText value="#{bundle['Contract.projectBudget']}" /></th>
+ <th><h:outputText value="#{bundle['Contract.remainingProjectBudget']}" /></th>
+ <th><h:outputText value="#{bundle['Contract.financedBy']}" /></th>
+ <th><h:outputText value="#{bundle['Contract.comptabilitySection']}" /></th>
+ <th><h:outputText value="#{bundle['Contract.budgetSource']}" /></th>
+ <th></th>
+ </tr>
+ <tr>
+ <th colspan="3" align="center"><h:outputText value="#{bundle['Contract.reason']}" /></th>
+ <th><h:outputText value="#{bundle['Contract.type']}" /></th>
+ <th><h:outputText value="#{bundle['Contract.contractCategory']}" /></th>
+ <th><h:outputText value="#{bundle['Contract.workExperienceGiven']}" /></th>
+ <th></th>
+ </tr>
+ </thead>
+ <t:dataList id="contracts" var="contract" rowIndexVar="index" value="#{contracts}">
+ <tbody class="highlight">
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>
+ <h:outputText id="type" value="#{contract.reference}"/>
+ </td>
+ <td><h:outputText id="function" value="#{contract.function}"/></td>
+ <td>
+ <h:outputText value="#{contract.startDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </h:outputText>
+ </td>
+ <td>
+ <h:outputText value="#{contract.endDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </h:outputText>
+ </td>
+ <td>
+ <h:outputText value="#{contract.workPermitStart}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </h:outputText>
+ </td>
+ <td>
+ <h:outputText value="#{contract.workPermitEnd}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </h:outputText>
+ </td>
+ <td rowspan="3" valign="top">
+ <a4j:commandLink action="#{hrActions.editContract}"
+ immediate="true"
+ reRender=":#{parentClientId}:a4jContract" limitToList="true">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset"/>
+ <f:param name="containerToReset" value="editContract" />
+ <f:param name="editId" value="#{index}" />
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>
+ <h:outputText id="project" value="#{contract.project.proj_name}"/>
+ </td>
+ <td>
+ <h:outputText id="budget" value="#{contract.projectBudget}"/>
+ </td>
+ <td>
+ <h:outputText id="remainingBudget" value="#{contract.remainingProjectBudget}"/>
+ </td>
+ <td>
+ <h:outputText id="financedBy" value="#{contract.financedBy}"/>
+ </td>
+ <td>
+ <h:outputText id="comptabilitySection" value="#{contract.comptabilitySection}"><f:converter converterId="SelectConverter" /></h:outputText>
+ </td>
+ <td>
+ <h:outputText id="budgetSource" value="#{contract.budgetSource}"><f:converter converterId="SelectConverter" /></h:outputText>
+ </td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td colspan="3">
+ <h:outputText id="reason" value="#{contract.reason}"><f:converter converterId="SelectConverter" /></h:outputText>
+ </td>
+ <td>
+ <h:outputText id="type" value="#{contract.type}"><f:converter converterId="SelectConverter" /></h:outputText>
+ </td>
+ <td>
+ <h:outputText id="category" value="#{contract.contractCategory}"><f:converter converterId="SelectConverter" /></h:outputText>
+ </td>
+ <td colspan="2">
+ <h:outputText id="workExperienceGiven" value="#{contract.workExperienceGiven}"/>
+ </td>
+ </tr>
+ </tbody>
+ </t:dataList>
+ <tbody>
+ <tr>
+ <td colspan="7">
+ <a4j:commandLink immediate="true"
+ rendered="#{hrSession.edits.contract == null}"
+ action="#{hrActions.addContract}"
+ reRender=":#{parentClientId}:a4jContract" limitToList="true">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editContract" />
+ <h:graphicImage url="/images/icon_create.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <s:subForm id="editContract" rendered="#{hrSession.edits.contract != null}">
+ <fieldset>
+ <table border="0" width="100%">
+ <tr>
+ <td>
+ <h:outputText value="#{bundle['Contract.reference']}"/>
+ <h:inputText value="#{hrSession.edits.contract.reference}" id="creference"/>
+ <h:message for="creference" showDetail="true" showSummary="false"/>
+
+
+ <h:outputText value="#{bundle['Contract.type']}" />
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.contract.type}" />
+ <ui:param name="id" value="ctype" />
+ <ui:param name="key" value="Contract type" />
+ </ui:include>
+ <h:message for="ctype" showDetail="true" showSummary="false"/>
+ </td>
+ <td>
+ <h:outputText value="#{bundle['Contract.function']}" />
+ <h:inputText value="#{hrSession.edits.contract.function}" id="cfunction"/>
+ <h:message for="cfunction" showDetail="true" showSummary="false"/>
+ </td>
+
+ <td rowspan="7" valign="top">
+ <a4j:commandLink action="#{hrActions.deleteContract}" immediate="true"
+ reRender=":#{parentClientId}:a4jContract" limitToList="true"
+ onclick="if (!confirm('#{bundle['Interface.confirmDelete']}')) return false">
+ <h:graphicImage url="/images/icon_delete.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ #{bundle['Contract.reason']}
+ <!-- <h:selectOneMenu value="#{hrSession.edits.contract.reason}" id="creason">
+ <f:selectItems value="#{hrRequest.selectEntries['Contract reason']}"/>
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.contract.reason}" />
+ <ui:param name="id" value="creason" />
+ <ui:param name="key" value="Contract reason" />
+ </ui:include>
+ <h:message for="creason" showDetail="true" showSummary="false"/>
+ </td>
+ <td>
+ #{bundle['Contract.contractCategory']}
+ <!-- <h:selectOneMenu value="#{hrSession.edits.contract.contractCategory}" id="ccategory">
+ <f:selectItems value="#{hrRequest.selectEntries['Contract category']}"/>
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.contract.contractCategory}" />
+ <ui:param name="id" value="ccategory" />
+ <ui:param name="key" value="Contract category" />
+ </ui:include>
+ <h:message for="ccategory" showDetail="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <h:outputText value="#{bundle['Contract.startDate']}" />
+ <t:inputCalendar
+ value="#{hrSession.edits.contract.startDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="cstartdate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </t:inputCalendar>
+ <h:message for="cstartdate" showDetail="true" showSummary="false"/>
+ </td>
+ <td>
+ <h:outputText value="#{bundle['Contract.endDate']}" />
+ <t:inputCalendar
+ value="#{hrSession.edits.contract.endDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="cenddate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </t:inputCalendar>
+ <h:message for="cenddate" showDetail="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <h:outputText value="#{bundle['Contract.workPermitStart']}" />
+ <t:inputCalendar
+ value="#{hrSession.edits.contract.workPermitStart}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="cworkstart">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </t:inputCalendar>
+ <h:message for="cworkstart" showDetail="true" showSummary="false"/>
+ </td>
+ <td>
+ <h:outputText value="#{bundle['Contract.workPermitEnd']}" />
+ <t:inputCalendar
+ value="#{hrSession.edits.contract.workPermitEnd}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="cworkend">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </t:inputCalendar>
+ <h:message for="cworkend" showDetail="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <h:outputText value="#{bundle['Contract.project']}" />
+ <h:selectOneMenu id="cproject" value="#{hrSession.edits.contract.project}">
+ <f:selectItem itemValue="[nothing]" itemLabel=""/>
+ <f:selectItems value="#{hrRequest.projectItems}"/>
+ </h:selectOneMenu>
+ <a4j:commandLink action="dumb"
+ immediate="true" reRender="cproject" limitToList="true" >
+ <h:graphicImage
+ url="/images/icon_reload.gif"
+ style="border:none;vertical-align:center;margin-right:1pt"
+ />
+ </a4j:commandLink>
+ <h:message for="cproject" showDetail="true" showSummary="false"/>
+ </td>
+ <td>
+ <h:outputText value="#{bundle['Contract.workExperienceGiven']}" />
+ <h:inputText value="#{hrSession.edits.contract.workExperienceGiven}" id="cworkexp"/>
+ <h:message for="cworkexp" showDetail="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <h:outputText value="#{bundle['Contract.projectBudget']}" />
+ <h:inputText value="#{hrSession.edits.contract.projectBudget}" id="cprojbudget"/>
+ <h:message for="cprojbudget" showDetail="true" showSummary="false"/>
+ </td>
+ <td>
+ <h:outputText value="#{bundle['Contract.remainingProjectBudget']}" />
+ <h:inputText value="#{hrSession.edits.contract.remainingProjectBudget}" id="cremainbudget"/>
+ <h:message for="cremainbudget" showDetail="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <h:outputText value="#{bundle['Contract.financedBy']}" />
+ <h:inputText value="#{hrSession.edits.contract.financedBy}" id="cfinby"/>
+ <h:message for="cfinby" showDetail="true" showSummary="false"/>
+ </td>
+ <td>
+ #{bundle['Contract.budgetSource']}
+ <!-- <h:selectOneMenu value="#{hrSession.edits.contract.budgetSource}" id="cbsource">
+ <f:selectItems value="#{hrRequest.selectEntries['Budget source']}"/>
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.contract.budgetSource}" />
+ <ui:param name="id" value="cbsource" />
+ <ui:param name="key" value="Budget source" />
+ </ui:include>
+ <h:message for="cbsource" showDetail="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <h:outputText value="#{bundle['Contract.comptabilitySection']}" />
+ <!-- <h:selectOneMenu value="#{hrSession.edits.contract.comptabilitySection}" id="ccsection">
+ <f:selectItems value="#{hrRequest.selectEntries['Comptability section']}"/>
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.contract.comptabilitySection}" />
+ <ui:param name="id" value="ccsection" />
+ <ui:param name="key" value="Comptability section" />
+ </ui:include>
+ <h:message for="ccsection" showDetail="true" showSummary="false"/>
+ </td>
+ <td>
+ </td>
+ </tr>
+ </table>
+ <a4j:commandButton value="Done" action="#{hrActions.doneContract}"
+ reRender=":#{parentClientId}:a4jContract" limitToList="true"
+ actionFor="editContract" />
+ </fieldset>
+ </s:subForm>
+ </a4j:outputPanel>
+ </a4j:region>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/contracts.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/cumuls.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/cumuls.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/cumuls.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,145 @@
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:s="http://myfaces.apache.org/sandbox"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <a4j:region id="cumulsRegion">
+
+ <a4j:outputPanel id="a4jCumul" layout="block">
+ <table class="list" width="100%">
+ <thead></thead>
+ <t:dataList var="cumul" rowIndexVar="index" value="#{cumuls}">
+ <tbody class="highlight">
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td align="right"><h:outputText value="#{bundle['Cumul.subject']}"/></td>
+ <td><h:outputText value="#{cumul.subject}"/></td>
+ <td rowspan="8" valign="top">
+ <a4j:commandLink action="#{hrActions.editCumul}"
+ immediate="true" reRender=":#{parentClientId}:a4jCumul" limitToList="true">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset"/>
+ <f:param name="containerToReset" value="editCumul" />
+ <f:param name="editId" value="#{index}" />
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td align="right"><h:outputText value="#{bundle['Cumul.startDate']}"/></td>
+ <td><h:outputText value="#{cumul.startDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td align="right"><h:outputText value="#{bundle['Cumul.endDate']}"/></td>
+ <td><h:outputText value="#{cumul.endDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td align="right"><h:outputText value="#{bundle['Cumul.university']}"/></td>
+ <td align="right"><h:outputText value="#{cumul.university}"/></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td align="right"><h:outputText value="#{bundle['Cumul.teachingTitle']}"/></td>
+ <td align="right"><h:outputText value="#{cumul.teachingTitle}"/></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td valign="top" align="right"><h:outputText value="#{bundle['Cumul.location']}"/></td>
+ <td><h:outputText value="#{cumul.location}"/></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td valign="top" align="right"><h:outputText value="#{bundle['Cumul.conditions']}"/></td>
+ <td><h:outputText value="#{cumul.conditions}"/></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td colspan="2"><h:outputText value="#{cumul.note}"/></td>
+ </tr>
+ </tbody>
+ </t:dataList>
+ <tbody>
+ <tr>
+ <td colspan="3" align="right">
+ <a4j:commandLink immediate="true" rendered="#{hrSession.edits.cumul == null}"
+ reRender=":#{parentClientId}:a4jCumul" limitToList="true" action="#{hrActions.addCumul}">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editCumul" />
+ <h:graphicImage url="/images/icon_create.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <s:subForm id="editCumul" rendered="#{hrSession.edits.cumul != null}">
+ <table>
+ <tr>
+ <td><h:outputText value="#{bundle['Cumul.subject']}"/></td>
+ <td colspan="3"><h:inputText value="#{hrSession.edits.cumul.subject}" size="100"/></td>
+
+ <td rowspan="6" valign="top">
+ <a4j:commandLink action="#{hrActions.deleteCumul}" immediate="true"
+ onclick="if (!confirm('#{bundle['Interface.confirmDelete']}')) return false"
+ reRender=":#{parentClientId}:a4jCumul" limitToList="true">
+ <h:graphicImage url="/images/icon_delete.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr>
+ <td><h:outputText value="#{bundle['Cumul.startDate']}"/></td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.cumul.startDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="cstartdate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="cstartdate" showDetail="true" showSummary="false"/></td>
+ <td><h:outputText value="#{bundle['Cumul.endDate']}"/></td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.cumul.endDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="cenddate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="cenddate" showDetail="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td>
+ <h:outputText value="#{bundle['Cumul.university']}" />
+ </td>
+ <td colspan="3">
+ <h:inputText value="#{hrSession.edits.cumul.university}" id="university" size="100"/>
+ <h:message for="university"/>
+ </td>
+ </tr>
+ <tr>
+ <td><h:outputText value="#{bundle['Cumul.teachingTitle']}"/></td>
+ <td colspan="3"><h:inputText value="#{hrSession.edits.cumul.teachingTitle}" id="cteachtitle" size="100"/>
+ <h:message for="cteachtitle" showDetail="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><h:outputText value="#{bundle['Cumul.location']}"/></td>
+ <td colspan="3"><h:inputTextarea value="#{hrSession.edits.cumul.location}" cols="80" rows="4" id="clocation"/>
+ <h:message for="clocation" showDetail="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><h:outputText value="#{bundle['Cumul.conditions']}"/></td>
+ <td colspan="3"><h:inputTextarea value="#{hrSession.edits.cumul.conditions}" cols="80" rows="7" id="cconditions"/>
+ <h:message for="cconditions" showDetail="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><h:outputText value="#{bundle['Cumul.note']}"/></td>
+ <td colspan="3"><h:inputTextarea value="#{hrSession.edits.cumul.note}" cols="80" rows="7" id="cnote"/>
+ <h:message for="cnote" showDetail="true" showSummary="false"/>
+ </td>
+ </tr>
+ </table>
+ <a4j:commandButton value="Done" action="#{hrActions.doneCumul}"
+ reRender=":#{parentClientId}:a4jCumul" limitToList="true"
+ actionFor="editCumul" />
+ </s:subForm>
+ </a4j:outputPanel>
+ </a4j:region>
+</ui:composition>
+</html>
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/cumuls.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/decorations.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/decorations.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/decorations.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,105 @@
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:s="http://myfaces.apache.org/sandbox"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <a4j:region id="decorationRegion">
+
+ <a4j:outputPanel id="a4jDecorations" layout="block">
+ <table class="list" width="100%" cellpadding="5">
+ <thead>
+ <tr>
+ <th>#{bundle['Decoration.date']}</th>
+ <th>#{bundle['Decoration.kind']}</th>
+ <th>#{bundle['Decoration.decorationClass']}</th>
+ <th></th>
+ </tr>
+ </thead>
+ <t:dataList var="deco" rowIndexVar="index" value="#{decorations}">
+ <tbody class="highlight">
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td><h:outputText value="#{deco.date}"><f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" /></h:outputText></td>
+ <td><h:outputText value="#{deco.kind}"><f:converter converterId="SelectConverter" /></h:outputText></td>
+ <td><h:outputText value="#{deco.decorationClass}"><f:converter converterId="SelectConverter" /></h:outputText></td>
+ <td><a4j:commandLink action="#{hrActions.editDecoration}" immediate="true"
+ reRender=":#{parentClientId}:a4jDecorations" limitToList="true">
+ <f:param name="editId" value="#{index}" />
+ <f:param name="containerToReset" value="editDecoration" />
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none" />
+ </a4j:commandLink></td>
+ </tr>
+ </tbody>
+ </t:dataList>
+ <tbody>
+ <tr>
+ <td colspan="4" align="right"><a4j:commandLink immediate="true"
+ rendered="#{hrSession.edits.decoration == null}"
+ reRender=":#{parentClientId}:a4jDecorations" limitToList="true"
+ action="#{hrActions.addDecoration}">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editDecoration" />
+ <h:graphicImage url="/images/icon_create.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ </tbody>
+ </table>
+ <s:subForm id="editDecoration"
+ rendered="#{hrSession.edits.decoration != null}">
+ <fieldset>
+ <table style="border:none;">
+ <tr>
+ <td>#{bundle['Decoration.date']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.decoration.date}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar></td>
+
+ <td rowspan="4" valign="top">
+ <a4j:commandLink action="#{hrActions.deleteDecoration}" immediate="true"
+ reRender=":#{parentClientId}:a4jDecorations" limitToList="true"
+ onclick="if (!confirm('#{bundle['Interface.confirmDelete']}')) return false">
+ <h:graphicImage url="/images/icon_delete.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['Decoration.kind']}</td>
+ <td>
+
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.decoration.kind}" />
+ <ui:param name="id" value="decoration_kind" />
+ <ui:param name="key" value="Decoration kind" />
+ </ui:include>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['Decoration.decorationClass']}</td>
+ <td>
+
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.decoration.decorationClass}" />
+ <ui:param name="id" value="decoration_class" />
+ <ui:param name="key" value="Decoration class" />
+ </ui:include>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <a4j:commandButton value="Done" action="#{hrActions.doneDecoration}"
+ reRender=":#{parentClientId}:a4jDecorations" limitToList="true"
+ actionFor="editDecoration"
+ onclick="new Effect.Highlight('#{parentClientId}:a4jDecorations', {duration:2,startcolor:'#ffffff',endcolor:'#808080',restorecolor:'#808080'});" />
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+ </s:subForm>
+ </a4j:outputPanel>
+ </a4j:region>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/decorations.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/developmentCircles.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/developmentCircles.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/developmentCircles.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,144 @@
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:s="http://myfaces.apache.org/sandbox"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <a4j:region id="circleRegion">
+
+ <a4j:outputPanel id="a4jCircle" layout="block">
+ <table class="list" width="100%">
+ <thead></thead>
+ <t:dataList var="circle" rowIndexVar="index" value="#{developmentCircles}">
+ <tbody class="highlight">
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>#{bundle['DevelopmentCircle.functionChiefName']}</td>
+ <td colspan="3">#{circle.functionChiefName}</td>
+ <td rowspan="7" valign="top"><a4j:commandLink
+ action="#{hrActions.editDevelopmentCircle}" immediate="true"
+ reRender=":#{parentClientId}:a4jCircle" limitToList="true">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editDevelopmentCircle" />
+ <f:param name="editId" value="#{index}" />
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>#{bundle['DevelopmentCircle.duration']}</td>
+ <td colspan="3">#{circle.duration}</td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>#{bundle['DevelopmentCircle.planningMeetingDate']}</td>
+ <td><h:outputText value="#{circle.planningMeetingDate}"><f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" /></h:outputText></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>#{bundle['DevelopmentCircle.functionMeetingDate']}</td>
+ <td><h:outputText value="#{circle.functionMeetingDate}"><f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" /></h:outputText></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>#{bundle['DevelopmentCircle.workingMeetingDate']}</td>
+ <td><h:outputText value="#{circle.workingMeetingDate}"><f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" /></h:outputText></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>#{bundle['DevelopmentCircle.evaluationMeetingDate']}</td>
+ <td><h:outputText value="#{circle.evaluationMeetingDate}"><f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" /></h:outputText></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>#{bundle['DevelopmentCircle.result']}</td>
+ <td>#{circle.result}</td>
+ </tr>
+ </tbody>
+ </t:dataList>
+ <tbody>
+ <tr>
+ <td colspan="5" align="right">
+ <a4j:commandLink immediate="true"
+ rendered="#{hrSession.edits.developmentCircle == null}"
+ reRender=":#{parentClientId}:a4jCircle" limitToList="true"
+ action="#{hrActions.addDevelopmentCircle}">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editDevelopmentCircle" />
+ <h:graphicImage url="/images/icon_create.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <s:subForm id="editDevelopmentCircle"
+ rendered="#{hrSession.edits.developmentCircle != null}">
+ <fieldset>
+ <table>
+ <tr>
+ <td>#{bundle['DevelopmentCircle.functionChiefName']}</td>
+ <td colspan="3">
+ <h:selectOneMenu id="chief" value="#{hrSession.edits.developmentCircle.functionChiefName}">
+ <f:selectItem itemLabel="" itemValue="[nothing]"/>
+ <f:selectItems value="#{hrRequest.employees}"/>
+ </h:selectOneMenu>
+ <h:message for="chief"/>
+ </td>
+
+ <td rowspan="7" valign="top">
+ <a4j:commandLink action="#{hrActions.deleteDevelopmentCircle}" immediate="true"
+ onclick="if (!confirm('#{bundle['Interface.confirmDelete']}')) return false"
+ reRender=":#{parentClientId}:a4jCircle" limitToList="true">
+ <h:graphicImage url="/images/icon_delete.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['DevelopmentCircle.duration']}</td>
+ <td colspan="3"><h:inputText value="#{hrSession.edits.developmentCircle.duration}" size="80"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['DevelopmentCircle.planningMeetingDate']}</td>
+ <td><t:inputCalendar value="#{hrSession.edits.developmentCircle.planningMeetingDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="pmdate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="pmdate" showDetail="true" showSummary="false"/></td>
+ <td rowspan="4" valign="top">#{bundle['DevelopmentCircle.result']}</td>
+ <td rowspan="4" valign="top"><h:inputTextarea value="#{hrSession.edits.developmentCircle.result}" cols="50" rows="7" id="dcresult"/>
+ <h:message for="dcresult" showDetail="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['DevelopmentCircle.functionMeetingDate']}</td>
+ <td><t:inputCalendar value="#{hrSession.edits.developmentCircle.functionMeetingDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="fmdate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="fmdate" showDetail="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['DevelopmentCircle.workingMeetingDate']}</td>
+ <td><t:inputCalendar value="#{hrSession.edits.developmentCircle.workingMeetingDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="wmdate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="wmdate" showDetail="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['DevelopmentCircle.evaluationMeetingDate']}</td>
+ <td><t:inputCalendar value="#{hrSession.edits.developmentCircle.evaluationMeetingDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="emdate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="emdate" showDetail="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td colspan="4">
+ <a4j:commandButton value="Done" action="#{hrActions.doneDevelopmentCircle}"
+ actionFor="editDevelopmentCircle"
+ reRender=":#{parentClientId}:a4jCircle" limitToList="true" /></td>
+ </tr>
+ </table>
+ </fieldset>
+ </s:subForm>
+ </a4j:outputPanel>
+ </a4j:region>
+
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/developmentCircles.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/diplomas.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/diplomas.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/diplomas.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,110 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:s="http://myfaces.apache.org/sandbox"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <a4j:region id="diplomasRegion">
+
+ <a4j:outputPanel id="a4jDiplomas" layout="block">
+ <fieldset><legend><h:outputText
+ value="#{bundle['Employee.diplomas']}" /></legend>
+ <table class="list" width="100%">
+ <thead>
+ <tr>
+ <th><h:outputText value="#{bundle['Diploma.title']}" /></th>
+ <th><h:outputText value="#{bundle['Diploma.startDate']}" /></th>
+ <th><h:outputText value="#{bundle['Diploma.endDate']}" /></th>
+ <th><h:outputText value="#{bundle['Diploma.institution']}" /></th>
+ <th></th>
+ </tr>
+ </thead>
+ <t:dataList value="#{hrSession.employee.diplomasArray}"
+ var="diploma" id="diplomas" rowIndexVar="index">
+ <tbody class="highlight">
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td><h:outputText value="#{diploma.title}" /></td>
+ <td><h:outputText value="#{diploma.startDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </h:outputText></td>
+ <td><h:outputText value="#{diploma.endDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </h:outputText></td>
+ <td>#{diploma.institution}</td>
+ <td><a4j:commandLink action="#{hrActions.editDiploma}"
+ immediate="true" reRender=":#{parentClientId}:a4jDiplomas" limitToList="true">
+ <f:param name="editId" value="#{index}" />
+ <f:param name="containerToReset" value="editDiploma" />
+ <f:param name="editId" value="#{index}" />
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ </tbody>
+ </t:dataList>
+ <tbody>
+ <tr>
+ <td align="right">
+ <a4j:commandLink immediate="true" rendered="#{hrSession.edits.diploma == null}"
+ action="#{hrActions.addDiploma}" reRender=":#{parentClientId}:a4jDiplomas" limitToList="true">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editDiploma" />
+ <h:graphicImage url="/images/icon_create.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ </tbody>
+ <tbody>
+ <tr>
+ <td><s:subForm id="editDiploma" rendered="#{hrSession.edits.diploma != null}">
+
+ <table border="0" width="100%">
+ <tr>
+ <td><h:outputText value="#{bundle['Diploma.title']}" /></td>
+ <td colspan="3"><h:inputText size="70" value="#{hrSession.edits.diploma.title}" id="dtitle"/>
+ <h:message for="dtitle" showDetail="true" showSummary="false"/></td>
+
+ <td rowspan="3" valign="top">
+ <a4j:commandLink action="#{hrActions.deleteDiploma}" immediate="true"
+ onclick="if (!confirm('#{bundle['Interface.confirmDelete']}')) return false"
+ reRender=":#{parentClientId}:a4jDiplomas" limitToList="true">
+ <h:graphicImage url="/images/icon_delete.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr>
+ <td><h:outputText value="#{bundle['Diploma.startDate']}" /></td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.diploma.startDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="dstartdate">
+
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </t:inputCalendar><h:message for="dstartdate" showDetail="true" showSummary="false"/></td>
+ <td><h:outputText value="#{bundle['Diploma.endDate']}" /></td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.diploma.endDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="denddate">
+
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </t:inputCalendar><h:message for="denddate" showDetail="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td><h:outputText value="#{bundle['Diploma.institution']}" /></td>
+ <td colspan="3"><h:inputText size="70" value="#{hrSession.edits.diploma.institution}" /></td>
+ </tr>
+ </table>
+ <a4j:commandButton value="Done" action="#{hrActions.doneDiploma}"
+ reRender=":#{parentClientId}:a4jDiplomas" limitToList="true"
+ actionFor="editDiploma" />
+ </s:subForm> <h:messages showDetail="true"/></td>
+ </tr>
+ </tbody>
+ </table>
+ </fieldset>
+ </a4j:outputPanel>
+ </a4j:region>
+</ui:composition>
+</html>
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/diplomas.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/formations.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/formations.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/formations.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,119 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:s="http://myfaces.apache.org/sandbox"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <style type="text/css">
+ tr.separator td,tr.separator th {
+ border-bottom:1px solid black;
+ }
+ </style>
+ <a4j:region id="formationRegion">
+
+ <a4j:outputPanel id="a4jformation" layout="block">
+ <table class="list" width="100%">
+ <thead>
+ <tr>
+ <th><h:outputText value="#{bundle['Formation.name']}" /></th>
+ <th><h:outputText value="#{bundle['Formation.reason']}" /></th>
+ <th><h:outputText value="#{bundle['Formation.startDate']}" /></th>
+ <th><h:outputText value="#{bundle['Formation.totalDays']}" /></th>
+ <th><h:outputText value="#{bundle['Formation.location']}" /></th>
+ <th></th>
+ </tr>
+ <tr>
+ <th colspan="5"><h:outputText value="#{bundle['Formation.note']}" /></th>
+ <th></th>
+ </tr>
+ </thead>
+ <t:dataList id="formations" var="formation" rowIndexVar="index" value="#{formations}">
+ <tbody class="highlight">
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td><h:outputText value="#{formation.name}" /></td>
+ <td><h:outputText value="#{formation.reason}" /></td>
+ <td><h:outputText value="#{formation.startDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td><h:outputText value="#{formation.totalDays}"/></td>
+ <td><h:outputText value="#{formation.location}" /></td>
+ <td rowspan="2" valign="top">
+ <a4j:commandLink action="#{hrActions.editFormation}"
+ immediate="true" reRender=":#{parentClientId}:a4jformation" limitToList="true">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset"/>
+ <f:param name="containerToReset" value="editFormation" />
+ <f:param name="editId" value="#{index}" />
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'} separator">
+ <td colspan="5"><h:outputText value="#{formation.note}" /></td>
+ </tr>
+ </tbody>
+ </t:dataList>
+ <tbody>
+ <tr>
+ <td colspan="6" align="right">
+ <a4j:commandLink immediate="true" rendered="#{hrSession.edits.formation == null}"
+ reRender=":#{parentClientId}:a4jformation" limitToList="true"
+ action="#{hrActions.addFormation}">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editFormation" />
+ <h:graphicImage url="/images/icon_create.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ <s:subForm id="editFormation" rendered="#{hrSession.edits.formation != null}">
+ <fieldset>
+ <table border="0" width="100%">
+ <tr>
+ <td><h:outputText value="#{bundle['Formation.name']}" /></td>
+ <td><h:inputText value="#{hrSession.edits.formation.name}" id="fname"/><h:message for="fname" showDetail="true" showSummary="false"/></td>
+ <td><h:outputText value="#{bundle['Formation.reason']}" /></td>
+ <td><h:inputText value="#{hrSession.edits.formation.reason}" id="freason"/><h:message for="freason" showDetail="true" showSummary="false"/></td>
+
+ <td rowspan="4" valign="top">
+ <a4j:commandLink action="#{hrActions.deleteFormation}" immediate="true"
+ reRender=":#{parentClientId}:a4jformation" limitToList="true"
+ onclick="if (!confirm('#{bundle['Interface.confirmDelete']}')) return false">
+ <h:graphicImage url="/images/icon_delete.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr>
+ <td><h:outputText value="#{bundle['Formation.startDate']}" /></td>
+ <td><t:inputCalendar value="#{hrSession.edits.formation.startDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="fstartdate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </t:inputCalendar><h:message for="fstartdate" showDetail="true" showSummary="false"/></td>
+ <td><h:outputText value="#{bundle['Formation.totalDays']}" /></td>
+ <td><h:inputText value="#{hrSession.edits.formation.totalDays}" id="ftotaldays"/>
+ <h:message for="ftotaldays" showDetail="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td valign="top"><h:outputText value="#{bundle['Formation.location']}" /></td>
+ <td colspan="3"><h:inputTextarea value="#{hrSession.edits.formation.location}" cols="50" rows="3" id="flocation"/>
+ <h:message for="flocation" showDetail="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td valign="top"><h:outputText value="#{bundle['Formation.note']}" /></td>
+ <td colspan="3"><h:inputTextarea value="#{hrSession.edits.formation.note}" cols="50" rows="3" id="fnote"/>
+ <h:message for="fnote" showDetail="true" showSummary="false"/></td>
+ </tr>
+ </table>
+ <a4j:commandButton value="Done" action="#{hrActions.doneFormation}"
+ reRender=":#{parentClientId}:a4jformation" limitToList="true"
+ actionFor="editFormation" />
+ </fieldset>
+ </s:subForm>
+ </a4j:outputPanel>
+ </a4j:region>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/formations.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/illnesses.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/illnesses.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/illnesses.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,131 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:s="http://myfaces.apache.org/sandbox"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <style type="text/css">
+ tr.separator td,tr.separator th {
+ border-bottom:1px solid black;
+ }
+ </style>
+ <a4j:region>
+ <a4j:outputPanel id="a4jIllness" layout="block">
+ <table class="list" width="100%">
+ <thead>
+ <tr>
+ <th>#{bundle['Illness.kind']}</th>
+ <th>#{bundle['Illness.startDate']}</th>
+ <th>#{bundle['Illness.endDate']}</th>
+ <th>#{bundle['Illness.workingDays']}</th>
+ <th>#{bundle['Illness.calendarDays']}</th>
+ <th>#{bundle['Illness.document']}</th>
+ <th></th>
+ </tr>
+ </thead>
+ <t:dataList id="illnesses" var="illness" rowIndexVar="index" value="#{illnesses}">
+ <tbody class="hightlight">
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td><h:outputText value="#{illness.kind}"><f:converter converterId="SelectConverter" /></h:outputText></td>
+ <td><h:outputText value="#{illness.startDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td><h:outputText value="#{illness.endDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td>#{illness.workingDays}</td>
+ <td>#{illness.calendarDays}</td>
+ <td>[document here later...]</td>
+ <td rowspan="2" valign="top">
+ <a4j:commandLink action="#{hrActions.editIllness}"
+ immediate="true" reRender=":#{parentClientId}:a4jIllness" limitToList="true">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset"/>
+ <f:param name="containerToReset" value="editIllness" />
+ <f:param name="editId" value="#{index}" />
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td colspan="6">#{illness.note}</td>
+ </tr>
+ </tbody>
+ </t:dataList>
+ <tbody>
+ <tr>
+ <td colspan="7" align="right">
+ <a4j:commandLink immediate="true"
+ rendered="#{hrSession.edits.illness == null}"
+ action="#{hrActions.addIllness}"
+ reRender=":#{parentClientId}:a4jIllness" limitToList="true">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editIllness" />
+ <h:graphicImage url="/images/icon_create.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <s:subForm id="editIllness" rendered="#{hrSession.edits.illness != null}">
+ <fieldset>
+ <table border="0" width="100%">
+ <tr>
+ <td>#{bundle['Illness.kind']}</td>
+ <td><!-- <h:selectOneMenu value="#{hrSession.edits.illness.kind}" id="ikind">
+ <f:selectItems
+ value="#{hrRequest.selectEntries['Illness type']}" />
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.illness.kind}" />
+ <ui:param name="id" value="ikind" />
+ <ui:param name="key" value="Illness type" />
+ </ui:include>
+ <h:message for="ikind" showDetail="true" showSummary="false"/></td>
+ <td colspan="2"></td>
+
+ <td rowspan="4" valign="top">
+ <a4j:commandLink action="#{hrActions.deleteIllness}" immediate="true"
+ onclick="if (!confirm('#{bundle['Interface.confirmDelete']}')) return false"
+ reRender=":#{parentClientId}:a4jIllness" limitToList="true">
+ <h:graphicImage url="/images/icon_delete.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['Illness.startDate']}</td>
+ <td><t:inputCalendar value="#{hrSession.edits.illness.startDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="istartdate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </t:inputCalendar><h:message for="istartdate" showDetail="true" showSummary="false"/></td>
+ <td>#{bundle['Illness.endDate']}</td>
+ <td><t:inputCalendar value="#{hrSession.edits.illness.endDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="ienddate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </t:inputCalendar><h:message for="ienddate" showDetail="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Illness.workingDays']}</td>
+ <td><h:inputText value="#{hrSession.edits.illness.workingDays}" id="iwdays"/>
+ <h:message for="iwdays" showDetail="true" showSummary="false"/></td>
+ <td>#{bundle['Illness.calendarDays']}</td>
+ <td><h:inputText value="#{hrSession.edits.illness.calendarDays}" id="icdays"/>
+ <h:message for="icdays" showDetail="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Illness.note']}</td>
+ <td colspan="3"><h:inputTextarea value="#{hrSession.edits.illness.note}" rows="7" cols="50"/> </td>
+ </tr>
+ </table>
+ <a4j:commandButton value="Done" action="#{hrActions.doneIllness}"
+ actionFor="editIllness"
+ reRender=":#{parentClientId}:a4jIllness" limitToList="true" />
+ </fieldset>
+ </s:subForm>
+ </a4j:outputPanel>
+ </a4j:region>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/illnesses.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/leaves.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/leaves.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/leaves.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,146 @@
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:s="http://myfaces.apache.org/sandbox"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <style type="text/css">
+ tr.separator td,tr.separator th {
+ border-bottom:1px solid black;
+ }
+ </style>
+ <a4j:region id="leaveRegion">
+
+ <a4j:outputPanel id="a4jLeave" layout="block">
+ <table class="list" cellpadding="5" width="100%">
+ <thead>
+ <tr>
+ <th>#{bundle['Leave.start']}</th>
+ <th>#{bundle['Leave.end']}</th>
+ <th>#{bundle['Leave.type']}</th>
+ <th>#{bundle['Leave.adminStatus']}</th>
+ <th>#{bundle['Leave.workingPercent']}</th>
+ <th>#{bundle['Leave.reason']}</th>
+ <th></th>
+ </tr>
+ </thead>
+ <t:dataList var="leave" rowIndexVar="index" value="#{leaves}">
+ <tbody class="highlight">
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td><h:outputText value="#{leave.start}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td><h:outputText value="#{leave.end}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td><h:outputText value="#{leave.type}"><f:converter converterId="SelectConverter" /></h:outputText></td>
+ <td><h:outputText value="#{leave.adminStatus}"><f:converter converterId="SelectConverter" /></h:outputText></td>
+ <td>#{leave.workingPercent}</td>
+ <td><h:outputText value="#{leave.reason}"><f:converter converterId="SelectConverter" /></h:outputText></td>
+ <td valign="top"><a4j:commandLink
+ action="#{hrActions.editLeave}" immediate="true"
+ reRender=":#{parentClientId}:a4jLeave" limitToList="true">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editLeave" />
+ <f:param name="editId" value="#{index}" />
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ </tbody>
+ </t:dataList>
+ <tbody>
+ <tr><td colspan="7" align="right">
+ <a4j:commandLink immediate="true"
+ rendered="#{hrSession.edits.leave == null}"
+ reRender=":#{parentClientId}:a4jLeave" limitToList="true"
+ action="#{hrActions.addLeave}">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editLeave" />
+ <h:graphicImage url="/images/icon_create.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ </tbody>
+ </table>
+ <s:subForm id="editLeave"
+ rendered="#{hrSession.edits.leave != null}">
+ <table style="border:none;">
+ <tr>
+ <td>#{bundle['Leave.start']}</td>
+ <td><t:inputCalendar value="#{hrSession.edits.leave.start}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy" id="lstart">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="lstart" showDetail="true" showSummary="false"/></td>
+ <td>#{bundle['Leave.end']}</td>
+ <td><t:inputCalendar value="#{hrSession.edits.leave.end}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy" id="lend">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="lend" showDetail="true" showSummary="false"/></td>
+
+ <td rowspan="5" valign="top">
+ <a4j:commandLink action="#{hrActions.deleteLeave}" immediate="true"
+ onclick="if (!confirm('#{bundle['Interface.confirmDelete']}')) return false"
+ reRender=":#{parentClientId}:a4jLeave" limitToList="true">
+ <h:graphicImage url="/images/icon_delete.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['Leave.type']}</td>
+ <td><!-- <h:selectOneMenu value="#{hrSession.edits.leave.type}" id="ltype">
+ <f:selectItems
+ value="#{hrRequest.selectEntries['Leave type']}" />
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.leave.type}" />
+ <ui:param name="id" value="ltype" />
+ <ui:param name="key" value="Leave type" />
+ </ui:include>
+ <h:message for="ltype" showDetail="true" showSummary="false"/></td>
+ <td>#{bundle['Leave.adminStatus']}</td>
+ <td><!-- <h:selectOneMenu value="#{hrSession.edits.leave.adminStatus}" id="lastatus">
+ <f:selectItems
+ value="#{hrRequest.selectEntries['Administrative state']}" />
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.leave.adminStatus}" />
+ <ui:param name="id" value="lastatus" />
+ <ui:param name="key" value="Administrative state" />
+ </ui:include>
+ <h:message for="lastatus" showDetail="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Leave.workingPercent']}</td>
+ <td colspan="3"><h:inputText value="#{hrSession.edits.leave.workingPercent}" id="lwpercent"/>
+ <h:message for="lwpercent" showDetail="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Leave.reason']}</td>
+ <td colspan="3">
+ <!-- <h:selectOneMenu
+ value="#{hrSession.edits.leave.reason}" cols="50" rows="7" id="lreason">
+ <f:selectItems value="#{hrRequest.selectEntries['Leave reason']}" />
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.leave.reason}" />
+ <ui:param name="id" value="lreason" />
+ <ui:param name="key" value="Leave reason" />
+ </ui:include>
+ <h:message for="lreason" showDetail="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="4" align="right">
+ <a4j:commandButton value="Done" action="#{hrActions.doneLeave}"
+ reRender=":#{parentClientId}:a4jLeave" limitToList="true"
+ actionFor="editLeave" />
+ </td>
+ </tr>
+ </table>
+ </s:subForm>
+ </a4j:outputPanel>
+ </a4j:region>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/leaves.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/nok.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/nok.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/nok.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,78 @@
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk">
+<ui:composition>
+ <table border="0" width="100%">
+ <tr>
+ <td><h:outputText value="#{bundle['NextOfKin.partnerName']}"/></td>
+ <td><h:inputText value="#{nok.partnerName}" /></td>
+ <td><h:outputText value="#{bundle['NextOfKin.relationship']}"/></td>
+ <td><!-- <h:selectOneMenu value="#{nok.relationship}" id="nrelation">
+ <f:selectItems value="#{hrRequest.selectEntries['Relationship']}"/>
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{nok.relationship}" />
+ <ui:param name="id" value="nrelation" />
+ <ui:param name="key" value="Relationship" />
+ </ui:include>
+ <h:message for="nrelation" showDetail="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td><h:outputText value="#{bundle['NextOfKin.marriageDate']}"/></td>
+ <td><t:inputCalendar
+ value="#{nok.marriageDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="nmdate">
+
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </t:inputCalendar><h:message for="nmdate" showDetail="true" showSummary="false"/></td>
+ <td></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td><h:outputText value="#{bundle['NextOfKin.haardToelage']}"/></td>
+ <td><h:selectBooleanCheckbox value="#{nok.haardToelage}" id="nhtage"></h:selectBooleanCheckbox>
+ <h:message for="nhtage" showDetail="true" showSummary="false"/></td>
+ <td><h:outputText value="#{bundle['NextOfKin.haardToelageDate']}"/></td>
+ <td><t:inputCalendar
+ value="#{nok.haardToelageDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="nhtdate">
+
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </t:inputCalendar><h:message for="nhtdate" showDetail="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td><h:outputText value="#{bundle['NextOfKin.standplaatsToelage']}"/></td>
+ <td><h:selectBooleanCheckbox value="#{nok.standplaatsToelage}" id="nstoelage"></h:selectBooleanCheckbox>
+ <h:message for="nstoelage" showDetail="true" showSummary="false"/></td>
+ <td><h:outputText value="#{bundle['NextOfKin.standplaatsToelageDate']}"/></td>
+ <td><t:inputCalendar
+ value="#{nok.standplaatsToelageDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="nstoeDate">
+
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </t:inputCalendar><h:message for="nstoeDate" showDetail="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td colspan="4">
+ <fieldset>
+ <legend><h:outputText value="#{bundle['NextOfKin.address']}"/></legend>
+ <ui:include src="address.xhtml">
+ <ui:param name="address" value="#{nok.address}" />
+ </ui:include>
+ </fieldset>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top"><h:outputText value="#{bundle['NextOfKin.note']}"/></td>
+ <td colspan="3">
+ <h:inputTextarea value="#{nok.note}" cols="40" rows="8" id="nnote"/>
+ <h:message for="nnote" showDetail="true" showSummary="false"/>
+ </td>
+ </tr>
+ </table>
+</ui:composition>
+</html>
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/nok.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pdata.dtd
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pdata.dtd (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pdata.dtd 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,135 @@
+<!ELEMENT data (service_code, refdate, record*)>
+<!ELEMENT service_code (#PCDATA)>
+<!ELEMENT refdate (#PCDATA)>
+ <!ELEMENT record ( abo_delijn?,
+ abo_sncb_nmbs?,
+ abo_stib_mivb?,
+ abo_tec?,
+ abs_reason_code?,
+ activity_perc?,
+ addr_box?,
+ addr_box2?,
+ addr_number?,
+ addr_number2?,
+ addr_street?,
+ addr_street2?,
+ admin_pos_code?,
+ alloc_comp?,
+ anci_pec?,
+ birthdate?,
+ contractcat_code?,
+ contractdurday?,
+ contractduryear?,
+ contract_id?,
+ cont_dur_code?,
+ cont_reason_code?,
+ country_code?,
+ country_code2?,
+ date_start_serve?,
+ disabled?,
+ disease_remain?,
+ disease_total?,
+ email?,
+ expertechel_code?,
+ family_code?,
+ fax?,
+ financesrc_code?,
+ firstname?,
+ floor?,
+ frame_code?,
+ function_code?,
+ grade_code?,
+ gsm?,
+ handicap_code?,
+ identification?,
+ integration_grant?,
+ language?,
+ lastname?,
+ local_service_code?,
+ manager_grant?,
+ nationality_code?,
+ nrnumber?,
+ nrn_etab?,
+ office?,
+ phone?,
+ postal_code?,
+ postal_code2?,
+ prepension?,
+ prime_ling_code?,
+ project_grant?,
+ refund_agdet_code?,
+ salary_scale_code?,
+ selection_code?,
+ sex?,
+ status_code?,
+ status_repl?,
+ superior_grant?,
+ taskperm_code?,
+ workplace_postal_code?
+)>
+<!ELEMENT abo_delijn (#PCDATA)>
+ <!ELEMENT abo_sncb_nmbs (#PCDATA)>
+ <!ELEMENT abo_stib_mivb (#PCDATA)>
+ <!ELEMENT abo_tec (#PCDATA)>
+ <!ELEMENT abs_reason_code (#PCDATA)>
+ <!ELEMENT activity_perc (#PCDATA)>
+ <!ELEMENT addr_box (#PCDATA)>
+ <!ELEMENT addr_box2 (#PCDATA)>
+ <!ELEMENT addr_number (#PCDATA)>
+ <!ELEMENT addr_number2 (#PCDATA)>
+ <!ELEMENT addr_street (#PCDATA)>
+ <!ELEMENT addr_street2 (#PCDATA)>
+ <!ELEMENT admin_pos_code (#PCDATA)>
+ <!ELEMENT alloc_comp (#PCDATA)>
+ <!ELEMENT anci_pec (#PCDATA)>
+ <!ELEMENT birthdate (#PCDATA)>
+ <!ELEMENT contractcat_code (#PCDATA)>
+ <!ELEMENT contractdurday (#PCDATA)>
+ <!ELEMENT contractduryear (#PCDATA)>
+ <!ELEMENT contract_id (#PCDATA)>
+ <!ELEMENT cont_dur_code (#PCDATA)>
+ <!ELEMENT cont_reason_code (#PCDATA)>
+ <!ELEMENT country_code (#PCDATA)>
+ <!ELEMENT country_code2 (#PCDATA)>
+ <!ELEMENT date_start_serve (#PCDATA)>
+ <!ELEMENT disabled (#PCDATA)>
+ <!ELEMENT disease_remain (#PCDATA)>
+ <!ELEMENT disease_total (#PCDATA)>
+ <!ELEMENT email (#PCDATA)>
+ <!ELEMENT expertechel_code (#PCDATA)>
+ <!ELEMENT family_code (#PCDATA)>
+ <!ELEMENT fax (#PCDATA)>
+ <!ELEMENT financesrc_code (#PCDATA)>
+ <!ELEMENT firstname (#PCDATA)>
+ <!ELEMENT floor (#PCDATA)>
+ <!ELEMENT frame_code (#PCDATA)>
+ <!ELEMENT function_code (#PCDATA)>
+ <!ELEMENT grade_code (#PCDATA)>
+ <!ELEMENT gsm (#PCDATA)>
+ <!ELEMENT handicap_code (#PCDATA)>
+ <!ELEMENT identification (#PCDATA)>
+ <!ELEMENT integration_grant (#PCDATA)>
+ <!ELEMENT language (#PCDATA)>
+ <!ELEMENT lastname (#PCDATA)>
+ <!ELEMENT local_service_code (#PCDATA)>
+ <!ELEMENT manager_grant (#PCDATA)>
+ <!ELEMENT nationality_code (#PCDATA)>
+ <!ELEMENT nrnumber (#PCDATA)>
+ <!ELEMENT nrn_etab (#PCDATA)>
+ <!ELEMENT office (#PCDATA)>
+ <!ELEMENT phone (#PCDATA)>
+ <!ELEMENT postal_code (#PCDATA)>
+ <!ELEMENT postal_code2 (#PCDATA)>
+ <!ELEMENT prepension (#PCDATA)>
+ <!ELEMENT prime_ling_code (#PCDATA)>
+ <!ELEMENT project_grant (#PCDATA)>
+ <!ELEMENT refund_agdet_code (#PCDATA)>
+ <!ELEMENT salary_scale_code (#PCDATA)>
+ <!ELEMENT selection_code (#PCDATA)>
+ <!ELEMENT sex (#PCDATA)>
+ <!ELEMENT status_code (#PCDATA)>
+ <!ELEMENT status_repl (#PCDATA)>
+ <!ELEMENT superior_grant (#PCDATA)>
+ <!ELEMENT taskperm_code (#PCDATA)>
+ <!ELEMENT workplace_postal_code (#PCDATA)>
+
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pdata.dtd
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pdataCheckSingle.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pdataCheckSingle.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pdataCheckSingle.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,38 @@
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
+ xmlns:s="http://myfaces.apache.org/sandbox">
+<ui:composition>
+
+ <f:loadBundle basename="resources.hr" var="bundle" />
+ <rich:column>
+ <rich:panel id="panel">
+ <f:facet name="header">#{employee.fullname}</f:facet>
+
+ <h:panelGroup rendered="#{empty employee.nationality.nationalRegisterCode}">
+ <h:outputFormat value="#{bundle['PData.error.required.nationality']}" class="warning" />
+ <br/>
+ </h:panelGroup>
+ <h:panelGroup rendered="#{empty employee.nationalRegisterNumber}">
+ <h:outputFormat value="#{bundle['PData.error.required.nrn']}" class="warning" />
+ <br/>
+ </h:panelGroup>
+ <h:panelGroup rendered="#{(employee.PData.status.pdata eq '30' or employee.PData.status.pdata eq '31' or employee.PData.status.pdata eq '32') and empty employee.current.contract.reason.pdata}">
+ <h:outputFormat value="#{bundle['PData.error.required.contractReason']}" class="warning" />
+ <br/>
+ </h:panelGroup>
+ <h:panelGroup rendered="#{empty employee.current.careerRank.grade.pdata}" id="gradeGroup1">
+ <h:outputFormat value="#{bundle['PData.error.required.grade']}" class="warning" />
+ <br/>
+ </h:panelGroup>
+ <a4j:commandLink action="none" reRender=":pdata,:pdataEdit" oncomplete="javascript:Richfaces.showModalPanel('pdataEdit')">
+ <f:param name="employeeId" value="#{employee.id}"/>
+ editer
+ </a4j:commandLink>
+ </rich:panel>
+ </rich:column>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pdataCheckSingle.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pdata_single.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pdata_single.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pdata_single.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,78 @@
+<!DOCTYPE data SYSTEM "pdata.dtd">
+<data xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk">
+<ui:composition>
+ <h:panelGroup rendered="#{(not empty employee.administrativeState) or (not empty employee.administrativeState.pdata) or (employee.administrativeState.pdata ne '?')}">
+ <record>
+
+ <abo_sncb_nmbs>#{employee.transportation.usingTrain? '1' : '0'}</abo_sncb_nmbs>
+ <abo_stib_mivb>#{employee.transportation.usingStib? '1' : '0'}</abo_stib_mivb>
+ <abo_tec>#{employee.transportation.usingTec? '1' : '0'}</abo_tec>
+ <abs_reason_code>#{(empty employee.current.leave.reason)? '0' : employee.current.leave.reason.pdata}<!-- default 0, current leave's reason code --></abs_reason_code>
+ <activity_perc>#{employee.workingPercent}</activity_perc>
+ <addr_box></addr_box>
+ <addr_box2></addr_box2>
+ <addr_number>#{employee.home.number}</addr_number>
+ <addr_number2>#{employee.home.number}</addr_number2>
+ <addr_street>#{employee.home.street}</addr_street>
+ <addr_street2>#{employee.home.street}</addr_street2>
+ <admin_pos_code>#{employee.administrativeState.pdata}</admin_pos_code>
+ <alloc_comp>#{empty employee.current.competenceMeasure.premium? '0': '1'}</alloc_comp>
+ <anci_pec>#{employee.current.wageSeniority}</anci_pec>
+ <birthdate><h:outputText value="#{employee.birthDate}"><f:convertDateTime timeZone="Europe/Paris" pattern="yyyyMMdd"/></h:outputText></birthdate>
+ <h:panelGroup rendered="#{not empty employee.current.contract}">
+ <contractcat_code>#{employee.current.contract.contractCategory.pdata}</contractcat_code>
+ <contractdurday>#{employee.current.contract.durationDays gt 0 ? employee.current.contract.durationDays : '0'}</contractdurday>
+ <contractduryear>#{employee.current.contract.durationYears gt 0 ? employee.current.contract.durationYears : '0'}</contractduryear>
+ <contract_id>#{employee.current.contract.reference}</contract_id>
+ <cont_dur_code>#{employee.current.contract.contractualType.pdata}</cont_dur_code>
+ <cont_reason_code>#{employee.current.contract.reason.pdata}</cont_reason_code>
+ </h:panelGroup>
+
+ <country_code>#{employee.home.country.nationalRegisterCode}</country_code>
+ <country_code2>#{employee.home.country.nationalRegisterCode}</country_code2>
+ <date_start_serve><h:outputText value="#{employee.inDate}"><f:convertDateTime timeZone="Europe/Paris" pattern="yyyy-MM-dd"/></h:outputText></date_start_serve>
+ <disabled>#{employee.PData.handicap.pdata!=0? '1' : '0'}</disabled>
+ <disease_remain>#{employee.sickDayInBank}</disease_remain>
+ <disease_total>#{employee.sickDayForAge}</disease_total>
+ <email>#{employee.email}</email>
+ <expertechel_code>#{employee.expertSalaryScale.pdata}</expertechel_code>
+ <family_code>#{employee.current.careerRank.functionFamily.pdata}</family_code>
+ <fax>#{employee.officeAddress.fax}</fax>
+ <financesrc_code>#{employee.current.contract.budgetSource.pdata}</financesrc_code>
+ <firstname>#{employee.firstname}</firstname>
+ <frame_code>#{not empty employee.frame ? employee.frame.pdata : '-'}</frame_code>
+ <grade_code>#{employee.current.careerRank.grade.pdata}</grade_code>
+ <gsm>#{employee.officeAddress.gsm}</gsm>
+ <handicap_code>#{employee.PData.handicap.pdata}</handicap_code>
+ <identification>#{employee.nationalRegisterNumber}<!-- HR at kmi use national register number as file id --></identification>
+ <integration_grant>#{employee.PData.integrationGrant? 1 : 0}</integration_grant>
+ <language>#{employee.language.pdata}</language>
+ <lastname>#{employee.lastname}</lastname>
+ <manager_grant>#{employee.PData.managerGrant? 1 : 0}</manager_grant>
+ <nationality_code>#{employee.nationality.nationalRegisterCode}</nationality_code>
+ <nrnumber>#{employee.nationalRegisterNumber}</nrnumber>
+ <nrn_etab>#{employee.locationUnit.pdata}</nrn_etab>
+ <office>#{employee.officeLocation}</office>
+ <phone>#{employee.officeAddress.phone}</phone>
+ <postal_code>#{employee.home.zip}</postal_code>
+ <postal_code2>#{employee.home.zip}</postal_code2>
+ <prepension><!-- TODO detect employee status = prepension --></prepension>
+ <prime_ling_code>#{employee.bilingualPremium.pdata}</prime_ling_code>
+ <project_grant>#{employee.PData.projectGrant? 1 : 0}</project_grant>
+ <refund_agdet_code>#{employee.PData.agdet.pdata}</refund_agdet_code>
+ <salary_scale_code>#{employee.current.salaryRank.scale}</salary_scale_code>
+ <selection_code>#{empty employee.PData.selorCode.pdata? 0 : employee.PData.selorCode.pdata}</selection_code>
+ <sex>#{employee.gender.pdata}</sex>
+ <status_code>#{employee.PData.status.pdata}</status_code>
+ <status_repl>#{employee.replacement.pdata}</status_repl>
+ <superior_grant>#{employee.PData.superiorGrant? 1 : 0}</superior_grant>
+ <taskperm_code>#{employee.missionDuration.pdata}</taskperm_code>
+ <workplace_postal_code>#{employee.officeAddress.zip}</workplace_postal_code>
+
+ </record>
+ </h:panelGroup>
+</ui:composition>
+</data>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pdata_single.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pictureUpload.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pictureUpload.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pictureUpload.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,16 @@
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+<ui:composition>
+
+ <h:graphicImage url="picture.xhtml" rendered="#{not empty wrapper.employee.picture}"/>
+ <h:graphicImage url="/images/avatar.png" rendered="#{empty wrapper.employee.picture}"/>
+ <rich:simpleTogglePanel switchType="client" opened="false" label="#{bundle['Employee.picture.upload.label']}">
+ #{bundle['Employee.picture.upload.details']}<br/>
+ <t:inputFileUpload value="#{wrapper.pictureUploaded}" id="upload"/><br/>
+ <t:commandButton value="#{bundle['Employee.picture.upload.button']}" action="#{wrapper.uploadPicture}"/>
+ </rich:simpleTogglePanel>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/pictureUpload.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/promotionExams.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/promotionExams.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/promotionExams.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,162 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:s="http://myfaces.apache.org/sandbox"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+
+ <style type="text/css">
+ tr.separator td,tr.separator th {
+ border-bottom:1px solid black;
+ }
+ </style>
+ <a4j:region id="promotionRegion">
+
+ <a4j:outputPanel id="a4jProm" layout="block">
+ <table class="list" width="100%">
+ <t:dataList id="promotionExams" var="exam" rowIndexVar="index"
+ value="#{promotionExams}">
+ <tbody class="highlight">
+ <tr class="#{(index%2)==0?'even':'odd'}" width="100%">
+ <td>#{bundle['PromotionExam.name']}</td>
+ <td>#{exam.name}</td>
+ <td>#{bundle['PromotionExam.reference']}</td>
+ <td>#{exam.reference}</td>
+
+ <td rowspan="5" valign="top"><a4j:commandLink
+ action="#{hrActions.editPromotionExam}" immediate="true"
+ reRender=":#{parentClientId}:a4jProm" limitToList="true">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editPromotionExam" />
+ <f:param name="editId" value="#{index}" />
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}" width="100%">
+ <td>#{bundle['PromotionExam.number']}</td>
+ <td>#{exam.number}</td>
+ <td>#{bundle['PromotionExam.level']}</td>
+ <td>#{exam.level}</td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}" width="100%">
+ <td>#{bundle['PromotionExam.inscriptionDate']}</td>
+ <td><h:outputText value="#{exam.inscriptionDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td>#{bundle['PromotionExam.examDate']}</td>
+ <td><h:outputText value="#{exam.examDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}" width="100%">
+ <td>#{bundle['PromotionExam.result']}</td>
+ <td><h:outputText value="#{exam.result}">
+ <f:converter converterId="SelectConverter" />
+ </h:outputText></td>
+ <td>#{bundle['PromotionExam.pvDate']}</td>
+ <td><h:outputText value="#{exam.pvDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}" width="100%">
+ <td>#{bundle['PromotionExam.note']}</td>
+ <td colspan="3">#{exam.note}</td>
+ </tr>
+ </tbody>
+ </t:dataList>
+ <tbody>
+ <tr>
+ <td colspan="5" align="right">
+ <a4j:commandLink immediate="true"
+ rendered="#{hrSession.edits.promotionExam == null}"
+ reRender=":#{parentClientId}:a4jProm" limitToList="true"
+ action="#{hrActions.addPromotionExam}">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editPromotionExam" />
+ <h:graphicImage url="/images/icon_create.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+
+ <s:subForm id="editPromotionExam"
+ rendered="#{hrSession.edits.promotionExam != null}">
+ <fieldset>
+ <table style="border-spacing: 0px;" width="100%">
+ <tr class="#{(index%2)==0?'even':'odd'}" width="100%">
+ <td>#{bundle['PromotionExam.name']}</td>
+ <td><h:inputText value="#{hrSession.edits.promotionExam.name}" id="pename"/>
+ <h:message for="pename" showDetails="true" showSummary="false"/></td>
+ <td>#{bundle['PromotionExam.reference']}</td>
+ <td><h:inputText value="#{hrSession.edits.promotionExam.reference}" id="peref"/>
+ <h:message for="peref" showDetails="true" showSummary="false"/></td>
+
+ <td rowspan="5" valign="top">
+ <a4j:commandLink action="#{hrActions.deletePromotionExam}" immediate="true"
+ reRender=":#{parentClientId}:a4jProm" limitToList="true"
+ onclick="if (!confirm('#{bundle['Interface.confirmDelete']}')) return false">
+ <h:graphicImage url="/images/icon_delete.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+
+ <tr class="#{(index%2)==0?'even':'odd'}" width="100%">
+ <td>#{bundle['PromotionExam.number']}</td>
+ <td><h:inputText value="#{hrSession.edits.promotionExam.number}" id="penumber"/>
+ <h:message for="penumber" showDetails="true" showSummary="false"/></td>
+ <td>#{bundle['PromotionExam.level']}</td>
+ <td><h:inputText value="#{hrSession.edits.promotionExam.level}" id="pelevel"/>
+ <h:message for="pelevel" showDetails="true" showSummary="false"/></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}" width="100%">
+ <td>#{bundle['PromotionExam.inscriptionDate']}</td>
+ <td><t:inputCalendar value="#{hrSession.edits.promotionExam.inscriptionDate}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy" id="peinsdate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="peinsdate" showDetails="true" showSummary="false"/></td>
+ <td>#{bundle['PromotionExam.examDate']}</td>
+ <td><t:inputCalendar value="#{hrSession.edits.promotionExam.examDate}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy" id="peexdate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="peexdate" showDetails="true" showSummary="false"/></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}" width="100%">
+ <td>#{bundle['PromotionExam.result']}</td>
+ <td><!-- <h:selectOneMenu value="#{hrSession.edits.promotionExam.result}" id="peresult">
+ <f:selectItems
+ value="#{hrRequest.selectEntries['Exam result']}" />
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.promotionExam.result}" />
+ <ui:param name="id" value="peresult" />
+ <ui:param name="key" value="Exam result" />
+ </ui:include>
+ <h:message for="peresult" showDetails="true" showSummary="false"/></td>
+ <td>#{bundle['PromotionExam.pvDate']}</td>
+ <td><t:inputCalendar value="#{hrSession.edits.promotionExam.pvDate}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy" id="pepvdate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="pepvdate" showDetails="true" showSummary="false"/></td>
+ </tr>
+ <tr class="#{(index%2)==0?'even':'odd'}" width="100%">
+ <td>#{bundle['PromotionExam.note']}</td>
+ <td colspan="3"><h:inputTextarea value="#{hrSession.edits.promotionExam.note}" cols="50" rows="5" id="penote"/>
+ <h:message for="penote" showDetails="true" showSummary="false"/></td>
+ </tr>
+ </table>
+ </fieldset>
+ <a4j:commandButton value="Done" action="#{hrActions.donePromotionExam}"
+ reRender=":#{parentClientId}:a4jProm" limitToList="true"
+ actionFor="editPromotionExam" />
+ </s:subForm>
+ </a4j:outputPanel>
+ </a4j:region>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/promotionExams.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/rank.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/rank.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/rank.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,36 @@
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk">
+<ui:composition>
+ <table>
+ <tr>
+ <td>Van:</td>
+ <td><t:inputDate type="date" popupCalendar="true"
+ value="#{simpleBean.date}" /></td>
+ <td>Tot:</td>
+ <td><t:inputDate type="date" popupCalendar="true"
+ value="#{simpleBean.date}" /></td>
+ </tr>
+ <tr>
+ <td>Status:</td>
+ <td><h:inputText value=""/></td>
+ <td>Rank:</td>
+ <td><h:inputText value=""/></td>
+ </tr>
+ <tr>
+ <td>Level:</td>
+ <td><h:inputText value=""/></td>
+ <td>Salary Scale:</td>
+ <td><h:inputText value=""/></td>
+ </tr>
+ <tr>
+ <td>Next Rank/Scale:</td>
+ <td><h:inputText value=""/></td>
+ <td>Date Next Rank/Scale:</td>
+ <td><t:inputDate type="date" popupCalendar="true"
+ value="#{simpleBean.date}" /></td>
+ </tr>
+ </table>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/rank.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/salaryRanks.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/salaryRanks.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/salaryRanks.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,96 @@
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:s="http://myfaces.apache.org/sandbox"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <a4j:region id="salaryRegion">
+
+ <a4j:outputPanel id="a4jSalary" layout="block">
+ <table class="list" width="100%" cellpadding="5">
+ <thead>
+ <tr>
+ <th>#{bundle['SalaryRank.scale']}</th>
+ <th>#{bundle['SalaryRank.start']}</th>
+ <th>#{bundle['SalaryRank.end']}</th>
+ <th></th>
+ </tr>
+ </thead>
+ <t:dataList var="rank" rowIndexVar="index" value="#{ranks}">
+ <tbody class="highlight">
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td><h:outputText value="#{rank.scale}"/></td>
+ <td><h:outputText value="#{rank.start}"><f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" /></h:outputText></td>
+ <td><h:outputText value="#{rank.end}"><f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" /></h:outputText></td>
+ <td><a4j:commandLink action="#{hrActions.editSalaryRank}" immediate="true"
+ reRender=":#{parentClientId}:a4jSalary" limitToList="true">
+ <f:param name="editId" value="#{index}" />
+ <f:param name="containerToReset" value="editSalaryRank" />
+ <f:param name="editId" value="#{index}" />
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none" />
+ </a4j:commandLink></td>
+ </tr>
+ </tbody>
+ </t:dataList>
+ <tbody>
+ <tr>
+ <td colspan="4" align="right"><a4j:commandLink immediate="true"
+ rendered="#{hrSession.edits.salaryRank == null}"
+ reRender=":#{parentClientId}:a4jSalary" limitToList="true"
+ action="#{hrActions.addSalaryRank}">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editSalaryRank" />
+ <h:graphicImage url="/images/icon_create.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ </tbody>
+ </table>
+ <s:subForm id="editSalaryRank"
+ rendered="#{hrSession.edits.salaryRank != null}">
+ <fieldset>
+ <table style="border:none;">
+ <tr>
+ <td>#{bundle['SalaryRank.start']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.salaryRank.start}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar></td>
+
+ <td rowspan="4" valign="top">
+ <a4j:commandLink action="#{hrActions.deleteSalaryRank}" immediate="true"
+ reRender=":#{parentClientId}:a4jSalary" limitToList="true"
+ onclick="if (!confirm('#{bundle['Interface.confirmDelete']}')) return false">
+ <h:graphicImage url="/images/icon_delete.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['SalaryRank.end']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.edits.salaryRank.end}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </t:inputCalendar></td>
+ </tr>
+ <tr>
+ <td>#{bundle['SalaryRank.scale']}</td>
+ <td><h:inputText value="#{hrSession.edits.salaryRank.scale}"/></td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <a4j:commandButton value="Done" action="#{hrActions.doneSalaryRank}"
+ reRender=":#{parentClientId}:a4jSalary" limitToList="true"
+ actionFor="editSalaryRank" />
+ </td>
+ </tr>
+ </table>
+ </fieldset>
+ </s:subForm>
+ </a4j:outputPanel>
+ </a4j:region>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/salaryRanks.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectEntry.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectEntry.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectEntry.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,41 @@
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <!--
+ this.previousSibling.style.setProperty('background-color','#202020','');
+ this.previousSibling.style.setProperty('border','1px solid red','');
+ Effect.Fade(this.previousSibling, {endcolor:'#202020'});-->
+ <style>
+ .selectEntryAction {
+ visibility:hidden;
+ }
+ .selectEntry:hover .selectEntryAction, .sehover .selectEntryAction {
+ visibility:visible;
+ }
+ </style>
+ <div class="selectEntry" onmouseover="this.className+=' sehover'" onmouseout="this.className=this.className.replace(new RegExp(' sehover\\b'), '')">
+ <h:selectOneMenu value="#{value}" id="#{id}">
+ <f:selectItems value="#{hrRequest.selectEntries[key]}"/>
+ </h:selectOneMenu>
+ <h:outputLink styleClass="selectEntryAction" target="_blank" value="#{facesContext.externalContext.requestContextPath}/faces/hr/edit/lists/selectEntriesEditor.xhtml">
+ <f:param name="editedList" value="#{key}"/>
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none;vertical-align:center;margin-right:1pt"/>
+ </h:outputLink>
+ <a4j:commandLink
+ styleClass="selectEntryAction"
+ action="refresh"
+ immediate="true"
+ reRender="#{id}"
+ limitToList="true"
+ onclick="new Effect.Highlight(this.previousSibling.previousSibling, {duration:2,startcolor:'#ffffff',endcolor:'#808080',restorecolor:'#808080'});"
+ >
+ <h:graphicImage
+ url="/images/icon_reload.gif"
+ style="border:none;vertical-align:center;margin-right:1pt"
+ />
+ </a4j:commandLink>
+ </div>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectEntry.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectFunctionClass.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectFunctionClass.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectFunctionClass.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,37 @@
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <style>
+ .selectEntryAction {
+ visibility:hidden;
+ }
+ .selectEntry:hover .selectEntryAction, .sehover .selectEntryAction {
+ visibility:visible;
+ }
+ </style>
+ <div class="selectEntry" onmouseover="this.className+=' sehover'" onmouseout="this.className=this.className.replace(new RegExp(' sehover\\b'), '')">
+ <h:selectOneMenu value="#{value}" id="#{id}">
+ <f:selectItem itemValue="[nothing]" itemLabel=""/>
+ <f:selectItems value="#{hrRequest.functionClasses}"/>
+ </h:selectOneMenu>
+ <h:outputLink styleClass="selectEntryAction" target="_blank" value="#{facesContext.externalContext.requestContextPath}/faces/hr/edit/lists/functionClassesEditor.xhtml">
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none;vertical-align:center;margin-right:1pt"/>
+ </h:outputLink>
+ <a4j:commandLink
+ styleClass="selectEntryAction"
+ action="refresh"
+ immediate="true"
+ reRender="#{id}"
+ limitToList="true"
+ onclick="new Effect.Highlight(this.previousSibling.previousSibling, {duration:2,startcolor:'#ffffff',endcolor:'#808080',restorecolor:'#808080'});"
+ >
+ <h:graphicImage
+ url="/images/icon_reload.gif"
+ style="border:none;vertical-align:center;margin-right:1pt"
+ />
+ </a4j:commandLink>
+ </div>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectFunctionClass.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectGrade.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectGrade.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectGrade.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,37 @@
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <style>
+ .selectEntryAction {
+ visibility:hidden;
+ }
+ .selectEntry:hover .selectEntryAction, .sehover .selectEntryAction {
+ visibility:visible;
+ }
+ </style>
+ <div class="selectEntry" onmouseover="this.className+=' sehover'" onmouseout="this.className=this.className.replace(new RegExp(' sehover\\b'), '')">
+ <h:selectOneMenu value="#{value}" id="#{id}">
+ <f:selectItem itemValue="[nothing]" itemLabel=""/>
+ <f:selectItems value="#{hrRequest.grades}"/>
+ </h:selectOneMenu>
+ <h:outputLink styleClass="selectEntryAction" target="_blank" value="#{facesContext.externalContext.requestContextPath}/faces/hr/edit/lists/gradesEditor.xhtml">
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none;vertical-align:center;margin-right:1pt"/>
+ </h:outputLink>
+ <a4j:commandLink
+ styleClass="selectEntryAction"
+ action="refresh"
+ immediate="true"
+ reRender="#{id}"
+ limitToList="true"
+ onclick="new Effect.Highlight(this.previousSibling.previousSibling, {duration:2,startcolor:'#ffffff',endcolor:'#808080',restorecolor:'#808080'});"
+ >
+ <h:graphicImage
+ url="/images/icon_reload.gif"
+ style="border:none;vertical-align:center;margin-right:1pt"
+ />
+ </a4j:commandLink>
+ </div>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectGrade.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectMedicalCenter.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectMedicalCenter.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectMedicalCenter.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,41 @@
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <!--
+ this.previousSibling.style.setProperty('background-color','#202020','');
+ this.previousSibling.style.setProperty('border','1px solid red','');
+ Effect.Fade(this.previousSibling, {endcolor:'#202020'});-->
+ <style>
+ .selectEntryAction {
+ visibility:hidden;
+ }
+ .selectEntry:hover .selectEntryAction, .sehover .selectEntryAction {
+ visibility:visible;
+ }
+ </style>
+ <div class="selectEntry" onmouseover="this.className+=' sehover'" onmouseout="this.className=this.className.replace(new RegExp(' sehover\\b'), '')">
+ <h:selectOneMenu value="#{value}" id="#{id}">
+ <f:selectItem itemLabel="" itemValue="[nothing]" />
+ <f:selectItems value="#{hrRequest.medicalCenters}"/>
+ </h:selectOneMenu>
+ <h:outputLink styleClass="selectEntryAction" target="_blank" value="#{facesContext.externalContext.requestContextPath}/faces/hr/edit/lists/medicalCentersEditor.xhtml">
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none;vertical-align:center;margin-right:1pt"/>
+ </h:outputLink>
+ <a4j:commandLink
+ styleClass="selectEntryAction"
+ action="refresh"
+ immediate="true"
+ reRender="#{id}"
+ limitToList="true"
+ onclick="new Effect.Highlight(this.previousSibling.previousSibling, {duration:2,startcolor:'#ffffff',endcolor:'#808080',restorecolor:'#808080'});"
+ >
+ <h:graphicImage
+ url="/images/icon_reload.gif"
+ style="border:none;vertical-align:center;margin-right:1pt"
+ />
+ </a4j:commandLink>
+ </div>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectMedicalCenter.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectSecretariat.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectSecretariat.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectSecretariat.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,41 @@
+<html xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <!--
+ this.previousSibling.style.setProperty('background-color','#202020','');
+ this.previousSibling.style.setProperty('border','1px solid red','');
+ Effect.Fade(this.previousSibling, {endcolor:'#202020'});-->
+ <style>
+ .selectEntryAction {
+ visibility:hidden;
+ }
+ .selectEntry:hover .selectEntryAction, .sehover .selectEntryAction {
+ visibility:visible;
+ }
+ </style>
+ <div class="selectEntry" onmouseover="this.className+=' sehover'" onmouseout="this.className=this.className.replace(new RegExp(' sehover\\b'), '')">
+ <h:selectOneMenu value="#{value}" id="#{id}">
+ <f:selectItem itemLabel="" itemValue="[nothing]" />
+ <f:selectItems value="#{hrRequest.secretariats}"/>
+ </h:selectOneMenu>
+ <h:outputLink styleClass="selectEntryAction" target="_blank" value="#{facesContext.externalContext.requestContextPath}/faces/hr/edit/lists/secretariatsEditor.xhtml">
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none;vertical-align:center;margin-right:1pt"/>
+ </h:outputLink>
+ <a4j:commandLink
+ styleClass="selectEntryAction"
+ action="refresh"
+ immediate="true"
+ reRender="#{id}"
+ limitToList="true"
+ onclick="new Effect.Highlight(this.previousSibling.previousSibling, {duration:2,startcolor:'#ffffff',endcolor:'#808080',restorecolor:'#808080'});"
+ >
+ <h:graphicImage
+ url="/images/icon_reload.gif"
+ style="border:none;vertical-align:center;margin-right:1pt"
+ />
+ </a4j:commandLink>
+ </div>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/selectSecretariat.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/transportation.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/transportation.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/transportation.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,108 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:s="http://myfaces.apache.org/sandbox">
+<ui:composition>
+
+ <table border="0" width="100%">
+ <tr>
+ <td><h:outputText value="#{bundle['Transportation.type']}" /></td>
+ <td><!-- <h:selectOneMenu id="type" value="#{transport.type}">
+ <f:selectItems
+ value="#{hrRequest.selectEntries['Transportation Type']}" />
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{transport.type}" />
+ <ui:param name="id" value="type" />
+ <ui:param name="key" value="Transportation Type" />
+ </ui:include>
+ </td>
+ <td>#{bundle['Transportation.bicycleAllocation']}</td>
+ <td><h:selectBooleanCheckbox value="#{transport.bicycleAllocation}" /></td>
+ </tr>
+ <tr>
+ <td><h:outputText value="#{bundle['Transportation.autoNumber']}" /></td>
+ <td><h:inputText value="#{transport.autoNumber}" id="tanumber"/>
+ <h:message for="tanumber" showDetails="true" showSummary="false"/></td>
+ <td><h:outputText value="#{bundle['Transportation.autoModel']}" /></td>
+ <td><h:inputText value="#{transport.autoModel}" id="tamodel"/>
+ <h:message for="tamodel" showDetails="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td><h:outputText
+ value="#{bundle['Transportation.driverLicenceType']}" /></td>
+ <td><!-- <h:selectOneMenu
+ value="#{transport.driverLicenceType}" id="tdlictype">
+ <f:selectItems value="#{hrRequest.selectEntries['Driver Licence']}" />
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{transport.driverLicenceType}" />
+ <ui:param name="id" value="tdlictype" />
+ <ui:param name="key" value="Driver Licence" />
+ </ui:include>
+ <h:message for="tdlictype" showDetails="true" showSummary="false"/></td>
+ <td><h:outputText
+ value="#{bundle['Transportation.driverLicenceNumber']}" /></td>
+ <td><h:inputText value="#{transport.driverLicenceNumber}" id="tdlicnumber"/>
+ <h:message for="tdlicnumber" showDetails="true" showSummary="false"/></td>
+ </tr>
+
+ <tr>
+ <td><h:outputText
+ value="#{bundle['Transportation.subscriptionType']}" /></td>
+ <td><!-- <h:selectOneMenu
+ value="#{transport.subscriptionType}" id="tsubtype">
+ <f:selectItems
+ value="#{hrRequest.selectEntries['Transportation Subscription']}" />
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{transport.subscriptionType}" />
+ <ui:param name="id" value="tsubtype" />
+ <ui:param name="key" value="Transportation Subscription" />
+ </ui:include>
+ <h:message for="tsubtype" showDetails="true" showSummary="false"/>
+ </td>
+ <td><h:outputText
+ value="#{bundle['Transportation.subscriptionDuration']}" /></td>
+ <td><h:inputText value="#{transport.subscriptionDuration}" id="tsubduration"/>
+ <h:message for="tsubduration" showDetails="true" showSummary="false"/></td>
+ </tr>
+ </table>
+ <table width="100%">
+ <tr>
+ <td colspan="9"><h:outputText
+ value="#{bundle['Transportation.transportMode']}" /></td>
+ </tr>
+ <tr>
+ <td><h:outputText value="#{bundle['Transportation.usingFeet']}" /></td>
+ <td><h:outputText
+ value="#{bundle['Transportation.usingBicycle']}" /></td>
+ <td><h:outputText value="#{bundle['Transportation.usingTrain']}" /></td>
+ <td><h:outputText value="#{bundle['Transportation.usingStib']}" /></td>
+ <td><h:outputText
+ value="#{bundle['Transportation.usingDeLijn']}" /></td>
+ <td><h:outputText value="#{bundle['Transportation.usingTec']}" /></td>
+ <td><h:outputText
+ value="#{bundle['Transportation.usingMotorcycle']}" /></td>
+ <td><h:outputText value="#{bundle['Transportation.usingCar']}" /></td>
+ <td><h:outputText
+ value="#{bundle['Transportation.usingCarSharing']}" /></td>
+ </tr>
+ <tr>
+ <td><h:selectBooleanCheckbox value="#{transport.usingFeet}" /></td>
+ <td><h:selectBooleanCheckbox value="#{transport.usingBicycle}" /></td>
+ <td><h:selectBooleanCheckbox value="#{transport.usingTrain}" /></td>
+ <td><h:selectBooleanCheckbox value="#{transport.usingStib}" /></td>
+ <td><h:selectBooleanCheckbox value="#{transport.usingDeLijn}" /></td>
+ <td><h:selectBooleanCheckbox value="#{transport.usingTec}" /></td>
+ <td><h:selectBooleanCheckbox
+ value="#{transport.usingMotorcycle}" /></td>
+ <td><h:selectBooleanCheckbox value="#{transport.usingCar}" /></td>
+ <td><h:selectBooleanCheckbox
+ value="#{transport.usingCarSharing}" /></td>
+ </tr>
+ </table>
+</ui:composition>
+</html>
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/transportation.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/workAccidents.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/workAccidents.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/workAccidents.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,303 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:s="http://myfaces.apache.org/sandbox"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
+<ui:composition>
+ <style type="text/css">
+ tr.separator td,tr.separator th {
+ border-bottom:1px solid black;
+ }
+ tr.small td, tr.small th, td.small {
+ font-size:smaller;
+ }
+ </style>
+ <a4j:region id="workAccidentRegion">
+
+ <a4j:outputPanel id="a4jWorkAccident" layout="block">
+ <table class="list" width="100%">
+ <thead>
+ <tr>
+ <th>#{bundle['WorkAccident.number']}</th>
+ <th>#{bundle['WorkAccident.type']}</th>
+ <th>#{bundle['WorkAccident.date']}</th>
+ <th>#{bundle['WorkAccident.illness']}</th>
+ <th colspan="6"></th>
+ </tr>
+ <tr class="separator small">
+ <th colspan="3"></th>
+ <th>#{bundle['Illness.kind']}</th>
+ <th>#{bundle['Illness.startDate']}</th>
+ <th>#{bundle['Illness.endDate']}</th>
+ <th>#{bundle['Illness.workingDays']}</th>
+ <th>#{bundle['Illness.calendarDays']}</th>
+ <th>#{bundle['Illness.document']}</th>
+ <th></th>
+ </tr>
+ </thead>
+ <t:dataList id="accidents" var="accident" rowIndexVar="index" value="#{accidents}">
+ <tbody class="highlight">
+ <tr class="#{(index%2)==0?'even':'odd'}">
+ <td>#{accident.number}</td>
+ <td>
+ <h:outputText value="#{accident.type}">
+ <f:converter converterId="SelectConverter" />
+ </h:outputText>
+ <h:outputText value=" (#{bundle['WorkAccident.thirdPartyCaused']})" rendered="#{accident.thirdPartyCaused}"/>
+ </td>
+ <td><h:outputText value="#{accident.date}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td class="small"><h:outputText value="#{accident.illness.kind}"><f:converter converterId="SelectConverter" /></h:outputText></td>
+ <td class="small"><h:outputText value="#{accident.illness.startDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td class="small"><h:outputText value="#{accident.illness.endDate}">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris" />
+ </h:outputText></td>
+ <td class="small">#{accident.illness.workingDays}</td>
+ <td class="small">#{accident.illness.calendarDays}</td>
+ <td class="small">[document here later...]</td>
+ <td valign="top">
+ <a4j:commandLink action="#{hrActions.editWorkAccident}"
+ immediate="true" reRender=":#{parentClientId}:a4jWorkAccident" limitToList="true" >
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset"/>
+ <f:param name="containerToReset" value="editWorkAccident" />
+ <f:param name="editId" value="#{index}" />
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ </tbody>
+ </t:dataList>
+ <tbody>
+ <tr>
+ <td colspan="9" align="right">
+ <a4j:commandLink id="addWorkAccident" immediate="true" rendered="#{hrSession.edits.workAccident == null}"
+ action="#{hrActions.addWorkAccident}" reRender="a4jWorkAccident" limitToList="true" >
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset" value="editWorkAccident" />
+ <h:graphicImage url="/images/icon_create.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ <s:subForm id="editWorkAccident" rendered="#{hrSession.edits.workAccident != null}">
+ <fieldset>
+ <table border="0" width="100%">
+ <tr>
+ <td>#{bundle['WorkAccident.number']}</td>
+ <td>
+ <h:inputText id="number" value="#{hrSession.edits.workAccident.number}"></h:inputText>
+ <h:message for="number" showDetails="true" showSummary="false"/>
+ </td>
+
+ <td rowspan="9" valign="top">
+ <a4j:commandLink action="#{hrActions.deleteWorkAccident}" immediate="true"
+ onclick="if (!confirm('#{bundle['Interface.confirmDelete']}')) return false"
+ reRender=":#{parentClientId}:a4jWorkAccident" limitToList="true" >
+ <h:graphicImage url="/images/icon_delete.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['WorkAccident.type']}</td>
+ <td>
+ <!-- <h:selectOneMenu value="#{hrSession.edits.workAccident.type}" id="watype">
+ <f:selectItems
+ value="#{hrRequest.selectEntries['Accident type']}" />
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.workAccident.type}" />
+ <ui:param name="id" value="watype" />
+ <ui:param name="key" value="Accident type" />
+ </ui:include>
+ <h:message for="watype" showDetails="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['WorkAccident.lesions']}</td>
+ <td>
+ <a4j:outputPanel id="a4jlesions" layout="block">
+ <table class="list">
+ <thead>
+ <tr>
+ <th>#{bundle['WorkAccidentLesion.type']}</th>
+ <th>#{bundle['WorkAccidentLesion.location']}</th>
+ <th></th>
+ </tr>
+ </thead>
+ <t:dataList rowIndexVar="index2" var="lesion"
+ value="#{hrSession.edits.workAccident.lesionsArray}">
+ <tbody class="highlight">
+ <tr class="#{((index2+index)%2)==0?'odd':'even'}">
+ <td>
+ <h:outputText value="#{lesion.type}">
+ <f:converter converterId="SelectConverter" />
+ </h:outputText>
+ </td>
+ <td>
+ <h:outputText value="#{lesion.location}">
+ <f:converter converterId="SelectConverter" />
+ </h:outputText>
+ </td>
+ <td><a4j:commandLink
+ action="#{hrActions.editWorkAccidentLesion}" immediate="true"
+ reRender=":#{parentClientId}:editWorkAccident:a4jlesions" limitToList="true">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset"
+ value="editWorkAccidentLesion" />
+ <f:param name="editId" value="#{index2}" />
+ <h:graphicImage url="/images/icon_edit.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ </tbody>
+ </t:dataList>
+ <tbody>
+ <tr>
+ <td colspan="2"></td>
+ <td><a4j:commandLink immediate="true"
+ rendered="#{hrSession.edits.workAccidentLesion == null}"
+ action="#{hrActions.addWorkAccidentLesion}"
+ reRender="a4jlesions" limitToList="true">
+ <f:actionListener type="be.rmi.intranet.listener.ContainerReset" />
+ <f:param name="containerToReset"
+ value="editWorkAccidentLesion" />
+ <h:graphicImage url="/images/icon_create.gif" style="border:none"/>
+ </a4j:commandLink></td>
+ </tr>
+ </tbody>
+ <s:subForm id="editWorkAccidentLesion"
+ rendered="#{hrSession.edits.workAccidentLesion != null}">
+ <tbody class="edit">
+ <tr>
+ <td>#{bundle['WorkAccidentLesion.type']}</td>
+ <td>
+ <!-- <h:selectOneMenu value="#{hrSession.edits.workAccidentLesion.type}" id="lesiontype">
+ <f:selectItems
+ value="#{hrRequest.selectEntries['Lesion type']}" />
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.workAccidentLesion.type}" />
+ <ui:param name="id" value="lesiontype" />
+ <ui:param name="key" value="Lesion type" />
+ </ui:include>
+ <h:message for="lesiontype" showDetail="true" showSummary="false"/>
+ </td>
+ <td rowspan="2" valign="top">
+ <a4j:commandLink action="#{hrActions.deleteWorkAccidentLesion}" immediate="true"
+ onclick="if (!confirm('#{bundle['Interface.confirmDelete']}')) return false"
+ reRender=":#{parentClientId}:editWorkAccident:a4jlesions" limitToList="true">
+ <h:graphicImage url="/images/icon_delete.gif" style="border:none"/>
+ </a4j:commandLink>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['WorkAccidentLesion.location']}</td>
+ <td>
+ <!-- <h:selectOneMenu value="#{hrSession.edits.workAccidentLesion.location}" id="lesionloc">
+ <f:selectItems
+ value="#{hrRequest.selectEntries['Lesion localisation']}" />
+ </h:selectOneMenu>-->
+ <ui:include src="selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.edits.workAccidentLesion.location}" />
+ <ui:param name="id" value="lesionloc" />
+ <ui:param name="key" value="Lesion localisation" />
+ </ui:include>
+ <h:message for="lesionloc" showDetail="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="3">
+ <a4j:commandButton value="Done"
+ action="#{hrActions.clearWorkAccidentLesionEdit}"
+ actionFor="editWorkAccidentLesion"
+ reRender=":#{parentClientId}:editWorkAccident:a4jlesions" limitToList="true"/>
+ </td>
+ </tr>
+ </tbody>
+ </s:subForm>
+ </table>
+
+ </a4j:outputPanel>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['WorkAccident.date']}</td>
+ <td><t:inputCalendar value="#{hrSession.edits.workAccident.date}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="wadate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </t:inputCalendar><h:message for="wadate" showDetails="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['WorkAccident.illness']}</td>
+ <td><h:selectOneMenu value="#{hrSession.edits.workAccident.illness}" id="waillness">
+ <f:selectItem itemLabel="" itemValue="[nothing]"/>
+ <f:selectItems
+ value="#{hrRequest.illnesses}" />
+ </h:selectOneMenu>
+ <a4j:commandLink action="dumb"
+ immediate="true" reRender="waillness" limitToList="true" >
+ [refresh]
+ </a4j:commandLink>
+ <h:message for="waillness" showDetails="true" showSummary="false"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['WorkAccident.thirdPartyCaused']}</td>
+ <td>
+ <h:selectBooleanCheckbox value="#{hrSession.edits.workAccident.thirdPartyCaused}" id="thirdParty"></h:selectBooleanCheckbox>
+ <h:message for="thirdParty" showDetails="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['WorkAccident.thirdPartyLastname']}</td>
+ <td>
+ <h:inputText value="#{hrSession.edits.workAccident.thirdPartyLastname}" id="thirdPartyLastname"/>
+ <h:message for="thirdPartyLastname" showDetails="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['WorkAccident.thirdPartyFirstname']}</td>
+ <td>
+ <h:inputText value="#{hrSession.edits.workAccident.thirdPartyFirstname}" id="thirdPartyFirstname"/>
+ <h:message for="thirdPartyFirstname" showDetails="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['WorkAccident.thirdPartyAddress']}</td>
+ <td>
+ <ui:include src="address.xhtml">
+ <ui:param name="address" value="#{hrSession.edits.workAccident.thirdPartyAddress}" />
+ </ui:include>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['WorkAccident.thirdPartyPolicy']}</td>
+ <td>
+ <h:inputText value="#{hrSession.edits.workAccident.thirdPartyPolicy}" id="thirdPartyPolicy"/>
+ <h:message for="thirdPartyPolicy" showDetails="true" showSummary="false"/>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['WorkAccident.thirdPartyInsurance']}</td>
+ <td>
+ <h:inputText value="#{hrSession.edits.workAccident.thirdPartyInsurance}" id="thirdPartyInsurance"/>
+ <h:message for="thirdPartyInsurance" showDetails="true" showSummary="false"/>
+ </td>
+ </tr>
+
+
+ </table>
+ <a4j:commandButton value="Done" action="#{hrActions.doneWorkAccident}"
+ actionFor="editWorkAccident" reRender=":#{parentClientId}:a4jWorkAccident" limitToList="true"/>
+ </fieldset>
+ </s:subForm>
+ </a4j:outputPanel>
+ </a4j:region>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/elements/workAccidents.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/employee.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/employee.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/employee.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,858 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:s="http://myfaces.apache.org/sandbox"
+ xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+<ui:composition template="hr-layout.xhtml">
+ <ui:param name="title" value="Edit Employee" />
+ <ui:define name="leftBar">
+ <ui:include src="../hr-actions.xhtml" />
+ </ui:define>
+ <ui:define name="content">
+ <f:loadBundle basename="resources.hr" var="bundle" />
+ <h1>Add/Edit Employee datas</h1>
+ <br />
+ <!-- <a href="javascript:showListEditor('http://localhost:8080/intranet/faces/hr/edit/lists/gradesEditor.xhtml',function(){alert('Hello');})">[?]</a><br/> -->
+ <h:form acceptcharset="UTF-8" id="employeeForm"
+ rendered="#{hrSession.employee != null}"
+ enctype="multipart/form-data">
+ <!-- <ui:include src="lists/listEditor.xhtml">
+ <ui:param name="wrapper" value="#{hrSession.employeeWrapper}" />
+ <ui:param name="parentClientId" value="employeeForm"/>
+ </ui:include> -->
+ <a4j:poll action="ajaxRefresh" id="refresh" reRender="refresh"
+ limitToList="true" interval="60000">
+ </a4j:poll>
+ <s:subForm id="mainSubForm">
+ <table>
+ <tr>
+ <td>#{bundle['Employee.firstname']}</td>
+ <td><h:inputText id="firstname"
+ value="#{hrSession.employee.firstname}" size="50" /><h:message
+ for="firstname" showDetails="true" showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.lastname']}</td>
+ <td><h:inputText id="lastname"
+ value="#{hrSession.employee.lastname}" size="50" /><h:message
+ for="lastname" showDetails="true" showSummary="false" /></td>
+ </tr>
+ </table>
+ <t:panelTabbedPane width="100%" serverSideTabSwitch="false"
+ id="tabbedPane">
+ <t:panelTab label="#{bundle['main']}" processValidators="true"
+ id="main">
+ <table border="0" width="100%">
+ <tr>
+ <td>#{bundle['Employee.language']}</td>
+ <td><!-- <h:selectOneMenu value="#{hrSession.employee.language}" id="language">
+ <f:selectItems value="#{hrRequest.selectEntries['Language']}"/>
+ </h:selectOneMenu> --> <ui:include src="elements/selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.employee.language}" />
+ <ui:param name="id" value="language" />
+ <ui:param name="key" value="Language" />
+ </ui:include> <h:message for="language" showDetail="true" showSummary="false" />
+ </td>
+ <td>#{bundle['Employee.gender']}</td>
+ <td><!-- <h:selectOneMenu value="#{hrSession.employee.gender}" id="gender">
+ <f:selectItems value="#{hrRequest.selectEntries['Gender']}"/>
+ </h:selectOneMenu> --> <ui:include src="elements/selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.employee.gender}" />
+ <ui:param name="id" value="gender" />
+ <ui:param name="key" value="Gender" />
+ </ui:include> <h:message for="gender" showDetail="true" showSummary="false" />
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.formulation']}</td>
+ <td><!-- <h:selectOneMenu value="#{hrSession.employee.formulation}" id="formulation">
+ <f:selectItems value="#{hrRequest.selectEntries['Formulation']}" />
+ </h:selectOneMenu> --> <ui:include src="elements/selectEntry.xhtml">
+ <ui:param name="value"
+ value="#{hrSession.employee.formulation}" />
+ <ui:param name="id" value="formulation" />
+ <ui:param name="key" value="Formulation" />
+ </ui:include> <h:message for="formulation" showDetail="true"
+ showSummary="false" /></td>
+ <td>#{bundle['Employee.title']}</td>
+ <td><!-- <h:selectOneMenu value="#{hrSession.employee.title}" id="title">
+ <f:selectItems value="#{hrRequest.selectEntries['Title']}" />
+ </h:selectOneMenu> --> <ui:include src="elements/selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.employee.title}" />
+ <ui:param name="id" value="title" />
+ <ui:param name="key" value="Title" />
+ </ui:include> <h:message for="title" showDetail="true" showSummary="false" />
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.section']}</td>
+ <td colspan="3"><h:selectOneMenu
+ value="#{hrSession.employee.section}" id="section">
+ <f:selectItems value="#{hrRequest.sections}" />
+ </h:selectOneMenu> <h:message for="section" showDetail="true" showSummary="false" />
+ </td>
+ </tr>
+ </table>
+ <rich:panel><f:facet name="header">#{bundle['Employee.officeAddress']}</f:facet>
+ <table border="0" width="100%">
+ <tr>
+ <td rowspan="4" style="text-align:center">#{bundle['Employee.picture']}<br />
+ <s:subForm id="pictureForm">
+ <ui:include src="elements/pictureUpload.xhtml">
+ <ui:param name="wrapper" value="#{hrSession.employeeWrapper}" />
+ <ui:param name="parentClientId"
+ value="employeeForm:mainSubForm:main:pictureForm" />
+ </ui:include>
+ </s:subForm></td>
+ <td valign="top" colspan="3"><ui:include
+ src="elements/address.xhtml">
+ <ui:param name="address"
+ value="#{hrSession.employee.officeAddress}" />
+ </ui:include></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.email']}</td>
+ <td><h:inputText value="#{hrSession.employee.email}"
+ id="email" required="true" /> <h:message for="email"
+ showDetail="true" showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.login']}</td>
+ <td><h:inputText id="login"
+ value="#{hrSession.employee.login}" style="text-align:right" />@oma.be
+ <h:message for="login" showDetail="true" showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.locationUnit']}</td>
+ <td><!-- <h:selectOneMenu value="#{hrSession.employee.locationUnit}" id="locationUnit">
+ <f:selectItems value="#{hrRequest.selectEntries['Location unit']}"/>
+ </h:selectOneMenu> --> <ui:include src="elements/selectEntry.xhtml">
+ <ui:param name="value"
+ value="#{hrSession.employee.locationUnit}" />
+ <ui:param name="id" value="locationUnit" />
+ <ui:param name="key" value="Location unit" />
+ </ui:include> <h:message for="locationUnit" showDetail="true"
+ showSummary="false" /></td>
+ </tr>
+ </table>
+ </rich:panel>
+ </t:panelTab>
+ <t:panelTab label="#{bundle['private']}" processValidators="true"
+ id="private">
+ <table width="100%" border="0">
+ <tr>
+ <td>#{bundle['Employee.birthDate']}</td>
+ <td><t:inputCalendar id="birthdate"
+ value="#{hrSession.employee.birthDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy">
+ <f:convertDateTime pattern="dd MMMM yyyy"
+ timeZone="Europe/Paris" />
+ </t:inputCalendar>
+ <h:message for="birthdate"
+ showDetail="true" showSummary="false" /></td>
+ <td>#{bundle['Employee.age']}</td>
+ <td><h:outputText value="#{hrSession.employee.age}"
+ id="age" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.birthPlace']}</td>
+ <td><h:inputText id="birthplace"
+ value="#{hrSession.employee.birthPlace}" /> <h:message
+ for="birthplace" showDetails="true" showSummary="false" /></td>
+ <td>#{bundle['Employee.nationality']}</td>
+ <td><h:selectOneMenu
+ value="#{hrSession.employee.nationality}" id="nationality">
+ <f:selectItems value="#{hrRequest.countries}" />
+ </h:selectOneMenu> <h:message for="nationality" showDetails="true"
+ showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.nationalRegisterNumber']}</td>
+ <td><h:inputText
+ value="#{hrSession.employee.nationalRegisterNumber}" id="nrn" />
+ <h:message for="nrn" showDetail="true" showSummary="false" /></td>
+ <td>#{bundle['Employee.idCardNumber']}</td>
+ <td><h:inputText value="#{hrSession.employee.idCardNumber}"
+ id="idCard" /> <h:message for="idCard" showDetail="true"
+ showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td colspan="4">
+ <rich:panel><f:facet name="header">#{bundle['Employee.home']}</f:facet>
+ <ui:include src="elements/address.xhtml">
+ <ui:param name="address" value="#{hrSession.employee.home}" />
+ </ui:include> #{bundle['Employee.lastHomeMove']} <t:inputCalendar
+ value="#{hrSession.employee.lastHomeMove}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="lastHomeMove">
+ <f:convertDateTime pattern="dd MMMM yyyy"
+ timeZone="Europe/Paris" />
+ </t:inputCalendar> <h:message for="lastHomeMove" showDetails="true"
+ showSummary="false" /></rich:panel>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.bankAccountNumber']}</td>
+ <td colspan="3"><h:inputText
+ value="#{hrSession.employee.bankAccountNumber}"
+ id="bankAccount" /> <h:message for="bankAccount"
+ showDetail="true" showSummary="false" /></td>
+ </tr>
+ </table>
+ </t:panelTab>
+ <t:panelTab label="#{bundle['administrative']}"
+ processValidators="true" id="administrative">
+ <rich:panel><f:facet name="header">Status</f:facet>
+ <table border="0">
+ <tr>
+ <td colspan="2"><!-- <h:selectOneMenu value="#{hrSession.employee.status1}" id="status1">
+ <f:selectItems value="#{hrRequest.selectEntries['Emp status 1']}"/>
+ </h:selectOneMenu> --> <ui:include
+ src="elements/selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.employee.status1}" />
+ <ui:param name="id" value="status1" />
+ <ui:param name="key" value="Emp status 1" />
+ </ui:include> <h:message for="status1" showDetail="true" showSummary="false" />
+ </td>
+ <td colspan="2"><!-- <h:selectOneMenu value="#{hrSession.employee.status2}" id="status2">
+ <f:selectItems value="#{hrRequest.selectEntries['Emp status 2']}"/>
+ </h:selectOneMenu> --> <ui:include
+ src="elements/selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.employee.status2}" />
+ <ui:param name="id" value="status2" />
+ <ui:param name="key" value="Emp status 2" />
+ </ui:include> <h:message for="status2" showDetail="true" showSummary="false" />
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['PData.status']}</td>
+ <td colspan="3"><!-- <h:selectOneMenu id="pdataStatus" value="#{hrSession.employee.PData.status}">
+ <f:selectItem itemValue="[nothing]" itemLabel=""/>
+ <f:selectItems value="#{hrRequest.selectEntries['Status']}"/>
+ </h:selectOneMenu> --> <ui:include
+ src="elements/selectEntry.xhtml">
+ <ui:param name="value"
+ value="#{hrSession.employee.PData.status}" />
+ <ui:param name="id" value="pdataStatus" />
+ <ui:param name="key" value="Status" />
+ </ui:include> <h:message for="pdataStatus" showDetail="true"
+ showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.administrativeState']}</td>
+ <td><!-- <h:selectOneMenu id="administrativeState" value="#{hrSession.employee.administrativeState}">
+ <f:selectItems value="#{hrRequest.selectEntries['Administrative state']}"/>
+ </h:selectOneMenu> --> <ui:include
+ src="elements/selectEntry.xhtml">
+ <ui:param name="value"
+ value="#{hrSession.employee.administrativeState}" />
+ <ui:param name="id" value="administrativeState" />
+ <ui:param name="key" value="Administrative state" />
+ </ui:include> <h:message for="administrativeState" showDetail="true"
+ showSummary="false" /></td>
+ <td colspan="2"><h:selectBooleanCheckbox
+ value="#{hrSession.employee.scientific}" id="scientific" />
+ #{bundle['Employee.scientific']} <h:message for="scientific"
+ showDetail="true" showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.projects']}:</td>
+ <td colspan="3">#{bundle['hint.pickList']} <s:selectManyPicklist
+ id="projects" value="#{hrSession.employee.projectsArray}">
+ <f:selectItems value="#{hrRequest.projectItems}" />
+ </s:selectManyPicklist> <h:messages for="projects" /></td>
+ </tr>
+
+ </table>
+ </rich:panel>
+ <rich:panel><f:facet name="header">#{bundle['Employee.functionGroups']}</f:facet>
+ <h:dataTable value="#{functionGroup.functionGroups}" var="fg">
+ <h:column>
+ <h:outputText value="#{fg}">
+ <f:converter converterId="NamedIdConverter" />
+ </h:outputText>
+ </h:column>
+ <h:column>
+ <h:selectOneMenu
+ value="#{hrSession.employee.functionGroups[fg]}">
+ <f:converter converterId="abstractId" />
+ <f:selectItem itemLabel="" itemValue="[nothing]"/>
+ <f:selectItems value="#{functionGroup.functionItems}" />
+ </h:selectOneMenu>
+ </h:column>
+ </h:dataTable></rich:panel>
+ <rich:panel><f:facet name="header">Rank</f:facet>
+ <table border="0">
+ <tr>
+ <td>#{bundle['Employee.workingPercent']}</td>
+ <td><h:inputText
+ value="#{hrSession.employee.workingPercent}"
+ id="workingPercent">
+ <f:validateLongRange minimum="0" maximum="100" />
+ </h:inputText> <h:message for="workingPercent" showDetail="true"
+ showSummary="false" /></td>
+ <td>#{bundle['Employee.salaryScale']}</td>
+ <td><h:inputText value="#{hrSession.employee.salaryScale}"
+ id="salaryScale" /> <h:message for="salaryScale"
+ showDetail="true" showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.expertSalaryScale']}</td>
+ <td colspan="3"><!-- <h:selectOneMenu id="expertSalaryScale" value="#{hrSession.employee.expertSalaryScale}">
+ <f:selectItems value="#{hrRequest.selectEntries['Expert salary scale']}"/>
+ </h:selectOneMenu> --> <ui:include
+ src="elements/selectEntry.xhtml">
+ <ui:param name="value"
+ value="#{hrSession.employee.expertSalaryScale}" />
+ <ui:param name="id" value="expertSalaryScale" />
+ <ui:param name="key" value="Expert salary scale" />
+ </ui:include> <h:message for="expertSalaryScale" showDetail="true"
+ showSummary="false" /></td>
+ </tr>
+ </table>
+ </rich:panel>
+ <table border="0">
+ <tr>
+ <td>#{bundle['Employee.bilingualPremium']}</td>
+ <td colspan="3"><!-- <h:selectOneMenu id="bilingualPremium" value="#{hrSession.employee.bilingualPremium}">
+ <f:selectItems value="#{hrRequest.selectEntries['Bilingual premium']}"/>
+ </h:selectOneMenu> --> <ui:include
+ src="elements/selectEntry.xhtml">
+ <ui:param name="value"
+ value="#{hrSession.employee.bilingualPremium}" />
+ <ui:param name="id" value="bilingualPremium" />
+ <ui:param name="key" value="Bilingual premium" />
+ </ui:include> <h:message for="bilingualPremium" showDetail="true"
+ showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.bilingualScale']}</td>
+ <td><h:inputText size="10" id="bilingualScale"
+ value="#{hrSession.employee.bilingualScale}" /><h:message
+ for="bilingualScale" showDetails="true" showSummary="false" /></td>
+ <td>#{bundle['Employee.missionDuration']}</td>
+ <td><!-- <h:selectOneMenu id="missionDuration" value="#{hrSession.employee.missionDuration}">
+ <f:selectItems value="#{hrRequest.selectEntries['Mission duration']}"/>
+ </h:selectOneMenu> --> <ui:include
+ src="elements/selectEntry.xhtml">
+ <ui:param name="value"
+ value="#{hrSession.employee.missionDuration}" />
+ <ui:param name="id" value="missionDuration" />
+ <ui:param name="key" value="Mission duration" />
+ </ui:include> <h:message for="missionDuration" showDetail="true"
+ showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.officeLocation']}</td>
+ <td><h:inputText id="officeLocation"
+ value="#{hrSession.employee.officeLocation}" /><h:message
+ for="officeLocation" showDetails="true" showSummary="false" /></td>
+ <td>#{bundle['Employee.officeKeyNumber']}</td>
+ <td><h:inputText id="officeKey"
+ value="#{hrSession.employee.officeKeyNumber}" /><h:message
+ for="officeKey" showDetails="true" showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.trap']}</td>
+ <td><!-- <h:selectOneMenu id="trap" value="#{hrSession.employee.trap}">
+ <f:selectItems value="#{hrRequest.selectEntries['Trap']}"/>
+ </h:selectOneMenu> --> <ui:include
+ src="elements/selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.employee.trap}" />
+ <ui:param name="id" value="trap" />
+ <ui:param name="key" value="Trap" />
+ </ui:include> <h:message for="trap" showDetail="true" showSummary="false" />
+ </td>
+ <td></td>
+ <td></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.badgeNumber']}</td>
+ <td><h:inputText id="badgeNumber"
+ value="#{hrSession.employee.badgeNumber}" /><h:message
+ for="badgeNumber" showDetails="true" showSummary="false" /></td>
+ <td>#{bundle['Employee.timeclockCode']}</td>
+ <td><h:inputText id="badgeNumber"
+ value="#{hrSession.employee.timeclockCode}" /><h:message
+ for="badgeNumber" showDetails="true" showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.adminNumber']}</td>
+ <td><h:inputText id="adminNumber"
+ value="#{hrSession.employee.adminNumber}" /><h:message
+ for="adminNumber" showDetails="true" showSummary="false" /></td>
+ <td>#{bundle['Employee.frame']}</td>
+ <td><!-- <h:selectOneMenu id="adminNumber" value="#{hrSession.employee.frame}">
+ <f:selectItems value="#{hrRequest.selectEntries['Frame']}"/>
+ </h:selectOneMenu> --> <ui:include
+ src="elements/selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.employee.frame}" />
+ <ui:param name="id" value="frame" />
+ <ui:param name="key" value="Frame" />
+ </ui:include> <h:message for="frame" showDetail="true"
+ showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.IBGBadgeNumber']}</td>
+ <td><h:inputText id="ibg"
+ value="#{hrSession.employee.IBGBadgeNumber}" /><h:message
+ for="ibg" showDetails="true" showSummary="false" /></td>
+ <td>#{bundle['Employee.dimonia']}</td>
+ <td><h:inputText id="dimonia"
+ value="#{hrSession.employee.dimonia}" /><h:message for="ibg"
+ showDetails="true" showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.phoneActivityCode']}</td>
+ <td><h:inputText id="phoneActivity"
+ value="#{hrSession.employee.phoneActivityCode}" /><h:message
+ for="phoneActivity" showDetails="true" showSummary="false" /></td>
+ <td>#{bundle['Employee.replacement']}</td>
+ <td><ui:include src="elements/selectEntry.xhtml">
+ <ui:param name="value" value="#{hrSession.employee.replacement}" />
+ <ui:param name="id" value="replacement" />
+ <ui:param name="key" value="Replacement status" />
+ </ui:include> <h:message for="replacement" showDetail="true" showSummary="false" /></td>
+ </tr>
+ <!--
+ <tr>
+ <td>#{bundle['Employee.lifeClass']}</td>
+ <td>
+ <h:selectOneMenu value="#{hrSession.employee.lifeClass}" id="lifeClass">
+ <f:selectItems value="#{hrRequest.lifeClasses}"/>
+ <f:converter converterId="NullableLong" />
+ </h:selectOneMenu>
+ <h:message for="lifeClass" showDetails="true" showSummary="false"/></td>
+ <td>#{bundle['Employee.lifeClassDate']}</td>
+ <td><t:inputCalendar value="#{hrSession.employee.lifeClassDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="lifeclassDate">
+ <f:convertDateTime pattern="dd MMMM yyyy" timeZone="Europe/Paris"/>
+ </t:inputCalendar><h:message for="lifeclassDate" showDetails="true" showSummary="false"/></td>
+ </tr>-->
+ <tr>
+ <td>#{bundle['Employee.lifeClassDate18']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.employee.lifeClassDate18}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy"
+ id="lifeclassDate18">
+ <f:convertDateTime pattern="dd MMMM yyyy"
+ timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="lifeclassDate18" showDetails="true"
+ showSummary="false" /></td>
+ <td>#{bundle['Employee.lifeClassDate23']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.employee.lifeClassDate23}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy"
+ id="lifeclassDate23">
+ <f:convertDateTime pattern="dd MMMM yyyy"
+ timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="lifeclassDate23" showDetails="true"
+ showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.lifeClassDate20']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.employee.lifeClassDate20}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy"
+ id="lifeclassDate20">
+ <f:convertDateTime pattern="dd MMMM yyyy"
+ timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="lifeclassDate20" showDetails="true"
+ showSummary="false" /></td>
+ <td>#{bundle['Employee.lifeClassDate24']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.employee.lifeClassDate24}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy"
+ id="lifeclassDate24">
+ <f:convertDateTime pattern="dd MMMM yyyy"
+ timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="lifeclassDate24" showDetails="true"
+ showSummary="false" /></td>
+ </tr>
+
+ <tr>
+ <td>#{bundle['Employee.lifeClassDate21']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.employee.lifeClassDate21}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy"
+ id="lifeclassDate21">
+ <f:convertDateTime pattern="dd MMMM yyyy"
+ timeZone="Europe/Paris" />
+ </t:inputCalendar><h:message for="lifeclassDate21" showDetails="true"
+ showSummary="false" /></td>
+ <td colspan="2"></td>
+ </tr>
+ <tr>
+ <td colspan="4"><ui:include src="elements/diplomas.xhtml">
+ <ui:param name="parentClientId"
+ value="employeeForm:mainSubForm:administrative" />
+ </ui:include></td>
+ </tr>
+ <tr>
+ <td colspan="4">
+ <rich:panel><f:facet name="header">#{bundle['Employee.PData']}</f:facet>
+ <table width="100%">
+ <tr>
+ <td>#{bundle['PData.selorCode']}</td>
+ <td colspan="3">
+ <ui:include
+ src="elements/selectEntry.xhtml">
+ <ui:param name="value"
+ value="#{hrSession.employee.PData.selorCode}" />
+ <ui:param name="id" value="selorCode" />
+ <ui:param name="key" value="Selor code" />
+ </ui:include> <h:message for="selorCode" showDetail="true"
+ showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['PData.handicap']}</td>
+ <td colspan="3">
+ <ui:include
+ src="elements/selectEntry.xhtml">
+ <ui:param name="value"
+ value="#{hrSession.employee.PData.handicap}" />
+ <ui:param name="id" value="handicap" />
+ <ui:param name="key" value="Handicap" />
+ </ui:include> <h:message for="handicap" showDetail="true"
+ showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['PData.agdet']}</td>
+ <td colspan="3">
+ <ui:include
+ src="elements/selectEntry.xhtml">
+ <ui:param name="value"
+ value="#{hrSession.employee.PData.agdet}" />
+ <ui:param name="id" value="agdet" />
+ <ui:param name="key" value="Agdet" />
+ </ui:include> <h:message for="agdet" showDetail="true" showSummary="false" />
+ </td>
+ </tr>
+ <tr>
+ <td><h:selectBooleanCheckbox value="#{hrSession.employee.PData.managerGrant}" id="managerGrant"/>#{bundle['PData.managerGrant']}?</td>
+ <td><h:selectBooleanCheckbox value="#{hrSession.employee.PData.superiorGrant}" id="superiorGrant"/>#{bundle['PData.superiorGrant']}?</td>
+ <td><h:selectBooleanCheckbox value="#{hrSession.employee.PData.integrationGrant}" id="integrationGrant"/>#{bundle['PData.integrationGrant']}?</td>
+ <td><h:selectBooleanCheckbox value="#{hrSession.employee.PData.projectGrant}" id="projectGrant"/>#{bundle['PData.projectGrant']}?</td>
+ </tr>
+ </table>
+ </rich:panel>
+ </td>
+ </tr>
+ <tr>
+ <td valign="top">#{bundle['Employee.note']}</td>
+ <td colspan="3"><h:inputTextarea id="note"
+ value="#{hrSession.employee.note}" rows="7" cols="80" /><h:message
+ for="note" showDetails="true" showSummary="false" /></td>
+ </tr>
+ </table>
+ </t:panelTab>
+ <t:panelTab label="#{bundle['family']}" processValidators="true"
+ id="family">
+ #{bundle['Employee.maritalStatus']}
+ <!-- <h:selectOneMenu id="maritalStatus" value="#{hrSession.employee.maritalStatus}">
+ <f:selectItems value="#{hrRequest.selectEntries['Marital status']}"/>
+ </h:selectOneMenu> -->
+ <ui:include src="elements/selectEntry.xhtml">
+ <ui:param name="value"
+ value="#{hrSession.employee.maritalStatus}" />
+ <ui:param name="id" value="maritalStatus" />
+ <ui:param name="key" value="Marital status" />
+ </ui:include>
+ <h:message for="maritalStatus" showDetail="true"
+ showSummary="false" />
+ <br />
+ <rich:panel><f:facet name="header">#{bundle['Employee.nextOfKin']}</f:facet>
+ <ui:include src="elements/nok.xhtml">
+ <ui:param name="nok" value="#{hrSession.employee.nextOfKin}" />
+ </ui:include></rich:panel>
+ <!-- derived Hoeveel kinderen? <h:inputText value="" size="2" disabled="true"/><br/> -->
+ <ui:include src="elements/childs.xhtml">
+ <ui:param name="parentClientId"
+ value="employeeForm:mainSubForm:family" />
+ </ui:include>
+ <!-- <t:inputHtml addKupuLogo="false" value="" allowEditSource="false" allowExternalLinks="false"></t:inputHtml> -->
+ </t:panelTab>
+ <t:panelTab label="#{bundle['Employee.transportation']}"
+ processValidators="true" id="transportation">
+ <h:selectBooleanCheckbox id="driveAuthorization"
+ value="#{hrSession.employee.driveAuthorization}" />
+ #{bundle['Employee.driveAuthorization']}
+ <h:message for="driveAuthorization" showDetail="true"
+ showSummary="false" />
+ <ui:include src="elements/transportation.xhtml">
+ <ui:param name="transport"
+ value="#{hrSession.employee.transportation}" />
+ </ui:include>
+ </t:panelTab>
+ <t:panelTab label="#{bundle['leaves']}" processValidators="true"
+ id="leaves">
+ <t:panelTabbedPane id="panel" serverSideTabSwitch="false"
+ style="width:100%">
+ <t:panelTab label="#{bundle['Employee.leaves']}"
+ processValidators="true" id="leaves">
+ <ui:include src="elements/leaves.xhtml">
+ <ui:param name="leaves"
+ value="#{hrSession.employee.leavesArray}" />
+ <ui:param name="parentClientId"
+ value="employeeForm:mainSubForm:leaves:leaves" />
+ </ui:include>
+ </t:panelTab>
+ <t:panelTab label="#{bundle['Employee.illnesses']}"
+ processValidators="true" id="illnesses">
+ <table>
+ <tr>
+ <td>#{bundle['Employee.medicalNumber']}</td>
+ <td><h:inputText
+ value="#{hrSession.employee.medicalNumber}" /></td>
+ <td>#{bundle['Employee.medicalCenter']}</td>
+ <td>
+ <ui:include src="elements/selectMedicalCenter.xhtml">
+ <ui:param name="id" value="medicalCenter"/>
+ <ui:param name="value" value="#{hrSession.employee.medicalCenter}"/>
+ </ui:include>
+ <h:message for="medicalCenter" showDetail="true"
+ showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.sickDayInBank']}</td>
+ <td><h:inputText
+ value="#{hrSession.employee.sickDayInBank}"
+ id="sickDayInBank" /> <h:message for="sickDayInBank"
+ showDetail="true" showSummary="false" /></td>
+ <td>#{bundle['Employee.sickDayForAge']}</td>
+ <td><h:inputText id="sickDayForAge"
+ value="#{hrSession.employee.sickDayForAge}" /> <h:message
+ for="sickDayForAge" showDetail="true" showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.sickDayYearSpent']}</td>
+ <td><h:inputText id="sickDayYearSpent"
+ value="#{hrSession.employee.sickDayYearSpent}" /> <h:message
+ for="sickDayYearSpent" showDetail="true" showSummary="false" />
+ </td>
+ <td>#{bundle['Employee.sickDayYearLeft']}</td>
+ <td><h:inputText id="sickDayYearLeft"
+ value="#{hrSession.employee.sickDayYearLeft}" /> <h:message
+ for="sickDayYearLeft" showDetail="true" showSummary="false" />
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.illnessContact1']}</td>
+ <td>
+ <ui:include src="elements/selectSecretariat.xhtml">
+ <ui:param name="id" value="illness1"/>
+ <ui:param name="value" value="#{hrSession.employee.illnessContact1}"/>
+ </ui:include><h:message for="illness1" showDetail="true"
+ showSummary="false" /></td>
+ <td>#{bundle['Employee.illnessContact2']}</td>
+ <td>
+ <ui:include src="elements/selectSecretariat.xhtml">
+ <ui:param name="id" value="illness2"/>
+ <ui:param name="value" value="#{hrSession.employee.illnessContact2}"/>
+ </ui:include>
+ <h:message for="illness2" showDetail="true"
+ showSummary="false" /></td>
+ </tr>
+ </table>
+ <rich:panel><f:facet name="header">#{bundle['Employee.illnesses']}</f:facet>
+ <ui:include src="elements/illnesses.xhtml">
+ <ui:param name="illnesses"
+ value="#{hrSession.employee.illnessesArray}" />
+ <ui:param name="parentClientId"
+ value="employeeForm:mainSubForm:leaves:illnesses" />
+ </ui:include></rich:panel>
+ </t:panelTab>
+ <t:panelTab label="#{bundle['Employee.workAccidents']}"
+ processValidators="true" id="workAccidents">
+ <ui:include src="elements/workAccidents.xhtml">
+ <ui:param name="accidents"
+ value="#{hrSession.employee.workAccidentsArray}" />
+ <ui:param name="parentClientId"
+ value="employeeForm:mainSubForm:leaves:workAccidents" />
+ </ui:include>
+ </t:panelTab>
+ </t:panelTabbedPane>
+ </t:panelTab>
+ <t:panelTab label="#{bundle['Employee.contracts']}"
+ processValidators="true" id="contracts">
+ <ui:include src="elements/contracts.xhtml">
+ <ui:param name="contracts"
+ value="#{hrSession.employee.contractsArray}" />
+ <ui:param name="parentClientId"
+ value="employeeForm:mainSubForm:contracts" />
+ </ui:include>
+ </t:panelTab>
+ <t:panelTab label="#{bundle['Employee.cumuls']}"
+ processValidators="true" id="cumuls">
+ <ui:include src="elements/cumuls.xhtml">
+ <ui:param name="cumuls" value="#{hrSession.employee.cumulsArray}" />
+ <ui:param name="parentClientId"
+ value="employeeForm:mainSubForm:cumuls" />
+ </ui:include>
+ </t:panelTab>
+ <t:panelTab label="#{bundle['career']}" processValidators="true"
+ id="career">
+ <table width="100%">
+ <tr>
+ <td>#{bundle['Employee.firstJobDate']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.employee.firstJobDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="firstJobDate">
+ <f:convertDateTime pattern="dd MMMM yyyy"
+ timeZone="Europe/Paris" />
+ </t:inputCalendar> <h:message for="firstJobDate" showDetail="true"
+ showSummary="false" /></td>
+ <td>#{bundle['Employee.workedOnPatrimonium']}</td>
+ <td><h:selectBooleanCheckbox id="patrimonium"
+ value="#{hrSession.employee.workedOnPatrimonium}" /> <h:message
+ for="patrimonium" showDetail="true" showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.inDate']}</td>
+ <td><t:inputCalendar value="#{hrSession.employee.inDate}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy"
+ id="inDate">
+ <f:convertDateTime pattern="dd MMMM yyyy"
+ timeZone="Europe/Paris" />
+ </t:inputCalendar> <h:message for="inDate" showDetail="true" showSummary="false" />
+ </td>
+ <td>#{bundle['Employee.outDate']}</td>
+ <td><t:inputCalendar value="#{hrSession.employee.outDate}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy"
+ id="outDate">
+ <f:convertDateTime pattern="dd MMMM yyyy"
+ timeZone="Europe/Paris" />
+ </t:inputCalendar> <h:message for="outDate" showDetail="true" showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.salaryInDate']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.employee.salaryInDate}" popupTodayString=""
+ renderAsPopup="true" renderPopupButtonAsImage="true"
+ popupDateFormat="dd MMMM yyyy" id="salaryInDate">
+ <f:convertDateTime pattern="dd MMMM yyyy"
+ timeZone="Europe/Paris" />
+ </t:inputCalendar> <h:message for="salaryInDate" showDetail="true"
+ showSummary="false" /></td>
+ <td>#{bundle['Employee.nominationDate']}</td>
+ <td><t:inputCalendar
+ value="#{hrSession.employee.nominationDate}"
+ popupTodayString="" renderAsPopup="true"
+ renderPopupButtonAsImage="true" popupDateFormat="dd MMMM yyyy"
+ id="nominationDate">
+ <f:convertDateTime pattern="dd MMMM yyyy"
+ timeZone="Europe/Paris" />
+ </t:inputCalendar> <h:message for="nominationDate" showDetail="true"
+ showSummary="false" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['Employee.rankBeforeReform']}</td>
+ <td><h:inputText
+ value="#{hrSession.employee.rankBeforeReform}" id="oldRank" />
+ <h:message for="oldRank" showDetail="true" showSummary="false" /></td>
+ <td>#{bundle['Employee.newRank']}</td>
+ <td><h:inputText value="#{hrSession.employee.newRank}"
+ id="newRank" /> <h:message for="newRank" showDetail="true"
+ showSummary="false" /></td>
+ </tr>
+ </table>
+ <t:panelTabbedPane id="ranks" serverSideTabSwitch="false"
+ style="width:100%">
+
+ <t:panelTab label="#{bundle['Employee.careerRanks']}"
+ processValidators="true" id="rank">
+ <ui:include src="elements/careerRanks.xhtml">
+ <ui:param name="ranks"
+ value="#{hrSession.employee.careerRanksArray}" />
+ <ui:param name="parentClientId"
+ value="employeeForm:mainSubForm:career:rank" />
+ </ui:include>
+ </t:panelTab>
+ <t:panelTab label="#{bundle['Employee.salaryRanks']}"
+ processValidators="true" id="salary">
+ <ui:include src="elements/salaryRanks.xhtml">
+ <ui:param name="ranks"
+ value="#{hrSession.employee.salaryRanksArray}" />
+ <ui:param name="parentClientId"
+ value="employeeForm:mainSubForm:career:salary" />
+ </ui:include>
+ </t:panelTab>
+ <t:panelTab label="#{bundle['Employee.developmentCircles']}"
+ processValidators="true" id="circles">
+ <ui:include src="elements/developmentCircles.xhtml">
+ <ui:param name="developmentCircles"
+ value="#{hrSession.employee.developmentCirclesArray}" />
+ <ui:param name="parentClientId"
+ value="employeeForm:mainSubForm:career:circles" />
+ </ui:include>
+ </t:panelTab>
+
+ <t:panelTab label="#{bundle['Employee.decorations']}"
+ processValidators="true" id="decoration">
+ <ui:include src="elements/decorations.xhtml">
+ <ui:param name="decorations"
+ value="#{hrSession.employee.decorationsArray}" />
+ <ui:param name="parentClientId"
+ value="employeeForm:mainSubForm:career:decoration" />
+ </ui:include>
+ </t:panelTab>
+ </t:panelTabbedPane>
+ </t:panelTab>
+ <t:panelTab label="#{bundle['knowledge']}" id="know">
+ <t:panelTabbedPane width="100%" serverSideTabSwitch="false">
+ <t:panelTab label="#{bundle['Employee.competenceMeasures']}"
+ processValidators="true" id="compMeasure">
+ <ui:include src="elements/competenceMeasures.xhtml">
+ <ui:param name="competenceMeasures"
+ value="#{hrSession.employee.competenceMeasuresArray}" />
+ <ui:param name="parentClientId"
+ value="employeeForm:mainSubForm:know:compMeasure" />
+ </ui:include>
+ </t:panelTab>
+ <t:panelTab label="#{bundle['Employee.promotionExams']}"
+ processValidators="true" id="prom">
+ <ui:include src="elements/promotionExams.xhtml">
+ <ui:param name="promotionExams"
+ value="#{hrSession.employee.promotionExamsArray}" />
+ <ui:param name="parentClientId"
+ value="employeeForm:mainSubForm:know:prom" />
+ </ui:include>
+ </t:panelTab>
+ <t:panelTab label="#{bundle['Employee.formations']}"
+ processValidators="true" id="formation">
+ <ui:include src="elements/formations.xhtml">
+ <ui:param name="formations"
+ value="#{hrSession.employee.formations}" />
+ <ui:param name="parentClientId"
+ value="employeeForm:mainSubForm:know:formation" />
+ </ui:include>
+ </t:panelTab>
+ </t:panelTabbedPane>
+ </t:panelTab>
+ </t:panelTabbedPane>
+ <rich:toolBar itemSeparator="disc">
+ <h:commandLink action="#{hrActions.saveEmployee}" value="#{bundle['actions.save']}"/>
+ <h:commandLink action="#{hrActions.storeEmployee}" value="#{bundle['actions.saveAndContinue']}"/>
+ <h:commandLink action="validate" value="#{bundle['actions.validate']}"/>
+ <h:commandLink action="#{hrActions.resetEmployee}" immediate="true" value="#{bundle['actions.cancel']}"/>
+ </rich:toolBar>
+ </s:subForm>
+ <h:messages showSummary="false" showDetail="true" />
+ </h:form>
+ <a4j:log level="WARN" popup="false" width="400" height="200" />
+ </ui:define>
+</ui:composition>
+</html>
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/employee.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/done.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/done.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/done.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,13 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+<head>
+<title>Editor</title>
+</head>
+<body style="text-align:center">
+Done
+</body>
+</html>
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/done.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/functionClassesEditor.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/functionClassesEditor.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/functionClassesEditor.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,174 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+<head>
+<title>Editor</title>
+</head>
+<body style="font-size:smaller;">
+<f:view locale="#{strutsSession.locale}">
+ <f:loadBundle basename="resources.hr" var="bundle" />
+ <h:form id="addFunctionClass" acceptcharset="UTF-8" >
+ <table style="text-align:left;margin-left:10pt;margin-right:auto">
+ <tr>
+ <td colspan="2">#{bundle['functionClassesEditor.add.title']}</td>
+ </tr>
+ <tr>
+ <td>#{bundle['functionClassesEditor.code']}</td>
+ <td><h:inputText style="font-size:smaller" value="#{functionClassesEditor.newFunctionClass.code}"
+ size="8" required="true"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['functionClassesEditor.nameFr']}</td>
+ <td><h:inputText style="font-size:smaller" value="#{functionClassesEditor.newFunctionClass.nameFr}"
+ size="60" required="true" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['functionClassesEditor.nameNl']}</td>
+ <td><h:inputText style="font-size:smaller" value="#{functionClassesEditor.newFunctionClass.nameNl}"
+ size="60" required="true"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['functionClassesEditor.class']}</td>
+ <td><h:inputText style="font-size:smaller" value="#{functionClassesEditor.newFunctionClass.functionClass}"
+ size="8" required="true" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['functionClassesEditor.careerPath']}</td>
+ <td>
+ <ui:include src="../elements/selectEntry.xhtml">
+ <ui:param name="value" value="#{functionClassesEditor.newFunctionClass.careerPath}" />
+ <ui:param name="id" value="careerPath" />
+ <ui:param name="key" value="Career path" />
+ </ui:include><h:message for="careerPath"/>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['functionClassesEditor.organisation']}</td>
+ <td><h:inputText style="font-size:smaller" value="#{functionClassesEditor.newFunctionClass.organisation}"
+ required="true" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['functionClassesEditor.active']}</td>
+ <td><h:selectBooleanCheckbox
+ value="#{functionClassesEditor.newFunctionClass.active}" required="true"/></td>
+ </tr>
+ <tr>
+ <td colspan="2"><h:commandButton
+ action="#{functionClassesEditor.addFunctionClass}" value="#{bundle['functionClassesEditor.add.button']}" /></td>
+ </tr>
+ </table>
+ </h:form>
+ <hr/>
+ <h:messages showDetail="true" showSummary="false"/>
+ <h:form id="filter" acceptcharset="UTF-8" >
+ #{bundle['functionClassesEditor.filter.title']}
+ <table>
+ <tr>
+ <td>#{bundle['functionClassesEditor.filter.lines']}</td>
+ <td><rich:inputNumberSlider minValue="10" maxValue="200"
+ value="#{functionClassesEditor.rows}" required="true" step="5" enableManualInput="false"/></td>
+ <td colspan="2">
+ <h:selectOneMenu id="active" value="#{functionClassesEditor.filter.active}">
+ <f:selectItem itemLabel="#{bundle['functionClassesEditor.filter.active.all']}" itemValue="#{0}"/>
+ <f:selectItem itemLabel="#{bundle['functionClassesEditor.filter.active.true']}" itemValue="#{1}"/>
+ <f:selectItem itemLabel="#{bundle['functionClassesEditor.filter.active.false']}" itemValue="#{-1}"/>
+ </h:selectOneMenu>
+ </td>
+ <td>#{bundle['functionClassesEditor.filter.careerPath']}</td>
+ <td><ui:include src="../elements/selectEntry.xhtml">
+ <ui:param name="value" value="#{functionClassesEditor.filter.careerPath}" />
+ <ui:param name="id" value="careerPath" />
+ <ui:param name="key" value="Career path" />
+ </ui:include>
+ </td>
+ </tr>
+ <tr>
+ <td>#{bundle['functionClassesEditor.filter.code']}</td><td><h:inputText id="code" value="#{functionClassesEditor.filter.code}" size="8"/></td>
+ <td>#{bundle['functionClassesEditor.filter.name']}</td><td><h:inputText id="name" value="#{functionClassesEditor.filter.name}" size="20"/></td>
+ <td colspan="2"><h:commandButton action="update" value="#{bundle['functionClassesEditor.filter.button']}"></h:commandButton></td>
+ </tr>
+ </table>
+ </h:form>
+ <hr/>
+ <h:form id="updateFunctionClasses" acceptcharset="UTF-8" >
+ <rich:dataTable value="#{functionClassesEditor.functionClasses}"
+ rows="#{functionClassesEditor.rows}" var="functionClass" id="functionClassList">
+ <f:facet name="header">
+ <rich:columnGroup>
+ <rich:column rowspan="2">#{bundle['functionClassesEditor.active']}</rich:column>
+ <rich:column>#{bundle['functionClassesEditor.code']}</rich:column>
+ <rich:column>#{bundle['functionClassesEditor.class']}</rich:column>
+ <rich:column>#{bundle['functionClassesEditor.organisation']}</rich:column>
+ <rich:column>#{bundle['functionClassesEditor.nameFr']}</rich:column>
+ <rich:column rowspan="2">Delete</rich:column>
+ <rich:column colspan="3" breakBefore="true">#{bundle['functionClassesEditor.careerPath']}</rich:column>
+ <rich:column>#{bundle['functionClassesEditor.nameNl']}</rich:column>
+ </rich:columnGroup>
+ </f:facet>
+ <rich:column rowspan="2">
+ <h:selectBooleanCheckbox value="#{functionClass.active}" />
+ </rich:column>
+ <rich:column>
+ <h:inputText value="#{functionClass.code}" size="8" />
+ </rich:column>
+ <rich:column>
+ <h:inputText value="#{functionClass.functionClass}" size="8" />
+ </rich:column>
+ <rich:column>
+ <h:inputText value="#{functionClass.organisation}"/>
+ </rich:column>
+ <rich:column>
+ <h:inputText value="#{functionClass.nameFr}" size="80" />
+ </rich:column>
+ <rich:column rowspan="2">
+ <rich:spacer />
+ </rich:column>
+ <rich:column colspan="3" breakBefore="true">
+ <ui:include src="../elements/selectEntry.xhtml">
+ <ui:param name="value" value="#{functionClass.careerPath}" />
+ <ui:param name="id" value="careerPath" />
+ <ui:param name="key" value="Career path" />
+ </ui:include>
+ </rich:column>
+ <rich:column>
+ <h:inputText value="#{functionClass.nameNl}" size="80" />
+ </rich:column>
+ </rich:dataTable>
+
+ <div style="font-size:smaller;text-align:center"><t:dataScroller
+ id="scroll_1" style="margin-left:auto;margin-right:auto"
+ for="functionClassList" fastStep="10" pageCountVar="pageCount"
+ pageIndexVar="pageIndex" styleClass="scroller" paginator="true"
+ paginatorMaxPages="18" paginatorTableClass="paginator"
+ paginatorActiveColumnStyle="font-weight:bold;" immediate="true">
+ <f:facet name="first">
+ <t:graphicImage url="/images/arrows/arrow-first.gif" border="1" />
+ </f:facet>
+ <f:facet name="last">
+ <t:graphicImage url="/images/arrows/arrow-last.gif" border="1" />
+ </f:facet>
+ <f:facet name="previous">
+ <t:graphicImage url="/images/arrows/arrow-previous.gif" border="1" />
+ </f:facet>
+ <f:facet name="next">
+ <t:graphicImage url="/images/arrows/arrow-next.gif" border="1" />
+ </f:facet>
+ <f:facet name="fastforward">
+ <t:graphicImage url="/images/arrows/arrow-ff.gif" border="1" />
+ </f:facet>
+ <f:facet name="fastrewind">
+ <t:graphicImage url="/images/arrows/arrow-fr.gif" border="1" />
+ </f:facet>
+ <h:outputFormat value="#{bundle['functionClassesEditor.pageNumber']}">
+ <f:param value=" #{pageIndex}" />
+ <f:param value=" #{pageCount}" />
+ </h:outputFormat>
+ </t:dataScroller></div>
+ <h:commandButton action="#{functionClassesEditor.saveFunctionClasses}" value="#{bundle['functionClassesEditor.save.button']}"/>
+ </h:form>
+</f:view>
+</body>
+</html>
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/functionClassesEditor.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/gradesEditor.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/gradesEditor.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/gradesEditor.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,138 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+<head>
+<title>Editor</title>
+</head>
+<body style="font-size:smaller;">
+<f:view locale="#{strutsSession.locale}">
+ <f:loadBundle basename="resources.hr" var="bundle" />
+ <h:form id="addGrade" acceptcharset="UTF-8" >
+ <table style="text-align:left;margin-left:10pt;margin-right:auto">
+ <tr>
+ <td colspan="2">#{bundle['gradesEditor.add.title']}</td>
+ </tr>
+ <tr>
+ <td>#{bundle['gradesEditor.pdata']}</td>
+ <td><h:inputText style="font-size:smaller" value="#{gradesEditor.newGrade.pdata}"
+ size="8" required="true"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['gradesEditor.level']}</td>
+ <td><h:inputText style="font-size:smaller" value="#{gradesEditor.newGrade.level}"
+ size="2" required="true" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['gradesEditor.active']}</td>
+ <td><h:selectBooleanCheckbox
+ value="#{gradesEditor.newGrade.active}" required="true"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['gradesEditor.nameFr']}</td>
+ <td><h:inputText style="font-size:smaller" value="#{gradesEditor.newGrade.nameFr}"
+ size="60" required="true" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['gradesEditor.nameNl']}</td>
+ <td><h:inputText style="font-size:smaller" value="#{gradesEditor.newGrade.nameNl}"
+ size="60" required="true"/></td>
+ </tr>
+ <tr>
+ <td colspan="2"><h:commandButton
+ action="#{gradesEditor.addGrade}" value="#{bundle['gradesEditor.add.button']}" /></td>
+ </tr>
+ </table>
+ </h:form>
+ <hr/>
+ <h:messages showDetail="true" showSummary="false"/>
+ <h:form id="filter" acceptcharset="UTF-8" >
+ #{bundle['gradesEditor.filter.title']}
+ <table>
+ <tr>
+ <td>#{bundle['gradesEditor.filter.lines']}</td>
+ <td><rich:inputNumberSlider minValue="10" maxValue="200"
+ value="#{gradesEditor.rows}" required="true" step="5" enableManualInput="false"/></td>
+ <td>
+ <h:selectOneMenu id="active" value="#{gradesEditor.filter.active}">
+ <f:selectItem itemLabel="#{bundle['gradesEditor.filter.active.all']}" itemValue="#{0}"/>
+ <f:selectItem itemLabel="#{bundle['gradesEditor.filter.active.true']}" itemValue="#{1}"/>
+ <f:selectItem itemLabel="#{bundle['gradesEditor.filter.active.false']}" itemValue="#{-1}"/>
+ </h:selectOneMenu>
+ </td>
+ <td>#{bundle['gradesEditor.filter.pdata']}<h:inputText id="pdata" value="#{gradesEditor.filter.pdata}" size="8"/></td>
+ <td>#{bundle['gradesEditor.filter.name']}<h:inputText id="name" value="#{gradesEditor.filter.name}" size="20"/></td>
+ <td><h:commandButton action="update" value="#{bundle['gradesEditor.filter.button']}"></h:commandButton></td>
+ </tr>
+ </table>
+ </h:form>
+ <hr/>
+ <h:form id="updateGrades" acceptcharset="UTF-8" >
+ <rich:dataTable value="#{gradesEditor.grades}"
+ rows="#{gradesEditor.rows}" var="grade" id="gradeList">
+ <f:facet name="header">
+ <rich:columnGroup>
+ <rich:column rowspan="2">#{bundle['gradesEditor.pdata']}</rich:column>
+ <rich:column rowspan="2">#{bundle['gradesEditor.level']}</rich:column>
+ <rich:column rowspan="2">#{bundle['gradesEditor.active']}</rich:column>
+ <rich:column>#{bundle['gradesEditor.nameFr']}</rich:column>
+ <rich:column rowspan="2">Delete</rich:column>
+ <rich:column breakBefore="true">#{bundle['gradesEditor.nameNl']}</rich:column>
+ </rich:columnGroup>
+ </f:facet>
+ <rich:column rowspan="2">
+ <h:inputText value="#{grade.pdata}" size="8" />
+ </rich:column>
+ <rich:column rowspan="2">
+ <h:inputText value="#{grade.level}" size="2" />
+ </rich:column>
+ <rich:column rowspan="2">
+ <h:selectBooleanCheckbox value="#{grade.active}" />
+ </rich:column>
+ <rich:column>
+ <h:inputText value="#{grade.nameFr}" size="80" />
+ </rich:column>
+ <rich:column rowspan="2">
+ <rich:spacer />
+ </rich:column>
+ <rich:column breakBefore="true">
+ <h:inputText value="#{grade.nameNl}" size="80" />
+ </rich:column>
+ </rich:dataTable>
+
+ <div style="font-size:smaller;text-align:center"><t:dataScroller
+ id="scroll_1" style="margin-left:auto;margin-right:auto"
+ for="gradeList" fastStep="10" pageCountVar="pageCount"
+ pageIndexVar="pageIndex" styleClass="scroller" paginator="true"
+ paginatorMaxPages="18" paginatorTableClass="paginator"
+ paginatorActiveColumnStyle="font-weight:bold;" immediate="true">
+ <f:facet name="first">
+ <t:graphicImage url="/images/arrows/arrow-first.gif" border="1" />
+ </f:facet>
+ <f:facet name="last">
+ <t:graphicImage url="/images/arrows/arrow-last.gif" border="1" />
+ </f:facet>
+ <f:facet name="previous">
+ <t:graphicImage url="/images/arrows/arrow-previous.gif" border="1" />
+ </f:facet>
+ <f:facet name="next">
+ <t:graphicImage url="/images/arrows/arrow-next.gif" border="1" />
+ </f:facet>
+ <f:facet name="fastforward">
+ <t:graphicImage url="/images/arrows/arrow-ff.gif" border="1" />
+ </f:facet>
+ <f:facet name="fastrewind">
+ <t:graphicImage url="/images/arrows/arrow-fr.gif" border="1" />
+ </f:facet>
+ <h:outputFormat value="#{bundle['gradesEditor.pageNumber']}">
+ <f:param value=" #{pageIndex}" />
+ <f:param value=" #{pageCount}" />
+ </h:outputFormat>
+ </t:dataScroller></div>
+ <h:commandButton action="#{gradesEditor.saveGrades}" value="#{bundle['gradesEditor.save.button']}"/>
+ </h:form>
+</f:view>
+</body>
+</html>
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/gradesEditor.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/listEditor.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/listEditor.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/listEditor.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,29 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+<ui:composition>
+ <rich:modalPanel top="0" id="editPanel" width="850" height="650">
+ <div style="text-align:center">
+ <iframe width="800" height="600" id="#{parentClientId}:iframe">*edit here*</iframe>
+ <br/>
+ <a href="javascript:hideListEditor()">[done]</a>
+ </div>
+ </rich:modalPanel>
+ <script language="javascript">
+ var __current_refresh;
+ function showListEditor(url,refresh){
+ __current_refresh=refresh;
+ document.getElementById('#{parentClientId}:iframe').src=url;
+ Richfaces.showModalPanel('editPanel');
+ }
+ function hideListEditor(){
+ Richfaces.hideModalPanel('editPanel');
+ document.getElementById('#{parentClientId}:iframe').src=undefined;
+ __current_refresh();
+ }
+ </script>
+</ui:composition>
+</html>
\ No newline at end of file
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/listEditor.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/medicalCentersEditor.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/medicalCentersEditor.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/medicalCentersEditor.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,65 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+<head>
+<title>Editor</title>
+</head>
+<body style="font-size:smaller;">
+<f:view locale="#{strutsSession.locale}">
+ <f:loadBundle basename="resources.hr" var="bundle" />
+ <h:form id="addMedicalCenter" acceptcharset="UTF-8" >
+ <table style="text-align:left;margin-left:10pt;margin-right:auto">
+ <tr>
+ <td colspan="2">#{bundle['medicalCentersEditor.add.title']}</td>
+ </tr>
+ <tr>
+ <td>#{bundle['medicalCentersEditor.name']}</td>
+ <td><h:inputText
+ style="font-size:smaller"
+ value="#{medicalCentersEditor.newMedicalCenter.name}"
+ required="true"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['medicalCentersEditor.address']}</td>
+ <td>
+ <ui:include src="../elements/address.xhtml">
+ <ui:param name="address" value="#{medicalCentersEditor.newMedicalCenter.address}" />
+ </ui:include>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2"><h:commandButton
+ action="#{medicalCentersEditor.addMedicalCenter}" value="#{bundle['medicalCentersEditor.add.button']}" /></td>
+ </tr>
+ </table>
+ </h:form>
+ <hr/>
+ <h:messages showDetail="true" showSummary="false"/>
+ <h:form id="updateCenters" acceptcharset="UTF-8" >
+ <rich:dataTable value="#{medicalCentersEditor.medicalCenters}"
+ var="medicalCenter" id="centerList">
+ <f:facet name="header">
+ <rich:columnGroup>
+ <rich:column>#{bundle['medicalCentersEditor.name']}</rich:column>
+ <rich:column>#{bundle['medicalCentersEditor.address']}</rich:column>
+ </rich:columnGroup>
+ </f:facet>
+ <rich:column>
+ <h:inputText value="#{medicalCenter.name}" required="true"/>
+ </rich:column>
+ <rich:column>
+ <h:panelGroup>
+ <ui:include src="../elements/address.xhtml">
+ <ui:param name="address" value="#{medicalCenter.address}" />
+ </ui:include>
+ </h:panelGroup>
+ </rich:column>
+ </rich:dataTable>
+ <h:commandButton action="#{medicalCentersEditor.saveMedicalCenters}" value="#{bundle['medicalCentersEditor.save.button']}"/>
+ </h:form>
+</f:view>
+</body>
+</html>
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/medicalCentersEditor.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/secretariatsEditor.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/secretariatsEditor.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/secretariatsEditor.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,90 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+<head>
+<title>Secretariat Editor</title>
+</head>
+<body style="font-size:smaller;">
+<f:view locale="#{strutsSession.locale}">
+ <f:loadBundle basename="resources.hr" var="bundle" />
+ <h:form id="addSecretariat" acceptcharset="UTF-8" >
+ <table style="text-align:left;margin-left:10pt;margin-right:auto">
+ <tr>
+ <td colspan="2">#{bundle['secretariatsEditor.add.title']}</td>
+ </tr>
+ <tr>
+ <td><h:outputLabel value="#{bundle['secretariatsEditor.nameFr']}" for="nameFr"/></td>
+ <td><h:inputText
+ style="font-size:smaller" id="nameFr"
+ value="#{secretariatsEditor.newSecretariat.nameFr}"
+ required="true"/></td>
+ </tr>
+ <tr>
+ <td><h:outputLabel value="#{bundle['secretariatsEditor.nameNl']}" for="nameNl"/></td>
+ <td><h:inputText
+ style="font-size:smaller" id="nameFr"
+ value="#{secretariatsEditor.newSecretariat.nameNl}"
+ required="true"/></td>
+ </tr>
+ <tr>
+ <td><h:outputLabel value="#{bundle['secretariatsEditor.contact1']}" for="contact1"/></td>
+ <td>
+ <h:selectOneMenu value="#{secretariatsEditor.newSecretariat.contact1}" id="contact1">
+ <f:converter converterId="abstractId" />
+ <f:selectItems value="#{hrRequest.employees}"/>
+ </h:selectOneMenu>
+ </td>
+ </tr>
+ <tr>
+ <td><h:outputLabel value="#{bundle['secretariatsEditor.contact2']}" for="contact2"/></td>
+ <td>
+ <h:selectOneMenu value="#{secretariatsEditor.newSecretariat.contact1}" id="contact2">
+ <f:converter converterId="abstractId" />
+ <f:selectItems value="#{hrRequest.employees}"/>
+ </h:selectOneMenu>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2"><h:commandButton
+ action="#{secretariatsEditor.addSecretariat}" value="#{bundle['medicalCentersEditor.add.button']}" /></td>
+ </tr>
+ </table>
+ </h:form>
+ <hr/>
+ <h:messages showDetail="true" showSummary="false" />
+ <h:form id="updateSecretariats" acceptcharset="UTF-8" >
+ <rich:dataTable value="#{secretariatsEditor.secretariats}"
+ var="sec" id="centerList">
+ <f:facet name="header">
+ <rich:columnGroup>
+ <rich:column>#{bundle['secretariatsEditor.nameFr']}</rich:column>
+ <rich:column>#{bundle['secretariatsEditor.contact1']}</rich:column>
+ <rich:column breakBefore="true">#{bundle['secretariatsEditor.nameNl']}</rich:column>
+ <rich:column>#{bundle['secretariatsEditor.contact2']}</rich:column>
+ </rich:columnGroup>
+ </f:facet>
+ <rich:column>
+ <h:panelGroup>
+ <h:inputText value="#{sec.nameFr}" required="true" id="nameFr"/><br/>
+ <h:inputText value="#{sec.nameFr}" required="true" id="nameNl"/>
+ </h:panelGroup>
+ </rich:column>
+ <rich:column>
+ <h:panelGroup>
+ <h:selectOneMenu value="#{sec.contact1}" id="contact1">
+ <f:selectItems value="#{hrRequest.employees}"/>
+ </h:selectOneMenu><br/>
+ <h:selectOneMenu value="#{sec.contact2}" id="contact2">
+ <f:selectItems value="#{hrRequest.employees}"/>
+ </h:selectOneMenu>
+ </h:panelGroup>
+ </rich:column>
+ </rich:dataTable>
+ <h:commandButton action="#{secretariatsEditor.saveSecretariats}" value="#{bundle['secretariatsEditor.save.button']}"/>
+ </h:form>
+</f:view>
+</body>
+</html>
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/secretariatsEditor.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/selectEntriesEditor.xhtml
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/selectEntriesEditor.xhtml (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/selectEntriesEditor.xhtml 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,137 @@
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:t="http://myfaces.apache.org/tomahawk"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich">
+<head>
+<title>Editor</title>
+</head>
+<body style="font-size:smaller;">
+<f:view locale="#{strutsSession.locale}">
+ <f:loadBundle basename="resources.hr" var="bundle" />
+ #{bundle['selectEditor.key.title']}
+ <h:form id="selectKey">
+ <h:selectOneMenu id="key" value="#{selectEntriesEditor.key}" onchange="submit()">
+ <f:selectItem itemLabel="" itemValue=""/>
+ <f:selectItems value="#{selectEntriesEditor.keyItems}"/>
+ </h:selectOneMenu>
+ </h:form>
+ <hr/>
+ <h:form id="addEntry" rendered="#{not empty selectEntriesEditor.key}" acceptcharset="UTF-8" >
+ <table style="text-align:left;margin-left:10pt;margin-right:auto">
+ <tr>
+ <td colspan="2">#{bundle['selectEditor.add.title']}</td>
+ </tr>
+ <tr>
+ <td>#{bundle['selectEditor.pdata']}</td>
+ <td><h:inputText style="font-size:smaller" value="#{selectEntriesEditor.newSelectEntry.pdata}"
+ size="8" required="true"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['selectEditor.active']}</td>
+ <td><h:selectBooleanCheckbox
+ value="#{selectEntriesEditor.newSelectEntry.active}" required="true"/></td>
+ </tr>
+ <tr>
+ <td>#{bundle['selectEditor.nameFr']}</td>
+ <td><h:inputText style="font-size:smaller" value="#{selectEntriesEditor.newSelectEntry.nameFr}"
+ size="60" required="true" /></td>
+ </tr>
+ <tr>
+ <td>#{bundle['selectEditor.nameNl']}</td>
+ <td><h:inputText style="font-size:smaller" value="#{selectEntriesEditor.newSelectEntry.nameNl}"
+ size="60" required="true"/></td>
+ </tr>
+ <tr>
+ <td colspan="2"><h:commandButton
+ action="#{selectEntriesEditor.addSelectEntry}" value="#{bundle['selectEditor.add.button']}" /></td>
+ </tr>
+ </table>
+ </h:form>
+ <hr/>
+ <h:messages showDetail="true" showSummary="false"/>
+ <h:form id="filter" rendered="#{not empty selectEntriesEditor.key}" acceptcharset="UTF-8" >
+ #{bundle['selectEditor.filter.title']}
+ <table>
+ <tr>
+ <td>#{bundle['selectEditor.filter.lines']}</td>
+ <td><rich:inputNumberSlider minValue="10" maxValue="200"
+ value="#{selectEntriesEditor.rows}" required="true" step="5" enableManualInput="false"/></td>
+ <td>
+ <h:selectOneMenu id="active" value="#{selectEntriesEditor.filter.active}">
+ <f:selectItem itemLabel="#{bundle['selectEditor.filter.active.all']}" itemValue="#{0}"/>
+ <f:selectItem itemLabel="#{bundle['selectEditor.filter.active.true']}" itemValue="#{1}"/>
+ <f:selectItem itemLabel="#{bundle['selectEditor.filter.active.false']}" itemValue="#{-1}"/>
+ </h:selectOneMenu>
+ </td>
+ <td>#{bundle['selectEditor.filter.pdata']}<h:inputText id="pdata" value="#{selectEntriesEditor.filter.pdata}" size="8"/></td>
+ <td>#{bundle['selectEditor.filter.name']}<h:inputText id="name" value="#{selectEntriesEditor.filter.name}" size="20"/></td>
+ <td><h:commandButton action="update" value="#{bundle['selectEditor.filter.button']}"></h:commandButton></td>
+ </tr>
+ </table>
+ </h:form>
+ <hr/>
+ <h:form id="updateSelectEntries" rendered="#{not empty selectEntriesEditor.key}" acceptcharset="UTF-8" >
+ <rich:dataTable value="#{selectEntriesEditor.selectEntries}"
+ rows="#{selectEntriesEditor.rows}" var="SelectEntry" id="SelectEntryList">
+ <f:facet name="header">
+ <rich:columnGroup>
+ <rich:column rowspan="2">#{bundle['selectEditor.pdata']}</rich:column>
+ <rich:column rowspan="2">#{bundle['selectEditor.active']}</rich:column>
+ <rich:column>#{bundle['selectEditor.nameFr']}</rich:column>
+ <rich:column rowspan="2">Delete</rich:column>
+ <rich:column breakBefore="true">#{bundle['selectEditor.nameNl']}</rich:column>
+ </rich:columnGroup>
+ </f:facet>
+ <rich:column rowspan="2">
+ <h:inputText value="#{SelectEntry.pdata}" size="8" />
+ </rich:column>
+ <rich:column rowspan="2">
+ <h:selectBooleanCheckbox value="#{SelectEntry.active}" readonly="true"/>
+ </rich:column>
+ <rich:column>
+ <h:inputText value="#{SelectEntry.nameFr}" size="80" />
+ </rich:column>
+ <rich:column rowspan="2">
+ <rich:spacer />
+ </rich:column>
+ <rich:column breakBefore="true">
+ <h:inputText value="#{SelectEntry.nameNl}" size="80" />
+ </rich:column>
+ </rich:dataTable>
+
+ <div style="font-size:smaller;text-align:center"><t:dataScroller
+ id="scroll_1" style="margin-left:auto;margin-right:auto"
+ for="SelectEntryList" fastStep="10" pageCountVar="pageCount"
+ pageIndexVar="pageIndex" styleClass="scroller" paginator="true"
+ paginatorMaxPages="18" paginatorTableClass="paginator"
+ paginatorActiveColumnStyle="font-weight:bold;" immediate="true">
+ <f:facet name="first">
+ <t:graphicImage url="/images/arrows/arrow-first.gif" border="1" />
+ </f:facet>
+ <f:facet name="last">
+ <t:graphicImage url="/images/arrows/arrow-last.gif" border="1" />
+ </f:facet>
+ <f:facet name="previous">
+ <t:graphicImage url="/images/arrows/arrow-previous.gif" border="1" />
+ </f:facet>
+ <f:facet name="next">
+ <t:graphicImage url="/images/arrows/arrow-next.gif" border="1" />
+ </f:facet>
+ <f:facet name="fastforward">
+ <t:graphicImage url="/images/arrows/arrow-ff.gif" border="1" />
+ </f:facet>
+ <f:facet name="fastrewind">
+ <t:graphicImage url="/images/arrows/arrow-fr.gif" border="1" />
+ </f:facet>
+ <h:outputFormat value="#{bundle['selectEditor.pageNumber']}">
+ <f:param value=" #{pageIndex}" />
+ <f:param value=" #{pageCount}" />
+ </h:outputFormat>
+ </t:dataScroller></div>
+ <h:commandButton action="#{selectEntriesEditor.saveSelectEntries}" value="#{bundle['selectEditor.save.button']}"/>
+ </h:form>
+</f:view>
+</body>
+</html>
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/resources/WebContent/lists/selectEntriesEditor.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java 2010-08-09 14:59:22 UTC (rev 24002)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java 2010-08-09 15:34:42 UTC (rev 24003)
@@ -8,6 +8,7 @@
import org.jboss.tools.vpe.ui.bot.test.editor.ToggleCommentTest;
import org.jboss.tools.vpe.ui.bot.test.editor.VerificationOfNameSpacesTest;
import org.jboss.tools.vpe.ui.bot.test.editor.JspFileEditingTest;
+import org.jboss.tools.vpe.ui.bot.test.editor.XhtmlFilePerformanceTest;
import org.jboss.tools.vpe.ui.bot.test.editor.pagedesign.AddSubstitutedELExpressionFolderScopeTest;
import org.jboss.tools.vpe.ui.bot.test.editor.preferences.AlwaysHideSelectionBarWithoutPromptTest;
import org.jboss.tools.vpe.ui.bot.test.editor.preferences.BorderForUnknownTagsTest;
@@ -57,7 +58,8 @@
suite.addTestSuite(VPESourceCodeTemplatesPreferencePageTest.class);
suite.addTestSuite(ExternalizeStringsDialogTest.class);
suite.addTestSuite(JspFileEditingTest.class);
-
+ suite.addTestSuite(XhtmlFilePerformanceTest.class);
+
return new TestSetup(suite);
}
}
Added: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/XhtmlFilePerformanceTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/XhtmlFilePerformanceTest.java (rev 0)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/XhtmlFilePerformanceTest.java 2010-08-09 15:34:42 UTC (rev 24003)
@@ -0,0 +1,87 @@
+/*******************************************************************************
+
+ * Copyright (c) 2007-2010 Exadel, Inc. and Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.vpe.ui.bot.test.editor;
+
+
+import java.io.File;
+import java.io.IOException;
+
+import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotEclipseEditor;
+import org.jboss.tools.ui.bot.ext.SWTBotExt;
+import org.jboss.tools.ui.bot.ext.Timing;
+import org.jboss.tools.ui.bot.ext.helper.FileHelper;
+import org.jboss.tools.ui.bot.ext.parts.SWTBotEditorExt;
+import org.jboss.tools.ui.bot.ext.types.IDELabel;
+import org.jboss.tools.vpe.ui.bot.test.VPEAutoTestCase;
+import org.jboss.tools.vpe.ui.bot.test.tools.SWTBotWebBrowser;
+/**
+ * Tests large XHTML file editing
+ * @author vlado pakan
+ *
+ */
+public class XhtmlFilePerformanceTest extends VPEAutoTestCase {
+
+ private static final String TEST_PAGE_NAME = "employee.xhtml";
+ private SWTBotExt swtBotExt = null;
+
+ public XhtmlFilePerformanceTest() {
+ super();
+ swtBotExt = new SWTBotExt();
+ }
+
+ public void testXhtmlFilePerformance(){
+ // copy big XHTML page from resources folder
+ try{
+ String resourceWebContentLocation = getPathToResources("WebContent");
+ FileHelper.copyFilesBinaryRecursively(new File(resourceWebContentLocation),
+ new File(FileHelper.getProjectLocation(JBT_TEST_PROJECT_NAME, bot),IDELabel.JsfProjectTree.WEB_CONTENT),
+ null);
+ }catch (IOException ioe){
+ throw new RuntimeException("Unable to copy necessary files from plugin's resources directory",ioe);
+ }
+ bot.menu(IDELabel.Menu.FILE).menu(IDELabel.Menu.REFRESH).click();
+ bot.sleep(Timing.time1S());
+ eclipse.maximizeActiveShell();
+ // open main page
+ packageExplorer.openFile(JBT_TEST_PROJECT_NAME,IDELabel.JsfProjectTree.WEB_CONTENT,XhtmlFilePerformanceTest.TEST_PAGE_NAME);
+ final SWTBotEclipseEditor xhtmlTextEditor = bot.editorByTitle(XhtmlFilePerformanceTest.TEST_PAGE_NAME).toTextEditor();
+ String insertText = "!!!123 Test Title Inserted 321!!!";
+ xhtmlTextEditor.insertText(9, 5, "<h1>" + insertText + "<h1/>");
+ xhtmlTextEditor.save();
+ bot.toolbarButtonWithTooltip(IDELabel.Button.REFRESH).click();
+ SWTBotEditorExt multiPageEditor = swtBotExt.swtBotEditorExtByTitle(XhtmlFilePerformanceTest.TEST_PAGE_NAME);
+ multiPageEditor.selectPage(IDELabel.VisualPageEditor.PREVIEW_TAB_LABEL);
+ SWTBotWebBrowser swtBotWebBrowserExt = new SWTBotWebBrowser(XhtmlFilePerformanceTest.TEST_PAGE_NAME, swtBotExt);
+
+ bot.sleep(Timing.time5S());
+ try {
+ Thread.sleep(Timing.time5S());
+ } catch (InterruptedException e) {
+ // Ignore
+ }
+
+ assertTrue("Web Browser has to contain text " + insertText + " but it doesn't.",swtBotWebBrowserExt.containsNodeWithValue(swtBotWebBrowserExt.getNsIDOMDocument(), insertText));
+ xhtmlTextEditor.close();
+
+ }
+
+ @Override
+ protected void closeUnuseDialogs() {
+
+ }
+
+ @Override
+ protected boolean isUnuseDialogOpened() {
+ return false;
+ }
+
+}
Property changes on: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/editor/XhtmlFilePerformanceTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/tools/SWTBotWebBrowser.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/tools/SWTBotWebBrowser.java 2010-08-09 14:59:22 UTC (rev 24002)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/tools/SWTBotWebBrowser.java 2010-08-09 15:34:42 UTC (rev 24003)
@@ -484,5 +484,40 @@
}
}
+ /**
+ * Returns true if node or it's child has value searchText
+ * @param node
+ * @param searchText
+ * @return
+ */
+ public boolean containsNodeWithValue(nsIDOMNode node, String searchText) {
+
+ boolean result = false;
+
+ String nodeValue = node.getNodeValue();
+
+ if (nodeValue != null && nodeValue.equals(searchText)) {
+ result = true;
+ }
+ else {
+ nsIDOMNodeList children = node.getChildNodes();
+
+ for (int i = 0; i < children.getLength() && !result; i++) {
+
+ nsIDOMNode child = children.item(i);
+
+ // leave out empty text nodes in test dom model
+ if ((child.getNodeType() == Node.TEXT_NODE)
+ && ((child.getNodeValue() == null) || (child.getNodeValue().trim()
+ .length() == 0)))
+ continue;
+
+ result = containsNodeWithValue(child, searchText);
+ }
+ }
+
+ return result;
+
+ }
}
15 years, 5 months
JBoss Tools SVN: r24002 - trunk/drools.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2010-08-09 10:59:22 -0400 (Mon, 09 Aug 2010)
New Revision: 24002
Modified:
trunk/drools/pom-with-deps.xml
Log:
add org.jboss.tools.jst.ui.bot.test dep to drools build
Modified: trunk/drools/pom-with-deps.xml
===================================================================
--- trunk/drools/pom-with-deps.xml 2010-08-09 14:25:17 UTC (rev 24001)
+++ trunk/drools/pom-with-deps.xml 2010-08-09 14:59:22 UTC (rev 24002)
@@ -15,6 +15,7 @@
<modules>
<!-- check out dependencies into folder parallel to this one in Hudson workspace -->
<module>../org.jboss.tools.ui.bot.ext</module>
+ <module>../org.jboss.tools.jst.ui.bot.test</module>
<!-- contained children -->
<module>plugins</module>
15 years, 5 months
JBoss Tools SVN: r24001 - in trunk/usage: org.jboss.tools.usage/.settings and 36 other directories.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-08-09 10:25:17 -0400 (Mon, 09 Aug 2010)
New Revision: 24001
Added:
trunk/usage/org.jboss.tools.usage.test/.classpath
trunk/usage/org.jboss.tools.usage.test/.project
trunk/usage/org.jboss.tools.usage.test/.settings/
trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.core.prefs
trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.ui.prefs
trunk/usage/org.jboss.tools.usage.test/FocusPointTest.launch
trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageRequestsTest.launch
trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageTest.launch
trunk/usage/org.jboss.tools.usage.test/META-INF/
trunk/usage/org.jboss.tools.usage.test/META-INF/MANIFEST.MF
trunk/usage/org.jboss.tools.usage.test/bin/
trunk/usage/org.jboss.tools.usage.test/bin/org/
trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/
trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/
trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/
trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/
trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/FocusPointTest.class
trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest$TestHttpGetMethod.class
trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.class
trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageTest.class
trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/SystemOutLogger.class
trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/internal/
trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/internal/JBossToolsUsageTestActivator.class
trunk/usage/org.jboss.tools.usage.test/build.properties
trunk/usage/org.jboss.tools.usage.test/src/
trunk/usage/org.jboss.tools.usage.test/src/org/
trunk/usage/org.jboss.tools.usage.test/src/org/jboss/
trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/
trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/
trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/
trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/FocusPointTest.java
trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java
trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageTest.java
trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/SystemOutLogger.java
trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/internal/
trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/internal/JBossToolsUsageTestActivator.java
trunk/usage/org.jboss.tools.usage/.classpath
trunk/usage/org.jboss.tools.usage/.project
trunk/usage/org.jboss.tools.usage/.settings/
trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.core.prefs
trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.ui.prefs
trunk/usage/org.jboss.tools.usage/JBoss Usage Reporter.launch
trunk/usage/org.jboss.tools.usage/META-INF/
trunk/usage/org.jboss.tools.usage/META-INF/MANIFEST.MF
trunk/usage/org.jboss.tools.usage/bin/
trunk/usage/org.jboss.tools.usage/bin/org/
trunk/usage/org.jboss.tools.usage/bin/org/jboss/
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/IUsageTracker.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/JBossToolsUsageActivator.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReport$1.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReport.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReportDispatcher.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReportEnablementDialog.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/AbstractGoogleAnalyticsParameters.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment$1.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/FocusPoint.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/GoogleAnalyticsURLStrategy.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/HttpGetMethod.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/IGoogleAnalyticsParameters.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/ILoggingAdapter.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/IURLBuildingStrategy.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker$TrackingThread.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/PluginLogger.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/IUsageReportPreferenceConstants.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/UsageReportPreferenceInitializer.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/UsageReportPreferencePage.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils$BundleSymbolicNameFilter.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils$IBundleEntryFilter.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/EncodingUtils.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/PreferencesUtil.class
trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/StatusUtils.class
trunk/usage/org.jboss.tools.usage/build.properties
trunk/usage/org.jboss.tools.usage/plugin.xml
trunk/usage/org.jboss.tools.usage/src/
trunk/usage/org.jboss.tools.usage/src/org/
trunk/usage/org.jboss.tools.usage/src/org/jboss/
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/IUsageTracker.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBossToolsUsageActivator.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReport.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportDispatcher.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportEnablementDialog.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/AbstractGoogleAnalyticsParameters.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/FocusPoint.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/GoogleAnalyticsURLStrategy.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/HttpGetMethod.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IGoogleAnalyticsParameters.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/ILoggingAdapter.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IURLBuildingStrategy.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/PluginLogger.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/IUsageReportPreferenceConstants.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferenceInitializer.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferencePage.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/EncodingUtils.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/PreferencesUtil.java
trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/StatusUtils.java
Log:
initial commit
Added: trunk/usage/org.jboss.tools.usage/.classpath
===================================================================
--- trunk/usage/org.jboss.tools.usage/.classpath (rev 0)
+++ trunk/usage/org.jboss.tools.usage/.classpath 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: trunk/usage/org.jboss.tools.usage/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/.project
===================================================================
--- trunk/usage/org.jboss.tools.usage/.project (rev 0)
+++ trunk/usage/org.jboss.tools.usage/.project 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.usage</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.api.tools.apiAnalysisBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ <nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/usage/org.jboss.tools.usage/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.core.prefs 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,260 @@
+#Fri Aug 06 17:57:19 CEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=false
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=80
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=false
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=120
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
Property changes on: trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.ui.prefs
===================================================================
--- trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.ui.prefs (rev 0)
+++ trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.ui.prefs 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,6 @@
+#Wed Jul 28 11:02:07 CEST 2010
+eclipse.preferences.version=1
+formatter_profile=_Eclipse [built-in] extended
+formatter_settings_version=11
+org.eclipse.jdt.ui.javadoc=false
+org.eclipse.jdt.ui.text.custom_code_templates=<?xml version\="1.0" encoding\="UTF-8" standalone\="no"?><templates><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter method" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${param} the ${bare_field_name} to set\n */</template><template autoinsert\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="false" context\="filecommen!
t_context" deleted\="false" description\="Comment for created Java files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.filecomment" name\="filecomment">/*******************************************************************************\n * Copyright (c) 2008 Red Hat, Inc.\n * Distributed under license by Red Hat, Inc. All rights reserved.\n * This program is made available under the terms of the\n * Eclipse Public License v1.0 which accompanies this distribution,\n * and is available at http\://www.eclipse.org/legal/epl-v10.html\n *\n * Contributors\:\n * Red Hat, Inc. - initial API and implementation\n ******************************************************************************/</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><templa!
te autoinsert\="true" context\="fieldcomment_context" deleted\!
="false"
description\="Comment for fields" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n * \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-Javadoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate methods" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinser!
t\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.newtype" name\="newtype">${filecomment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="interfacebody_context" deleted\="false" description\="Code in new interface type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.interfacebody" name\="interfacebody">\n</template><template autoinsert\="true" context\="enumbody_context" deleted\="false" description\="Code in new enum type bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.enumbody" name\="enumbody">\n</template><template autoinsert\="true" context\="annotationbod!
y_context" deleted\="false" description\="Code in new annotati!
on type
bodies" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.annotationbody" name\="annotationbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created method stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated method stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code in created constructor stubs" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template>!
<template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.jdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template><template autoinsert\="true" context\="gettercomment_context" deleted\="false" description\="Comment for getter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.gettercomment" name\="gettercomment">/**\n * @return the ${bare_field_name}\n */</template><template autoinsert\="true" context\="settercomment_context" deleted\="false" description\="Comment for setter function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.settercomment" name\="settercomment">/**\n * @param ${pa!
ram} the ${bare_field_name} to set\n */</template><template au!
toinsert
\="true" context\="constructorcomment_context" deleted\="false" description\="Comment for created constructors" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorcomment" name\="constructorcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="filecomment_context" deleted\="false" description\="Comment for created JavaScript files" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.filecomment" name\="filecomment">/**\n * \n */</template><template autoinsert\="true" context\="typecomment_context" deleted\="false" description\="Comment for created types" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.typecomment" name\="typecomment">/**\n * @author ${user}\n *\n * ${tags}\n */</template><template autoinsert\="true" context\="fieldcomment_context" deleted\="false" description\="Comment for vars" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.fieldcomment" name\="fieldcomment">/**\n !
* \n */</template><template autoinsert\="true" context\="methodcomment_context" deleted\="false" description\="Comment for non-overriding function" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodcomment" name\="methodcomment">/**\n * ${tags}\n */</template><template autoinsert\="true" context\="overridecomment_context" deleted\="false" description\="Comment for overriding functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.overridecomment" name\="overridecomment">/* (non-JSDoc)\n * ${see_to_overridden}\n */</template><template autoinsert\="true" context\="delegatecomment_context" deleted\="false" description\="Comment for delegate functions" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.delegatecomment" name\="delegatecomment">/**\n * ${tags}\n * ${see_to_target}\n */</template><template autoinsert\="true" context\="newtype_context" deleted\="false" description\="Newly created files" enabled\="true" id\="org.ec!
lipse.wst.jsdt.ui.text.codetemplates.newtype" name\="newtype">!
${fileco
mment}\n${package_declaration}\n\n${typecomment}\n${type_declaration}</template><template autoinsert\="true" context\="classbody_context" deleted\="false" description\="Code in new class type bodies" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.classbody" name\="classbody">\n</template><template autoinsert\="true" context\="catchblock_context" deleted\="false" description\="Code in new catch blocks" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.catchblock" name\="catchblock">// ${todo} Auto-generated catch block\n${exception_var}.printStackTrace();</template><template autoinsert\="true" context\="methodbody_context" deleted\="false" description\="Code in created function stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.methodbody" name\="methodbody">// ${todo} Auto-generated function stub\n${body_statement}</template><template autoinsert\="true" context\="constructorbody_context" deleted\="false" description\="Code i!
n created constructor stubs" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.constructorbody" name\="constructorbody">${body_statement}\n// ${todo} Auto-generated constructor stub</template><template autoinsert\="true" context\="getterbody_context" deleted\="false" description\="Code in created getters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.getterbody" name\="getterbody">return ${field};</template><template autoinsert\="true" context\="setterbody_context" deleted\="false" description\="Code in created setters" enabled\="true" id\="org.eclipse.wst.jsdt.ui.text.codetemplates.setterbody" name\="setterbody">${field} \= ${param};</template></templates>
Property changes on: trunk/usage/org.jboss.tools.usage/.settings/org.eclipse.jdt.ui.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/JBoss Usage Reporter.launch
===================================================================
--- trunk/usage/org.jboss.tools.usage/JBoss Usage Reporter.launch (rev 0)
+++ trunk/usage/org.jboss.tools.usage/JBoss Usage Reporter.launch 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.RuntimeWorkbench">
+<booleanAttribute key="append.args" value="true"/>
+<booleanAttribute key="askclear" value="true"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="false"/>
+<booleanAttribute key="clearws" value="false"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/JBoss Usage Reporter"/>
+<booleanAttribute key="default" value="false"/>
+<stringAttribute key="deselected_workspace_plugins" value="org.jboss.tools.usage.analytics.javascript.test,org.jboss.tools.usage.analytics.javascript,org.jboss.tools.usage.test"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../runtime-EclipseApplication"/>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
+<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<booleanAttribute key="pde.generated.config" value="false"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="com.jboss.jbds.product.product"/>
+<stringAttribute key="selected_target_plugins" value="org.eclipse.equinox.transforms.hook@default:false,org.eclipse.ecf@default:default,org.eclipse.ui.intro@default:default,org.eclipse.ui.navigator@default:default,org.eclipse.ui.ide.application@default:default,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.jface.databinding@default:default,com.springsource.javax.el@default:default,org.eclipse.equinox.p2.artifact.repository@default:default,org.eclipse.core.resources.compatibility@default:false,org.eclipse.help.base@default:default,org.apache.ant@default:default,org.eclipse.core.jobs@default:default,org.eclipse.swt@default:default,org.eclipse.ui.intro.universal@default:default,org.eclipse.core.resources@default:default,org.eclipse.equinox.security@default:default,org.eclipse.core.filesystem.linux.x86@default:false,org.eclipse.equinox.p2.metadata@default:default,org.eclipse.equinox.p2.metadata.repository@default:default,org.eclipse.core.expressions@d!
efault:default,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.core.net@default:default,org.eclipse.ui.ide@default:default,org.eclipse.help@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.ui.forms@default:default,org.eclipse.core.filesystem@default:default,com.springsource.javax.servlet.jsp@default:default,org.hamcrest.core@default:default,com.springsource.javax.servlet@default:default,org.eclipse.ecf.identity@default:default,org.jboss.tools.xulrunner.initializer@default:false,org.eclipse.swt.gtk.linux.x86@default:false,org.eclipse.ui.navigator.resources@default:default,org.eclipse.text@default:default,org.eclipse.ecf.ssl@default:false,org.eclipse.equinox.app@default:default,org.mortbay.jetty.server@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.ecf.provider.filetransfer.ssl@default:false,org.eclipse.ant.core@default:default,org.eclipse.ui@default:default,org.eclipse.core.runtime@default:t!
rue,org.eclipse.core.net.linux.x86@default:false,org.eclipse.c!
ore.comm
ands@default:default,org.eclipse.equinox.common@2:true,org.apache.commons.el@default:default,javax.transaction@default:false,org.eclipse.equinox.p2.engine@default:default,org.eclipse.jface@default:default,org.eclipse.ecf.filetransfer@default:default,org.apache.jasper@default:default,org.eclipse.equinox.http.jetty@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.help.ui@default:default,com.springsource.org.apache.commons.logging@default:default,org.eclipse.ui.workbench.texteditor@default:default,org.eclipse.core.databinding@default:default,org.eclipse.osgi.services@default:default,org.eclipse.equinox.concurrent@default:default,org.eclipse.ecf.provider.filetransfer@default:default,com.ibm.icu@default:default,org.eclipse.ui.cheatsheets@default:default,com.jboss.jbds.product@default:default,org.eclipse.osgi@-1:true,org.eclipse.compare.core@default:default,org.eclipse.equinox.p2.core@default:default,org.eclipse.core.databinding.property@default:default,org!
.eclipse.core.variables@default:default,org.eclipse.ui.views.properties.tabbed@default:default,org.apache.lucene@default:default,org.eclipse.equinox.p2.repository@default:default,org.eclipse.equinox.p2.jarprocessor@default:default,org.eclipse.ui.workbench@default:default,org.eclipse.ui.views@default:default,javax.servlet@default:default,org.apache.lucene.analysis@default:default,org.junit4@default:default,org.mortbay.jetty.util@default:default,org.eclipse.equinox.http.servlet@default:default,org.eclipse.equinox.preferences@default:default,org.eclipse.jface.text@default:default"/>
+<stringAttribute key="selected_workspace_plugins" value="org.jboss.tools.usage.analytics@default:default"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="true"/>
+<booleanAttribute key="useProduct" value="true"/>
+<booleanAttribute key="usefeatures" value="false"/>
+</launchConfiguration>
Property changes on: trunk/usage/org.jboss.tools.usage/JBoss Usage Reporter.launch
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/META-INF/MANIFEST.MF
===================================================================
--- trunk/usage/org.jboss.tools.usage/META-INF/MANIFEST.MF (rev 0)
+++ trunk/usage/org.jboss.tools.usage/META-INF/MANIFEST.MF 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,13 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: JBoss Tools Google Analytics
+Bundle-SymbolicName: org.jboss.tools.usage;singleton:=true
+Bundle-Version: 1.0.0.qualifier
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Export-Package: org.jboss.tools.usage,
+ org.jboss.tools.usage.jgoogleanalytics
+Require-Bundle: org.eclipse.ui;bundle-version="[3.5.0,4.0.0)",
+ org.eclipse.osgi;bundle-version="3.5.2",
+ org.eclipse.core.runtime;bundle-version="[3.5.0,4.0.0)"
+Bundle-ActivationPolicy: lazy
+Bundle-Activator: org.jboss.tools.usage.internal.JBossToolsUsageActivator
Property changes on: trunk/usage/org.jboss.tools.usage/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/IUsageTracker.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/IUsageTracker.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/JBossToolsUsageActivator.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/JBossToolsUsageActivator.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReport$1.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReport$1.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReport.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReport.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReportDispatcher.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReportDispatcher.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReportEnablementDialog.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/internal/UsageReportEnablementDialog.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/AbstractGoogleAnalyticsParameters.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/AbstractGoogleAnalyticsParameters.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment$1.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment$1.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/FocusPoint.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/FocusPoint.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/GoogleAnalyticsURLStrategy.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/GoogleAnalyticsURLStrategy.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/HttpGetMethod.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/HttpGetMethod.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/IGoogleAnalyticsParameters.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/IGoogleAnalyticsParameters.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/ILoggingAdapter.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/ILoggingAdapter.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/IURLBuildingStrategy.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/IURLBuildingStrategy.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker$TrackingThread.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker$TrackingThread.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/PluginLogger.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/jgoogleanalytics/PluginLogger.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/IUsageReportPreferenceConstants.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/IUsageReportPreferenceConstants.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/UsageReportPreferenceInitializer.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/UsageReportPreferenceInitializer.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/UsageReportPreferencePage.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/preferences/UsageReportPreferencePage.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils$BundleSymbolicNameFilter.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils$BundleSymbolicNameFilter.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils$IBundleEntryFilter.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils$IBundleEntryFilter.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/BundleUtils.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/EncodingUtils.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/EncodingUtils.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/PreferencesUtil.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/PreferencesUtil.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/StatusUtils.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage/bin/org/jboss/tools/usage/util/StatusUtils.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage/build.properties
===================================================================
--- trunk/usage/org.jboss.tools.usage/build.properties (rev 0)
+++ trunk/usage/org.jboss.tools.usage/build.properties 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,5 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ plugin.xml
Property changes on: trunk/usage/org.jboss.tools.usage/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/plugin.xml
===================================================================
--- trunk/usage/org.jboss.tools.usage/plugin.xml (rev 0)
+++ trunk/usage/org.jboss.tools.usage/plugin.xml 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+ <extension
+ point="org.eclipse.ui.startup">
+ <startup
+ class="org.jboss.tools.usage.internal.UsageReportDispatcher">
+ </startup>
+ </extension>
+ <extension
+ point="org.eclipse.ui.preferencePages">
+ <page
+ class="org.jboss.tools.usage.preferences.UsageReportPreferencePage"
+ id="org.jboss.tools.usage.analytics.preferences.UsageAnalyticsPreferencePage"
+ name="JBoss Usage Analytics Preferences">
+ </page>
+ </extension>
+ <extension
+ point="org.eclipse.core.runtime.preferences">
+ <initializer
+ class="org.jboss.tools.usage.preferences.UsageReportPreferenceInitializer">
+ </initializer>
+ </extension>
+</plugin>
Property changes on: trunk/usage/org.jboss.tools.usage/plugin.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/IUsageTracker.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/IUsageTracker.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/IUsageTracker.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,34 @@
+package org.jboss.tools.usage;
+
+import java.io.UnsupportedEncodingException;
+
+import org.jboss.tools.usage.jgoogleanalytics.FocusPoint;
+
+public interface IUsageTracker {
+
+ /**
+ * Track the focusPoint in the application synchronously. <br/>
+ * <red><b>Please be cognizant while using this method. Since, it would have
+ * a peformance hit on the actual application. Use it unless it's really
+ * needed</b></red>
+ *
+ * @param focusPoint
+ * Focus point of the application like application load,
+ * application module load, user actions, error events etc.
+ * @throws UnsupportedEncodingException
+ */
+
+ public abstract void trackSynchronously(FocusPoint focusPoint)
+ throws UnsupportedEncodingException;
+
+ /**
+ * Track the focusPoint in the application asynchronously. <br/>
+ *
+ * @param focusPoint
+ * Focus point of the application like application load,
+ * application module load, user actions, error events etc.
+ */
+
+ public abstract void trackAsynchronously(FocusPoint focusPoint);
+
+}
\ No newline at end of file
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/IUsageTracker.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBossToolsUsageActivator.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBossToolsUsageActivator.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBossToolsUsageActivator.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,44 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.internal;
+
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.osgi.framework.BundleContext;
+
+public class JBossToolsUsageActivator extends AbstractUIPlugin {
+
+ public static final String PLUGIN_ID = "org.jboss.tools.usage"; //$NON-NLS-1$
+
+ private static JBossToolsUsageActivator plugin;
+
+ public JBossToolsUsageActivator() {
+ plugin = this;
+ }
+
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ public static JBossToolsUsageActivator getDefault() {
+ return plugin;
+ }
+
+ public static ImageDescriptor getImageDescriptor(String path) {
+ return imageDescriptorFromPlugin(PLUGIN_ID, path);
+ }
+
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/JBossToolsUsageActivator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReport.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReport.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReport.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,101 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.internal;
+
+import org.eclipse.core.runtime.preferences.ConfigurationScope;
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.eclipse.jface.window.Window;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.jboss.tools.usage.IUsageTracker;
+import org.jboss.tools.usage.jgoogleanalytics.EclipseEnvironment;
+import org.jboss.tools.usage.jgoogleanalytics.FocusPoint;
+import org.jboss.tools.usage.jgoogleanalytics.IGoogleAnalyticsParameters;
+import org.jboss.tools.usage.jgoogleanalytics.JGoogleAnalyticsTracker;
+import org.jboss.tools.usage.jgoogleanalytics.PluginLogger;
+import org.jboss.tools.usage.preferences.IUsageReportPreferenceConstants;
+import org.jboss.tools.usage.util.StatusUtils;
+import org.osgi.service.prefs.BackingStoreException;
+
+public class UsageReport {
+
+ private static final String GANALYTICS_TRACKINGCODE = "UA-17645367-1";
+
+ private FocusPoint focusPoint = new FocusPoint("jboss.org")
+ .setChild(new FocusPoint("tools").setChild(new FocusPoint("usage").setChild(new FocusPoint("action")
+ .setChild(new FocusPoint("wsstartup")))));
+
+ public void report() {
+
+ Display.getDefault().asyncExec(new Runnable() {
+ @Override
+ public void run() {
+ UsageReportEnablementDialog dialog = new UsageReportEnablementDialog("Report usage",
+ "Please allow Red Hat Inc. to report this installation anynomously for statistical matters.",
+ "Report usage anonymously to Red Hat Inc.", true, PlatformUI.getWorkbench()
+ .getActiveWorkbenchWindow());
+ if (isAskUser()) {
+ if (dialog.open() == Window.OK) {
+ setReportEnabled(dialog.isReportEnabled());
+ setAskUser(false);
+ }
+ }
+
+ if (isReportEnabled()) {
+ report(getAnalyticsTracker());
+ }
+ }
+ });
+ }
+
+ private void setReportEnabled(boolean enabled) {
+ IEclipsePreferences preferences = new ConfigurationScope().getNode(JBossToolsUsageActivator.PLUGIN_ID);
+ preferences.putBoolean(IUsageReportPreferenceConstants.USAGEREPORT_ENABLED, enabled);
+ }
+
+ private void report(IUsageTracker tracker) {
+ tracker.trackAsynchronously(focusPoint);
+ }
+
+ private IUsageTracker getAnalyticsTracker() {
+ IGoogleAnalyticsParameters eclipseSettings = new EclipseEnvironment(
+ GANALYTICS_TRACKINGCODE
+ , IGoogleAnalyticsParameters.VALUE_NO_REFERRAL);
+ JGoogleAnalyticsTracker tracker = new JGoogleAnalyticsTracker(eclipseSettings);
+ tracker.setLoggingAdapter(new PluginLogger(JBossToolsUsageActivator.getDefault()));
+ return tracker;
+ }
+
+ private boolean isAskUser() {
+ IEclipsePreferences preferences = getPreferences();
+ return preferences.getBoolean(IUsageReportPreferenceConstants.ASK_USER, true);
+ }
+
+ private void setAskUser(boolean askUser) {
+ try {
+ IEclipsePreferences preferences = getPreferences();
+ preferences.putBoolean(IUsageReportPreferenceConstants.ASK_USER, askUser);
+ preferences.flush();
+ } catch (BackingStoreException e) {
+ JBossToolsUsageActivator.getDefault().getLog().log(
+ StatusUtils.getErrorStatus(JBossToolsUsageActivator.PLUGIN_ID, "Could not save preferences {0}", e,
+ IUsageReportPreferenceConstants.ASK_USER));
+ }
+ }
+
+ private boolean isReportEnabled() {
+ return getPreferences().getBoolean(IUsageReportPreferenceConstants.USAGEREPORT_ENABLED, true);
+ }
+
+ private IEclipsePreferences getPreferences() {
+ return new ConfigurationScope().getNode(JBossToolsUsageActivator.PLUGIN_ID);
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReport.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportDispatcher.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportDispatcher.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportDispatcher.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,24 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.internal;
+import org.eclipse.ui.IStartup;
+
+/**
+ *
+ * @author Andre Dieitsheim
+ */
+public class UsageReportDispatcher implements IStartup {
+
+ @Override
+ public void earlyStartup() {
+ new UsageReport().report();
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportDispatcher.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportEnablementDialog.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportEnablementDialog.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportEnablementDialog.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,89 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.internal;
+
+import org.eclipse.jface.dialogs.Dialog;
+import org.eclipse.jface.dialogs.IDialogConstants;
+import org.eclipse.jface.layout.GridDataFactory;
+import org.eclipse.jface.window.IShellProvider;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.widgets.Button;
+import org.eclipse.swt.widgets.Composite;
+import org.eclipse.swt.widgets.Control;
+import org.eclipse.swt.widgets.Label;
+import org.eclipse.swt.widgets.Shell;
+
+/**
+ * @author Andre Dietisheim
+ */
+public class UsageReportEnablementDialog extends Dialog {
+
+ private Button checkBox;
+ private String title;
+ private String message;
+ private boolean reportEnabled;
+ private String checkBoxLabel;
+
+ public UsageReportEnablementDialog(String title, String message, String checkBoxLabel,
+ boolean reportEnabled, IShellProvider parentShell) {
+ super(parentShell);
+ this.title = title;
+ this.message = message;
+ this.checkBoxLabel = checkBoxLabel;
+ this.reportEnabled = reportEnabled;
+ }
+
+ protected void buttonPressed(int buttonId) {
+ if (buttonId == IDialogConstants.OK_ID) {
+ this.reportEnabled = checkBox.getSelection();
+ }
+ else if (buttonId == IDialogConstants.CANCEL_ID) {
+ this.reportEnabled = false;
+ }
+ super.buttonPressed(buttonId);
+ }
+
+ protected void configureShell(Shell shell) {
+ super.configureShell(shell);
+ if (title != null) {
+ shell.setText(title);
+ }
+ }
+
+ protected void createButtonsForButtonBar(Composite parent) {
+ createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL, true);
+ createButton(parent, IDialogConstants.CANCEL_ID, IDialogConstants.CANCEL_LABEL, false);
+ checkBox.setFocus();
+ checkBox.setSelection(reportEnabled);
+ }
+
+ protected Control createDialogArea(Composite parent) {
+ Composite composite = (Composite) super.createDialogArea(parent);
+ if (message != null) {
+ Label label = new Label(composite, SWT.WRAP);
+ label.setFont(parent.getFont());
+ label.setText(message);
+ GridDataFactory.fillDefaults()
+ .align(SWT.FILL, SWT.CENTER).grab(true, false)
+ .hint(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH, SWT.DEFAULT)
+ .applyTo(label);
+ }
+ checkBox = new Button(composite, SWT.CHECK);
+ checkBox.setText(checkBoxLabel);
+ GridDataFactory.fillDefaults().grab(true, false).align(SWT.LEFT, SWT.CENTER).applyTo(checkBox);
+ applyDialogFont(composite);
+ return composite;
+ }
+
+ public boolean isReportEnabled() {
+ return reportEnabled;
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/internal/UsageReportEnablementDialog.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/AbstractGoogleAnalyticsParameters.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/AbstractGoogleAnalyticsParameters.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/AbstractGoogleAnalyticsParameters.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,33 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+
+public abstract class AbstractGoogleAnalyticsParameters implements IGoogleAnalyticsParameters {
+
+ private String accountName;
+ private String referral;
+
+ public AbstractGoogleAnalyticsParameters(String accountName, String referral) {
+ this.accountName = accountName;
+ this.referral = referral;
+ }
+
+ @Override
+ public String getAccountName() {
+ return accountName;
+ }
+
+ @Override
+ public String getReferral() {
+ return referral;
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/AbstractGoogleAnalyticsParameters.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,206 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+import java.util.Random;
+
+import org.eclipse.core.runtime.IProduct;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.swt.graphics.Rectangle;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.PlatformUI;
+import org.jboss.tools.usage.internal.JBossToolsUsageActivator;
+import org.jboss.tools.usage.preferences.IUsageReportPreferenceConstants;
+import org.jboss.tools.usage.util.PreferencesUtil;
+import org.jboss.tools.usage.util.StatusUtils;
+import org.osgi.framework.Bundle;
+import org.osgi.service.prefs.BackingStoreException;
+import org.osgi.service.prefs.Preferences;
+
+public class EclipseEnvironment extends AbstractGoogleAnalyticsParameters implements IGoogleAnalyticsParameters {
+
+ private static final String SCREERESOLUTION_DELIMITER = "x";
+
+ private static final String ECLIPSE_RUNTIME_BULDEID = "org.eclipse.core.runtime";
+
+ private static final char VERSION_DELIMITER = '.';
+
+ private static final String SCREENCOLORDEPTH_POSTFIX = "-bit";
+
+ private static final char JAVA_LOCALE_DELIMITER = '_';
+
+ private static final char BROWSER_LOCALE_DELIMITER = '-';
+
+ private String screenResolution;
+
+ private String screenColorDepth;
+
+ private Random random;
+
+ public EclipseEnvironment(String accountName, String referral) {
+ super(accountName, referral);
+ this.random = new Random();
+ initScreenSettings(getDisplay());
+ }
+
+ @Override
+ public String getScreenResolution() {
+ return screenResolution;
+ }
+
+ @Override
+ public String getHostname() {
+ /* TODO implement */
+ return "jboss.org";
+ }
+
+ @Override
+ public String getBrowserLanguage() {
+ String nl = Platform.getNL(); //$NON-NLS-1$
+ if (nl == null) {
+ return "";
+ }
+
+ int indexOf = nl.indexOf(JAVA_LOCALE_DELIMITER); //$NON-NLS-1$
+ if (indexOf <= 0) {
+ return nl;
+ }
+
+ StringBuilder builder = new StringBuilder();
+ builder.append(nl.substring(0, indexOf));
+ builder.append(BROWSER_LOCALE_DELIMITER);
+ builder.append(nl.substring(indexOf + 1).toLowerCase());
+ return builder.toString();
+ }
+
+ private void initScreenSettings(final Display display) {
+ display.syncExec(new Runnable() {
+ @Override
+ public void run() {
+ screenColorDepth = display.getDepth() + SCREENCOLORDEPTH_POSTFIX;
+
+ Rectangle bounds = display.getBounds();
+ screenResolution = bounds.width + SCREERESOLUTION_DELIMITER + bounds.height;
+ }
+ });
+ }
+
+ @Override
+ public String getScreenColorDepth() {
+ return screenColorDepth;
+ }
+
+ private Display getDisplay() {
+ if (PlatformUI.isWorkbenchRunning()) {
+ return PlatformUI.getWorkbench().getDisplay();
+ }
+
+ Display display = Display.getCurrent();
+ if (display == null) {
+ display = Display.getDefault();
+ }
+ return display;
+ }
+
+ @Override
+ public String getUserAgent() {
+
+ String productId = getDefiningBundle().getSymbolicName();
+ String productVersion = getProductVersion();
+ String eclipseVersion = getEclipseVersion();
+ String windowSystem = Platform.getWS();
+ String os = Platform.getOS();
+ String architecture = Platform.getOSArch();
+ String browserLanguage = Platform.getNL();
+ String buildId = getBuildId();
+
+ /**
+ * Google API for android: this.userAgent = String.format(
+ * "GoogleAnalytics/%s (Linux; U; Android %s; %s-%s; %s; Build/%s)" ,
+ * new Object[] { "1.0" , Build.VERSION.RELEASE ,
+ * (localLocale.getLanguage() != null) ?
+ * localLocale.getLanguage().toLowerCase() : "en" ,
+ * (localLocale.getCountry() != null) ?
+ * localLocale.getCountry().toLowerCase() : "" , Build.MODEL, Build.ID
+ * });
+ */
+
+ // return
+ // MessageFormat.format("{0}/{1} ({2}; U; {3} {4}; {5}) {6} Eclipse/{7}"
+ // , productId
+ // , productVersion
+ // , windowSystem
+ // , os
+ // , architecture
+ // , browserLanguage
+ // , buildId
+ // , eclipseVersion);
+ return "EclipseEnvironment/.0.2";
+ }
+
+ private String getEclipseVersion() {
+ return Platform.getBundle(ECLIPSE_RUNTIME_BULDEID).getVersion().toString();
+ }
+
+ private String getBuildId() {
+ String fullVersion = getDefiningBundle().getVersion().toString();
+ int buildIdStart = fullVersion.lastIndexOf(VERSION_DELIMITER);
+ if (buildIdStart > 0) {
+ return fullVersion.substring(buildIdStart + 1);
+ } else {
+ return fullVersion;
+ }
+ }
+
+ private String getProductVersion() {
+ String fullVersion = getDefiningBundle().getVersion().toString();
+ int productVersionStart = fullVersion.lastIndexOf(VERSION_DELIMITER);
+ if (productVersionStart > 0) {
+ return fullVersion.substring(0, productVersionStart);
+ } else {
+ return fullVersion;
+ }
+ }
+
+ private Bundle getDefiningBundle() {
+ IProduct product = Platform.getProduct();
+ if (product != null) {
+ return product.getDefiningBundle();
+ } else {
+ return Platform.getBundle(ECLIPSE_RUNTIME_BULDEID);
+ }
+ }
+
+ @Override
+ public String getUserId() {
+ Preferences preferences = PreferencesUtil.getConfigurationPreferences();
+ String userId = getIdentifier();
+ try {
+ if (!preferences.nodeExists(IUsageReportPreferenceConstants.ECLIPSE_INSTANCE_ID)) {
+ preferences.put(IUsageReportPreferenceConstants.ECLIPSE_INSTANCE_ID, userId);
+ preferences.flush();
+ } else {
+ userId = preferences.get(IUsageReportPreferenceConstants.ECLIPSE_INSTANCE_ID, userId);
+ }
+ } catch (BackingStoreException e) {
+ StatusUtils.getErrorStatus(JBossToolsUsageActivator.PLUGIN_ID, "Could not retrieve {0} from preferences.",
+ e, IUsageReportPreferenceConstants.ECLIPSE_INSTANCE_ID);
+ }
+ return userId;
+ }
+
+ private String getIdentifier() {
+ StringBuilder builder = new StringBuilder();
+ builder.append(random.nextLong());
+ builder.append(System.currentTimeMillis());
+ return builder.toString();
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/EclipseEnvironment.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/FocusPoint.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/FocusPoint.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/FocusPoint.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,73 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+import org.jboss.tools.usage.util.EncodingUtils;
+
+/**
+ * Focus point of the application. It can represent data points like application
+ * load, application module load, user actions, error events etc.
+ */
+
+public class FocusPoint {
+
+ private String name;
+ private FocusPoint childFocusPoint;
+ public static final String URI_SEPARATOR = "/";
+ public static final String TITLE_SEPARATOR = "-";
+
+ public FocusPoint(String name) {
+ this.name = name;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public FocusPoint setChild(FocusPoint childFocusPoint) {
+ this.childFocusPoint = childFocusPoint;
+ return this;
+ }
+
+ public FocusPoint getChild() {
+ return childFocusPoint;
+ }
+
+ public String getContentURI() {
+ StringBuilder builder = new StringBuilder();
+ appendContentURI(builder, this);
+ return EncodingUtils.checkedEncodeUtf8(builder.toString());
+ }
+
+ private void appendContentURI(StringBuilder builder, FocusPoint focusPoint) {
+ FocusPoint parentFocuPoint = focusPoint.getChild();
+ builder.append(URI_SEPARATOR);
+ builder.append(focusPoint.getName());
+ if (parentFocuPoint != null) {
+ appendContentURI(builder, parentFocuPoint);
+ }
+ }
+
+ public String getContentTitle() {
+ StringBuilder builder = new StringBuilder();
+ appendContentTitle(builder, this);
+ return EncodingUtils.checkedEncodeUtf8(builder.toString());
+ }
+
+ private void appendContentTitle(StringBuilder builder, FocusPoint focusPoint) {
+ FocusPoint childFocusPoint = focusPoint.getChild();
+ builder.append(focusPoint.getName());
+ builder.append(TITLE_SEPARATOR);
+ if (childFocusPoint != null) {
+ appendContentTitle(builder, childFocusPoint);
+ }
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/FocusPoint.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/GoogleAnalyticsURLStrategy.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/GoogleAnalyticsURLStrategy.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/GoogleAnalyticsURLStrategy.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,217 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+import java.io.UnsupportedEncodingException;
+
+import org.jboss.tools.usage.util.EncodingUtils;
+
+/**
+ * URL building logic for the earlier versions of google analytics (urchin.js)
+ *
+ * @author : Siddique Hameed, Andre Dietisheim
+ * @version : 0.2
+ */
+
+public class GoogleAnalyticsURLStrategy implements IURLBuildingStrategy {
+
+ private static final String TRACKING_URL = "http://www.google-analytics.com/__utm.gif";
+
+ private static final String ENCODING_UTF8 = "UTF-8";
+
+ private static final long TIMESTAMP = -1;
+
+ private static final int VISITS = -1;
+
+ private IGoogleAnalyticsParameters googleParameters;
+
+ public GoogleAnalyticsURLStrategy(IGoogleAnalyticsParameters googleAnalyticsParameters) {
+ this.googleParameters = googleAnalyticsParameters;
+ }
+
+ public String build(FocusPoint focusPoint) throws UnsupportedEncodingException {
+
+ /*
+ * Google Analytics for Android:
+ *
+ * String str = "";
+ * if (paramEvent.action != null)
+ * str = paramEvent.action;
+ * if (!(str.startsWith("/")))
+ * str = "/" + str;
+ * str = encode(str);
+ * Locale localLocale = Locale.getDefault();
+ * StringBuilder localStringBuilder = new StringBuilder();
+ * localStringBuilder.append("/__utm.gif");
+ * localStringBuilder.append("?utmwv=4.3");
+ * localStringBuilder.append("&utmn=").append(paramEvent.randomVal);
+ * localStringBuilder.append("&utmcs=UTF-8");
+ * localStringBuilder.append(String.format("&utmsr=%dx%d", new Object[] {
+ * Integer.valueOf(paramEvent.screenWidth)
+ * , Integer.valueOf(paramEvent.screenHeight) }));
+ * localStringBuilder.append(String.format("&utmul=%s-%s", new Object[] {
+ * localLocale.getLanguage()
+ * , localLocale.getCountry() }));
+ * localStringBuilder.append("&utmp=").append(str);
+ * localStringBuilder.append("&utmac=").append(paramEvent.accountId);
+ * localStringBuilder.append("&utmcc=").append(
+ * getEscapedCookieString(paramEvent, paramString));
+ * return localStringBuilder.toString();
+ */
+
+ StringBuilder builder = new StringBuilder(TRACKING_URL)
+ .append(IGoogleAnalyticsParameters.URL_PARAM_DELIMITER);
+ appendParameter(IGoogleAnalyticsParameters.PARAM_TRACKING_CODE_VERSION,
+ IGoogleAnalyticsParameters.VALUE_TRACKING_CODE_VERSION, builder);
+ appendParameter(IGoogleAnalyticsParameters.PARAM_UNIQUE_TRACKING_NUMBER, getRandomNumber(), builder);
+ // appendParameter(IGoogleAnalyticsParameters.PARAM_HID,
+ // getRandomNumber(), builder);
+ appendParameter(IGoogleAnalyticsParameters.PARAM_LANGUAGE_ENCODING, ENCODING_UTF8, builder);
+ appendParameter(IGoogleAnalyticsParameters.PARAM_SCREEN_COLOR_DEPTH, googleParameters.getScreenColorDepth(),
+ builder);
+ appendParameter(IGoogleAnalyticsParameters.PARAM_SCREEN_RESOLUTION, googleParameters.getScreenResolution(),
+ builder);
+ appendParameter(IGoogleAnalyticsParameters.PARAM_BROWSER_LANGUAGE, googleParameters.getBrowserLanguage(),
+ builder);
+ // appendParameter(IGoogleAnalyticsParameters.PARAM_REPEAT_CAMPAIGN_VISIT,
+ // "1", builder);
+ // appendParameter(IGoogleAnalyticsParameters.PARAM_PAGE_TITLE,
+ // focusPoint.getContentTitle(), builder);
+ // appendParameter(IGoogleAnalyticsParameters.PARAM_HOST_NAME,
+ // googleParameters.getHostname(), builder);
+ // appendParameter(IGoogleAnalyticsParameters.PARAM_REFERRAL,
+ // googleParameters.getReferral(), builder);
+ appendParameter(IGoogleAnalyticsParameters.PARAM_PAGE_REQUEST, focusPoint.getContentURI(), builder);
+ appendParameter(IGoogleAnalyticsParameters.PARAM_ACCOUNT_NAME, googleParameters.getAccountName(), builder);
+ appendCookies(focusPoint, builder);
+ appendParameter(IGoogleAnalyticsParameters.PARAM_GAQ, "1", false, builder);
+
+ // StringBuilder builder = new StringBuilder()
+ // .append(TRACKING_URL)
+ // .append(URL_PARAM_DELIMITER);
+ // appendParameter(IGoogleAnalyticsParameters.TRACKING_CODE_VERSION,
+ // IGoogleAnalyticsParameters.URCHIN_VERSION, builder);
+ // appendParameter(IGoogleAnalyticsParameters.UNIQUE_TRACKING_NUMBER,
+ // getRandomNumber(), builder);
+ // appendParameter(IGoogleAnalyticsParameters.HOST_NAME,
+ // URLEncoder.encode(googleParameters.getHostname(), ENCODING_UTF8),
+ // builder);
+ // appendParameter(IGoogleAnalyticsParameters.REFERRAL,
+ // URLEncoder.encode(googleParameters.getReferral(), ENCODING_UTF8),
+ // builder);
+ // appendParameter(IGoogleAnalyticsParameters.PAGE_REQUEST,
+ // URLEncoder.encode(appFocusPoint.getContentURI(), ENCODING_UTF8),
+ // builder);
+ // appendParameter(IGoogleAnalyticsParameters.ACCOUNT_NAME,
+ // googleParameters.getAccountName(), builder);
+ // appendParameter(IGoogleAnalyticsParameters.COOKIE_VALUES,
+ // "__utma%3D999.999.999.999.999.1%3B", builder);
+ // appendParameter(IGoogleAnalyticsParameters.LANGUAGE_ENCODING,
+ // ENCODING_UTF8, builder);
+ // appendParameter(IGoogleAnalyticsParameters.SCREEN_RESOLUTION,
+ // googleParameters.getScreenResolution(), builder);
+ // .append("&utmvid=").append(new EclipseInstance().toString());
+ // .append("&utmip=").append(getIpAddress());
+
+ return builder.toString();
+ }
+
+ private void appendCookies(FocusPoint focusPoint, StringBuilder builder) {
+
+ StringBuilder stringBuilder = new StringBuilder();
+ stringBuilder.append(IGoogleAnalyticsParameters.PARAM_COOKIES_FIRST_VISIT)
+ .append(IGoogleAnalyticsParameters.EQUALS_SIGN)
+ .append("999.")
+ .append(googleParameters.getUserId()).append(IGoogleAnalyticsParameters.DOT)
+ .append(TIMESTAMP).append(IGoogleAnalyticsParameters.DOT)
+ .append(TIMESTAMP).append(IGoogleAnalyticsParameters.DOT)
+ .append(TIMESTAMP).append(IGoogleAnalyticsParameters.DOT)
+ .append(VISITS)
+ .append(IGoogleAnalyticsParameters.PLUS_SIGN)
+ .append(IGoogleAnalyticsParameters.PARAM_COOKIES_REFERRAL_TYPE)
+ .append(IGoogleAnalyticsParameters.EQUALS_SIGN)
+ .append("999.")
+ .append(TIMESTAMP).append(IGoogleAnalyticsParameters.DOT)
+ .append("1.1.")
+ .append(focusPoint.getContentURI());
+
+ String encodedString = EncodingUtils.checkedEncodeUtf8(stringBuilder.toString());
+ builder.append(encodedString);
+
+ // builder.append(IGoogleAnalyticsParameters.PARAM_COOKIE_VALUES)
+ // .append(IGoogleAnalyticsParameters.EQUALS_SIGN)
+ // .append("__utma%3D")
+ // .append(getRandomNumber())
+ // .append(".")
+ // .append(getRandomNumber())
+ // .append(".")
+ // .append(now)
+ // .append(".")
+ // .append(now)
+ // .append(".")
+ // .append(now)
+ // .append(".2%3B%2B)")
+ //
+ // // .append("__utmb%3D")
+ // // .append(getRandomNumber())
+ // // .append("%3B%2B__utmc%3D")
+ // // .append(getRandomNumber())
+ // // .append("%3B%2B")
+ //
+ // .append("__utmz%3D")
+ // .append(getRandomNumber())
+ // .append(".")
+ // .append(now)
+ // .append(IGoogleAnalyticsParameters.AMPERSAND);
+
+ // .append("utmcsr%3D(direct)%7C")
+ // .append("utmccn%3D(direct)%7C")
+ // .append("utmcmd%3D(none)%3B");
+
+ }
+
+ private String getRandomNumber() {
+ return Integer.toString((int) (Math.random() * 0x7fffffff));
+ }
+
+ private void appendParameter(String name, String value, StringBuilder builder) {
+ appendParameter(name, value, true, builder);
+ }
+
+ private void appendParameter(String name, String value, boolean appendAmpersand, StringBuilder builder) {
+ builder.append(name)
+ .append(IGoogleAnalyticsParameters.EQUALS_SIGN)
+ .append(value);
+ if (appendAmpersand) {
+ builder.append(IGoogleAnalyticsParameters.AMPERSAND);
+ }
+ }
+
+ // private String getIpAddress() throws SocketException {
+ // Enumeration<NetworkInterface> e1 =
+ // (Enumeration<NetworkInterface>)NetworkInterface.getNetworkInterfaces();
+ // while(e1.hasMoreElements()) {
+ // NetworkInterface ni = e1.nextElement();
+ //
+ // System.out.print(ni.getName());
+ // System.out.print(" : [");
+ // Enumeration<InetAddress> e2 = ni.getInetAddresses();
+ // while(e2.hasMoreElements()) {
+ // InetAddress ia = e2.nextElement();
+ // System.out.print(ia);
+ // if( e2.hasMoreElements()) {
+ // System.out.print(",");
+ // }
+ // }
+ // System.out.println("]");
+ // }
+ // }
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/GoogleAnalyticsURLStrategy.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/HttpGetMethod.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/HttpGetMethod.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/HttpGetMethod.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,88 @@
+package org.jboss.tools.usage.jgoogleanalytics;
+
+import java.io.IOException;
+import java.net.CookieHandler;
+import java.net.CookieManager;
+import java.net.CookiePolicy;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.text.MessageFormat;
+
+/**
+ * Simple class peforming HTTP Get method on the requested url
+ *
+ * @author Siddique Hameed
+ * @author Andre Dietisheim
+ * @version 0.2
+ */
+
+public class HttpGetMethod {
+ private static final String USER_AGENT = "User-Agent";
+ private static final String GET_METHOD_NAME = "GET";
+ private static final String SUCCESS_MESSAGE = "Http Get to url {0} successfull!";
+ private static final String ERROR_MESSAGE = "Http Get to {0} failed, response code was {1}";
+
+ private ILoggingAdapter loggingAdapter = null;
+
+ private CookieManager cookieHandler = new CookieManager();
+ private String userAgent;
+
+ public HttpGetMethod(String userAgent) {
+ this.userAgent = userAgent;
+ }
+
+ public void setLoggingAdapter(ILoggingAdapter loggingAdapter) {
+ this.loggingAdapter = loggingAdapter;
+ }
+
+ public void request(String urlString) {
+
+ CookieHandler originalCookieHandler = setupCookieHandler();
+ try {
+ HttpURLConnection urlConnection = createURLConnection(urlString, userAgent);
+ urlConnection.connect();
+ int responseCode = getResponseCode(urlConnection);
+ if (responseCode != HttpURLConnection.HTTP_OK) {
+ logError(ERROR_MESSAGE, urlString, responseCode);
+ } else {
+ logMessage(SUCCESS_MESSAGE, urlString);
+ }
+ } catch (Exception e) {
+ logError(e.getMessage());
+ } finally {
+ CookieHandler.setDefault(originalCookieHandler);
+ }
+ }
+
+ private CookieHandler setupCookieHandler() {
+ CookieHandler old = CookieHandler.getDefault();
+ cookieHandler.setCookiePolicy(CookiePolicy.ACCEPT_ALL);
+ CookieHandler.setDefault(cookieHandler);
+ return old;
+ }
+
+ protected int getResponseCode(HttpURLConnection urlConnection) throws IOException {
+ return urlConnection.getResponseCode();
+ }
+
+ protected HttpURLConnection createURLConnection(String urlString, String userAgent) throws IOException {
+ URL url = new URL(urlString);
+ HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
+ urlConnection.setInstanceFollowRedirects(true);
+ urlConnection.setRequestMethod(GET_METHOD_NAME);
+ urlConnection.setRequestProperty(USER_AGENT, userAgent);
+ return urlConnection;
+ }
+
+ private void logMessage(String message, Object... parameters) {
+ if (loggingAdapter != null) {
+ loggingAdapter.logMessage(MessageFormat.format(message, parameters));
+ }
+ }
+
+ private void logError(String errorMesssage, Object... parameters) {
+ if (loggingAdapter != null) {
+ loggingAdapter.logError(MessageFormat.format(errorMesssage, parameters));
+ }
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/HttpGetMethod.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IGoogleAnalyticsParameters.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IGoogleAnalyticsParameters.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IGoogleAnalyticsParameters.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,68 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+/**
+ * An interface that provides methods for all parameters that google analytics
+ * needs to know about.
+ *
+ * @see <a
+ * href="http://code.google.com/apis/analytics/docs/tracking/gaTrackingTroubleshoo...">GIF Request Parameters</a>
+ */
+public interface IGoogleAnalyticsParameters {
+
+ public static final char AMPERSAND = '&';
+ public static final char EQUALS_SIGN = '=';
+ public static final char URL_PARAM_DELIMITER = '?';
+
+ public static final String PARAM_HID = "utmhid";
+ public static final String PARAM_PAGE_REQUEST = "utmp";
+ public static final String PARAM_ACCOUNT_NAME = "utmac";
+ public static final String PARAM_HOST_NAME = "utmhn";
+ public static final String PARAM_COOKIES = "utmcc";
+ public static final String PARAM_COOKIES_FIRST_VISIT = "__utma";
+
+ public static final String PARAM_REFERRAL = "utmr";
+ public static final String PARAM_TRACKING_CODE_VERSION = "utmwv";
+ public static final String PARAM_UNIQUE_TRACKING_NUMBER = "utmn";
+ public static final String PARAM_LANGUAGE_ENCODING = "utmcs";
+ public static final String PARAM_SCREEN_RESOLUTION = "utmsr";
+ public static final String PARAM_SCREEN_COLOR_DEPTH = "utmsc";
+ public static final String PARAM_PRODUCT_NAME = "utmipn";
+ public static final String PARAM_PRODUCT_CODE = "utmipc";
+ public static final String PARAM_BROWSER_LANGUAGE = "utmul";
+ public static final String PARAM_REPEAT_CAMPAIGN_VISIT = "utmcr";
+ public static final String PARAM_PAGE_TITLE = "utmdt";
+ public static final String PARAM_GAQ = "gaq";
+
+ public static final String VALUE_TRACKING_CODE_VERSION = "4.3";
+ public static final String VALUE_NO_REFERRAL = "-";
+ public static final char PLUS_SIGN = '+';
+ public static final String PARAM_COOKIES_REFERRAL_TYPE = "__utmz";
+ public static final char DOT = '.';
+
+ public String getAccountName();
+
+ public String getReferral();
+
+ public String getScreenResolution();
+
+ public String getScreenColorDepth();
+
+ public String getBrowserLanguage();
+
+ public String getHostname();
+
+ public String getUserAgent();
+
+ public String getUserId();
+
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IGoogleAnalyticsParameters.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/ILoggingAdapter.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/ILoggingAdapter.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/ILoggingAdapter.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+/**
+ * Interface for logging adapter. You can hook up log4j, System.out or any other loggers you want.
+ *
+ * @author : Siddique Hameed
+ * @version : 0.1
+ */
+
+public interface ILoggingAdapter {
+
+ public void logError(String errorMessage);
+
+ public void logMessage(String message);
+
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/ILoggingAdapter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IURLBuildingStrategy.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IURLBuildingStrategy.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IURLBuildingStrategy.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,26 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+import java.io.UnsupportedEncodingException;
+
+/**
+ * Interface for the URL building strategy
+ *
+ * @author Andre Dietisheim
+ *
+ */
+
+public interface IURLBuildingStrategy {
+
+ public String build(FocusPoint focusPoint) throws UnsupportedEncodingException;
+
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/IURLBuildingStrategy.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,100 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+import java.io.UnsupportedEncodingException;
+import java.text.MessageFormat;
+
+import org.jboss.tools.usage.IUsageTracker;
+
+/**
+ * Main class for tracking google analytics data.
+ *
+ * @author Siddique Hameed
+ * @author Andre Dietisheim
+ * @version 0.2
+ * @see : <a
+ * href="http://JGoogleAnalytics.googlecode.com">http://JGoogleAnalytics
+ * .googlecode.com</a>
+ */
+
+public class JGoogleAnalyticsTracker implements IUsageTracker {
+
+ private IURLBuildingStrategy urlBuildingStrategy = null;
+ private HttpGetMethod httpRequest;
+ private ILoggingAdapter loggingAdapter;
+
+ /**
+ * Simple constructor passing the application name & google analytics
+ * tracking code.
+ *
+ * @param appName
+ * Application name (For ex: "LibraryFinder")
+ */
+ public JGoogleAnalyticsTracker(IGoogleAnalyticsParameters googleParameters) {
+ this.httpRequest = new HttpGetMethod(googleParameters.getUserAgent());
+ this.urlBuildingStrategy = new GoogleAnalyticsURLStrategy(googleParameters);
+ }
+
+ /**
+ * Setter injection for LoggingAdpater. You can hook up log4j, System.out or
+ * any other loggers you want.
+ *
+ * @param loggingAdapter
+ * implemented instance of LoggingAdapter
+ */
+
+ public void setLoggingAdapter(ILoggingAdapter loggingAdapter) {
+ this.loggingAdapter = loggingAdapter;
+ httpRequest.setLoggingAdapter(loggingAdapter);
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.usage.analytics.jgoogleanalytics.UsageAnalyticsTracker#trackSynchronously(org.jboss.tools.usage.analytics.jgoogleanalytics.FocusPoint)
+ */
+
+ public void trackSynchronously(FocusPoint focusPoint) throws UnsupportedEncodingException {
+ logMessage("Tracking synchronously focusPoint=" + focusPoint.getContentTitle());
+ httpRequest.request(urlBuildingStrategy.build(focusPoint));
+ }
+
+ /* (non-Javadoc)
+ * @see org.jboss.tools.usage.analytics.jgoogleanalytics.UsageAnalyticsTracker#trackAsynchronously(org.jboss.tools.usage.analytics.jgoogleanalytics.FocusPoint)
+ */
+
+ public void trackAsynchronously(FocusPoint focusPoint) {
+ logMessage("Tracking Asynchronously focusPoint=" + focusPoint.getContentTitle());
+ new TrackingThread(focusPoint).start();
+ }
+
+ private void logMessage(String message) {
+ if (loggingAdapter != null) {
+ loggingAdapter.logMessage(message);
+ }
+ }
+
+ private class TrackingThread extends Thread {
+ private FocusPoint focusPoint;
+
+ public TrackingThread(FocusPoint focusPoint) {
+ this.focusPoint = focusPoint;
+ this.setPriority(Thread.MIN_PRIORITY);
+ }
+
+ public void run() {
+ try {
+ httpRequest.request(urlBuildingStrategy.build(focusPoint));
+ } catch (UnsupportedEncodingException e) {
+ logMessage(MessageFormat.format("Tracking failed: {0}", e.getMessage()));
+ }
+ }
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/JGoogleAnalyticsTracker.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/PluginLogger.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/PluginLogger.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/PluginLogger.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.jgoogleanalytics;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Plugin;
+import org.eclipse.core.runtime.Status;
+
+public class PluginLogger implements ILoggingAdapter {
+
+ private Plugin plugin;
+
+ public PluginLogger(Plugin plugin) {
+ this.plugin = plugin;
+ }
+
+ public void logError(String message) {
+ log(IStatus.ERROR, message);
+ }
+
+ public void logMessage(String message) {
+ log(IStatus.INFO, message);
+ }
+
+ private void log(int severity, String message) {
+ if (plugin != null) {
+ IStatus status = new Status(severity, plugin.getBundle().getSymbolicName(), message);
+ plugin.getLog().log(status);
+ }
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/jgoogleanalytics/PluginLogger.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/IUsageReportPreferenceConstants.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/IUsageReportPreferenceConstants.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/IUsageReportPreferenceConstants.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,28 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.preferences;
+
+public interface IUsageReportPreferenceConstants {
+
+ /**
+ * Identifies the preferences that states whether the user allows us to
+ * report usage.
+ */
+ public static final String USAGEREPORT_ENABLED = "allowUsageReportPreference";
+
+ /**
+ * Identifies the preferences that states whether the user allows us to
+ * report usage.
+ */
+ public static final String ASK_USER = "askUserPreference";
+
+ public static final String ECLIPSE_INSTANCE_ID = "eclipseInstanceId";
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/IUsageReportPreferenceConstants.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferenceInitializer.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferenceInitializer.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferenceInitializer.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,39 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.preferences;
+
+import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
+import org.eclipse.core.runtime.preferences.ConfigurationScope;
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.ui.preferences.ScopedPreferenceStore;
+import org.jboss.tools.usage.internal.JBossToolsUsageActivator;
+
+public class UsageReportPreferenceInitializer extends
+ AbstractPreferenceInitializer {
+
+ public void initializeDefaultPreferences() {
+ // IPreferenceStore store =
+ // JBossToolsUsageActivator.getDefault().getPreferenceStore();
+ // store.setDefault(PreferenceConstants.P_ALLOW_USAGEREPORT, true);
+// IPreferenceStore store = getPreferencesStore();
+// store.setDefault(UsageReportPreferenceConstants.P_ALLOW_USAGEREPORT, true);
+ IEclipsePreferences preferences = new ConfigurationScope().getNode(JBossToolsUsageActivator.PLUGIN_ID);
+ preferences.putBoolean(IUsageReportPreferenceConstants.USAGEREPORT_ENABLED, true);
+ }
+
+ private IPreferenceStore getPreferencesStore() {
+ IPreferenceStore preferenceStore = new ScopedPreferenceStore(
+ new ConfigurationScope(),
+ JBossToolsUsageActivator.PLUGIN_ID);
+ return preferenceStore;
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferenceInitializer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferencePage.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferencePage.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferencePage.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,62 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.preferences;
+
+import java.io.IOException;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.preferences.ConfigurationScope;
+import org.eclipse.jface.preference.BooleanFieldEditor;
+import org.eclipse.jface.preference.FieldEditorPreferencePage;
+import org.eclipse.jface.preference.IPersistentPreferenceStore;
+import org.eclipse.ui.IWorkbench;
+import org.eclipse.ui.IWorkbenchPreferencePage;
+import org.eclipse.ui.preferences.ScopedPreferenceStore;
+import org.jboss.tools.usage.internal.JBossToolsUsageActivator;
+import org.jboss.tools.usage.util.StatusUtils;
+
+public class UsageReportPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
+
+ private IPersistentPreferenceStore preferences;
+
+ public UsageReportPreferencePage() {
+ super(GRID);
+ setPreferenceStore(this.preferences = createPreferencesStore());
+ }
+
+ private IPersistentPreferenceStore createPreferencesStore() {
+ return new ScopedPreferenceStore(
+ new ConfigurationScope(),
+ JBossToolsUsageActivator.PLUGIN_ID);
+ }
+
+ public void createFieldEditors() {
+ addField(new BooleanFieldEditor(
+ IUsageReportPreferenceConstants.USAGEREPORT_ENABLED
+ , "&Allow JBoss Tools to report usage analytics anonymously for statistical matters"
+ , getFieldEditorParent()));
+ }
+
+ public void init(IWorkbench workbench) {
+ }
+
+ @Override
+ public boolean performOk() {
+ try {
+ preferences.save();
+ } catch (IOException e) {
+ IStatus status = StatusUtils.getErrorStatus(JBossToolsUsageActivator.PLUGIN_ID,
+ "Could not save the preferences.", e);
+ JBossToolsUsageActivator.getDefault().getLog().log(status);
+ }
+ return super.performOk();
+ }
+}
\ No newline at end of file
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/preferences/UsageReportPreferencePage.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,54 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.util;
+
+import java.util.ArrayList;
+import java.util.List;
+import java.util.regex.Pattern;
+
+import org.eclipse.core.runtime.Assert;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+
+public class BundleUtils {
+
+ public static List<Bundle> getBundles(String symbolicNameRegex, BundleContext bundleContext) {
+ List<Bundle> bundleList = new ArrayList<Bundle>();
+ BundleSymbolicNameFilter symbolicNameFilter = new BundleSymbolicNameFilter(symbolicNameRegex);
+ for (Bundle bundle : bundleContext.getBundles()) {
+ if (symbolicNameFilter.matches(bundle)) {
+ bundleList.add(bundle);
+ }
+ }
+ return bundleList;
+ }
+
+ public static class BundleSymbolicNameFilter implements IBundleEntryFilter {
+
+ private Pattern pattern;
+
+ public BundleSymbolicNameFilter(String symbolicNameRegex) {
+ this.pattern = Pattern.compile(symbolicNameRegex);
+ }
+
+ @Override
+ public boolean matches(Bundle bundle) {
+ Assert.isTrue(bundle != null);
+
+ return pattern.matcher(bundle.getSymbolicName()).matches();
+ }
+
+ }
+
+ public static interface IBundleEntryFilter {
+ public boolean matches(Bundle bundle);
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/BundleUtils.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/EncodingUtils.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/EncodingUtils.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/EncodingUtils.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,37 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.util;
+
+import java.io.UnsupportedEncodingException;
+import java.net.URLEncoder;
+
+public class EncodingUtils {
+
+ private static final String ENCODING_UTF8 = "UTF-8";
+
+ /**
+ * Encodes the given string in utf8 while catching exceptions that may
+ * occur. If an encoding exception occurs, <tt>null</tt> is returned
+ *
+ * @param aString
+ * the a string to be encoded
+ * @return the encoded string or <tt>null</tt> if an error occured while
+ * encoding
+ */
+ public static String checkedEncodeUtf8(String aString) {
+ try {
+ return URLEncoder.encode(aString, ENCODING_UTF8);
+ } catch (UnsupportedEncodingException e) {
+ return aString;
+ }
+ }
+
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/EncodingUtils.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/PreferencesUtil.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/PreferencesUtil.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/PreferencesUtil.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,27 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.util;
+
+import org.eclipse.core.runtime.preferences.ConfigurationScope;
+import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.jboss.tools.usage.internal.JBossToolsUsageActivator;
+
+public class PreferencesUtil {
+
+ /**
+ * Returns the preferences used for this plugin.
+ *
+ * @return the preferences
+ */
+ public static IEclipsePreferences getConfigurationPreferences() {
+ return new ConfigurationScope().getNode(JBossToolsUsageActivator.PLUGIN_ID);
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/PreferencesUtil.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/StatusUtils.java
===================================================================
--- trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/StatusUtils.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/StatusUtils.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,81 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.util;
+
+import java.text.MessageFormat;
+
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
+
+public class StatusUtils {
+
+ private StatusUtils() {
+ // inhibit instantiation
+ }
+
+ /**
+ * Returns an error status for a given plugin id, message and arguments.
+ *
+ * @param pluginId
+ * the plugin id
+ * @param message
+ * the message
+ * @param throwable
+ * the throwable
+ * @param messageArguments
+ * the message arguments
+ * @return the error status
+ */
+ public static IStatus getErrorStatus(String pluginId, String message, Throwable throwable,
+ Object... messageArguments) {
+ String formattedMessage = null;
+ if (message != null) {
+ formattedMessage = MessageFormat.format(message, messageArguments);
+ }
+ return new Status(Status.ERROR, pluginId, Status.ERROR, formattedMessage,
+ throwable);
+ }
+
+ /**
+ * Returns an debug status for a given plugin id, message and arguments.
+ *
+ * @param pluginId
+ * the plugin id
+ * @param message
+ * the message
+ * @param messageArguments
+ * the message arguments
+ *
+ * @return the debug status
+ */
+ public static IStatus getDebugStatus(String pluginId, String message, Object... messageArguments) {
+ return new Status(Status.INFO, pluginId, Status.INFO, MessageFormat.format(message, messageArguments), null);
+ }
+
+ /**
+ * Clones a given status.
+ *
+ * @param status
+ * the status
+ *
+ * @return the i status
+ */
+ public static IStatus clone(IStatus status) {
+ switch (status.getSeverity()) {
+ case IStatus.INFO:
+ return getDebugStatus(status.getPlugin(), status.getMessage());
+ case IStatus.ERROR:
+ return getErrorStatus(status.getPlugin(), status.getMessage(), status.getException());
+ default:
+ throw new UnsupportedOperationException("noy implemented yet!");
+ }
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage/src/org/jboss/tools/usage/util/StatusUtils.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage.test/.classpath
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/.classpath (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/.classpath 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: trunk/usage/org.jboss.tools.usage.test/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage.test/.project
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/.project (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/.project 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.usage.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/usage/org.jboss.tools.usage.test/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.core.prefs 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,266 @@
+#Fri Aug 06 17:57:19 CEST 2010
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
+org.eclipse.jdt.core.compiler.compliance=1.6
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.6
+org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_assignment=0
+org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
+org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
+org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
+org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
+org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
+org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
+org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
+org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
+org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_after_package=1
+org.eclipse.jdt.core.formatter.blank_lines_before_field=0
+org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
+org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
+org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
+org.eclipse.jdt.core.formatter.blank_lines_before_method=1
+org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
+org.eclipse.jdt.core.formatter.blank_lines_before_package=0
+org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
+org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
+org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
+org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=false
+org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=false
+org.eclipse.jdt.core.formatter.comment.format_block_comments=false
+org.eclipse.jdt.core.formatter.comment.format_header=false
+org.eclipse.jdt.core.formatter.comment.format_html=true
+org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
+org.eclipse.jdt.core.formatter.comment.format_line_comments=true
+org.eclipse.jdt.core.formatter.comment.format_source_code=true
+org.eclipse.jdt.core.formatter.comment.indent_parameter_description=true
+org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
+org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=insert
+org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=insert
+org.eclipse.jdt.core.formatter.comment.line_length=80
+org.eclipse.jdt.core.formatter.compact_else_if=true
+org.eclipse.jdt.core.formatter.continuation_indentation=2
+org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
+org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
+org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
+org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_empty_lines=false
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
+org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
+org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
+org.eclipse.jdt.core.formatter.indentation.size=4
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member=insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
+org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
+org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
+org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
+org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
+org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
+org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
+org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
+org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
+org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
+org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
+org.eclipse.jdt.core.formatter.join_lines_in_comments=true
+org.eclipse.jdt.core.formatter.join_wrapped_lines=false
+org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
+org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
+org.eclipse.jdt.core.formatter.lineSplit=120
+org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
+org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
+org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
+org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
+org.eclipse.jdt.core.formatter.tabulation.char=tab
+org.eclipse.jdt.core.formatter.tabulation.size=4
+org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
+org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
Property changes on: trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.ui.prefs
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.ui.prefs (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.ui.prefs 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,4 @@
+#Fri Jul 30 15:03:59 CEST 2010
+eclipse.preferences.version=1
+formatter_profile=_Eclipse [built-in] extended
+formatter_settings_version=11
Property changes on: trunk/usage/org.jboss.tools.usage.test/.settings/org.eclipse.jdt.ui.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage.test/FocusPointTest.launch
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/FocusPointTest.launch (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/FocusPointTest.launch 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<stringAttribute key="application" value="org.eclipse.pde.junit.runtime.coretestapplication"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="false"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/FocusPointTest.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
+<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jboss.tools.usage.test.FocusPointTest"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.jboss.tools.usage.test"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="com.jboss.jbds.product.product"/>
+<booleanAttribute key="run_in_ui_thread" value="true"/>
+<stringAttribute key="selected_target_plugins" value="org.eclipse.core.net.linux.x86@default:false,org.eclipse.ui.views@default:default,org.eclipse.ecf.provider.filetransfer.ssl@default:false,javax.transaction@default:false,org.eclipse.jface.databinding@default:default,org.eclipse.equinox.security@default:default,org.eclipse.ui.forms@default:default,org.eclipse.equinox.p2.engine@default:default,org.eclipse.core.runtime@default:true,org.eclipse.core.resources.compatibility@default:false,org.eclipse.ecf.identity@default:default,com.springsource.org.apache.commons.logging@default:default,org.eclipse.osgi.services@default:default,com.ibm.icu@default:default,org.eclipse.core.jobs@default:default,org.eclipse.ant.core@default:default,com.springsource.org.apache.commons.codec@default:default,org.eclipse.ecf.filetransfer@default:default,org.eclipse.ecf.provider.filetransfer@default:default,org.eclipse.jface@default:default,org.junit4@default:default,org.hamcrest.core@default:default!
,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.equinox.preferences@default:default,org.eclipse.core.commands@default:default,org.eclipse.equinox.p2.jarprocessor@default:default,org.eclipse.core.resources@default:default,org.eclipse.core.variables@default:default,org.eclipse.ecf@default:default,org.eclipse.ui@default:default,org.eclipse.equinox.p2.artifact.repository@default:default,org.eclipse.core.databinding.property@default:default,org.eclipse.text@default:default,org.apache.commons.httpclient@default:default,org.eclipse.ui.ide@default:default,org.eclipse.ecf.ssl@default:false,org.eclipse.equinox.common@2:true,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.equinox.p2.metadata@default:default,org.eclipse.core.databinding@default:default,org.eclipse.help@default:default,javax.servlet@default:default,org.eclipse.equinox.p2.metadata.repository@default:default,org.eclipse.core.net@default:default,org.eclipse.core.databindin!
g.observable@default:default,org.jboss.tools.xulrunner.initial!
izer@def
ault:false,org.eclipse.jface.text@default:default,org.eclipse.core.filesystem@default:default,org.eclipse.osgi@-1:true,org.eclipse.core.filesystem.linux.x86@default:false,org.eclipse.core.expressions@default:default,org.eclipse.equinox.p2.core@default:default,org.eclipse.equinox.app@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.ui.workbench@default:default,org.eclipse.equinox.transforms.hook@default:false,org.eclipse.equinox.p2.repository@default:default,org.eclipse.swt@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.equinox.concurrent@default:default,org.eclipse.swt.gtk.linux.x86@default:false"/>
+<stringAttribute key="selected_workspace_plugins" value="org.jboss.tools.usage.analytics@default:default,org.jboss.tools.usage.test@default:default"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="false"/>
+</launchConfiguration>
Property changes on: trunk/usage/org.jboss.tools.usage.test/FocusPointTest.launch
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageRequestsTest.launch
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageRequestsTest.launch (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageRequestsTest.launch 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<stringAttribute key="application" value="org.eclipse.pde.junit.runtime.coretestapplication"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="true"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="false"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
+<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jboss.tools.usage.test.JBossToolsUsageRequestsTest"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl}"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.jboss.tools.usage.test"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="com.jboss.jbds.product.product"/>
+<booleanAttribute key="run_in_ui_thread" value="true"/>
+<stringAttribute key="selected_target_plugins" value="org.eclipse.core.resources.compatibility@default:false,com.springsource.javax.servlet@default:default,org.eclipse.core.net.linux.x86@default:false,org.hamcrest.core@default:default,org.apache.ant@default:default,org.eclipse.ui.views.properties.tabbed@default:default,org.eclipse.ui.cheatsheets@default:default,org.eclipse.ui@default:default,org.eclipse.equinox.p2.core@default:default,org.eclipse.ecf.provider.filetransfer.ssl@default:false,org.eclipse.jface.databinding@default:default,org.eclipse.help.base@default:default,org.eclipse.equinox.concurrent@default:default,org.eclipse.ui.navigator.resources@default:default,org.eclipse.equinox.http.servlet@default:default,com.jboss.jbds.product@default:default,com.ibm.icu@default:default,org.eclipse.ecf.ssl@default:false,org.eclipse.ui.ide@default:default,org.eclipse.core.expressions@default:default,org.eclipse.osgi@-1:true,org.eclipse.core.variables@default:default,com.springsou!
rce.org.apache.commons.logging@default:default,org.eclipse.equinox.p2.engine@default:default,org.eclipse.help.ui@default:default,org.eclipse.ui.workbench@default:default,org.eclipse.ui.ide.application@default:default,org.mortbay.jetty.util@default:default,org.eclipse.swt.gtk.linux.x86@default:false,org.eclipse.ui.navigator@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.ui.intro.universal@default:default,org.eclipse.jface.text@default:default,org.apache.jasper@default:default,org.apache.commons.el@default:default,org.eclipse.ecf.provider.filetransfer@default:default,org.eclipse.equinox.common@2:true,javax.transaction@default:false,org.eclipse.ant.core@default:default,org.eclipse.core.databinding@default:default,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.equinox.p2.repository@default:default,com.springsource.javax.el@default:default,org.eclipse.text@default:default,org.eclipse.equinox.p2.jarprocessor@default:!
default,org.jboss.tools.xulrunner.initializer@default:false,or!
g.eclips
e.ui.intro@default:default,org.eclipse.compare.core@default:default,org.eclipse.equinox.p2.metadata@default:default,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.core.databinding.property@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.equinox.transforms.hook@default:false,org.mortbay.jetty.server@default:default,org.eclipse.swt@default:default,org.eclipse.ecf.identity@default:default,org.apache.lucene.analysis@default:default,org.eclipse.ui.forms@default:default,org.eclipse.core.resources@default:default,org.eclipse.core.runtime@default:true,org.eclipse.core.jobs@default:default,org.eclipse.equinox.p2.metadata.repository@default:default,org.eclipse.jface@default:default,org.eclipse.core.filesystem@default:default,org.eclipse.core.net@default:default,org.eclipse.equinox.http.jetty@default:default,javax.servlet@default:default,org.eclipse.core.filesystem.linux.x86@default:false,org.eclipse.ecf@default:default,org.eclipse.equi!
nox.security@default:default,org.eclipse.ecf.filetransfer@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.equinox.p2.artifact.repository@default:default,org.eclipse.ui.views@default:default,org.eclipse.equinox.preferences@default:default,com.springsource.javax.servlet.jsp@default:default,org.apache.lucene@default:default,org.eclipse.help@default:default,org.eclipse.equinox.app@default:default,org.eclipse.ui.workbench.texteditor@default:default,org.eclipse.osgi.services@default:default,org.junit4@default:default,org.eclipse.core.commands@default:default"/>
+<stringAttribute key="selected_workspace_plugins" value="org.jboss.tools.usage.analytics@default:default,org.jboss.tools.usage.test@default:default"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="false"/>
+</launchConfiguration>
Property changes on: trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageRequestsTest.launch
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageTest.launch
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageTest.launch (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageTest.launch 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<launchConfiguration type="org.eclipse.pde.ui.JunitLaunchConfig">
+<booleanAttribute key="append.args" value="true"/>
+<stringAttribute key="application" value="org.eclipse.pde.junit.runtime.coretestapplication"/>
+<booleanAttribute key="askclear" value="false"/>
+<booleanAttribute key="automaticAdd" value="true"/>
+<booleanAttribute key="automaticValidate" value="false"/>
+<stringAttribute key="bootstrap" value=""/>
+<stringAttribute key="checked" value="[NONE]"/>
+<booleanAttribute key="clearConfig" value="true"/>
+<booleanAttribute key="clearws" value="false"/>
+<booleanAttribute key="clearwslog" value="false"/>
+<stringAttribute key="configLocation" value="${workspace_loc}/.metadata/.plugins/org.eclipse.pde.core/pde-junit"/>
+<booleanAttribute key="default" value="false"/>
+<booleanAttribute key="includeOptional" value="true"/>
+<stringAttribute key="location" value="${workspace_loc}/../junit-workspace"/>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
+<listEntry value="/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageTest.java"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
+<listEntry value="1"/>
+</listAttribute>
+<listAttribute key="org.eclipse.debug.ui.favoriteGroups">
+<listEntry value="org.eclipse.debug.ui.launchGroup.run"/>
+<listEntry value="org.eclipse.debug.ui.launchGroup.debug"/>
+</listAttribute>
+<stringAttribute key="org.eclipse.jdt.junit.CONTAINER" value=""/>
+<booleanAttribute key="org.eclipse.jdt.junit.KEEPRUNNING_ATTR" value="false"/>
+<stringAttribute key="org.eclipse.jdt.junit.TESTNAME" value=""/>
+<stringAttribute key="org.eclipse.jdt.junit.TEST_KIND" value="org.eclipse.jdt.junit.loader.junit4"/>
+<stringAttribute key="org.eclipse.jdt.launching.MAIN_TYPE" value="org.jboss.tools.usage.test.JBossToolsUsageTest"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -log"/>
+<stringAttribute key="org.eclipse.jdt.launching.PROJECT_ATTR" value="org.jboss.tools.usage.test"/>
+<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
+<stringAttribute key="pde.version" value="3.3"/>
+<stringAttribute key="product" value="com.jboss.jbds.product.product"/>
+<booleanAttribute key="run_in_ui_thread" value="true"/>
+<stringAttribute key="selected_target_plugins" value="org.eclipse.ui.ide@default:default,org.eclipse.equinox.p2.core@default:default,org.eclipse.ant.core@default:default,org.eclipse.equinox.p2.artifact.repository@default:default,org.eclipse.jface@default:default,org.eclipse.jface.databinding@default:default,org.eclipse.help@default:default,org.eclipse.core.variables@default:default,org.eclipse.ui.workbench@default:default,org.eclipse.core.expressions@default:default,org.eclipse.core.contenttype@default:default,org.eclipse.jface.text@default:default,org.eclipse.ecf@default:default,org.eclipse.equinox.common@2:true,com.springsource.org.apache.commons.codec@default:default,org.jboss.tools.xulrunner.initializer@default:false,org.eclipse.core.filesystem.linux.x86@default:false,org.eclipse.core.jobs@default:default,org.eclipse.core.runtime.compatibility.auth@default:default,org.eclipse.ecf.filetransfer@default:default,com.springsource.org.apache.commons.logging@default:default,or!
g.eclipse.equinox.p2.repository@default:default,org.eclipse.text@default:default,org.eclipse.ecf.provider.filetransfer.ssl@default:false,org.eclipse.core.databinding@default:default,javax.servlet@default:default,org.eclipse.equinox.p2.metadata@default:default,org.eclipse.equinox.app@default:default,org.eclipse.swt.gtk.linux.x86@default:false,org.apache.commons.httpclient@default:default,org.eclipse.ecf.ssl@default:false,org.eclipse.equinox.preferences@default:default,org.eclipse.ecf.provider.filetransfer@default:default,org.eclipse.core.net@default:default,org.eclipse.ui.views@default:default,org.eclipse.core.runtime.compatibility.registry@default:false,org.eclipse.equinox.security@default:default,org.eclipse.ui.forms@default:default,org.eclipse.swt@default:default,org.eclipse.core.resources.compatibility@default:false,org.eclipse.ecf.identity@default:default,org.eclipse.core.databinding.observable@default:default,org.eclipse.core.commands@default:default,org.eclipse.core.n!
et.linux.x86@default:false,org.junit4@default:default,org.ecli!
pse.core
.filesystem@default:default,org.eclipse.core.resources@default:default,org.hamcrest.core@default:default,com.ibm.icu@default:default,org.eclipse.core.runtime@default:true,org.eclipse.osgi.services@default:default,org.eclipse.equinox.p2.engine@default:default,org.eclipse.equinox.registry@default:default,org.eclipse.ui@default:default,org.eclipse.equinox.p2.jarprocessor@default:default,org.eclipse.equinox.transforms.hook@default:false,javax.transaction@default:false,org.eclipse.osgi@-1:true,org.eclipse.core.databinding.property@default:default,org.eclipse.equinox.p2.metadata.repository@default:default,org.eclipse.equinox.concurrent@default:default"/>
+<stringAttribute key="selected_workspace_plugins" value="org.jboss.tools.usage.test@default:default,org.jboss.tools.usage@default:default"/>
+<booleanAttribute key="show_selected_only" value="false"/>
+<booleanAttribute key="tracing" value="false"/>
+<booleanAttribute key="useDefaultConfig" value="true"/>
+<booleanAttribute key="useDefaultConfigArea" value="false"/>
+<booleanAttribute key="useProduct" value="false"/>
+</launchConfiguration>
Property changes on: trunk/usage/org.jboss.tools.usage.test/JBossToolsUsageTest.launch
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/META-INF/MANIFEST.MF (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/META-INF/MANIFEST.MF 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,11 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Tests for JBoss Tools Google Analytics
+Bundle-SymbolicName: org.jboss.tools.usage.test
+Bundle-Version: 1.0.0.qualifier
+Bundle-RequiredExecutionEnvironment: JavaSE-1.6
+Require-Bundle: org.jboss.tools.usage;bundle-version="1.0.0",
+ org.junit4;bundle-version="[4.5.0,5.0.0)",
+ org.eclipse.osgi;bundle-version="3.5.2",
+ org.eclipse.core.runtime;bundle-version="3.5.0"
+Bundle-Activator: GoogleAnalyticsTestActivator
Property changes on: trunk/usage/org.jboss.tools.usage.test/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/FocusPointTest.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/FocusPointTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest$TestHttpGetMethod.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest$TestHttpGetMethod.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageTest.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/JBossToolsUsageTest.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/SystemOutLogger.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/SystemOutLogger.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/internal/JBossToolsUsageTestActivator.class
===================================================================
(Binary files differ)
Property changes on: trunk/usage/org.jboss.tools.usage.test/bin/org/jboss/tools/usage/test/internal/JBossToolsUsageTestActivator.class
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/usage/org.jboss.tools.usage.test/build.properties
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/build.properties (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/build.properties 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Property changes on: trunk/usage/org.jboss.tools.usage.test/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/FocusPointTest.java
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/FocusPointTest.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/FocusPointTest.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,42 @@
+package org.jboss.tools.usage.test;
+
+import org.jboss.tools.usage.jgoogleanalytics.FocusPoint;
+
+import junit.framework.TestCase;
+
+public class FocusPointTest extends TestCase {
+
+ private static final String root = "root";
+ private static final String child1 = "child1";
+ private static final String child2 = "child2";
+
+ public void testGetContentURI_Simple() throws Exception {
+ FocusPoint focusPoint = new FocusPoint(root);
+ String contentURI = focusPoint.getContentURI();
+ assertNotNull(contentURI);
+ assertEquals(FocusPoint.URI_SEPARATOR + root, contentURI);
+ }
+
+ public void testGetContentURI_OneLevel() throws Exception {
+ FocusPoint focusPoint = new FocusPoint(root).setChild(new FocusPoint(child1));
+ String contentURI = focusPoint.getContentURI();
+ assertNotNull(contentURI);
+ assertEquals(FocusPoint.URI_SEPARATOR + root + FocusPoint.URI_SEPARATOR + child1, contentURI);
+ }
+
+ public void testGetContentTitle_Simple() throws Exception {
+ FocusPoint focusPoint = new FocusPoint(root);
+ String contentTitle = focusPoint.getContentTitle();
+ assertNotNull(contentTitle);
+ assertEquals(root, contentTitle);
+ }
+
+ public void testGetContentTitle_OneLevel() throws Exception {
+// FocusPoint parentFocusPoint = new FocusPoint(JBOSS_TOOLS_USAGE_ID);
+// FocusPoint childFocusPoint = new FocusPoint(JBOSS_TOOLS_SMOOKS_UI,
+// parentFocusPoint);
+// String contentTitle = childFocusPoint.getContentTitle();
+// assertNotNull(contentTitle);
+// assertEquals(JBOSS_TOOLS_USAGE_ID + FocusPoint.TITLE_SEPARATOR + JBOSS_TOOLS_SMOOKS_UI, contentTitle);
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/FocusPointTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,131 @@
+package org.jboss.tools.usage.test;
+
+import static org.junit.Assert.assertEquals;
+
+import java.io.IOException;
+import java.net.HttpURLConnection;
+
+import org.jboss.tools.usage.jgoogleanalytics.HttpGetMethod;
+import org.junit.Test;
+
+public class JBossToolsUsageRequestsTest {
+
+ private static final String GOOGLE_ANALYTICS_TRACKING_URL = "http://www.google-analytics.com/__utm.gif";
+
+ @Test
+ public void testUrl1() throws IOException {
+ String userAgent = "com.jboss.jbds.product/3.5.0 (gtk; U; linux x86; en_US) v20090525 Eclipse/3.5.0.v20090525";
+ TestHttpGetMethod method = new TestHttpGetMethod(userAgent);
+ String url = GOOGLE_ANALYTICS_TRACKING_URL
+ + "?"
+ +"utmwv=1"
+ + "&utmn=2016784548"
+ + "&utmcs=UTF-8"
+ + "&utmsc=24-bit"
+ + "&utmsr=1920x1080"
+ + "&utmul=en_US"
+ + "&utmcr=1"
+ + "&utmdt=jboss.org-tools-usage-action-wsstartup-test-"
+ + "&utmhn=localhost"
+ + "&utmr=org.jboss.tools.usage.tests"
+ + "&utmp=/jboss.org/tools/usage/action/wsstartup/testUrl1"
+ + "&utmac=UA-17645367-1"
+ + "&utmcc=__utma%3D'2131379572.1097452543.1280502756059.1280502756059.1280502756059.2%3B%2B__utmb%3D649997112%3B%2B__utmc%3D2002669685%3B%2B__utmz%3D1137436918.1280502756059";
+
+ method.request(url);
+ assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ }
+
+ @Test
+ public void testUrl1_Session2() throws IOException {
+ String userAgent = "com.jboss.jbds.product/3.0.1 (gtk; U; linux x86; en_US) v20090525 Eclipse/3.5.0.v20090525";
+ TestHttpGetMethod method = new TestHttpGetMethod(userAgent);
+ String url = GOOGLE_ANALYTICS_TRACKING_URL
+ + "?"
+ +"utmwv=1"
+ + "&utmn=2016784548"
+ + "&utmcs=UTF-8"
+ + "&utmsc=24-bit"
+ + "&utmsr=1920x1080"
+ + "&utmul=en_US"
+ + "&utmcr=1"
+ + "&utmdt=jboss.org-tools-usage-action-wsstartup-test-"
+ + "&utmhn=localhost"
+ + "&utmr=org.jboss.tools.usage.tests"
+ + "&utmp=/jboss.org/tools/usage/action/wsstartup/testUrl1_Session2"
+ + "&utmac=UA-17645367-1"
+ + "&utmcc=__utma%3D'2131379572.1097452543.1280502756059.1280502756059.1280502756059.2%3B%2B__utmb%3D649997112%3B%2B__utmc%3D2002669685%3B%2B__utmz%3D1137436918.1280502756059";
+
+ method.request(url);
+ assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ }
+
+ @Test
+ public void testUrl2() throws IOException {
+ String userAgent = "com.jboss.jbds.product/3.0.1 (X11; U; linux x86; en_US) v20090525 Eclipse/3.5.0.v20090525";
+ TestHttpGetMethod method = new TestHttpGetMethod(userAgent);
+ String url = GOOGLE_ANALYTICS_TRACKING_URL
+ + "?"
+ +"utmwv=1"
+ + "&utmn=2016784548"
+ + "&utmcs=UTF-8"
+ + "&utmsc=24-bit"
+ + "&utmsr=1920x1080"
+ + "&utmul=en_US"
+ + "&utmcr=1"
+ + "&utmdt=jboss.org-tools-usage-action-wsstartup-test-"
+ + "&utmhn=localhost"
+ + "&utmr=org.jboss.tools.usage.tests"
+ + "&utmp=/jboss.org/tools/usage/action/wsstartup/testUrl2"
+ + "&utmac=UA-17645367-1"
+ + "&utmcc=__utma%3D'2131379572.1097452543.1280502756059.1280502756059.1280502756059.2%3B%2B__utmb%3D649997112%3B%2B__utmc%3D2002669685%3B%2B__utmz%3D1137436918.1280502756059";
+ method.request(url);
+ assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ }
+
+ @Test
+ public void testUrl3() throws IOException {
+ String userAgent = "com.jboss.jbds.product/3.0.1 (X11; linux x86; en_US) v20090525 Eclipse/3.5.0";
+ TestHttpGetMethod method = new TestHttpGetMethod(userAgent);
+ String url = GOOGLE_ANALYTICS_TRACKING_URL
+ + "?"
+ +"utmwv=1"
+ + "&utmn=2016784548"
+ + "&utmcs=UTF-8"
+ + "&utmsc=24-bit"
+ + "&utmsr=1920x1080"
+ + "&utmul=en_US"
+ + "&utmcr=1"
+ + "&utmdt=jboss.org-tools-usage-action-wsstartup-test-"
+ + "&utmhn=localhost"
+ + "&utmr=org.jboss.tools.usage.tests"
+ + "&utmp=/jboss.org/tools/usage/action/wsstartup/testUrl3"
+ + "&utmac=UA-17645367-1"
+ + "&utmcc=__utma%3D'2131379572.1097452543.1280502756059.1280502756059.1280502756059.2%3B%2B__utmb%3D649997112%3B%2B__utmc%3D2002669685%3B%2B__utmz%3D1137436918.1280502756059";
+
+ method.request(url);
+ assertEquals(HttpURLConnection.HTTP_OK, method.getResponseCode());
+ }
+
+ protected class TestHttpGetMethod extends HttpGetMethod {
+
+ private HttpURLConnection urlConnection;
+
+
+ public TestHttpGetMethod(String userAgent) {
+ super(userAgent);
+ }
+
+ @Override
+ protected HttpURLConnection createURLConnection(String urlString,
+ String userAgent) throws IOException {
+ this.urlConnection = super.createURLConnection(urlString, userAgent);
+ return urlConnection;
+ }
+
+ public int getResponseCode() throws IOException {
+ return super.getResponseCode(urlConnection);
+ }
+ }
+
+}
Property changes on: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageRequestsTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageTest.java
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageTest.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageTest.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,54 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.usage.test;
+
+import org.jboss.tools.usage.IUsageTracker;
+import org.jboss.tools.usage.jgoogleanalytics.EclipseEnvironment;
+import org.jboss.tools.usage.jgoogleanalytics.FocusPoint;
+import org.jboss.tools.usage.jgoogleanalytics.IGoogleAnalyticsParameters;
+import org.jboss.tools.usage.jgoogleanalytics.JGoogleAnalyticsTracker;
+import org.jboss.tools.usage.jgoogleanalytics.PluginLogger;
+import org.jboss.tools.usage.test.internal.JBossToolsUsageTestActivator;
+import org.junit.Test;
+
+public class JBossToolsUsageTest {
+
+ private FocusPoint focusPoint = new FocusPoint("jboss.org")
+ .setChild(new FocusPoint("tools")
+ .setChild(new FocusPoint("usage")
+ .setChild(new FocusPoint("action")
+ .setChild(new FocusPoint("wsstartup")
+ .setChild(new FocusPoint("test"))))));
+
+ private static final String GANALYTICS_TRACKINGCODE = "UA-17645367-1";
+
+ @Test
+ public void testTrackAsynchronously() throws Exception {
+ IUsageTracker tracker = getGoogleAnalyticsTracker();
+ tracker.trackAsynchronously(focusPoint);
+ Thread.sleep(3000);
+ }
+
+ @Test
+ public void testTrackSynchronously() throws Exception {
+ IUsageTracker tracker = getGoogleAnalyticsTracker();
+ tracker.trackSynchronously(focusPoint);
+ }
+
+ private IUsageTracker getGoogleAnalyticsTracker() {
+ IGoogleAnalyticsParameters eclipseSettings = new EclipseEnvironment(
+ GANALYTICS_TRACKINGCODE, JBossToolsUsageTestActivator.PLUGIN_ID);
+ JGoogleAnalyticsTracker tracker = new JGoogleAnalyticsTracker(eclipseSettings);
+ tracker.setLoggingAdapter(new PluginLogger(JBossToolsUsageTestActivator
+ .getDefault()));
+ return tracker;
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/JBossToolsUsageTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/SystemOutLogger.java
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/SystemOutLogger.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/SystemOutLogger.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,14 @@
+package org.jboss.tools.usage.test;
+
+import org.jboss.tools.usage.jgoogleanalytics.ILoggingAdapter;
+
+public class SystemOutLogger implements ILoggingAdapter {
+
+ public void logError(String errorMessage) {
+ System.out.println("errorMessage = " + errorMessage);
+ }
+
+ public void logMessage(String message) {
+ System.out.println("message = " + message);
+ }
+}
Property changes on: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/SystemOutLogger.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/internal/JBossToolsUsageTestActivator.java
===================================================================
--- trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/internal/JBossToolsUsageTestActivator.java (rev 0)
+++ trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/internal/JBossToolsUsageTestActivator.java 2010-08-09 14:25:17 UTC (rev 24001)
@@ -0,0 +1,29 @@
+package org.jboss.tools.usage.test.internal;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+public class JBossToolsUsageTestActivator extends Plugin {
+
+ public static final String PLUGIN_ID = "org.jboss.tools.usage.tests"; //$NON-NLS-1$
+
+ private static JBossToolsUsageTestActivator plugin;
+
+ public JBossToolsUsageTestActivator() {
+ plugin = this;
+ }
+
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ }
+
+ @Override
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ public static JBossToolsUsageTestActivator getDefault() {
+ return plugin;
+ }
+}
\ No newline at end of file
Property changes on: trunk/usage/org.jboss.tools.usage.test/src/org/jboss/tools/usage/test/internal/JBossToolsUsageTestActivator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 5 months
JBoss Tools SVN: r23999 - trunk.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2010-08-09 10:17:23 -0400 (Mon, 09 Aug 2010)
New Revision: 23999
Added:
trunk/usage/
Log:
JBoss Tools Usage Reporting
15 years, 5 months
JBoss Tools SVN: r23998 - in trunk/bpel/plugins/org.eclipse.bpel.ui: META-INF and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: bbrodt
Date: 2010-08-09 09:44:24 -0400 (Mon, 09 Aug 2010)
New Revision: 23998
Added:
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/perspectives/
trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/perspectives/BPELPerspectiveFactory.java
Modified:
trunk/bpel/plugins/org.eclipse.bpel.ui/META-INF/MANIFEST.MF
trunk/bpel/plugins/org.eclipse.bpel.ui/plugin.xml
Log:
https://jira.jboss.org/browse/JBIDE-6736
First cut
Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/bpel/plugins/org.eclipse.bpel.ui/META-INF/MANIFEST.MF 2010-08-09 13:12:10 UTC (rev 23997)
+++ trunk/bpel/plugins/org.eclipse.bpel.ui/META-INF/MANIFEST.MF 2010-08-09 13:44:24 UTC (rev 23998)
@@ -27,7 +27,8 @@
javax.wsdl;bundle-version="[1.5.0,1.6.0)",
org.eclipse.wst.xsd.ui,
org.eclipse.wst.wsdl.ui,
- org.eclipse.wst.xml.ui
+ org.eclipse.wst.xml.ui,
+ org.eclipse.ui.console;bundle-version="3.5.0"
Bundle-ActivationPolicy: lazy
Export-Package: org.eclipse.bpel.ui,
org.eclipse.bpel.ui.actions,
Modified: trunk/bpel/plugins/org.eclipse.bpel.ui/plugin.xml
===================================================================
--- trunk/bpel/plugins/org.eclipse.bpel.ui/plugin.xml 2010-08-09 13:12:10 UTC (rev 23997)
+++ trunk/bpel/plugins/org.eclipse.bpel.ui/plugin.xml 2010-08-09 13:44:24 UTC (rev 23998)
@@ -686,4 +686,13 @@
</enablement>
</decorator>
</extension>
+ <extension
+ point="org.eclipse.ui.perspectives">
+ <perspective
+ class="org.eclipse.bpel.ui.perspectives.BPELPerspectiveFactory"
+ icon="icons/obj20/bpel.png"
+ id="org.eclipse.bpel.ui.perspective"
+ name="BPEL Perspective">
+ </perspective>
+ </extension>
</plugin>
Added: trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/perspectives/BPELPerspectiveFactory.java
===================================================================
--- trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/perspectives/BPELPerspectiveFactory.java (rev 0)
+++ trunk/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/perspectives/BPELPerspectiveFactory.java 2010-08-09 13:44:24 UTC (rev 23998)
@@ -0,0 +1,65 @@
+package org.eclipse.bpel.ui.perspectives;
+
+import org.eclipse.ui.IPerspectiveFactory;
+import org.eclipse.ui.IPageLayout;
+import org.eclipse.ui.IFolderLayout;
+import org.eclipse.ui.console.IConsoleConstants;
+import org.eclipse.gef.ui.palette.PaletteViewer;
+
+public class BPELPerspectiveFactory implements IPerspectiveFactory {
+
+ private static final String ID_NEW_BPEL_PROJECT_WIZARD="org.jboss.tools.bpel.runtimes.wizards.newBPELProject";
+ private static final String ID_NEW_BPEL_FILE_WIZARD="org.eclipse.bpel.ui.newFile";
+ private static final String ID_NEW_BPEL_DEPLOY_WIZARD="org.eclipse.bpel.apache.ode.deploy.ui.wizards.NewODEDeployWizard";
+ private static final String ID_PALETTE_VIEW="org.eclipse.gef.ui.palette_view";
+ private static final String ID_SERVERS_VIEW="org.eclipse.wst.server.ui.ServersView";
+ private static final String ID_SERVERS_ACTION_SET="org.jboss.tools.jst.web.ui.server.actionSet";
+
+
+ private static final String BOTTOM = "bottom";
+
+ public void createInitialLayout(IPageLayout layout) {
+
+ String editorArea = layout.getEditorArea();
+
+ // New wizards
+ layout.addNewWizardShortcut(ID_NEW_BPEL_PROJECT_WIZARD);
+ layout.addNewWizardShortcut(ID_NEW_BPEL_FILE_WIZARD);
+ layout.addNewWizardShortcut(ID_NEW_BPEL_DEPLOY_WIZARD);
+
+ // view shortcuts
+ layout.addShowViewShortcut(IPageLayout.ID_OUTLINE);
+ layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
+ layout.addShowViewShortcut(ID_PALETTE_VIEW);
+ layout.addShowViewShortcut(IPageLayout.ID_PROJECT_EXPLORER);
+ layout.addShowViewShortcut(IPageLayout.ID_PROBLEM_VIEW);
+ layout.addShowViewShortcut(IConsoleConstants.ID_CONSOLE_VIEW);
+ layout.addShowViewShortcut(ID_SERVERS_VIEW);
+
+ // views
+ IFolderLayout leftTop = layout.createFolder("leftTop", IPageLayout.LEFT, 0.2f, editorArea); //$NON-NLS-1$
+ leftTop.addView(IPageLayout.ID_PROJECT_EXPLORER);
+ leftTop.addPlaceholder(IPageLayout.ID_RES_NAV);
+
+ IFolderLayout leftBottom = layout.createFolder("leftBottom", IPageLayout.BOTTOM, 0.7f, "leftTop"); //$NON-NLS-1$ //$NON-NLS-2$
+ leftBottom.addView(ID_SERVERS_VIEW);
+
+ IFolderLayout bottom = layout.createFolder("bottom", IPageLayout.BOTTOM, 0.7f, editorArea); //$NON-NLS-1$
+ bottom.addView(IPageLayout.ID_PROP_SHEET);
+ bottom.addView(IPageLayout.ID_PROBLEM_VIEW);
+ bottom.addView(IPageLayout.ID_TASK_LIST);
+ bottom.addPlaceholder(IConsoleConstants.ID_CONSOLE_VIEW);
+
+ IFolderLayout rightTop = layout.createFolder("rightTop", IPageLayout.RIGHT, 0.8f, editorArea); //$NON-NLS-1$
+ rightTop.addView(IPageLayout.ID_OUTLINE);
+
+ IFolderLayout rightBottom = layout.createFolder("rightBottom", IPageLayout.BOTTOM, 0.4f, "rightTop"); //$NON-NLS-1$ //$NON-NLS-2$
+ rightBottom.addView(ID_PALETTE_VIEW);
+
+ // action sets
+ layout.addActionSet(IPageLayout.ID_NAVIGATE_ACTION_SET);
+ layout.addActionSet(ID_SERVERS_ACTION_SET);
+
+
+ }
+}
15 years, 5 months
JBoss Tools SVN: r23997 - in trunk/cdi/plugins: org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2010-08-09 09:12:10 -0400 (Mon, 09 Aug 2010)
New Revision: 23997
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/preferences/CDIPreferenceInitializer.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/preferences/CDIPreferences.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIConfigurationBlock.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIPreferencesMessages.properties
Log:
https://jira.jboss.org/browse/JBIDE-6506
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/preferences/CDIPreferenceInitializer.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/preferences/CDIPreferenceInitializer.java 2010-08-09 11:58:09 UTC (rev 23996)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/preferences/CDIPreferenceInitializer.java 2010-08-09 13:12:10 UTC (rev 23997)
@@ -38,7 +38,6 @@
defaultPreferences.put(CDIPreferences.ILLEGAL_SCOPE_FOR_DECORATOR, CDIPreferences.WARNING);
defaultPreferences.put(CDIPreferences.INTERCEPTOR_OR_DECORATOR_IS_ALTERNATIVE, CDIPreferences.WARNING);
defaultPreferences.put(CDIPreferences.INTERCEPTOR_ANNOTATED_SPECIALIZES, CDIPreferences.WARNING);
- defaultPreferences.put(CDIPreferences.DECORATOR_ANNOTATED_SPECIALIZES, CDIPreferences.WARNING);
defaultPreferences.put(CDIPreferences.MISSING_NONBINDING_IN_QUALIFIER_TYPE_MEMBER, CDIPreferences.WARNING);
defaultPreferences.put(CDIPreferences.UNSATISFIED_INJECTION_POINTS, CDIPreferences.WARNING);
defaultPreferences.put(CDIPreferences.AMBIGUOUS_INJECTION_POINTS, CDIPreferences.WARNING);
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/preferences/CDIPreferences.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/preferences/CDIPreferences.java 2010-08-09 11:58:09 UTC (rev 23996)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/preferences/CDIPreferences.java 2010-08-09 13:12:10 UTC (rev 23997)
@@ -51,14 +51,10 @@
// and the value member specifies a class which does not correspond to a type
// in the unrestricted set of bean types of a bean (2.2.2)
public static final String ILLEGAL_TYPE_IN_TYPED_DECLARATION = INSTANCE.createSeverityOption("illegalTypeInTypedDeclaration"); //$NON-NLS-1$
-// - producer method return type contains a wildcard type parameter (3.3)
+// - producer field/method return type contains a wildcard type parameter (3.3, 3.4)
public static final String PRODUCER_METHOD_RETURN_TYPE_HAS_WILDCARD = INSTANCE.createSeverityOption("producerMethodReturnTypeHasWildcard"); //$NON-NLS-1$
-// - producer method return type is a type variable (3.3)
+// - producer field/method return type is a type variable (3.3, 3.4)
public static final String PRODUCER_METHOD_RETURN_TYPE_IS_VARIABLE = INSTANCE.createSeverityOption("producerMethodReturnTypeIsVariable"); //$NON-NLS-1$
-// - producer field type contains a wildcard type parameter (3.4)
- public static final String PRODUCER_FIELD_TYPE_HAS_WILDCARD = INSTANCE.createSeverityOption("producerFieldTypeHasWildcard"); //$NON-NLS-1$
-// - producer field type is a type variable
- public static final String PRODUCER_FIELD_TYPE_IS_VARIABLE = INSTANCE.createSeverityOption("producerFieldTypeIsVariable"); //$NON-NLS-1$
// - an injection point of primitive type resolves to a bean that may have null values, such as a producer method with a non-primitive return type or a producer field with a non-primitive type
public static final String INJECT_RESOLVES_TO_NULLABLE_BEAN = INSTANCE.createSeverityOption("injectResolvesToNullableBean"); //$NON-NLS-1$
// - matching object in the Java EE component environment is not of the same type
@@ -96,10 +92,9 @@
public static final String ILLEGAL_SCOPE_FOR_SESSION_BEAN = INSTANCE.createSeverityOption("illegalScopeForSessionBean"); //$NON-NLS-1$
// - producer method with a parameterized return type with a type variable declares
// any scope other than @Dependent (3.3)
- public static final String ILLEGAL_SCOPE_FOR_PRODUCER_METHOD = INSTANCE.createSeverityOption("illegalScopeForProducerMethod"); //$NON-NLS-1$
// - producer field with a parameterized type with a type variable declares any
// scope other than @Dependent (3.4)
- public static final String ILLEGAL_SCOPE_FOR_PRODUCER_FIELD = INSTANCE.createSeverityOption("illegalScopeForProducerField"); //$NON-NLS-1$
+ public static final String ILLEGAL_SCOPE_FOR_PRODUCER_METHOD = INSTANCE.createSeverityOption("illegalScopeForProducerMethod"); //$NON-NLS-1$
// - bean that declares any scope other than @Dependent has an injection point of type
// InjectionPoint and qualifier @Default (5.5.7)
public static final String ILLEGAL_SCOPE_WHEN_TYPE_INJECTIONPOINT_IS_INJECTED = INSTANCE.createSeverityOption("illegalScopeWhenTypeInjectionPointIsInjected"); //$NON-NLS-1$
@@ -120,6 +115,7 @@
public static final String OBSERVER_PARAMETER_ILLEGALLY_ANNOTATED = INSTANCE.createSeverityOption("observerParameterIllegallyAnnotated"); //$NON-NLS-1$
// - non-static method of a session bean class is annotated @Produces, and the method
// is not a business method of the session bean (3.3.2)
+// - non-static field of a session bean class is annotated @Produces (3.4.2)
public static final String ILLEGAL_PRODUCER_METHOD_IN_SESSION_BEAN = INSTANCE.createSeverityOption("illegalProducerMethodInSessionBean"); //$NON-NLS-1$
// - method has more than one parameter annotated @Disposes (3.3.6)
public static final String MULTIPLE_DISPOSING_PARAMETERS = INSTANCE.createSeverityOption("multipleDisposingParameters"); //$NON-NLS-1$
@@ -133,8 +129,6 @@
public static final String NO_PRODUCER_MATCHING_DISPOSER = INSTANCE.createSeverityOption("noProducerMatchingDisposer"); //$NON-NLS-1$
// - there are multiple disposer methods for a single producer method (3.3.7)
public static final String MULTIPLE_DISPOSERS_FOR_PRODUCER = INSTANCE.createSeverityOption("multipleDisposersForProducer"); //$NON-NLS-1$
-// - non-static field of a session bean class is annotated @Produces (3.4.2)
- public static final String ILLEGAL_PRODUCER_FIELD_IN_SESSION_BEAN = INSTANCE.createSeverityOption("illegalProducerFieldInSessionBean"); //$NON-NLS-1$
// - bean class has more than one constructor annotated @Inject (3.7.1)
public static final String MULTIPLE_INJECTION_CONSTRUCTORS = INSTANCE.createSeverityOption("multipleInjectionConstructors"); //$NON-NLS-1$
// - bean constructor has a parameter annotated @Disposes, or @Observes (3.7.1)
@@ -213,9 +207,8 @@
// - X specializes Y and Y has a name and X declares a name explicitly, using @Named (4.3.1)
public static final String CONFLICTING_NAME_IN_SPECIALIZING_BEAN = INSTANCE.createSeverityOption("conflictingNameInSpecializingBean"); //$NON-NLS-1$
// - interceptor is annotated @Specializes (4.3.1 non-portable)
- public static final String INTERCEPTOR_ANNOTATED_SPECIALIZES = INSTANCE.createSeverityOption("interceptorAnnotatedSpecializes"); //$NON-NLS-1$
// - decorator is annotated @Specializes (4.3.1 non-portable)
- public static final String DECORATOR_ANNOTATED_SPECIALIZES = INSTANCE.createSeverityOption("decoratorAnnotatedSpecializes"); //$NON-NLS-1$
+ public static final String INTERCEPTOR_ANNOTATED_SPECIALIZES = INSTANCE.createSeverityOption("interceptorAnnotatedSpecializes"); //$NON-NLS-1$
//Miscellaneous
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2010-08-09 11:58:09 UTC (rev 23996)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2010-08-09 13:12:10 UTC (rev 23997)
@@ -476,7 +476,7 @@
IAnnotationDeclaration specializesDeclaration = bean.getSpecializesAnnotationDeclaration();
if(specializesDeclaration!=null) {
if(bean instanceof IDecorator) {
- addError(CDIValidationMessages.DECORATOR_ANNOTATED_SPECIALIZES, CDIPreferences.DECORATOR_ANNOTATED_SPECIALIZES, specializesDeclaration, bean.getResource());
+ addError(CDIValidationMessages.DECORATOR_ANNOTATED_SPECIALIZES, CDIPreferences.INTERCEPTOR_ANNOTATED_SPECIALIZES, specializesDeclaration, bean.getResource());
} else if(bean instanceof IInterceptor) {
addError(CDIValidationMessages.INTERCEPTOR_ANNOTATED_SPECIALIZES, CDIPreferences.INTERCEPTOR_ANNOTATED_SPECIALIZES, specializesDeclaration, bean.getResource());
}
@@ -822,7 +822,7 @@
for (String paramType : paramTypes) {
if (Signature.getTypeSignatureKind(paramType) == Signature.WILDCARD_TYPE_SIGNATURE) {
if (producer instanceof IProducerField) {
- addError(CDIValidationMessages.PRODUCER_FIELD_TYPE_HAS_WILDCARD, CDIPreferences.PRODUCER_FIELD_TYPE_HAS_WILDCARD, typeDeclaration,
+ addError(CDIValidationMessages.PRODUCER_FIELD_TYPE_HAS_WILDCARD, CDIPreferences.PRODUCER_METHOD_RETURN_TYPE_HAS_WILDCARD, typeDeclaration,
producer.getResource());
} else {
addError(CDIValidationMessages.PRODUCER_METHOD_RETURN_TYPE_HAS_WILDCARD, CDIPreferences.PRODUCER_METHOD_RETURN_TYPE_HAS_WILDCARD,
@@ -843,7 +843,7 @@
if (scopeOrStereotypeDeclaration != null) {
boolean field = producer instanceof IProducerField;
addError(field ? CDIValidationMessages.ILLEGAL_SCOPE_FOR_PRODUCER_FIELD : CDIValidationMessages.ILLEGAL_SCOPE_FOR_PRODUCER_METHOD,
- field ? CDIPreferences.ILLEGAL_SCOPE_FOR_PRODUCER_FIELD : CDIPreferences.ILLEGAL_SCOPE_FOR_PRODUCER_METHOD,
+ field ? CDIPreferences.ILLEGAL_SCOPE_FOR_PRODUCER_METHOD : CDIPreferences.ILLEGAL_SCOPE_FOR_PRODUCER_METHOD,
scopeOrStereotypeDeclaration, producer.getResource());
}
}
@@ -889,7 +889,7 @@
for (String variableSig : typeVariables) {
String variableName = Signature.getTypeVariable(variableSig);
if (typeString.equals(variableName)) {
- addError(CDIValidationMessages.PRODUCER_FIELD_TYPE_IS_VARIABLE, CDIPreferences.PRODUCER_FIELD_TYPE_IS_VARIABLE, typeDeclaration != null ? typeDeclaration : producer, producer.getResource());
+ addError(CDIValidationMessages.PRODUCER_FIELD_TYPE_IS_VARIABLE, CDIPreferences.PRODUCER_METHOD_RETURN_TYPE_IS_VARIABLE, typeDeclaration != null ? typeDeclaration : producer, producer.getResource());
}
}
}
@@ -898,7 +898,7 @@
* - non-static field of a session bean class is annotated @Produces
*/
if(producer.getClassBean() instanceof ISessionBean && !Flags.isStatic(producerField.getField().getFlags())) {
- addError(CDIValidationMessages.ILLEGAL_PRODUCER_FIELD_IN_SESSION_BEAN, CDIPreferences.ILLEGAL_PRODUCER_FIELD_IN_SESSION_BEAN, producer.getProducesAnnotation(), producer.getResource());
+ addError(CDIValidationMessages.ILLEGAL_PRODUCER_FIELD_IN_SESSION_BEAN, CDIPreferences.ILLEGAL_PRODUCER_METHOD_IN_SESSION_BEAN, producer.getProducesAnnotation(), producer.getResource());
}
} else {
IProducerMethod producerMethod = (IProducerMethod) producer;
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIConfigurationBlock.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIConfigurationBlock.java 2010-08-09 11:58:09 UTC (rev 23996)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIConfigurationBlock.java 2010-08-09 13:12:10 UTC (rev 23997)
@@ -47,8 +47,6 @@
{CDIPreferences.ILLEGAL_TYPE_IN_TYPED_DECLARATION, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_illegalTypeInTypedDeclaration_label},
{CDIPreferences.PRODUCER_METHOD_RETURN_TYPE_HAS_WILDCARD, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_producerMethodReturnTypeHasWildcard_label},
{CDIPreferences.PRODUCER_METHOD_RETURN_TYPE_IS_VARIABLE, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_producerMethodReturnTypeIsVariable_label},
- {CDIPreferences.PRODUCER_FIELD_TYPE_HAS_WILDCARD, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_producerFieldTypeHasWildcard_label},
- {CDIPreferences.PRODUCER_FIELD_TYPE_IS_VARIABLE, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_producerFieldTypeIsVariable_label},
// {CDIPreferences.PRODUCER_FIELD_TYPE_DOES_NOT_MATCH_JAVA_EE_OBJECT, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_producerFieldTypeDoesNotMatchJavaEeObject_label},
{CDIPreferences.INJECT_RESOLVES_TO_NULLABLE_BEAN, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_injectResolvesToNullableBean_label},
{CDIPreferences.INJECTION_TYPE_IS_VARIABLE, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_injectionTypeIsVariable_label},
@@ -69,7 +67,6 @@
{CDIPreferences.ILLEGAL_SCOPE_FOR_MANAGED_BEAN, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_illegalScopeForManagedBean_label},
{CDIPreferences.ILLEGAL_SCOPE_FOR_SESSION_BEAN, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_illegalScopeForSessionBean_label},
{CDIPreferences.ILLEGAL_SCOPE_FOR_PRODUCER_METHOD, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_illegalScopeForProducerMethod_label},
- {CDIPreferences.ILLEGAL_SCOPE_FOR_PRODUCER_FIELD, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_illegalScopeForProducerField_label},
{CDIPreferences.ILLEGAL_SCOPE_WHEN_TYPE_INJECTIONPOINT_IS_INJECTED, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_illegalScopeWhenTypeInjectionPointIsInjected_label},
{CDIPreferences.ILLEGAL_SCOPE_FOR_INTERCEPTOR, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_illegalScopeForInterceptor_label},
{CDIPreferences.ILLEGAL_SCOPE_FOR_DECORATOR, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_illegalScopeForDecorator_label},
@@ -90,7 +87,6 @@
{CDIPreferences.ILLEGAL_DISPOSER_IN_SESSION_BEAN, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_illegalDisposerInSessionBean_label},
{CDIPreferences.NO_PRODUCER_MATCHING_DISPOSER, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_noProducerMatchingDisposer_label},
{CDIPreferences.MULTIPLE_DISPOSERS_FOR_PRODUCER, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_multipleDisposersForProducer_label},
- {CDIPreferences.ILLEGAL_PRODUCER_FIELD_IN_SESSION_BEAN, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_illegalProducerFieldInSessionBean_label},
{CDIPreferences.MULTIPLE_INJECTION_CONSTRUCTORS, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_multipleInjectionConstructors_label},
{CDIPreferences.CONSTRUCTOR_PARAMETER_ILLEGALLY_ANNOTATED, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_constructorParameterIllegallyAnnotated_label},
{CDIPreferences.GENERIC_METHOD_ANNOTATED_INJECT, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_genericMethodAnnotatedInject_label},
@@ -134,7 +130,6 @@
{CDIPreferences.MISSING_TYPE_IN_SPECIALIZING_BEAN, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_missingTypeInSpecializingBean_label},
{CDIPreferences.CONFLICTING_NAME_IN_SPECIALIZING_BEAN, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_conflictingNameInSpecializingBean_label},
{CDIPreferences.INTERCEPTOR_ANNOTATED_SPECIALIZES, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_interceptorAnnotatedSpecializes_label},
- {CDIPreferences.DECORATOR_ANNOTATED_SPECIALIZES, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_decoratorAnnotatedSpecializes_label},
},
CDICorePlugin.PLUGIN_ID
);
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIPreferencesMessages.properties
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIPreferencesMessages.properties 2010-08-09 11:58:09 UTC (rev 23996)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIPreferencesMessages.properties 2010-08-09 13:12:10 UTC (rev 23997)
@@ -34,10 +34,8 @@
CDIValidatorConfigurationBlock_pb_unsatisfiedInjectionPoints_label=Unsatisfied dependencies for injection point:
CDIValidatorConfigurationBlock_pb_ambiguousInjectionPoints_label=Ambiguous dependencies for injection point:
CDIValidatorConfigurationBlock_pb_illegalTypeInTypedDeclaration_label=Illegal type in @Typed:
-CDIValidatorConfigurationBlock_pb_producerMethodReturnTypeHasWildcard_label=Wildcard in producer method return type:
-CDIValidatorConfigurationBlock_pb_producerMethodReturnTypeIsVariable_label=Variable in producer method return type:
-CDIValidatorConfigurationBlock_pb_producerFieldTypeHasWildcard_label=Wildcard in producer field type:
-CDIValidatorConfigurationBlock_pb_producerFieldTypeIsVariable_label=Variable in producer field type:
+CDIValidatorConfigurationBlock_pb_producerMethodReturnTypeHasWildcard_label=Wildcard in producer field type/method return type:
+CDIValidatorConfigurationBlock_pb_producerMethodReturnTypeIsVariable_label=Variable in producer field type/method return type:
CDIValidatorConfigurationBlock_pb_producerFieldTypeDoesNotMatchJavaEeObject_label=Producer field type conflicts Java EE object:
CDIValidatorConfigurationBlock_pb_injectResolvesToNullableBean_label=Injection point of primitive type resolves to a nullabe bean:
CDIValidatorConfigurationBlock_pb_injectionTypeIsVariable_label=Injection type is variable:
@@ -53,8 +51,7 @@
CDIValidatorConfigurationBlock_pb_stereotypeDeclaresMoreThanOneScope_label=Stereotype declares more than one scope:
CDIValidatorConfigurationBlock_pb_illegalScopeForManagedBean_label=Illegal scope for Managed Bean:
CDIValidatorConfigurationBlock_pb_illegalScopeForSessionBean_label=Illegal scope for Session Bean:
-CDIValidatorConfigurationBlock_pb_illegalScopeForProducerMethod_label=Illegal scope for producer method:
-CDIValidatorConfigurationBlock_pb_illegalScopeForProducerField_label=Illegal scope for producer field:
+CDIValidatorConfigurationBlock_pb_illegalScopeForProducerMethod_label=Illegal scope for producer:
CDIValidatorConfigurationBlock_pb_illegalScopeWhenTypeInjectionPointIsInjected_label=Illegal scope when type injection point is injected:
CDIValidatorConfigurationBlock_pb_illegalScopeForInterceptor_label=Illegal scope for interceptor:
CDIValidatorConfigurationBlock_pb_illegalScopeForDecorator_label=Illegal scope for decorator:
@@ -65,13 +62,12 @@
CDIValidatorConfigurationBlock_pb_producerParameterIllegallyAnnotated_label=Producer parameter illegally annotated:
CDIValidatorConfigurationBlock_pb_observerAnnotatedInject_label=Observer is annotated @Inject:
CDIValidatorConfigurationBlock_pb_observerParameterIllegallyAnnotated_label=Observer parameter illegally annotated:
-CDIValidatorConfigurationBlock_pb_illegalProducerMethodInSessionBean_label=Illegal producer method in Session Bean:
+CDIValidatorConfigurationBlock_pb_illegalProducerMethodInSessionBean_label=Illegal producer in Session Bean:
CDIValidatorConfigurationBlock_pb_multipleDisposingParameters_label=Multiple disposing parameters:
CDIValidatorConfigurationBlock_pb_disposerAnnotatedInject_label=Disposer is annotated @Inject:
CDIValidatorConfigurationBlock_pb_illegalDisposerInSessionBean_label=Illegal disposer in Session Bean:
CDIValidatorConfigurationBlock_pb_noProducerMatchingDisposer_label=No producer matching disposer:
CDIValidatorConfigurationBlock_pb_multipleDisposersForProducer_label=Multiple disposers for producer:
-CDIValidatorConfigurationBlock_pb_illegalProducerFieldInSessionBean_label=Illegal producer field in Session Bean:
CDIValidatorConfigurationBlock_pb_multipleInjectionConstructors_label=Multiple injection constructors:
CDIValidatorConfigurationBlock_pb_constructorParameterIllegallyAnnotated_label=Constructor parameter illegally annotated:
CDIValidatorConfigurationBlock_pb_genericMethodAnnotatedInject_label=Generic or static method is annotated @Inject:
@@ -93,7 +89,7 @@
CDIValidatorConfigurationBlock_pb_illegalLifecycleCallbackInterceptorBinding_label=Illegal lifecycle callback interceptor binding:
CDIValidatorConfigurationBlock_pb_illegalInterceptorBindingMethod_label=Illegal interceptor binding method:
CDIValidatorConfigurationBlock_pb_conflictingInterceptorBindings_label=Conflicting interceptor binding:
-CDIValidatorConfigurationBlock_pb_observerInInterceptorOrDecorator_label=Interceptor or decorator has a method annotated @Disposes:
+CDIValidatorConfigurationBlock_pb_observerInInterceptorOrDecorator_label=Interceptor or decorator annotated @Observes:
CDIValidatorConfigurationBlock_pb_interceptorOrDecoratorIsAlternative_label=Interceptor or decorator is an alternative:
CDIValidatorConfigurationBlock_pb_missingInterceptorBinding_label=Missing interceptor binding:
CDIValidatorConfigurationBlock_pb_injectedDecorator_label=Decorator can not be injected:
@@ -106,8 +102,7 @@
CDIValidatorConfigurationBlock_pb_illegalSpecializingProducer_label=Illegal Specializing producer:
CDIValidatorConfigurationBlock_pb_missingTypeInSpecializingBean_label=Missing type in Specializing Bean:
CDIValidatorConfigurationBlock_pb_conflictingNameInSpecializingBean_label=Conflicting name in Specializing Bean:
-CDIValidatorConfigurationBlock_pb_interceptorAnnotatedSpecializes_label=Interceptor annotated @Specializes:
-CDIValidatorConfigurationBlock_pb_decoratorAnnotatedSpecializes_label=Decorator annotated @Specializes:
+CDIValidatorConfigurationBlock_pb_interceptorAnnotatedSpecializes_label=Interceptor or decorator annotated @Specializes:
##Miscellaneous
CDIValidatorConfigurationBlock_section_miscellaneous=Miscellaneous
15 years, 5 months