JBoss Tools SVN: r6827 - in trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui: widget/editor and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2008-03-11 01:10:02 -0400 (Tue, 11 Mar 2008)
New Revision: 6827
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.properties
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePageNew.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/BaseFieldEditor.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/CompositeEditor.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/IFieldEditorFactory.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SwtFieldEditorFactory.java
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/TextFieldEditor.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1322
layout for Preference page is finished
enablement/disablement for depended GUI controls is finished
basic save for preferences is added
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.java 2008-03-10 19:58:43 UTC (rev 6826)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.java 2008-03-11 05:10:02 UTC (rev 6827)
@@ -57,6 +57,12 @@
public static String SEAM_VALIDATOR_PREFERENCE_PAGE_SEAM_VALIDATOR;
+ public static String SEAM_SETTINGS_PREFERENCE_PAGE_CREATE_TEST;
+
+ public static String SEAM_SETTINGS_PREFERENCES_PAGE_TEST;
+
+ public static String SEAM_SETTINGS_PREFERENCE_PAGE_TEST_PROJECT;
+
//Validator Preference page
public static String SeamValidatorConfigurationBlock_common_description;
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.properties 2008-03-10 19:58:43 UTC (rev 6826)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamPreferencesMessages.properties 2008-03-11 05:10:02 UTC (rev 6827)
@@ -74,8 +74,11 @@
SEAM_SETTINGS_PREFERENCES_PAGE_MODEL=Model
SEAM_SETTINGS_PREFERENCES_PAGE_SOURCE_FOLDER=Source Folder:
SEAM_SETTINGS_PREFERENCES_PAGE_PACKAGE=Package:
-SEAM_SETTINGS_PREFERENCES_PAGE_ACTION=Action/Form/Conversation
-SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_SUPPORT=Seam support:
+SEAM_SETTINGS_PREFERENCES_PAGE_ACTION=Action / Form / Conversation
+SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_SUPPORT=Seam support\:
+SEAM_SETTINGS_PREFERENCE_PAGE_CREATE_TEST=Create Test\:
+SEAM_SETTINGS_PREFERENCES_PAGE_TEST=Test
+SEAM_SETTINGS_PREFERENCE_PAGE_TEST_PROJECT=Test Project\:
SEAM_SETTINGS_PREFERENCE_PAGE_RUNTIME=Runtime
SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_RUNTIME_IS_NOT_SELECTED=Seam runtime is not selected
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePageNew.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePageNew.java 2008-03-10 19:58:43 UTC (rev 6826)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/preferences/SeamSettingsPreferencePageNew.java 2008-03-11 05:10:02 UTC (rev 6827)
@@ -12,19 +12,28 @@
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
+import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
+import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IFolder;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ProjectScope;
+import org.eclipse.core.resources.ResourcesPlugin;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.preferences.IEclipsePreferences;
+import org.eclipse.core.runtime.preferences.IScopeContext;
import org.eclipse.datatools.connectivity.IConnectionProfile;
import org.eclipse.datatools.connectivity.ProfileManager;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
@@ -37,6 +46,7 @@
import org.jboss.tools.seam.core.SeamCorePlugin;
import org.jboss.tools.seam.core.SeamProjectsSet;
import org.jboss.tools.seam.core.project.facet.SeamProjectPreferences;
+import org.jboss.tools.seam.core.project.facet.SeamRuntime;
import org.jboss.tools.seam.core.project.facet.SeamVersion;
import org.jboss.tools.seam.internal.core.project.facet.ISeamFacetDataModelProperties;
import org.jboss.tools.seam.ui.SeamGuiPlugin;
@@ -45,6 +55,7 @@
import org.jboss.tools.seam.ui.internal.project.facet.ValidatorFactory;
import org.jboss.tools.seam.ui.widget.editor.IFieldEditor;
import org.jboss.tools.seam.ui.widget.editor.IFieldEditorFactory;
+import org.jboss.tools.seam.ui.widget.editor.SeamRuntimeListFieldEditor;
import org.jboss.tools.seam.ui.wizard.IParameter;
import org.jboss.tools.seam.ui.wizard.SeamWizardFactory;
import org.jboss.tools.seam.ui.wizard.SeamWizardUtils;
@@ -88,6 +99,7 @@
@Override
protected Control createContents(Composite parent) {
Composite root = new Composite(parent, SWT.NONE);
+
GridData gd = new GridData();
gd.horizontalSpan = 1;
@@ -97,6 +109,7 @@
GridLayout gridLayout = new GridLayout(1, false);
root.setLayout(gridLayout);
+
Composite generalGroup = new Composite(root, SWT.NONE);
generalGroup.setLayoutData(gd);
gridLayout = new GridLayout(4, false);
@@ -117,7 +130,10 @@
});
registerEditor(seamSupportCheckBox, generalGroup);
- IFieldEditor seamRuntimeEditor = SeamWizardFactory.createSeamRuntimeSelectionFieldEditor(getSeamVersions(), getSeamRuntimeName());
+ IFieldEditor seamRuntimeEditor =
+ SeamWizardFactory.createSeamRuntimeSelectionFieldEditor(
+ getSeamVersions(),
+ getSeamRuntimeName());
seamRuntimeEditor.addPropertyChangeListener(new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent evt) {
Object value = evt.getNewValue();
@@ -131,7 +147,14 @@
});
registerEditor(seamRuntimeEditor, generalGroup);
- IFieldEditor projectNameEditor = IFieldEditorFactory.INSTANCE.createUneditableTextEditor(IParameter.SEAM_PROJECT_NAME, SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_SEAM_PROJECT, getSeamProjectName());
+ IFieldEditor projectNameEditor =
+ IFieldEditorFactory.INSTANCE.createUneditableTextEditor(
+ IParameter.SEAM_PROJECT_NAME,
+ SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_SEAM_PROJECT,
+ getPrefValue(
+ IParameter.SEAM_PROJECT_NAME,
+ getSeamProjectName()));
+
registerEditor(projectNameEditor, generalGroup);
IFieldEditor connProfileEditor = SeamWizardFactory.createConnectionProfileSelectionFieldEditor(getConnectionProfile(), new IValidator() {
@@ -142,69 +165,148 @@
});
registerEditor(connProfileEditor, generalGroup);
- gd = new GridData();
- gd.horizontalSpan = 1;
- gd.horizontalAlignment = GridData.FILL;
- gd.grabExcessHorizontalSpace = true;
- gd.grabExcessVerticalSpace = false;
+ Group deploymentGroup = createGroup(
+ root,
+ SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_DEPLOYMENT,
+ 4);
- Group deploymentGroup = new Group(root, SWT.NONE);
- groups.add(deploymentGroup);
- deploymentGroup.setLayoutData(gd);
- deploymentGroup.setText(SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_DEPLOYMENT);
- gridLayout = new GridLayout(4, false);
- deploymentGroup.setLayout(gridLayout);
-
IFieldEditor deployTypeEditor = IFieldEditorFactory.INSTANCE.createRadioEditor(
ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS,
SeamUIMessages.SEAM_INSTALL_WIZARD_PAGE_DEPLOY_AS,
Arrays.asList(new String[] {ISeamFacetDataModelProperties.DEPLOY_AS_WAR.toUpperCase(), ISeamFacetDataModelProperties.DEPLOY_AS_EAR.toUpperCase()}),
Arrays.asList(new Object[] {ISeamFacetDataModelProperties.DEPLOY_AS_WAR, ISeamFacetDataModelProperties.DEPLOY_AS_EAR}),
getDeployAsValue());
+
+ deployTypeEditor.addPropertyChangeListener(new PropertyChangeListener() {
+ public void propertyChange(PropertyChangeEvent evt) {
+ setEnabledDeploymentGroup();
+ }
+ });
registerEditor(deployTypeEditor, deploymentGroup);
- IFieldEditor ejbProjectEditor = SeamWizardFactory.createSeamProjectSelectionFieldEditor(ISeamFacetDataModelProperties.SEAM_EJB_PROJECT, SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_EJB_PROJECT, getEjbProjectName(), true);
+ IFieldEditor ejbProjectEditor = SeamWizardFactory.createSeamProjectSelectionFieldEditor(
+ ISeamFacetDataModelProperties.SEAM_EJB_PROJECT,
+ SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_EJB_PROJECT,
+ getEjbProjectName(),
+ true);
registerEditor(ejbProjectEditor, deploymentGroup);
- Group viewGroup = new Group(root, SWT.NONE);
- groups.add(viewGroup);
- gd = new GridData();
- gd.horizontalSpan = 1;
- gd.horizontalAlignment = GridData.FILL;
- gd.grabExcessHorizontalSpace = true;
- gd.grabExcessVerticalSpace = false;
+ Group viewGroup = createGroup(
+ root,
+ SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_VIEW,
+ 3);
- viewGroup.setLayoutData(gd);
- viewGroup.setText(SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_VIEW);
- gridLayout = new GridLayout(3, false);
- viewGroup.setLayout(gridLayout);
-
IFieldEditor viewFolderEditor = SeamWizardFactory.createViewFolderFieldEditor(getViewFolder());
registerEditor(viewFolderEditor, viewGroup);
- Group modelGroup = new Group(root, SWT.NONE);
- groups.add(modelGroup);
- gd = new GridData();
- gd.horizontalSpan = 1;
- gd.horizontalAlignment = GridData.FILL;
- gd.grabExcessHorizontalSpace = true;
- gd.grabExcessVerticalSpace = false;
+ Group modelGroup = createGroup(root,
+ SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_MODEL,
+ 3);
- modelGroup.setLayoutData(gd);
- modelGroup.setText(SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_MODEL);
- gridLayout = new GridLayout(3, false);
- modelGroup.setLayout(gridLayout);
-
- IFieldEditor modelSourceFolderEditor = IFieldEditorFactory.INSTANCE.createBrowseSourceFolderEditor(ISeamFacetDataModelProperties.ENTITY_BEAN_SOURCE_FOLDER, SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_SOURCE_FOLDER, getModelSourceFolder());
+ IFieldEditor modelSourceFolderEditor =
+ IFieldEditorFactory.INSTANCE.createBrowseSourceFolderEditor(
+ ISeamFacetDataModelProperties.ENTITY_BEAN_SOURCE_FOLDER,
+ SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_SOURCE_FOLDER,
+ getModelSourceFolder());
+
+ IFieldEditor modelPackageEditor =
+ IFieldEditorFactory.INSTANCE.createBrowsePackageEditor(
+ ISeamFacetDataModelProperties.ENTITY_BEAN_PACKAGE_NAME,
+ SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_PACKAGE,
+ "");
+
registerEditor(modelSourceFolderEditor, modelGroup);
+ registerEditor(modelPackageEditor, modelGroup);
+
+ Group actionGroup = createGroup(root,
+ SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_ACTION,
+ 3);
+ IFieldEditor actionSourceFolderEditor =
+ IFieldEditorFactory.INSTANCE.createBrowseSourceFolderEditor(
+ ISeamFacetDataModelProperties.SESSION_BEAN_SOURCE_FOLDER,
+ SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_SOURCE_FOLDER,
+ getModelSourceFolder());
+
+ IFieldEditor actionPackageEditor =
+ IFieldEditorFactory.INSTANCE.createBrowsePackageEditor(
+ ISeamFacetDataModelProperties.SESSION_BEAN_PACKAGE_NAME,
+ SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_PACKAGE,
+ "");
+ registerEditor(actionSourceFolderEditor, actionGroup);
+ registerEditor(actionPackageEditor, actionGroup);
+
+ Group testGroup = createGroup(root,
+ SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_TEST,
+ 3);
+
+ IFieldEditor createTestCheckBox = IFieldEditorFactory.INSTANCE.createCheckboxEditor(
+ ISeamFacetDataModelProperties.TEST_CREATING, SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCE_PAGE_CREATE_TEST, false);
+ createTestCheckBox.addPropertyChangeListener(new PropertyChangeListener() {
+ public void propertyChange(PropertyChangeEvent evt) {
+ Object value = evt.getNewValue();
+ if (value instanceof Boolean) {
+ setEnabledTestGroup();
+ }
+ }
+ });
+
+ registerEditor(createTestCheckBox, testGroup);
+
+ IFieldEditor testProjectEditor = SeamWizardFactory.createSeamProjectSelectionFieldEditor(ISeamFacetDataModelProperties.SEAM_TEST_PROJECT, SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCE_PAGE_TEST_PROJECT, getTestProjectName(),false);
+ registerEditor(testProjectEditor, testGroup);
+
+ IFieldEditor testSourceFolderEditor =
+ IFieldEditorFactory.INSTANCE.createBrowseSourceFolderEditor(
+ ISeamFacetDataModelProperties.TEST_SOURCE_FOLDER,
+ SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_SOURCE_FOLDER,
+ getModelSourceFolder());
+
+ IFieldEditor testPackageEditor =
+ IFieldEditorFactory.INSTANCE.createBrowsePackageEditor(
+ ISeamFacetDataModelProperties.TEST_CASES_PACKAGE_NAME,
+ SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCES_PAGE_PACKAGE,
+ "");
+
+ registerEditor(testSourceFolderEditor, testGroup);
+ registerEditor(testPackageEditor, testGroup);
+
setEnabledSeamSuport(warSeamProject!=null);
- setRuntimeIsSelected(getSeamRuntimeName().length()>0);
+// setRuntimeIsSelected(getSeamRuntimeName().length()>0);
return root;
}
+ private String getPrefValue(String seamRuntimeName,String defaultValue) {
+ return preferences.get(
+ ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME,
+ defaultValue);
+ }
+
+ private Group createGroup(Composite parent, String title, int rows) {
+ return createGroupWithSpan(parent,title,rows,1);
+ }
+
+ private Group createGroupWithSpan(Composite parent, String title, int rows, int span) {
+ GridData gd;
+ GridLayout gridLayout;
+ gd = new GridData(GridData.VERTICAL_ALIGN_BEGINNING);
+ gd.horizontalSpan = span;
+ gd.horizontalAlignment = GridData.FILL;
+ gd.grabExcessHorizontalSpace = true;
+ gd.grabExcessVerticalSpace = false;
+
+ Group newGroup = new Group(parent, SWT.NONE);
+ newGroup.setLayoutData(gd);
+ newGroup.setText(title);
+
+ gridLayout = new GridLayout(rows, false);
+ newGroup.setLayout(gridLayout);
+ groups.add(newGroup);
+ return newGroup;
+ }
+
private String getModelSourceFolder() {
String folder = null;
if(preferences!=null) {
@@ -288,6 +390,14 @@
private String getSeamProjectName() {
return warProject!=null ? warProject.getName() : project.getName();
}
+
+ private String getTestProjectName() {
+ String projectName = "";
+ if(preferences!=null) {
+ projectName = preferences.get(ISeamFacetDataModelProperties.SEAM_TEST_PROJECT, getSeamProjectName());
+ }
+ return projectName;
+ }
/* (non-Javadoc)
* @see java.beans.PropertyChangeListener#propertyChange(java.beans.PropertyChangeEvent)
@@ -316,35 +426,101 @@
}
private void storeSettigs() {
- //TODO
-// pref.put("test", "blah-blah-blah");
+ IScopeContext projectScope = new ProjectScope(project);
+ IEclipsePreferences prefs = projectScope.getNode(SeamCorePlugin.PLUGIN_ID);
+
+ prefs.put(ISeamFacetDataModelProperties.SEAM_SETTINGS_VERSION,
+ "1.1");
+
+ prefs.put(ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS,
+ getValue(ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS));
+
+ prefs.put(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME,
+ getValue(ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME));
+ prefs.put(ISeamFacetDataModelProperties.SEAM_CONNECTION_PROFILE,
+ getValue(ISeamFacetDataModelProperties.SEAM_CONNECTION_PROFILE));
+ prefs.put(ISeamFacetDataModelProperties.SESSION_BEAN_PACKAGE_NAME,
+ getValue(ISeamFacetDataModelProperties.SESSION_BEAN_PACKAGE_NAME));
+ prefs.put(ISeamFacetDataModelProperties.ENTITY_BEAN_PACKAGE_NAME,
+ getValue(ISeamFacetDataModelProperties.ENTITY_BEAN_PACKAGE_NAME));
+ prefs.put(ISeamFacetDataModelProperties.TEST_CASES_PACKAGE_NAME,
+ getValue(ISeamFacetDataModelProperties.TEST_CASES_PACKAGE_NAME));
+ prefs.put(ISeamFacetDataModelProperties.TEST_CREATING,
+ "true");
+ prefs.put(ISeamFacetDataModelProperties.TEST_SOURCE_FOLDER,
+ getValue(ISeamFacetDataModelProperties.TEST_CREATING));
+ prefs.put(ISeamFacetDataModelProperties.SEAM_TEST_PROJECT,
+ getValue(ISeamFacetDataModelProperties.SEAM_TEST_PROJECT));
+ prefs.put(ISeamFacetDataModelProperties.SEAM_EJB_PROJECT,
+ getValue(ISeamFacetDataModelProperties.SEAM_EJB_PROJECT));
+ prefs.put(ISeamFacetDataModelProperties.ENTITY_BEAN_SOURCE_FOLDER,
+ getValue(ISeamFacetDataModelProperties.ENTITY_BEAN_SOURCE_FOLDER));
+ prefs.put(ISeamFacetDataModelProperties.SESSION_BEAN_SOURCE_FOLDER,
+ getValue(ISeamFacetDataModelProperties.SESSION_BEAN_SOURCE_FOLDER));
try {
- preferences.flush();
+ prefs.flush();
} catch (BackingStoreException e) {
SeamGuiPlugin.getPluginLog().logError(e);
}
}
+ private String getValue(String editorName) {
+ return editorRegistry.get(editorName).getValue().toString();
+ }
+
private boolean isSeamSupported() {
return suportSeam;
}
private void setEnabledSeamSuport(boolean enabled) {
+ // just for enabling/disabling groups
+ setEnabledGroups(enabled);
suportSeam = enabled;
- for (String key : editorRegistry.keySet()) {
- if(key!=SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_SUPPORT) {
- editorRegistry.get(key).setEnabled(enabled && runtimeIsSelected);
+ if(!enabled) {
+ // disable all below
+ for (String key : editorRegistry.keySet()) {
+ if(key!=SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_SUPPORT) {
+ editorRegistry.get(key).setEnabled(enabled);
+ }
+ }
+ } else {
+ for (String key : editorRegistry.keySet()) {
+ if(key!=SeamPreferencesMessages.SEAM_SETTINGS_PREFERENCE_PAGE_SEAM_SUPPORT
+ && key!=ISeamFacetDataModelProperties.SEAM_TEST_PROJECT
+ && key!=ISeamFacetDataModelProperties.TEST_SOURCE_FOLDER
+ && key!=ISeamFacetDataModelProperties.TEST_CASES_PACKAGE_PATH
+ && key!=ISeamFacetDataModelProperties.SEAM_EJB_PROJECT) {
+ editorRegistry.get(key).setEnabled(enabled);
+ }
}
- if(key==ISeamFacetDataModelProperties.SEAM_RUNTIME_NAME) {
- editorRegistry.get(key).setEnabled(enabled);
- }
+ setEnabledTestGroup();
+ setEnabledDeploymentGroup();
}
- setEnabledGroups(enabled && runtimeIsSelected);
+
}
+ private void setEnabledDeploymentGroup() {
+ IFieldEditor deployment =
+ editorRegistry.get(ISeamFacetDataModelProperties.JBOSS_AS_DEPLOY_AS);
+
+ editorRegistry.get(ISeamFacetDataModelProperties.SEAM_EJB_PROJECT)
+ .setEnabled(
+ ISeamFacetDataModelProperties.DEPLOY_AS_EAR.equals(
+ deployment.getValue()));
+
+ }
+
+ private void setEnabledTestGroup() {
+ IFieldEditor createTestCheckBox = editorRegistry.get(ISeamFacetDataModelProperties.TEST_CREATING);
+ boolean enabled = ((Boolean)createTestCheckBox.getValue()).booleanValue();
+ editorRegistry.get(ISeamFacetDataModelProperties.SEAM_TEST_PROJECT).setEnabled(enabled);
+ editorRegistry.get(ISeamFacetDataModelProperties.TEST_SOURCE_FOLDER).setEnabled(enabled);
+ editorRegistry.get(ISeamFacetDataModelProperties.TEST_CASES_PACKAGE_NAME).setEnabled(enabled);
+ }
+
private void setEnabledGroups(boolean enabled) {
for (Group group : groups) {
- group.setEnabled(enabled);
+ group.setEnabled(enabled);
}
}
@@ -376,24 +552,24 @@
}
private SeamVersion[] getSeamVersions() {
-// if(warSeamProject != null) {
-// SeamRuntime r = warSeamProject.getRuntime();
-// if(r != null) {
-// return new SeamVersion[]{r.getVersion()};
-// }
-// String jarLocation = getJBossSeamJarLocation();
-// if(jarLocation != null) {
-// String folder = new File(jarLocation).getParent();
-// String vs = SeamRuntimeListFieldEditor.SeamRuntimeWizardPage.getSeamVersion(folder);
-// SeamVersion v = findMatchingVersion(vs);
-// if(v != null) {
-// return new SeamVersion[]{v};
-// }
-// }
-// }
+ if(warSeamProject != null) {
+ SeamRuntime r = warSeamProject.getRuntime();
+ if(r != null) {
+ return new SeamVersion[]{r.getVersion()};
+ }
+ String jarLocation = getJBossSeamJarLocation();
+ if(jarLocation != null) {
+ String folder = new File(jarLocation).getParent();
+ String vs = SeamRuntimeListFieldEditor.SeamRuntimeWizardPage.getSeamVersion(folder);
+ SeamVersion v = findMatchingVersion(vs);
+ if(v != null) {
+ return new SeamVersion[]{v};
+ }
+ }
+ }
return SeamVersion.ALL_VERSIONS;
}
-/*
+
private SeamVersion findMatchingVersion(String vs) {
if(vs == null) return null;
if(vs.matches(SeamVersion.SEAM_1_2.toString().replace(".", "\\.") + ".*")) {
@@ -425,5 +601,5 @@
}
return null;
}
-*/
+
}
\ No newline at end of file
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/BaseFieldEditor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/BaseFieldEditor.java 2008-03-10 19:58:43 UTC (rev 6826)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/BaseFieldEditor.java 2008-03-11 05:10:02 UTC (rev 6827)
@@ -42,6 +42,8 @@
protected Map<Object, Object> data = null;
+ private boolean enabled = true;
+
/**
*
* @param name
@@ -155,17 +157,14 @@
*
*/
public boolean isEnabled() {
- if(getSwtControls().length==0)
- return true;
- else {
- return getSwtControls()[0].isEnabled();
- }
+ return this.enabled ;
}
/**
*
*/
public void setEnabled(boolean enabled) {
+ this.enabled = enabled;
Control[] controls = getSwtControls();
for(int i=0;i<controls.length;i++) {
Control control = controls[i];
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/CompositeEditor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/CompositeEditor.java 2008-03-10 19:58:43 UTC (rev 6826)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/CompositeEditor.java 2008-03-11 05:10:02 UTC (rev 6827)
@@ -58,6 +58,7 @@
}
controls[i].setLayoutData(gd);
+ controls[i].setEnabled(isEnabled());
}
}
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/IFieldEditorFactory.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/IFieldEditorFactory.java 2008-03-10 19:58:43 UTC (rev 6826)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/IFieldEditorFactory.java 2008-03-11 05:10:02 UTC (rev 6827)
@@ -17,7 +17,7 @@
public interface IFieldEditorFactory {
- public static final IFieldEditorFactory INSTANCE = new SwtFieldEditorFactory();
+ final IFieldEditorFactory INSTANCE = new SwtFieldEditorFactory();
/**
*
@@ -62,7 +62,7 @@
* @param defaultValue
* @return
*/
- public ITaggedFieldEditor createRadioEditor(String name, String label,
+ ITaggedFieldEditor createRadioEditor(String name, String label,
List<String> labels, List values, Object defaultValue);
/**
@@ -103,6 +103,12 @@
*/
IFieldEditor createBrowseSourceFolderEditor(String name, String label, String defaultValue);
+
+ IFieldEditor createBrowsePackageEditor(String name, String label, String defaultValue) ;
+
+
+ IFieldEditor createBrowseSeamProjectEditor(String name, String label, String defaultValue);
+
/**
*
* @param name
@@ -132,7 +138,7 @@
* @param validator
* @return
*/
- public IFieldEditor createButtonFieldEditor(String name, String label,
+ IFieldEditor createButtonFieldEditor(String name, String label,
String defaultValue, ButtonFieldEditor.ButtonPressedAction action,
IValidator validator);
@@ -148,15 +154,17 @@
* @param validator
* @return
*/
- public IFieldEditor createComboWithTwoButtons(String name, String label,
+ IFieldEditor createComboWithTwoButtons(String name, String label,
List values, Object defaultValue, boolean flat,
ButtonFieldEditor.ButtonPressedAction action1,
ButtonFieldEditor.ButtonPressedAction action2, IValidator validator);
- public ButtonFieldEditor.ButtonPressedAction createNotImplementedYetAction(String buttonName);
+ ButtonFieldEditor.ButtonPressedAction createNotImplementedYetAction(String buttonName);
- public IFieldEditor createComboWithButton(String name, String label,
+ IFieldEditor createComboWithButton(String name, String label,
List values, Object defaultValue, boolean flat,
ButtonPressedAction action1,
IValidator validator);
+
+
}
\ No newline at end of file
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SwtFieldEditorFactory.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SwtFieldEditorFactory.java 2008-03-10 19:58:43 UTC (rev 6826)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SwtFieldEditorFactory.java 2008-03-11 05:10:02 UTC (rev 6827)
@@ -22,6 +22,7 @@
import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Status;
import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.IPackageFragmentRoot;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jdt.ui.JavaElementLabelProvider;
@@ -146,6 +147,19 @@
return editor;
}
+ /* (non-Javadoc)
+ * @see org.jboss.tools.seam.ui.widget.editor.IFieldEditorFactory#createBrowseSourceFolderEditor(java.lang.String, java.lang.String, java.lang.String)
+ */
+ public IFieldEditor createBrowsePackageEditor(String name, String label, String defaultValue) {
+ ButtonFieldEditor.ButtonPressedAction action = createSelectPackageAction(SeamUIMessages.SWT_FIELD_EDITOR_FACTORY_BROWS, defaultValue);
+ CompositeEditor editor = new CompositeEditor(name, label, defaultValue);
+ editor.addFieldEditors(new IFieldEditor[]{new LabelFieldEditor(name, label),
+ new TextFieldEditor(name, label, defaultValue),
+ new ButtonFieldEditor(name, action, defaultValue)});
+ action.setFieldEditor(editor);
+ return editor;
+ }
+
/**
* @param buttonName
* @return
@@ -213,6 +227,17 @@
*/
private static class JavaSourceContentProvider extends StandardJavaElementContentProvider {
+ boolean providePackages = false;
+
+ public JavaSourceContentProvider() {
+ super(false);
+ }
+
+ public JavaSourceContentProvider(boolean providePackages) {
+ this();
+ this.providePackages = providePackages;
+ }
+
/*
* (non-Javadoc)
* @see org.eclipse.jdt.ui.StandardJavaElementContentProvider#hasChildren(java.lang.Object)
@@ -220,6 +245,8 @@
@Override
public boolean hasChildren(Object element) {
if (element instanceof IPackageFragmentRoot) {
+ return providePackages;
+ } else if(element instanceof IPackageFragment) {
return false;
}
return true;
@@ -268,7 +295,12 @@
}
}
if (element instanceof IPackageFragmentRoot) {
- return NO_CHILDREN;
+ IPackageFragmentRoot pkgRoot = (IPackageFragmentRoot)element;
+ try {
+ return pkgRoot.getChildren();
+ } catch (JavaModelException e) {
+ return NO_CHILDREN;
+ }
}
return super.getChildren(element);
@@ -381,6 +413,29 @@
* @param buttonName
* @return
*/
+ public ButtonFieldEditor.ButtonPressedAction createSelectPackageAction(String buttonName, String defaultValue) {
+ return new ButtonFieldEditor.ButtonPressedAction(buttonName) {
+ @Override
+ public void run() {
+ final ElementTreeSelectionDialog dialog = new ElementTreeSelectionDialog(
+ Display.getCurrent().getActiveShell(),
+ new JavaElementLabelProvider(), new JavaSourceContentProvider(true));
+ dialog.setInput(ResourcesPlugin.getWorkspace());
+ if (dialog.open() == Window.OK) {
+ IPackageFragment pack = (IPackageFragment) dialog.getFirstResult();
+ IPath newPath = pack.getResource().getFullPath();
+ String value = newPath.toString();
+ getFieldEditor().setValue(value);
+ }
+ }
+ };
+ }
+
+ /**
+ *
+ * @param buttonName
+ * @return
+ */
public ButtonFieldEditor.ButtonPressedAction createSelectFileAction(String buttonName) {
return new ButtonFieldEditor.ButtonPressedAction(buttonName) {
@Override
@@ -443,4 +498,10 @@
});
return editor;
}
+
+ public IFieldEditor createBrowseSeamProjectEditor(String name,
+ String label, String defaultValue) {
+ // TODO Auto-generated method stub
+ return null;
+ }
}
\ No newline at end of file
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/TextFieldEditor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/TextFieldEditor.java 2008-03-10 19:58:43 UTC (rev 6826)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/TextFieldEditor.java 2008-03-11 05:10:02 UTC (rev 6827)
@@ -114,6 +114,7 @@
Object value = getValue();
textField.setText(getValue().toString());
textField.setEditable(isEditable());
+ textField.setEnabled(isEnabled());
fTextField.addPropertyChangeListener(this);
} else if (parent!=null){
Assert.isTrue(parent==fTextField.getTextControl().getParent());
16 years, 6 months
JBoss Tools SVN: r6826 - branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-03-10 15:58:43 -0400 (Mon, 10 Mar 2008)
New Revision: 6826
Modified:
branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java
Log:
jbide-1738
Modified: branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java
===================================================================
--- branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java 2008-03-10 19:53:47 UTC (rev 6825)
+++ branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java 2008-03-10 19:58:43 UTC (rev 6826)
@@ -81,7 +81,8 @@
} else {
nsIDOMElement tempHTMLElement = getVisualDocument().createElement(HTML.TAG_DIV);
- if (sourceNode.getNodeType() == Node.ELEMENT_NODE) {
+ if ((sourceNode.getNodeType() == Node.ELEMENT_NODE)
+ && ("form".equals(sourceNode.getLocalName()))) {
if (((Element) sourceNode).hasAttribute("style"))
tempHTMLElement.setAttribute(HTML.ATTR_STYLE,
((Element) sourceNode)
16 years, 6 months
JBoss Tools SVN: r6825 - branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-03-10 15:53:47 -0400 (Mon, 10 Mar 2008)
New Revision: 6825
Modified:
branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java
Log:
jbide-1738
Modified: branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java
===================================================================
--- branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java 2008-03-10 19:18:35 UTC (rev 6824)
+++ branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java 2008-03-10 19:53:47 UTC (rev 6825)
@@ -80,6 +80,19 @@
creationData = template.create(getPageContext(), sourceNode, getVisualDocument());
} else {
nsIDOMElement tempHTMLElement = getVisualDocument().createElement(HTML.TAG_DIV);
+
+ if (sourceNode.getNodeType() == Node.ELEMENT_NODE) {
+ if (((Element) sourceNode).hasAttribute("style"))
+ tempHTMLElement.setAttribute(HTML.ATTR_STYLE,
+ ((Element) sourceNode)
+ .getAttribute("style"));
+ if (((Element) sourceNode).hasAttribute("styleClass"))
+ tempHTMLElement.setAttribute(HTML.ATTR_CLASS,
+ ((Element) sourceNode)
+ .getAttribute("styleClass"));
+
+ }
+
creationData = new VpeCreationData(tempHTMLElement);
}
}catch (XPCOMException ex) {
16 years, 6 months
JBoss Tools SVN: r6824 - branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-03-10 15:18:35 -0400 (Mon, 10 Mar 2008)
New Revision: 6824
Modified:
branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java
branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaPreview.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1738
Modified: branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java
===================================================================
--- branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java 2008-03-10 19:05:38 UTC (rev 6823)
+++ branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java 2008-03-10 19:18:35 UTC (rev 6824)
@@ -67,7 +67,7 @@
public class MozillaEditor extends EditorPart implements IReusableEditor {
protected static final String INIT_URL = "file://" + (new File(VpePlugin.getDefault().getResourcePath("ve"), "init.html")).getAbsolutePath();
// private static final String INIT_URL = "chrome://vpe/content/init.html"; //$NON-NLS-1$
- private static final String CONTENT_AREA_ID = "__content__area__"; //$NON-NLS-1$
+ protected static final String CONTENT_AREA_ID = "__content__area__"; //$NON-NLS-1$
static String SELECT_BAR = "SELECT_LBAR"; //$NON-NLS-1$
private XulRunnerEditor xulRunnerEditor;
@@ -391,7 +391,7 @@
return area;
}
- private nsIDOMNode findHeadNode(nsIDOMNode root){
+ protected nsIDOMNode findHeadNode(nsIDOMNode root){
nsIDOMNode headNode = findChildNode(root, HTML.TAG_HEAD); //$NON-NLS-1$
return headNode;
}
@@ -433,7 +433,7 @@
return area;
}
- private boolean isContentArea(nsIDOMNode node) {
+ protected boolean isContentArea(nsIDOMNode node) {
boolean ret = false;
if (HTML.TAG_BODY.equalsIgnoreCase(node.getNodeName())) {
nsIDOMNamedNodeMap map = node.getAttributes();
@@ -586,5 +586,9 @@
this.link = link;
}
+ public void setHeadNode(nsIDOMNode headNode) {
+ this.headNode = headNode;
+ }
+
}
\ No newline at end of file
Modified: branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaPreview.java
===================================================================
--- branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaPreview.java 2008-03-10 19:05:38 UTC (rev 6823)
+++ branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaPreview.java 2008-03-10 19:18:35 UTC (rev 6824)
@@ -36,8 +36,12 @@
import org.jboss.tools.vpe.editor.context.VpePageContext;
import org.jboss.tools.vpe.editor.mapping.VpeDomMapping;
import org.jboss.tools.vpe.editor.template.VpeTemplateManager;
+import org.jboss.tools.vpe.editor.util.HTML;
import org.jboss.tools.vpe.messages.VpeUIMessages;
import org.jboss.tools.vpe.xulrunner.editor.XulRunnerEditor;
+import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.interfaces.nsIDOMNodeList;
/**
* a class implementation of mozilla preview
@@ -263,5 +267,44 @@
private void setSourceEditor(StructuredTextEditor sourceEditor) {
this.sourceEditor = sourceEditor;
}
+
+ @Override
+ protected nsIDOMElement findContentArea() {
+ nsIDOMElement root = getXulRunnerEditor().getDOMDocument()
+ .getDocumentElement();
+ nsIDOMNodeList nodeList = getXulRunnerEditor().getDOMDocument()
+ .getElementsByTagName(HTML.TAG_BODY);
+ long length = nodeList.getLength();
+ nsIDOMElement area = null;
+ for (long i = 0; i < length; i++) {
+ nsIDOMNode node = nodeList.item(i);
+ if (isContentArea(node)) {
+ if (node.getNodeType() != nsIDOMNode.ELEMENT_NODE) {
+ throw new RuntimeException(
+ "The content area node should by element node.");
+ }
+ area = (nsIDOMElement) node
+ .queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
+ break;
+ }
+ }
+ // area = findContentArea(root);
+ if (area == null) {
+ area = getXulRunnerEditor().getDOMDocument().createElement(
+ HTML.TAG_BODY);
+ area.setAttribute(HTML.ATTR_ID, CONTENT_AREA_ID);
+ root.appendChild(area);
+ }
+
+ nsIDOMNode head = findHeadNode(root);
+
+ if (head == null) {
+ head = getXulRunnerEditor().getDOMDocument().createElement(
+ HTML.TAG_HEAD);
+ }
+
+ setHeadNode(head);
+ return area;
+ }
}
\ No newline at end of file
16 years, 6 months
JBoss Tools SVN: r6823 - branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/ve.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2008-03-10 15:05:38 -0400 (Mon, 10 Mar 2008)
New Revision: 6823
Modified:
branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/ve/init.html
Log:
http://jira.jboss.com/jira/browse/JBIDE-1738
Modified: branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/ve/init.html
===================================================================
--- branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/ve/init.html 2008-03-10 18:59:27 UTC (rev 6822)
+++ branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/ve/init.html 2008-03-10 19:05:38 UTC (rev 6823)
@@ -67,6 +67,6 @@
</head>
-<body id="__content__area__"></body>
+<body id="__content__area__"> </body>
</html>
16 years, 6 months
JBoss Tools SVN: r6822 - in trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf: src/org/jboss/tools/jsf/vpe/jsf/template and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: dsakovich
Date: 2008-03-10 14:59:27 -0400 (Mon, 10 Mar 2008)
New Revision: 6822
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/JsfTemplatePlugin.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractOutputJsfTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOptionSelectItemTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputFormatTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputLabelTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputTextTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfRadioSelectItemTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfSelectOneListbox.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfSelectOneRadioTemplate.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/util/ComponentUtil.java
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml
Log:
Code adjustment http://jira.jboss.org/jira/browse/JBIDE-1720
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/JsfTemplatePlugin.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/JsfTemplatePlugin.java 2008-03-10 18:36:15 UTC (rev 6821)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/JsfTemplatePlugin.java 2008-03-10 18:59:27 UTC (rev 6822)
@@ -1,6 +1,11 @@
package org.jboss.tools.jsf.vpe.jsf;
+import java.net.URL;
+
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.Platform;
import org.jboss.tools.common.log.BaseUIPlugin;
+import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
/**
@@ -13,7 +18,7 @@
// The shared instance
private static JsfTemplatePlugin plugin;
-
+
/**
* The constructor
*/
@@ -22,6 +27,7 @@
/*
* (non-Javadoc)
+ *
* @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
*/
public void start(BundleContext context) throws Exception {
@@ -31,6 +37,7 @@
/*
* (non-Javadoc)
+ *
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
@@ -40,7 +47,7 @@
/**
* Returns the shared instance
- *
+ *
* @return the shared instance
*/
public static JsfTemplatePlugin getDefault() {
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractOutputJsfTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractOutputJsfTemplate.java 2008-03-10 18:36:15 UTC (rev 6821)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/AbstractOutputJsfTemplate.java 2008-03-10 18:59:27 UTC (rev 6822)
@@ -47,36 +47,6 @@
}
/**
- * get bundle
- *
- * @param pageContext
- * @param attr
- * @return
- */
- protected String getBundleValue(VpePageContext pageContext, Attr attr) {
-
- return getBundleValue(pageContext, attr.getNodeValue(),
- ((IDOMAttr) attr).getValueRegionStartOffset());
-
- }
-
- /**
- *
- * @param pageContext
- * @param value
- * @param offfset
- * @return
- */
- protected String getBundleValue(VpePageContext pageContext, String value,
- int offfset) {
-
- BundleMap bundle = pageContext.getBundle();
-
- return bundle.getBundleValue(value, offfset);
-
- }
-
- /**
* copy outputAttributes
*
* @param visualElement
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOptionSelectItemTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOptionSelectItemTemplate.java 2008-03-10 18:36:15 UTC (rev 6821)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOptionSelectItemTemplate.java 2008-03-10 18:59:27 UTC (rev 6822)
@@ -1,15 +1,16 @@
/*******************************************************************************
- * Copyright (c) 2007-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
- *
- * Contributor:
- * Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
+ * Copyright (c) 2007-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
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
package org.jboss.tools.jsf.vpe.jsf.template;
+import org.jboss.tools.jsf.vpe.jsf.template.util.ComponentUtil;
import org.jboss.tools.jsf.vpe.jsf.template.util.NodeProxyUtil;
import org.jboss.tools.vpe.editor.VpeSourceDomBuilder;
import org.jboss.tools.vpe.editor.context.VpePageContext;
@@ -19,6 +20,7 @@
import org.jboss.tools.vpe.editor.util.HTML;
import org.mozilla.interfaces.nsIDOMDocument;
import org.mozilla.interfaces.nsIDOMElement;
+import org.mozilla.interfaces.nsIDOMText;
import org.w3c.dom.Attr;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
@@ -26,47 +28,54 @@
/**
* @author dmaliarevich
- *
+ *
*/
public class JsfOptionSelectItemTemplate extends VpeAbstractTemplate {
+ public static final String ITEM_DISABLED = "itemDisabled";
+
private static final String CLASS = "class";
private static final String ITEM_LABEL = "itemLabel";
-
+
private static final String DISABLED = "disabled";
private static final String ENABLED_CLASS = "enabledClass";
private static final String DISABLED_CLASS = "disabledClass";
-
+
/* "escape" attribute of f:selectItem */
private static final String ESCAPE = "escape";
-
+
private String escape;
private String disabled;
private String enabledClass;
private String disabledClass;
-
+
/**
*
*/
public JsfOptionSelectItemTemplate() {
}
- /* (non-Javadoc)
- * @see org.jboss.tools.vpe.editor.template.VpeTemplate#create(org.jboss.tools.vpe.editor.context.VpePageContext, org.w3c.dom.Node, org.mozilla.interfaces.nsIDOMDocument)
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.jboss.tools.vpe.editor.template.VpeTemplate#create(org.jboss.tools.vpe.editor.context.VpePageContext,
+ * org.w3c.dom.Node, org.mozilla.interfaces.nsIDOMDocument)
*/
public VpeCreationData create(VpePageContext pageContext, Node sourceNode,
nsIDOMDocument visualDocument) {
-
+
readParentAttributes(sourceNode.getParentNode());
readAttributes(sourceNode);
Element element = (Element) sourceNode;
-
+ boolean disabledItem = ComponentUtil.string2boolean(ComponentUtil
+ .getAttribute(element, ITEM_DISABLED));
nsIDOMElement option = visualDocument.createElement(HTML.TAG_OPTION);
- nsIDOMElement span = visualDocument.createElement(HTML.TAG_SPAN);
- option.appendChild(span);
-
+ // nsIDOMElement span = visualDocument.createElement(HTML.TAG_SPAN);
+ // option.appendChild(span);
+ if (disabledItem)
+ option.setAttribute(DISABLED, "true");
VpeCreationData creationData = new VpeCreationData(option);
-
+
if (attrPresents(disabled) && "true".equalsIgnoreCase(disabled)) {
option.setAttribute(CLASS, disabledClass);
} else if (attrPresents(enabledClass)) {
@@ -82,10 +91,21 @@
if (null == escape || "true".equalsIgnoreCase(escape)) {
// show text as is
String itemLabel = attr.getNodeValue();
- span.appendChild(visualDocument.createTextNode(itemLabel));
+ String bundleValue = ComponentUtil.getBundleValue(pageContext,
+ attr);
+ nsIDOMText text;
+ // if bundleValue differ from value then will be represent
+ // bundleValue, but text will be not edit
+ if (!itemLabel.equals(bundleValue)) {
+ text = visualDocument.createTextNode(bundleValue);
+
+ } else {
+ text = visualDocument.createTextNode(itemLabel);
+ }
+ option.appendChild(text);
} else {
// show formatted text
- VpeChildrenInfo spanInfo = new VpeChildrenInfo(span);
+ VpeChildrenInfo spanInfo = new VpeChildrenInfo(option);
// re-parse attribute's value
NodeList list = NodeProxyUtil.reparseAttributeValue(attr);
// add children to info
@@ -97,25 +117,27 @@
creationData.addChildrenInfo(spanInfo);
}
}
-
+
return creationData;
}
-
+
/**
* Checks is attribute presents.
*
- * @param attr the attribute
+ * @param attr
+ * the attribute
*
* @return true, if successful
*/
private boolean attrPresents(String attr) {
return ((null != attr) && (!"".equals(attr)));
}
-
+
/**
* Read attributes from the h:SelectManyCheckbox element.
*
- * @param sourceNode the source node
+ * @param sourceNode
+ * the source node
*/
private void readParentAttributes(Node sourceNode) {
if (null == sourceNode) {
@@ -130,7 +152,8 @@
/**
* Read attributes from the source element.
*
- * @param sourceNode the source node
+ * @param sourceNode
+ * the source node
*/
private void readAttributes(Node sourceNode) {
if (null == sourceNode) {
@@ -140,11 +163,11 @@
escape = source.getAttribute(ESCAPE);
}
- @Override
- public void setSourceAttributeSelection(VpePageContext pageContext,
- Element sourceElement, int offset, int length, Object data) {
- VpeSourceDomBuilder sourceBuilder = pageContext.getSourceBuilder();
- sourceBuilder.setSelection(sourceElement, 0, 0);
- }
+ /*
+ * @Override public void setSourceAttributeSelection(VpePageContext
+ * pageContext, Element sourceElement, int offset, int length, Object data) {
+ * VpeSourceDomBuilder sourceBuilder = pageContext.getSourceBuilder();
+ * sourceBuilder.setSelection(sourceElement, 0, 0); }
+ */
}
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputFormatTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputFormatTemplate.java 2008-03-10 18:36:15 UTC (rev 6821)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputFormatTemplate.java 2008-03-10 18:59:27 UTC (rev 6822)
@@ -16,6 +16,7 @@
import java.util.regex.Pattern;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr;
+import org.jboss.tools.jsf.vpe.jsf.template.util.ComponentUtil;
import org.jboss.tools.jsf.vpe.jsf.template.util.NodeProxyUtil;
import org.jboss.tools.vpe.editor.context.VpePageContext;
import org.jboss.tools.vpe.editor.mapping.VpeAttributeData;
@@ -111,7 +112,7 @@
.getAttribute(ESCAPE_ATTR_NAME))) {
// get bundle value
- newValue = getBundleValue(pageContext, newValue, offset);
+ newValue = ComponentUtil.getBundleValue(pageContext, newValue, offset);
nsIDOMText text;
// if bundleValue differ from value then will be represent
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputLabelTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputLabelTemplate.java 2008-03-10 18:36:15 UTC (rev 6821)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputLabelTemplate.java 2008-03-10 18:59:27 UTC (rev 6822)
@@ -10,6 +10,7 @@
******************************************************************************/
package org.jboss.tools.jsf.vpe.jsf.template;
+import org.jboss.tools.jsf.vpe.jsf.template.util.ComponentUtil;
import org.jboss.tools.jsf.vpe.jsf.template.util.NodeProxyUtil;
import org.jboss.tools.vpe.editor.context.VpePageContext;
import org.jboss.tools.vpe.editor.mapping.VpeAttributeData;
@@ -75,7 +76,7 @@
String value = attr.getNodeValue();
// get bundle value
- String bundleValue = getBundleValue(pageContext, attr);
+ String bundleValue = ComponentUtil.getBundleValue(pageContext, attr);
nsIDOMText text;
// if bundleValue differ from value then will be represent
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputTextTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputTextTemplate.java 2008-03-10 18:36:15 UTC (rev 6821)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfOutputTextTemplate.java 2008-03-10 18:59:27 UTC (rev 6822)
@@ -10,6 +10,7 @@
******************************************************************************/
package org.jboss.tools.jsf.vpe.jsf.template;
+import org.jboss.tools.jsf.vpe.jsf.template.util.ComponentUtil;
import org.jboss.tools.jsf.vpe.jsf.template.util.NodeProxyUtil;
import org.jboss.tools.vpe.editor.context.VpePageContext;
import org.jboss.tools.vpe.editor.mapping.VpeAttributeData;
@@ -68,7 +69,7 @@
String value = attr.getNodeValue();
// get bundle value
- String bundleValue = getBundleValue(pageContext, attr);
+ String bundleValue = ComponentUtil.getBundleValue(pageContext, attr);
nsIDOMText text;
// if bundleValue differ from value then will be represent
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfRadioSelectItemTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfRadioSelectItemTemplate.java 2008-03-10 18:36:15 UTC (rev 6821)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfRadioSelectItemTemplate.java 2008-03-10 18:59:27 UTC (rev 6822)
@@ -1,16 +1,17 @@
/*******************************************************************************
-* Copyright (c) 2007 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
-******************************************************************************/
+ * Copyright (c) 2007 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.jsf.vpe.jsf.template;
import org.eclipse.wst.xml.core.internal.document.ElementImpl;
+import org.jboss.tools.jsf.vpe.jsf.template.util.ComponentUtil;
import org.jboss.tools.jsf.vpe.jsf.template.util.NodeProxyUtil;
import org.jboss.tools.vpe.editor.context.VpePageContext;
import org.jboss.tools.vpe.editor.template.VpeAbstractTemplate;
@@ -34,6 +35,9 @@
*/
public class JsfRadioSelectItemTemplate extends VpeAbstractTemplate {
+ /* "itemDisabled" attribute of f:selectItem */
+ public static final String ITEM_DISABLED = "itemDisabled";
+
// type of input tag
private static final String ATTR_TYPE_VALUE = "radio"; //$NON-NLS-1$
@@ -45,16 +49,16 @@
/* "itemLabel" attribute of f:selectItem */
private static final String ITEM_LABEL = "itemLabel";
-
+
/* "escape" attribute of f:selectItem */
private static final String ESCAPE = "escape";
-
+
/* "dir" attribute of f:selectSelectOneRadio */
private static final String DIR = "dir";
-
+
private String dir;
private String escape;
-
+
/**
*
*/
@@ -74,29 +78,36 @@
Element element = (Element) sourceNode;
- // create span element
- nsIDOMElement span = visualDocument.createElement(HTML.TAG_TABLE);
+ // create table element
+ nsIDOMElement table = visualDocument.createElement(HTML.TAG_TABLE);
+ boolean disabledItem = ComponentUtil.string2boolean(ComponentUtil
+ .getAttribute(element, ITEM_DISABLED));
+
// add title attribute to span
- span.setAttribute(HTML.ATTR_TITLE, getTitle(sourceNode));
+ table.setAttribute(HTML.ATTR_TITLE, getTitle(sourceNode));
nsIDOMElement radio = visualDocument.createElement(HTML.TAG_INPUT);
+ if (disabledItem)
+ radio.setAttribute(ITEM_DISABLED, "true");
nsIDOMElement label = visualDocument.createElement(HTML.TAG_LABEL);
- span.appendChild(radio);
- span.appendChild(label);
+ if (disabledItem)
+ label.setAttribute(ITEM_DISABLED, "true");
+ table.appendChild(radio);
+ table.appendChild(label);
if (null != element) {
escape = element.getAttribute(ESCAPE);
dir = element.getAttribute(DIR);
}
-
- VpeCreationData creationData = new VpeCreationData(span);
+ VpeCreationData creationData = new VpeCreationData(table);
+
// set attributes
- span.setAttribute(HTML.ATTR_STYLE, SPAN_STYLE_VALUE);
+ table.setAttribute(HTML.ATTR_STYLE, SPAN_STYLE_VALUE);
radio.setAttribute(HTML.ATTR_TYPE, ATTR_TYPE_VALUE);
radio.setAttribute(HTML.ATTR_TITLE, getTitle(sourceNode));
radio.setAttribute(HTML.ATTR_NAME, ATTR_NAME_VALUE
+ getNameSuffix(sourceNode));
-
+
if (attrPresents(dir)) {
radio.setAttribute(HTML.ATTR_DIR, dir);
}
@@ -109,8 +120,24 @@
if (null != attr) {
if (null == escape || "true".equalsIgnoreCase(escape)) {
// show text as is
+
String itemLabel = attr.getNodeValue();
- label.appendChild(visualDocument.createTextNode(itemLabel));
+ String bundleValue = ComponentUtil.getBundleValue(pageContext,
+ attr);
+
+ nsIDOMText text;
+ // if bundleValue differ from value then will be represent
+ // bundleValue, but text will be not edit
+ if (!itemLabel.equals(bundleValue)) {
+
+ text = visualDocument.createTextNode(bundleValue);
+
+ } else {
+
+ text = visualDocument.createTextNode(itemLabel);
+
+ }
+ label.appendChild(text);
} else {
// show formatted text
VpeChildrenInfo labelSpanInfo = new VpeChildrenInfo(label);
@@ -166,7 +193,7 @@
Node parent = sourceNode.getParentNode();
if (parent.getNodeType() == Node.ELEMENT_NODE) {
-
+
ElementImpl element = (ElementImpl) parent;
// get start position of parent
@@ -176,11 +203,12 @@
return name_suffix;
}
-
+
/**
* Checks is attribute presents.
*
- * @param attr the attribute
+ * @param attr
+ * the attribute
*
* @return true, if successful
*/
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfSelectOneListbox.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfSelectOneListbox.java 2008-03-10 18:36:15 UTC (rev 6821)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfSelectOneListbox.java 2008-03-10 18:59:27 UTC (rev 6822)
@@ -101,10 +101,11 @@
// add attribute to "select"
if (attr != null) {
if (attributeName.equalsIgnoreCase(HTML.ATTR_DISABLED)) {
- if (attr.equalsIgnoreCase("true")) {
- select.setAttribute(ATTR_LIST_COPY.get(attributeName),
- "disabled");
- }
+ /*
+ * if (attr.equalsIgnoreCase("true")) {
+ * select.setAttribute(ATTR_LIST_COPY.get(attributeName),
+ * "disabled"); }
+ */
continue;
}
select.setAttribute(ATTR_LIST_COPY.get(attributeName), attr);
@@ -181,12 +182,29 @@
nsIDOMElement element = (nsIDOMElement) node
.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
disabled = ComponentUtil.string2boolean(ComponentUtil.getAttribute(
- sourceElement, HTML.ATTR_DISABLED));
+ sourceElement, HTML.ATTR_DISABLED))
+ || ComponentUtil.string2boolean(ATTR_LIST_COPY
+ .get(HTML.ATTR_DISABLED));
if (node.getNodeName().equalsIgnoreCase(HTML.TAG_OPTION)) {
- element.setAttribute(HTML.ATTR_CLASS, disabled ? ComponentUtil
- .getAttribute(sourceElement, ATTR_DISABLED_CLASS)
- : ComponentUtil.getAttribute(sourceElement,
- ATTR_ENABLED_CLASS));
+ if (disabled) {
+ element
+ .setAttribute(HTML.ATTR_DISABLED,
+ HTML.ATTR_DISABLED);
+ element.setAttribute(HTML.ATTR_STYLE, sourceElement.getAttribute(HTML.ATTR_STYLE));
+ }
+ element
+ .setAttribute(
+ HTML.ATTR_CLASS,
+ (disabled || ComponentUtil
+ .string2boolean(ComponentUtil
+ .getAttribute(element,
+ HTML.ATTR_DISABLED))) ? ComponentUtil
+ .getAttribute(sourceElement,
+ ATTR_DISABLED_CLASS)
+ : ComponentUtil.getAttribute(
+ sourceElement,
+ ATTR_ENABLED_CLASS));
+
}
for (int i = 0; i < list.getLength(); i++) {
applyChildAttributes(sourceElement, list.item(i));
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfSelectOneRadioTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfSelectOneRadioTemplate.java 2008-03-10 18:36:15 UTC (rev 6821)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/JsfSelectOneRadioTemplate.java 2008-03-10 18:59:27 UTC (rev 6822)
@@ -143,20 +143,39 @@
.setAttribute(
HTML.ATTR_DIR,
(ComponentUtil.getAttribute(sourceElement,
- HTML.ATTR_DIR) == ATTR_DIR_LEFT_TO_RIGHT) ? ATTR_DIR_LEFT_TO_RIGHT
- : ATTR_DIR_RIGHT_TO_LEFT);
+ HTML.ATTR_DIR).trim()
+ .equalsIgnoreCase(ATTR_DIR_RIGHT_TO_LEFT)) ? ATTR_DIR_RIGHT_TO_LEFT
+ : ((ComponentUtil.getAttribute(
+ sourceElement, HTML.ATTR_DIR)
+ .trim()
+ .equalsIgnoreCase(ATTR_DIR_LEFT_TO_RIGHT)) ? ATTR_DIR_LEFT_TO_RIGHT
+ : ""));
element.setAttribute(HTML.ATTR_SIZE, ComponentUtil
.getAttribute(sourceElement, HTML.ATTR_SIZE));
- if (disabled)
+ if (disabled
+ || ComponentUtil
+ .string2boolean(ComponentUtil
+ .getAttribute(
+ element,
+ JsfRadioSelectItemTemplate.ITEM_DISABLED)))
element.setAttribute(HTML.ATTR_DISABLED,
ATTR_DISABLED_VALUE);
}
if (node.getNodeName().equalsIgnoreCase(HTML.TAG_LABEL)) {
- element.setAttribute(HTML.ATTR_CLASS, disabled ? ComponentUtil
- .getAttribute(sourceElement, ATTR_DISABLED_CLASS)
- : ComponentUtil.getAttribute(sourceElement,
- ATTR_ENABLED_CLASS));
+ element
+ .setAttribute(
+ HTML.ATTR_CLASS,
+ (disabled || ComponentUtil
+ .string2boolean(ComponentUtil
+ .getAttribute(
+ element,
+ JsfRadioSelectItemTemplate.ITEM_DISABLED))) ? ComponentUtil
+ .getAttribute(sourceElement,
+ ATTR_DISABLED_CLASS)
+ : ComponentUtil.getAttribute(
+ sourceElement,
+ ATTR_ENABLED_CLASS));
}
if (node.getNodeName().equalsIgnoreCase(HTML.TAG_TABLE)) {
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/util/ComponentUtil.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/util/ComponentUtil.java 2008-03-10 18:36:15 UTC (rev 6821)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/src/org/jboss/tools/jsf/vpe/jsf/template/util/ComponentUtil.java 2008-03-10 18:59:27 UTC (rev 6822)
@@ -10,7 +10,16 @@
******************************************************************************/
package org.jboss.tools.jsf.vpe.jsf.template.util;
+import java.io.File;
+
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.wst.xml.core.internal.provisional.document.IDOMAttr;
+import org.jboss.tools.jsf.vpe.jsf.JsfTemplatePlugin;
+import org.jboss.tools.vpe.editor.bundle.BundleMap;
+import org.jboss.tools.vpe.editor.context.VpePageContext;
import org.mozilla.interfaces.nsIDOMElement;
+import org.w3c.dom.Attr;
import org.w3c.dom.Element;
/**
@@ -73,4 +82,34 @@
}
return false;
}
+
+ /**
+ * get bundle
+ *
+ * @param pageContext
+ * @param attr
+ * @return
+ */
+ public static String getBundleValue(VpePageContext pageContext, Attr attr) {
+
+ return getBundleValue(pageContext, attr.getNodeValue(),
+ ((IDOMAttr) attr).getValueRegionStartOffset());
+
+ }
+
+ /**
+ *
+ * @param pageContext
+ * @param value
+ * @param offfset
+ * @return
+ */
+ public static String getBundleValue(VpePageContext pageContext,
+ String value, int offfset) {
+
+ BundleMap bundle = pageContext.getBundle();
+
+ return bundle.getBundleValue(value, offfset);
+
+ }
}
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml 2008-03-10 18:36:15 UTC (rev 6821)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.jsf/templates/vpe-templates-jsf.xml 2008-03-10 18:59:27 UTC (rev 6822)
@@ -1,1154 +1,1210 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<vpe:templates>
- <vpe:template-taglib uri="http://java.sun.com/jsf/html" prefix="h"/>
- <vpe:template-taglib uri="http://java.sun.com/jsf/core" prefix="f"/>
-
- <vpe:tag name="f:loadBundle" case-sensitive="yes">
- <vpe:template children="no" modify="no">
- <vpe:load-bundle/>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="f:verbatim" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <span title="{tagstring()}" />
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes"/>
- </vpe:dnd>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h:inputText" case-sensitive="yes">
- <vpe:template children="no" modify="no">
- <input type="text" value="{jsfvalue(@value)}" class="{@styleClass}" style="{@style}" title="{tagstring()}" size="{@size}" dir="{@dir}"/>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="converter" />
- <vpe:container-child tag-name="convertNumber" />
- <vpe:container-child tag-name="convertDateTime" />
- <vpe:container-child tag-name="validator" />
- <vpe:container-child tag-name="validateDoubleRange" />
- <vpe:container-child tag-name="validateLongRange" />
- <vpe:container-child tag-name="validateLength" />
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h:inputTextarea" case-sensitive="yes">
- <vpe:template children="yes" modify="no">
- <textarea class="{@styleClass}" style="{@style}" rows="{@rows}" cols="{@cols}" title="{tagstring()}" dir="{@dir}">
- <vpe:value expr="{jsfvalue(@value)}"/>
- </textarea>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h:inputSecret" case-sensitive="yes">
- <vpe:template children="no" modify="no">
- <input type="password" value="{jsfvalue(@value)}" class="{@styleClass}" style="{@style}" title="{tagstring()}" size="{@size}" dir="{@dir}" />
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="converter" />
- <vpe:container-child tag-name="convertNumber" />
- <vpe:container-child tag-name="convertDateTime" />
- <vpe:container-child tag-name="validator" />
- <vpe:container-child tag-name="validateDoubleRange" />
- <vpe:container-child tag-name="validateLongRange" />
- <vpe:container-child tag-name="validateLength" />
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h:inputHidden" case-sensitive="yes">
- <vpe:template children="no" modify="no">
- <input type="text" value="{jsfvalue(@value)}" title="{tagstring()}"/>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="converter" />
- <vpe:container-child tag-name="convertNumber" />
- <vpe:container-child tag-name="convertDateTime" />
- <vpe:container-child tag-name="validator" />
- <vpe:container-child tag-name="validateDoubleRange" />
- <vpe:container-child tag-name="validateLongRange" />
- <vpe:container-child tag-name="validateLength" />
- </vpe:drop>
- </vpe:dnd>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h:outputText" case-sensitive="yes">
- <vpe:template children="yes" modify="no"
- class="org.jboss.tools.jsf.vpe.jsf.template.JsfOutputTextTemplate">
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes">
- <vpe:container-child tag-name="converter" />
- <vpe:container-child tag-name="convertNumber" />
- <vpe:container-child tag-name="convertDateTime" />
- <vpe:container-child tag-name="validator" />
- <vpe:container-child tag-name="validateDoubleRange" />
- <vpe:container-child tag-name="validateLongRange" />
- <vpe:container-child tag-name="validateLength" />
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h:outputFormat" case-sensitive="yes">
- <vpe:template children="yes" modify="yes"
- class="org.jboss.tools.jsf.vpe.jsf.template.JsfOutputFormatTemplate">
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:tag>
- <vpe:tag name="h:graphicImage" case-sensitive="yes">
- <vpe:if test="attrpresent('value')">
- <vpe:template children="no" modify="yes">
- <img src="{src(jsfvalue(@value))}" width="{@width}" height="{@height}" class="{@styleClass}" style="{@style}" title="{tagstring()}"/>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- </vpe:dnd>
- <vpe:resize>
- <vpe:width width-attr="width" />
- <vpe:height height-attr="height" />
- </vpe:resize>
- </vpe:template>
- </vpe:if>
- <vpe:template children="no" modify="yes">
- <img src="{src(jsfvalue(@url))}" width="{@width}" height="{@height}" class="{@styleClass}" style="{@style}" title="{tagstring()}"/>
- <vpe:resize>
- <vpe:width width-attr="width" />
- <vpe:height height-attr="height" />
- </vpe:resize>
- </vpe:template>
- </vpe:tag>
-
-<!-- Проблема с адресацией от приложения (30 of 4) -->
- <vpe:tag name="h:commandButton" case-sensitive="yes">
- <vpe:if test="not(attrpresent('image'))">
- <vpe:if test="@type=''">
- <vpe:template children="no" modify="no">
- <input type="submit" value="{jsfvalue(@value)}" class="{@styleClass}" style="{@style}" title="{tagstring()}"/>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:if>
- <vpe:if test="(@type='button')|(@type='reset')|(@type='submit')">
- <vpe:template children="no" modify="no">
- <input type="{@type}" value="{jsfvalue(@value)}" class="{@styleClass}" style="{@style}" title="{tagstring()}"/>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:if>
- </vpe:if>
- <vpe:if test="attrpresent('image')">
- <vpe:template children="no" modify="no">
- <input type="image" src="{src(@image)}" class="{@styleClass}" style="{@style}" title="{tagstring()}"/>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:if>
- </vpe:tag>
-
-<!-- Проблема с вложенным параметром (31 of 4) -->
- <vpe:tag name="h:commandLink" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <span class="{@styleClass}" style="color:blue;text-decoration:underline;{@style}" title="{tagstring()}">
- <vpe:value expr="{jsfvalue(@value)}"/>
- </span>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="outputText"/>
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormating>
- <vpe:pseudoContent/>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h:outputLink" case-sensitive="yes">
- <vpe:if test="(@disabled='true')">
- <vpe:template children="yes" modify="yes">
- <span class="{@styleClass}"
- style="{@style}" dir="{@dir}">
- </span>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat"
- setDefault="true">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:if>
- <vpe:template children="yes" modify="yes">
- <a href="javascript:return false;" class="{@styleClass}"
- style="{@style}" dir="{@dir}" />
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat" setDefault="true">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
+<?xml version="1.0" encoding="UTF-8"?>
- </vpe:tag>
+<vpe:templates>
+ <vpe:template-taglib uri="http://java.sun.com/jsf/html" prefix="h" />
+ <vpe:template-taglib uri="http://java.sun.com/jsf/core" prefix="f" />
- <vpe:tag name="h:outputLabel" case-sensitive="yes">
- <vpe:template children="yes" modify="yes"
- class="org.jboss.tools.jsf.vpe.jsf.template.JsfOutputLabelTemplate">
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes">
- <vpe:container-child tag-name="outputText" />
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:tag>
+ <vpe:tag name="f:loadBundle" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <vpe:load-bundle />
+ </vpe:template>
+ </vpe:tag>
- <vpe:tag name="h:selectBooleanCheckbox" case-sensitive="yes">
- <vpe:if test="@disabled='on'"> <!-- Gavr --><!-- added x: 15.02.05 -->
- <vpe:template children="no" modify="no">
- <input type="checkbox" disabled="on" checked="{@value}" class="{@styleClass}" style="{@style}" border="{@border}" title="{tagstring()}"/>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="selectItem"/>
- <vpe:container-child tag-name="selectItems"/>
- </vpe:drop>
- </vpe:dnd>
- </vpe:template>
- </vpe:if>
- <vpe:template children="no" modify="no">
- <input type="checkbox" checked="{@value}" class="{@styleClass}" style="{@style}" border="{@border}" title="{tagstring()}"/>
- </vpe:template>
- </vpe:tag>
-
-<!--
- Проблема с вложенными f:selectItem (42 of 4) и f:selectItems (50 of 4)
- Возможна проблема с нечувствительностью к регистру lineDirection/pageDirection (44 of 4)
--->
- <vpe:tag name="h:selectManyCheckbox" case-sensitive="yes">
- <vpe:template children="yes" modify="yes"
- class="org.jboss.tools.jsf.vpe.jsf.template.JsfSelectManyCheckbox">
-
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="selectItem"/>
- <vpe:container-child tag-name="selectItems"/>
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h:selectOneRadio" case-sensitive="yes">
- <vpe:template children="yes" modify="yes" class="org.jboss.tools.jsf.vpe.jsf.template.JsfSelectOneRadioTemplate">
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="selectItem"/>
- <vpe:container-child tag-name="selectItems"/>
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h:selectOneListbox" case-sensitive="yes">
- <vpe:template
- class="org.jboss.tools.jsf.vpe.jsf.template.JsfSelectOneListbox"
- children="yes" modify="yes">
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes">
- <vpe:container-child tag-name="selectItem" />
- <vpe:container-child tag-name="selectItems" />
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:tag>
+ <vpe:tag name="f:verbatim" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <span title="{tagstring()}" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
- <vpe:tag name="h:selectManyListbox" case-sensitive="yes">
- <vpe:template children="yes" modify="yes"
- class="org.jboss.tools.jsf.vpe.jsf.template.JsfSelectManyListbox">
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="yes">
- <vpe:container-child tag-name="selectItem" />
- <vpe:container-child tag-name="selectItems" />
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style" />
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:tag>
+ <vpe:tag name="h:inputText" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <input type="text" value="{jsfvalue(@value)}"
+ class="{@styleClass}" style="{@style}" title="{tagstring()}"
+ size="{@size}" dir="{@dir}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="converter" />
+ <vpe:container-child tag-name="convertNumber" />
+ <vpe:container-child tag-name="convertDateTime" />
+ <vpe:container-child tag-name="validator" />
+ <vpe:container-child tag-name="validateDoubleRange" />
+ <vpe:container-child tag-name="validateLongRange" />
+ <vpe:container-child tag-name="validateLength" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
- <vpe:tag name="h:selectOneMenu" case-sensitive="yes">
- <vpe:template class="org.jboss.tools.jsf.vpe.jsf.template.JsfSelectOneMenuTemplate"
- children="yes" modify="yes">
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="selectItem"/>
- <vpe:container-child tag-name="selectItems"/>
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h:selectManyMenu" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <select style="{@style}" multiple="multiple" class="{@styleClass}" title="{tagstring()}" size="1" dir="{@dir}"/>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes">
- <vpe:container-child tag-name="selectItem"/>
- <vpe:container-child tag-name="selectItems"/>
- </vpe:drop>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="f:selectItem" case-sensitive="yes">
- <vpe:if test="hasinparents('h:selectManyCheckbox')">
- <vpe:template children="yes" modify="yes"
- class="org.jboss.tools.jsf.vpe.jsf.template.JsfCheckboxSelectItemTemplate">
- </vpe:template>
- </vpe:if>
- <vpe:if
- test="hasinparents('h:selectManyListbox')|hasinparents('h:selectManyMenu')">
- <vpe:template children="yes" modify="yes"
- class="org.jboss.tools.jsf.vpe.jsf.template.JsfOptionSelectItemTemplate">
- </vpe:template>
- </vpe:if>
- <vpe:if
- test="hasinparents('h:selectOneRadio')|hasinparents('x:selectOneRadio')">
- <vpe:template children="yes" modify="yes"
- class="org.jboss.tools.jsf.vpe.jsf.template.JsfRadioSelectItemTemplate">
- </vpe:template>
- </vpe:if>
- <vpe:if
- test="hasinparents('x:selectManyCheckbox')|hasinparents('t:selectManyCheckbox')">
- <vpe:template children="no" modify="yes">
- <span title="{tagstring()}">
- <input type="checkbox" />
- <vpe:value expr="{jsfvalue(@itemLabel)}" />
- </span>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- </vpe:dnd>
- <vpe:breaker type="selectItem" />
- </vpe:template>
- </vpe:if>
- <vpe:if
- test="hasinparents('h:selectOneListbox')|
- hasinparents('h:selectOneMenu')|
- hasinparents('t:selectManyMenu')|
+ <vpe:tag name="h:inputTextarea" case-sensitive="yes">
+ <vpe:template children="yes" modify="no">
+ <textarea class="{@styleClass}" style="{@style}"
+ rows="{@rows}" cols="{@cols}" title="{tagstring()}" dir="{@dir}">
+ <vpe:value expr="{jsfvalue(@value)}" />
+ </textarea>
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h:inputSecret" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <input type="password" value="{jsfvalue(@value)}"
+ class="{@styleClass}" style="{@style}" title="{tagstring()}"
+ size="{@size}" dir="{@dir}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="converter" />
+ <vpe:container-child tag-name="convertNumber" />
+ <vpe:container-child tag-name="convertDateTime" />
+ <vpe:container-child tag-name="validator" />
+ <vpe:container-child tag-name="validateDoubleRange" />
+ <vpe:container-child tag-name="validateLongRange" />
+ <vpe:container-child tag-name="validateLength" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h:inputHidden" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <input type="text" value="{jsfvalue(@value)}"
+ title="{tagstring()}" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="converter" />
+ <vpe:container-child tag-name="convertNumber" />
+ <vpe:container-child tag-name="convertDateTime" />
+ <vpe:container-child tag-name="validator" />
+ <vpe:container-child tag-name="validateDoubleRange" />
+ <vpe:container-child tag-name="validateLongRange" />
+ <vpe:container-child tag-name="validateLength" />
+ </vpe:drop>
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h:outputText" case-sensitive="yes">
+ <vpe:template children="yes" modify="no"
+ class="org.jboss.tools.jsf.vpe.jsf.template.JsfOutputTextTemplate">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="converter" />
+ <vpe:container-child tag-name="convertNumber" />
+ <vpe:container-child tag-name="convertDateTime" />
+ <vpe:container-child tag-name="validator" />
+ <vpe:container-child tag-name="validateDoubleRange" />
+ <vpe:container-child tag-name="validateLongRange" />
+ <vpe:container-child tag-name="validateLength" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h:outputFormat" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.jsf.vpe.jsf.template.JsfOutputFormatTemplate">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+ <vpe:tag name="h:graphicImage" case-sensitive="yes">
+ <vpe:if test="attrpresent('value')">
+ <vpe:template children="no" modify="yes">
+ <img src="{src(jsfvalue(@value))}" width="{@width}"
+ height="{@height}" class="{@styleClass}" style="{@style}"
+ title="{tagstring()}" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:resize>
+ <vpe:width width-attr="width" />
+ <vpe:height height-attr="height" />
+ </vpe:resize>
+ </vpe:template>
+ </vpe:if>
+ <vpe:template children="no" modify="yes">
+ <img src="{src(jsfvalue(@url))}" width="{@width}"
+ height="{@height}" class="{@styleClass}" style="{@style}"
+ title="{tagstring()}" />
+ <vpe:resize>
+ <vpe:width width-attr="width" />
+ <vpe:height height-attr="height" />
+ </vpe:resize>
+ </vpe:template>
+ </vpe:tag>
+
+ <!-- Проблема с адресацией от приложения (30 of 4) -->
+ <vpe:tag name="h:commandButton" case-sensitive="yes">
+ <vpe:if test="not(attrpresent('image'))">
+ <vpe:if test="@type=''">
+ <vpe:template children="no" modify="no">
+ <input type="submit" value="{jsfvalue(@value)}"
+ class="{@styleClass}" style="{@style}" title="{tagstring()}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:if>
+ <vpe:if
+ test="(@type='button')|(@type='reset')|(@type='submit')">
+ <vpe:template children="no" modify="no">
+ <input type="{@type}" value="{jsfvalue(@value)}"
+ class="{@styleClass}" style="{@style}" title="{tagstring()}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:if>
+ </vpe:if>
+ <vpe:if test="attrpresent('image')">
+ <vpe:template children="no" modify="no">
+ <input type="image" src="{src(@image)}"
+ class="{@styleClass}" style="{@style}" title="{tagstring()}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:if>
+ </vpe:tag>
+
+ <!-- Проблема с вложенным параметром (31 of 4) -->
+ <vpe:tag name="h:commandLink" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <span class="{@styleClass}"
+ style="color:blue;text-decoration:underline;{@style}"
+ title="{tagstring()}">
+ <vpe:value expr="{jsfvalue(@value)}" />
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="outputText" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ <vpe:pseudoContent />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h:outputLink" case-sensitive="yes">
+ <vpe:if test="(@disabled='true')">
+ <vpe:template children="yes" modify="yes">
+ <span class="{@styleClass}" style="{@style}"
+ dir="{@dir}">
+ </span>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat"
+ setDefault="true">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:if>
+ <vpe:template children="yes" modify="yes">
+ <a href="javascript:return false;" class="{@styleClass}"
+ style="{@style}" dir="{@dir}" />
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat" setDefault="true">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+
+ </vpe:tag>
+
+ <vpe:tag name="h:outputLabel" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.jsf.vpe.jsf.template.JsfOutputLabelTemplate">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="outputText" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h:selectBooleanCheckbox" case-sensitive="yes">
+ <vpe:if test="@disabled='on'"><!-- Gavr --><!-- added x: 15.02.05 -->
+ <vpe:template children="no" modify="no">
+ <input type="checkbox" disabled="on" checked="{@value}"
+ class="{@styleClass}" style="{@style}" border="{@border}"
+ title="{tagstring()}" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="selectItem" />
+ <vpe:container-child tag-name="selectItems" />
+ </vpe:drop>
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:if>
+ <vpe:template children="no" modify="no">
+ <input type="checkbox" checked="{@value}"
+ class="{@styleClass}" style="{@style}" border="{@border}"
+ title="{tagstring()}" />
+ </vpe:template>
+ </vpe:tag>
+
+ <!--
+ Проблема с вложенными f:selectItem (42 of 4) и f:selectItems (50 of 4)
+ Возможна проблема с нечувствительностью к регистру lineDirection/pageDirection (44 of 4)
+ -->
+ <vpe:tag name="h:selectManyCheckbox" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.jsf.vpe.jsf.template.JsfSelectManyCheckbox">
+
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="selectItem" />
+ <vpe:container-child tag-name="selectItems" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h:selectOneRadio" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.jsf.vpe.jsf.template.JsfSelectOneRadioTemplate">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="selectItem" />
+ <vpe:container-child tag-name="selectItems" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h:selectOneListbox" case-sensitive="yes">
+ <vpe:template
+ class="org.jboss.tools.jsf.vpe.jsf.template.JsfSelectOneListbox"
+ children="yes" modify="yes">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="selectItem" />
+ <vpe:container-child tag-name="selectItems" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h:selectManyListbox" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.jsf.vpe.jsf.template.JsfSelectManyListbox">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="selectItem" />
+ <vpe:container-child tag-name="selectItems" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h:selectOneMenu" case-sensitive="yes">
+ <vpe:template
+ class="org.jboss.tools.jsf.vpe.jsf.template.JsfSelectOneMenuTemplate"
+ children="yes" modify="yes">
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="selectItem" />
+ <vpe:container-child tag-name="selectItems" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h:selectManyMenu" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <select style="{@style}" multiple="multiple"
+ class="{@styleClass}" title="{tagstring()}" size="1" dir="{@dir}" />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="selectItem" />
+ <vpe:container-child tag-name="selectItems" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="f:selectItem" case-sensitive="yes">
+ <vpe:if test="hasinparents('h:selectManyCheckbox')">
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.jsf.vpe.jsf.template.JsfCheckboxSelectItemTemplate">
+ </vpe:template>
+ </vpe:if>
+ <vpe:if
+ test="hasinparents('h:selectManyListbox')|hasinparents('h:selectManyMenu')|hasinparents('h:selectOneListbox')|hasinparents('h:selectOneMenu')">
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.jsf.vpe.jsf.template.JsfOptionSelectItemTemplate">
+ </vpe:template>
+ </vpe:if>
+ <vpe:if
+ test="hasinparents('h:selectOneRadio')|hasinparents('x:selectOneRadio')">
+ <vpe:template children="yes" modify="yes"
+ class="org.jboss.tools.jsf.vpe.jsf.template.JsfRadioSelectItemTemplate">
+ </vpe:template>
+ </vpe:if>
+ <vpe:if
+ test="hasinparents('x:selectManyCheckbox')|hasinparents('t:selectManyCheckbox')">
+ <vpe:template children="no" modify="yes">
+ <span title="{tagstring()}">
+ <input type="checkbox" />
+ <vpe:value expr="{jsfvalue(@itemLabel)}" />
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ <vpe:breaker type="selectItem" />
+ </vpe:template>
+ </vpe:if>
+ <vpe:if
+ test="hasinparents('t:selectManyMenu')|
hasinparents('x:selectOneRadio')|
hasinparents('x:selectOneMenu')">
-<!-- Gavr --><!-- added x: 8.02.05 -->
- <vpe:template children="no" modify="yes">
- <option value="{@itemValue}" title="{tagstring()}">
- <vpe:value expr="{jsfvalue(@itemLabel)}" />
- </option>
- </vpe:template>
- </vpe:if>
- </vpe:tag>
-
- <vpe:tag name="f:selectItems" case-sensitive="yes">
- <vpe:if test="hasinparents('h:selectManyCheckbox')|hasinparents('x:selectManyCheckbox')"> <!-- added x: 8.02.05 --><!-- Gavr -->
+ <!-- Gavr --><!-- added x: 8.02.05 -->
<vpe:template children="no" modify="yes">
- <span title="{tagstring()}">
- <input type="checkbox"/>
- <vpe:value expr="{jsfvalue(@itemLabel)}"/>
- </span>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- </vpe:dnd>
+ <option value="{@itemValue}" title="{tagstring()}">
+ <vpe:value expr="{jsfvalue(@itemLabel)}" />
+ </option>
</vpe:template>
</vpe:if>
- <vpe:if test="hasinparents('h:selectOneRadio')">
- <vpe:template children="no" modify="yes">
- <span title="{tagstring()}">
- <input type="radio"/>
- <vpe:value expr="{jsfvalue(@itemLabel)}"/>
- </span>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- </vpe:dnd>
- </vpe:template>
- </vpe:if>
- <vpe:if test="hasinparents('h:selectOneListbox')|
+ </vpe:tag>
+
+ <vpe:tag name="f:selectItems" case-sensitive="yes">
+ <vpe:if
+ test="hasinparents('h:selectManyCheckbox')|hasinparents('x:selectManyCheckbox')">
+<!-- added x: 8.02.05 --><!-- Gavr -->
+ <vpe:template children="no" modify="yes">
+ <span title="{tagstring()}">
+ <input type="checkbox" />
+ <vpe:value expr="{jsfvalue(@itemLabel)}" />
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:if>
+ <vpe:if test="hasinparents('h:selectOneRadio')">
+ <vpe:template children="no" modify="yes">
+ <span title="{tagstring()}">
+ <input type="radio" />
+ <vpe:value expr="{jsfvalue(@itemLabel)}" />
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ </vpe:dnd>
+ </vpe:template>
+ </vpe:if>
+ <vpe:if
+ test="hasinparents('h:selectOneListbox')|
hasinparents('h:selectManyListbox')|
hasinparents('h:selectOneMenu')|
hasinparents('h:selectManyMenu')|
- hasinparents('x:selectOneMenu')"> <!-- Gavr -->
+ hasinparents('x:selectOneMenu')">
+<!-- Gavr -->
<vpe:template children="no" modify="yes">
<option value="{@itemValue}" title="{tagstring()}">
- <vpe:value expr="{jsfvalue(@value)}"/>
+ <vpe:value expr="{jsfvalue(@value)}" />
</option>
</vpe:template>
</vpe:if>
- </vpe:tag>
+ </vpe:tag>
- <vpe:tag name="h:selectOneMenu" case-sensitive="yes">
- <vpe:template children="yes" modify="no">
- <select >
- </select>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- </vpe:dnd>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h:panelGroup" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <span style="{@style}" class="{@styleClass}" title="{tagstring()}"/>
- <vpe:breaker type="ignore"/>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h:panelGrid" case-sensitive="yes">
- <vpe:template children="yes" modify="yes">
- <vpe:panelgrid border="{iif(@border='','0','@border')}" style="{@style}" class="{@styleClass}" width="{@width}" frame="{@frame}" rules="{@rules}"
- columnClasses="{@columnClasses}" footerClass="{@footerClass}" headerClass="{@headerClass}" rowClasses="{@rowClasses}"
- cellspacing="{@cellspacing}" cellpadding="{@cellpadding}" bgcolor="{@bgcolor}" title="{tagstring()}"
- table-size="{@columns}"/>
- <vpe:resize>
- <vpe:width width-attr="width" />
- </vpe:resize>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes"/>
- </vpe:dnd>
- <vpe:breaker type="ignore"/>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormating>
- <vpe:pseudoContent defaultText="yes"/>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h:dataTable" case-sensitive="yes">
+ <vpe:tag name="h:selectOneMenu" case-sensitive="yes">
<vpe:template children="yes" modify="no">
- <vpe:datatable width="{@width}" bgcolor="{@bgcolor}" border="{@border}"
- cellpadding="{@cellpadding}" cellspacing="{@cellspacing}"
- columnClasses="{@columnClasses}" footerClass="{@footerClass}" headerClass="{@headerClass}"
- rowClasses="{@rowClasses}"
- frame="{@frame}" rules="{@rules}" class="{@styleClass}" style="{@style}" title="{tagstring()}"/>
- <vpe:resize>
- <vpe:width width-attr="style.width" />
- <vpe:height height-attr="style.height" />
- </vpe:resize>
+ <select></select>
<vpe:dnd>
<vpe:drag start-enable="yes" />
- <vpe:drop container="yes">
- <vpe:container-child tag-name="column"/>
- </vpe:drop>
</vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="BlockFormat" addChildren="deny"/>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormating>
- <vpe:pseudoContent defaultText="yes"/>
</vpe:template>
- </vpe:tag>
+ </vpe:tag>
- <vpe:tag name="h:column" case-sensitive="yes">
- <vpe:if test="parentname()='h:dataTable'|parentname()='x:dataTable'|parentname()='t:dataTable'|parentname()='t:newspaperTable'|parentname()='t:tree'"> <!-- Gavr --><!-- added x: 8.02.05 -->
- <vpe:template children="yes" modify="yes">
- <vpe:column title="{tagstring()}"/>
- </vpe:template>
- </vpe:if>
- <vpe:if test="parentname()='rich:columnGroup'|parentname()='rich:dataTable'|parentname()='rich:orderingList'|parentname()='rich:listShuttle'">
- <vpe:template children="yes" modify="yes" namespaceIdentifier="org.jboss.tools.jsf.vpe.richfaces" class="org.jboss.tools.jsf.vpe.richfaces.template.RichFacesColumnTemplate">
- </vpe:template>
- </vpe:if>
- </vpe:tag>
+ <vpe:tag name="h:panelGroup" case-sensitive="yes">
- <vpe:tag name="f:facet" case-sensitive="yes">
- <vpe:if test="@name='popup'">
+ <vpe:if test="@layout='block'">
<vpe:template children="yes" modify="yes">
- </vpe:template>
- </vpe:if>
- <vpe:if test="parentname()='h:dataTable'|parentname()='t:tree'">
- <vpe:template children="yes" modify="yes">
- <vpe:facet/>
- </vpe:template>
- </vpe:if>
- <vpe:template children="yes" modify="yes">
- <div/>
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes"/>
- </vpe:dnd>
- <vpe:pseudoContent defaultText="yes" attrName="name"/>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="f:view" case-sensitive="yes">
- <vpe:template children="yes" modify="yes" haveVisualPreview="no"
- class="org.jboss.tools.jsf.vpe.jsf.template.JsfView">
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes"/>
- </vpe:dnd>
- <vpe:pseudoContent defaultText="yes"/>
- <vpe:textFormating>
- <vpe:format type="BlockFormat" addParent="deny" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- </vpe:textFormating>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="f:subview" case-sensitive="yes">
- <vpe:template children="yes" modify="yes" haveVisualPreview="no"
- class="org.jboss.tools.jsf.vpe.jsf.template.JsfSubView">
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes"/>
- </vpe:dnd>
- <vpe:pseudoContent defaultText="yes"/>
- <vpe:textFormating>
- <vpe:format type="BlockFormat" addParent="deny" addChildren="allow"
- handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
- <vpe:format type="BoldFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
- <vpe:format type="ItalicFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
- <vpe:format type="UnderlineFormat" addParent="deny" addChildren="allow" handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
- </vpe:textFormating>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h:form" case-sensitive="yes">
- <vpe:template children="yes" modify="yes" haveVisualPreview="no"
- class="org.jboss.tools.jsf.vpe.jsf.template.JsfForm">
- <vpe:dnd>
- <vpe:drag start-enable="yes"/>
- <vpe:drop container="yes"/>
- </vpe:dnd>
- <vpe:textFormating>
+ <div style="{@style}" class="{@styleClass}"
+ title="{tagstring()}" />
+ <vpe:breaker type="ignore" />
+ </vpe:template>
+ </vpe:if>
+ <vpe:template children="yes" modify="yes">
+ <span style="{@style}" class="{@styleClass}"
+ title="{tagstring()}" />
+ <vpe:breaker type="ignore" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h:panelGrid" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes">
+ <vpe:panelgrid border="{iif(@border='','0','@border')}"
+ style="{@style}" class="{@styleClass}" width="{@width}"
+ frame="{@frame}" rules="{@rules}" columnClasses="{@columnClasses}"
+ footerClass="{@footerClass}" headerClass="{@headerClass}"
+ rowClasses="{@rowClasses}" cellspacing="{@cellspacing}"
+ cellpadding="{@cellpadding}" bgcolor="{@bgcolor}"
+ title="{tagstring()}" table-size="{@columns}" />
+ <vpe:resize>
+ <vpe:width width-attr="width" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <vpe:breaker type="ignore" />
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
<vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
+ <vpe:formatAttribute type="style" />
</vpe:format>
<vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
+ <vpe:formatAttribute type="style" />
</vpe:format>
<vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
+ <vpe:formatAttribute type="style" />
</vpe:format>
<vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
+ <vpe:formatAttribute type="style" />
</vpe:format>
<vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
+ <vpe:formatAttribute type="style" />
</vpe:format>
<vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
+ <vpe:formatAttribute type="style" />
</vpe:format>
</vpe:textFormating>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="f:attribute" case-sensitive="yes">
- <vpe:template children="no" modify="no"/>
- </vpe:tag>
-
- <vpe:tag name="f:param">
- <vpe:template children="no" modify="no"/>
- </vpe:tag>
-
- <vpe:tag name="f:phaseListener">
- <vpe:template children="no" modify="no"/>
- </vpe:tag>
-
- <vpe:tag name="f:phaseListener">
- <vpe:template children="no" modify="no"/>
- </vpe:tag>
-
- <vpe:tag name="f:setPropertyActionListener">
- <vpe:template children="no" modify="no"/>
- </vpe:tag>
-
- <vpe:tag name="f:valueChangeListener">
- <vpe:template children="no" modify="no"/>
- </vpe:tag>
-
- <vpe:tag name="f:convertDateTime">
- <vpe:template children="no" modify="no"/>
- </vpe:tag>
-
- <vpe:tag name="f:convertNumber">
- <vpe:template children="no" modify="no"/>
- </vpe:tag>
-
- <vpe:tag name="f:validator">
- <vpe:template children="no" modify="no"/>
- </vpe:tag>
-
- <vpe:tag name="f:validateDoubleRange">
- <vpe:template children="no" modify="no"/>
- </vpe:tag>
-
- <vpe:tag name="f:validateLength">
- <vpe:template children="no" modify="no"/>
- </vpe:tag>
-
- <vpe:tag name="f:validateLongRange">
- <vpe:template children="no" modify="no"/>
- </vpe:tag>
-
- <vpe:tag name="h:message">
- <vpe:template children="no" modify="no">
- <span class="{@styleClass}" style="{@style}">
- Error Message
- </span>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="no"/>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:tag>
-
- <vpe:tag name="h:messages">
- <vpe:template children="no" modify="no">
- <span class="{@styleClass}" style="{@style}">
- Error Messages
- </span>
- <vpe:dnd>
- <vpe:drag start-enable="yes" />
- <vpe:drop container="no"/>
- </vpe:dnd>
- <vpe:textFormating>
- <vpe:format type="UnderlineFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BoldFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ItalicFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontNameFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="FontSizeFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="BackgroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- <vpe:format type="ForegroundColorFormat">
- <vpe:formatAttribute type="style"/>
- </vpe:format>
- </vpe:textFormating>
- </vpe:template>
- </vpe:tag>
-
-<!--
- Проблема с селектированием элемента: в мозилле селектируется заголовок а не рамка
--->
- <vpe:template children="yes" modify="no">
- <vpe:any value="{name()}" title="{tagstring()}"/>
- </vpe:template>
+ <vpe:pseudoContent defaultText="yes" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h:dataTable" case-sensitive="yes">
+ <vpe:template children="yes" modify="no">
+ <vpe:datatable width="{@width}" bgcolor="{@bgcolor}"
+ border="{@border}" cellpadding="{@cellpadding}"
+ cellspacing="{@cellspacing}" columnClasses="{@columnClasses}"
+ footerClass="{@footerClass}" headerClass="{@headerClass}"
+ rowClasses="{@rowClasses}" frame="{@frame}" rules="{@rules}"
+ class="{@styleClass}" style="{@style}" title="{tagstring()}" />
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes">
+ <vpe:container-child tag-name="column" />
+ </vpe:drop>
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="BlockFormat" addChildren="deny" />
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ <vpe:pseudoContent defaultText="yes" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h:column" case-sensitive="yes">
+ <vpe:if
+ test="parentname()='h:dataTable'|parentname()='x:dataTable'|parentname()='t:dataTable'|parentname()='t:newspaperTable'|parentname()='t:tree'">
+<!-- Gavr --><!-- added x: 8.02.05 -->
+ <vpe:template children="yes" modify="yes">
+ <vpe:column title="{tagstring()}" />
+ </vpe:template>
+ </vpe:if>
+ <vpe:if
+ test="parentname()='rich:columnGroup'|parentname()='rich:dataTable'|parentname()='rich:orderingList'|parentname()='rich:listShuttle'">
+ <vpe:template children="yes" modify="yes"
+ namespaceIdentifier="org.jboss.tools.jsf.vpe.richfaces"
+ class="org.jboss.tools.jsf.vpe.richfaces.template.RichFacesColumnTemplate">
+ </vpe:template>
+ </vpe:if>
+ </vpe:tag>
+
+ <vpe:tag name="f:facet" case-sensitive="yes">
+ <vpe:if test="@name='popup'">
+ <vpe:template children="yes" modify="yes"></vpe:template>
+ </vpe:if>
+ <vpe:if
+ test="parentname()='h:dataTable'|parentname()='t:tree'">
+ <vpe:template children="yes" modify="yes">
+ <vpe:facet />
+ </vpe:template>
+ </vpe:if>
+ <vpe:template children="yes" modify="yes">
+ <div />
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <vpe:pseudoContent defaultText="yes" attrName="name" />
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="f:view" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes" haveVisualPreview="no"
+ class="org.jboss.tools.jsf.vpe.jsf.template.JsfView">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <vpe:pseudoContent defaultText="yes" />
+ <vpe:textFormating>
+ <vpe:format type="BlockFormat" addParent="deny"
+ addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addParent="deny"
+ addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="ItalicFormat" addParent="deny"
+ addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="UnderlineFormat" addParent="deny"
+ addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="f:subview" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes" haveVisualPreview="no"
+ class="org.jboss.tools.jsf.vpe.jsf.template.JsfSubView">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <vpe:pseudoContent defaultText="yes" />
+ <vpe:textFormating>
+ <vpe:format type="BlockFormat" addParent="deny"
+ addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BlockFormatHandler" />
+ <vpe:format type="BoldFormat" addParent="deny"
+ addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.BoldFormatHandler" />
+ <vpe:format type="ItalicFormat" addParent="deny"
+ addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.ItalicFormatHandler" />
+ <vpe:format type="UnderlineFormat" addParent="deny"
+ addChildren="allow"
+ handler="org.jboss.tools.vpe.editor.toolbar.format.handler.UnderlineFormatHandler" />
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h:form" case-sensitive="yes">
+ <vpe:template children="yes" modify="yes" haveVisualPreview="no"
+ class="org.jboss.tools.jsf.vpe.jsf.template.JsfForm">
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="yes" />
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="f:attribute" case-sensitive="yes">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="f:param">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="f:phaseListener">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="f:phaseListener">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="f:setPropertyActionListener">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="f:valueChangeListener">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="f:convertDateTime">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="f:convertNumber">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="f:validator">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="f:validateDoubleRange">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="f:validateLength">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="f:validateLongRange">
+ <vpe:template children="no" modify="no" />
+ </vpe:tag>
+
+ <vpe:tag name="h:message">
+ <vpe:template children="no" modify="no">
+ <span class="{@styleClass}" style="{@style}">
+ Error Message
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="no" />
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+
+ <vpe:tag name="h:messages">
+ <vpe:template children="no" modify="no">
+ <span class="{@styleClass}" style="{@style}">
+ Error Messages
+ </span>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="no" />
+ </vpe:dnd>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+
+ <!--
+ Проблема с селектированием элемента: в мозилле селектируется заголовок а не рамка
+ -->
+ <vpe:template children="yes" modify="no">
+ <vpe:any value="{name()}" title="{tagstring()}" />
+ </vpe:template>
</vpe:templates>
\ No newline at end of file
16 years, 6 months
JBoss Tools SVN: r6821 - in branches/jbosstools-2.0.x: jsf/plugins/org.jboss.tools.jsf.vpe.facelets/META-INF and 14 other directories.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2008-03-10 14:36:15 -0400 (Mon, 10 Mar 2008)
New Revision: 6821
Modified:
branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/META-INF/MANIFEST.MF
branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/META-INF/MANIFEST.MF
branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/META-INF/MANIFEST.MF
branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.seam/META-INF/MANIFEST.MF
branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.tomahawk/META-INF/MANIFEST.MF
branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.MF
branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.html.test/META-INF/MANIFEST.MF
branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/META-INF/MANIFEST.MF
branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF/MANIFEST.MF
branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF
branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF
branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/META-INF/MANIFEST.MF
branches/jbosstools-2.0.x/struts/tests/org.jboss.tools.struts.vpe.struts.test/META-INF/MANIFEST.MF
branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF
branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe.xulrunner/META-INF/MANIFEST.MF
branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/META-INF/MANIFEST.MF
Log:
Bundle version was adjusted for vpe plugins
Modified: branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/META-INF/MANIFEST.MF 2008-03-10 17:56:57 UTC (rev 6820)
+++ branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.ajax4jsf/META-INF/MANIFEST.MF 2008-03-10 18:36:15 UTC (rev 6821)
@@ -3,7 +3,7 @@
Bundle-Name: Ajax4jsf VPE Plug-in
Bundle-SymbolicName: org.jboss.tools.jsf.vpe.ajax4jsf;singleton:=true
Bundle-Activator: org.jboss.tools.jsf.vpe.ajax4jsf.Activator
-Bundle-Version: 2.1.0
+Bundle-Version: 2.0.1
Bundle-Localization: plugin
Require-Bundle: org.jboss.tools.vpe,
org.eclipse.ui,
Modified: branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/META-INF/MANIFEST.MF 2008-03-10 17:56:57 UTC (rev 6820)
+++ branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.facelets/META-INF/MANIFEST.MF 2008-03-10 18:36:15 UTC (rev 6821)
@@ -15,5 +15,5 @@
org.jboss.tools.jst.jsp,
org.mozilla.xpcom
Export-Package: org.jboss.tools.jsf.vpe.facelets
-Bundle-Version: 2.1.0
+Bundle-Version: 2.0.1
Modified: branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/META-INF/MANIFEST.MF 2008-03-10 17:56:57 UTC (rev 6820)
+++ branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/META-INF/MANIFEST.MF 2008-03-10 18:36:15 UTC (rev 6821)
@@ -3,7 +3,7 @@
Bundle-Name: Richfaces VPE Support Plug-in
Bundle-SymbolicName: org.jboss.tools.jsf.vpe.richfaces;singleton:=true
Bundle-Activator: org.jboss.tools.jsf.vpe.richfaces.RichFacesTemplatesActivator
-Bundle-Version: 2.1.0
+Bundle-Version: 2.0.1
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
Modified: branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.seam/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.seam/META-INF/MANIFEST.MF 2008-03-10 17:56:57 UTC (rev 6820)
+++ branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.seam/META-INF/MANIFEST.MF 2008-03-10 18:36:15 UTC (rev 6821)
@@ -3,7 +3,7 @@
Bundle-Name: Seam VPE support Plug-in
Bundle-SymbolicName: org.jboss.tools.jsf.vpe.seam;singleton:=true
Bundle-Activator: org.jboss.tools.jsf.vpe.seam.SeamTemplatesActivator
-Bundle-Version: 2.1.0
+Bundle-Version: 2.0.1
Bundle-Localization: plugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
Modified: branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.tomahawk/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.tomahawk/META-INF/MANIFEST.MF 2008-03-10 17:56:57 UTC (rev 6820)
+++ branches/jbosstools-2.0.x/jsf/plugins/org.jboss.tools.jsf.vpe.tomahawk/META-INF/MANIFEST.MF 2008-03-10 18:36:15 UTC (rev 6821)
@@ -13,5 +13,5 @@
org.eclipse.wst.sse.core,
org.eclipse.wst.xml.core
Export-Package: org.jboss.tools.jsf.vpe.tomahawk
-Bundle-Version: 2.1.0
+Bundle-Version: 2.0.1
Modified: branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.MF 2008-03-10 17:56:57 UTC (rev 6820)
+++ branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.facelets.test/META-INF/MANIFEST.MF 2008-03-10 18:36:15 UTC (rev 6821)
@@ -2,7 +2,7 @@
Bundle-ManifestVersion: 2
Bundle-Name: Test Plug-in
Bundle-SymbolicName: org.jboss.tools.jsf.vpe.facelets.test;singleton:=true
-Bundle-Version: 1.0.0
+Bundle-Version: 2.0.1
Bundle-Activator: org.jboss.tools.jsf.vpe.facelets.test.FaceletsTestPlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
Modified: branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.html.test/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.html.test/META-INF/MANIFEST.MF 2008-03-10 17:56:57 UTC (rev 6820)
+++ branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.html.test/META-INF/MANIFEST.MF 2008-03-10 18:36:15 UTC (rev 6821)
@@ -2,7 +2,7 @@
Bundle-ManifestVersion: 2
Bundle-Name: Test Html Plug-in
Bundle-SymbolicName: org.jboss.tools.jsf.vpe.html.test;singleton:=true
-Bundle-Version: 1.0.0
+Bundle-Version: 2.0.1
Bundle-Activator: org.jboss.tools.jsf.vpe.html.test.HtmlTestPlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
Modified: branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/META-INF/MANIFEST.MF 2008-03-10 17:56:57 UTC (rev 6820)
+++ branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.jsf.test/META-INF/MANIFEST.MF 2008-03-10 18:36:15 UTC (rev 6821)
@@ -2,7 +2,7 @@
Bundle-ManifestVersion: 2
Bundle-Name: Jsf Test Plug-in
Bundle-SymbolicName: org.jboss.tools.jsf.vpe.jsf.test;singleton:=true
-Bundle-Version: 1.0.0
+Bundle-Version: 2.0.1
Bundle-Activator: org.jboss.tools.jsf.vpe.jsf.test.JsfTestPlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
Modified: branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF/MANIFEST.MF 2008-03-10 17:56:57 UTC (rev 6820)
+++ branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.myfaces.test/META-INF/MANIFEST.MF 2008-03-10 18:36:15 UTC (rev 6821)
@@ -2,7 +2,7 @@
Bundle-ManifestVersion: 2
Bundle-Name: MyFaces Test Plug-in
Bundle-SymbolicName: org.jboss.tools.jsf.vpe.myfaces.test;singleton:=true
-Bundle-Version: 1.0.0
+Bundle-Version: 2.0.1
Bundle-Activator: org.jboss.tools.jsf.vpe.myfaces.test.MyFacesTestPlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
Modified: branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF 2008-03-10 17:56:57 UTC (rev 6820)
+++ branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.richfaces.test/META-INF/MANIFEST.MF 2008-03-10 18:36:15 UTC (rev 6821)
@@ -2,7 +2,7 @@
Bundle-ManifestVersion: 2
Bundle-Name: Richfaces Test Plug-in
Bundle-SymbolicName: org.jboss.tools.jsf.vpe.richfaces.test;singleton:=true
-Bundle-Version: 1.0.0
+Bundle-Version: 2.0.1
Bundle-Activator: org.jboss.tools.jsf.vpe.richfaces.test.RichFacesTestPlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
Modified: branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF 2008-03-10 17:56:57 UTC (rev 6820)
+++ branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF 2008-03-10 18:36:15 UTC (rev 6821)
@@ -2,7 +2,7 @@
Bundle-ManifestVersion: 2
Bundle-Name: Seam Test Plug-in
Bundle-SymbolicName: org.jboss.tools.jsf.vpe.seam.test
-Bundle-Version: 1.0.0
+Bundle-Version: 2.0.1
Bundle-Activator: org.jboss.tools.jsf.vpe.seam.test.SeamTestPlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
Modified: branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/META-INF/MANIFEST.MF 2008-03-10 17:56:57 UTC (rev 6820)
+++ branches/jbosstools-2.0.x/jsf/tests/org.jboss.tools.jsf.vpe.ui.test/META-INF/MANIFEST.MF 2008-03-10 18:36:15 UTC (rev 6821)
@@ -2,7 +2,7 @@
Bundle-ManifestVersion: 2
Bundle-Name: Visual Editor Test Plugin
Bundle-SymbolicName: org.jboss.tools.jsf.vpe.ui.test;singleton:=true
-Bundle-Version: 1.0.0
+Bundle-Version: 2.0.1
Bundle-Activator: org.jboss.tools.vpe.ui.test.VPETestPlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
Modified: branches/jbosstools-2.0.x/struts/tests/org.jboss.tools.struts.vpe.struts.test/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-2.0.x/struts/tests/org.jboss.tools.struts.vpe.struts.test/META-INF/MANIFEST.MF 2008-03-10 17:56:57 UTC (rev 6820)
+++ branches/jbosstools-2.0.x/struts/tests/org.jboss.tools.struts.vpe.struts.test/META-INF/MANIFEST.MF 2008-03-10 18:36:15 UTC (rev 6821)
@@ -2,7 +2,7 @@
Bundle-ManifestVersion: 2
Bundle-Name: Struts Test Plug-in
Bundle-SymbolicName: org.jboss.tools.struts.vpe.struts.test
-Bundle-Version: 1.0.0
+Bundle-Version: 2.0.1
Bundle-Activator: org.jboss.tools.struts.vpe.struts.test.StrutsTestPlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
Modified: branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/META-INF/MANIFEST.MF 2008-03-10 17:56:57 UTC (rev 6820)
+++ branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe/META-INF/MANIFEST.MF 2008-03-10 18:36:15 UTC (rev 6821)
@@ -62,5 +62,5 @@
org.eclipse.ui.ide,
org.jboss.tools.vpe.xulrunner,
org.mozilla.xpcom
-Bundle-Version: 2.1.0
+Bundle-Version: 2.0.1
Modified: branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF 2008-03-10 17:56:57 UTC (rev 6820)
+++ branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe.ui.palette/META-INF/MANIFEST.MF 2008-03-10 18:36:15 UTC (rev 6821)
@@ -22,5 +22,5 @@
org.jboss.tools.common.model.ui,
org.eclipse.core.resources,
org.eclipse.core.runtime
-Bundle-Version: 2.1.0
+Bundle-Version: 2.0.1
Modified: branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe.xulrunner/META-INF/MANIFEST.MF
===================================================================
--- branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe.xulrunner/META-INF/MANIFEST.MF 2008-03-10 17:56:57 UTC (rev 6820)
+++ branches/jbosstools-2.0.x/vpe/plugins/org.jboss.tools.vpe.xulrunner/META-INF/MANIFEST.MF 2008-03-10 18:36:15 UTC (rev 6821)
@@ -2,7 +2,7 @@
Bundle-ManifestVersion: 2
Bundle-Name: Browser (XULRunner) Plug-in
Bundle-SymbolicName: org.jboss.tools.vpe.xulrunner;singleton:=true
-Bundle-Version: 2.1.0
+Bundle-Version: 2.0.1
Bundle-Activator: org.jboss.tools.vpe.xulrunner.BrowserPlugin
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
16 years, 6 months
JBoss Tools SVN: r6820 - in trunk/documentation/guides/Legacy-jsf-struts/en: images/struts_validation and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-03-10 13:56:57 -0400 (Mon, 10 Mar 2008)
New Revision: 6820
Added:
trunk/documentation/guides/Legacy-jsf-struts/en/images/struts_validation/struts_validation_3.png
Removed:
trunk/documentation/guides/Legacy-jsf-struts/en/images/ActionHandler.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/AntBuild.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/Buttons.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/ChangingStatusField.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/ConfigEditor2.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/ConnectionsView.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/ConsolePanel.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/ConsoleView.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/CreatedProject.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/CreatedProject12.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/CreatingNewFileResource.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/DataFields.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/DeletingSelectedMarkup.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/DiagramView.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/EclipseConProjectStructure.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/EditPage.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/FaceletDesigner.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/FillingItems.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/GeneratedEditPage.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/GraphicalProcessDesigner.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/HQLDesignerView.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/HibernateConfigurationsView.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/HibernateDynamicSQLPreview.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/HibernateEntities.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/HibernateQueryResultWindow.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/ImportDirectory.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/InputNumberSliderSettings.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/InvokingProcessOrder.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/Metadata.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/NewRulesFile.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/NoButtons.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/NodeEntering.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/OfficeEditPage.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/OrderDetails.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/OrderEditPage.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/OrderedList.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/OutlineView.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/OutputPage.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/ProjectImporting.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/ProjectStructure.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/PropertyView.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/ReplacingTags.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/SeamGenSetup.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/SearchPage.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/SearchPanel.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/StoppingServer.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/ValidationInEditPage.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/install.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/install2.png
trunk/documentation/guides/Legacy-jsf-struts/en/images/struts_validation/struts_validation.png
Modified:
trunk/documentation/guides/Legacy-jsf-struts/en/modules/struts_validation.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-262 unusable images deleted
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/ActionHandler.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/AntBuild.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/Buttons.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/ChangingStatusField.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/ConfigEditor2.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/ConnectionsView.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/ConsolePanel.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/ConsoleView.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/CreatedProject.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/CreatedProject12.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/CreatingNewFileResource.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/DataFields.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/DeletingSelectedMarkup.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/DiagramView.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/EclipseConProjectStructure.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/EditPage.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/FaceletDesigner.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/FillingItems.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/GeneratedEditPage.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/GraphicalProcessDesigner.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/HQLDesignerView.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/HibernateConfigurationsView.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/HibernateDynamicSQLPreview.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/HibernateEntities.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/HibernateQueryResultWindow.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/ImportDirectory.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/InputNumberSliderSettings.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/InvokingProcessOrder.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/Metadata.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/NewRulesFile.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/NoButtons.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/NodeEntering.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/OfficeEditPage.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/OrderDetails.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/OrderEditPage.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/OrderedList.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/OutlineView.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/OutputPage.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/ProjectImporting.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/ProjectStructure.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/PropertyView.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/ReplacingTags.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/SeamGenSetup.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/SearchPage.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/SearchPanel.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/StoppingServer.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/ValidationInEditPage.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/install.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/install2.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/Legacy-jsf-struts/en/images/struts_validation/struts_validation.png
===================================================================
(Binary files differ)
Added: trunk/documentation/guides/Legacy-jsf-struts/en/images/struts_validation/struts_validation_3.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/Legacy-jsf-struts/en/images/struts_validation/struts_validation_3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/documentation/guides/Legacy-jsf-struts/en/modules/struts_validation.xml
===================================================================
--- trunk/documentation/guides/Legacy-jsf-struts/en/modules/struts_validation.xml 2008-03-10 17:48:36 UTC (rev 6819)
+++ trunk/documentation/guides/Legacy-jsf-struts/en/modules/struts_validation.xml 2008-03-10 17:56:57 UTC (rev 6820)
@@ -51,7 +51,7 @@
<title>Create Formset</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/struts_validation/struts_validation.png"/>
+ <imagedata fileref="images/struts_validation/struts_validation_3.png"/>
</imageobject>
</mediaobject>
</figure>
16 years, 6 months
JBoss Tools SVN: r6819 - in trunk/documentation/guides/GettingStartedGuide/en: images/jsp_application and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: ykryvinchanka
Date: 2008-03-10 13:48:36 -0400 (Mon, 10 Mar 2008)
New Revision: 6819
Added:
trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/first_seam_19.png
Removed:
trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/SeamNewProj05.png
trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/SeamNewProj06.png
trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/SeamNewProj07.png
trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/SeamNewProj08.png
trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/first_seam_2_a.png
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject10.png
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject11.png
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject12.png
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject13.png
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject14.png
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject15.png
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject16.png
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject17.png
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject18.png
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject21.png
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject22.png
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject6.png
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject7.png
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject8.png
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject9.png
trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newprojectjsp20.png
trunk/documentation/guides/GettingStartedGuide/en/images/manage/JBSVModules.png
trunk/documentation/guides/GettingStartedGuide/en/images/manage/StoppingServer.png
Modified:
trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-262 unusable images deleted
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/SeamNewProj05.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/SeamNewProj06.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/SeamNewProj07.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/SeamNewProj08.png
===================================================================
(Binary files differ)
Added: trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/first_seam_19.png
===================================================================
(Binary files differ)
Property changes on: trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/first_seam_19.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/first_seam/first_seam_2_a.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject10.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject11.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject12.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject13.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject14.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject15.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject16.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject17.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject18.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject21.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject22.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject6.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject7.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject8.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newproject9.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/jsp_application/newprojectjsp20.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/manage/JBSVModules.png
===================================================================
(Binary files differ)
Deleted: trunk/documentation/guides/GettingStartedGuide/en/images/manage/StoppingServer.png
===================================================================
(Binary files differ)
Modified: trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml
===================================================================
--- trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml 2008-03-10 16:58:08 UTC (rev 6818)
+++ trunk/documentation/guides/GettingStartedGuide/en/modules/first_seam.xml 2008-03-10 17:48:36 UTC (rev 6819)
@@ -71,7 +71,7 @@
<title>Available Server Runtimes</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/first_seam/first_seam_2_a.png"/>
+ <imagedata fileref="images/first_seam/first_seam_19.png"/>
</imageobject>
</mediaobject>
</figure>
16 years, 6 months
JBoss Tools SVN: r6818 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2008-03-10 12:58:08 -0400 (Mon, 10 Mar 2008)
New Revision: 6818
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ComboBoxFieldEditor.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1694, workaround for linux was applied
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ComboBoxFieldEditor.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ComboBoxFieldEditor.java 2008-03-10 16:46:29 UTC (rev 6817)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/attribute/editor/ComboBoxFieldEditor.java 2008-03-10 16:58:08 UTC (rev 6818)
@@ -21,6 +21,7 @@
import org.jboss.tools.common.model.ui.IValueProvider;
import org.jboss.tools.common.model.ui.attribute.IListContentProvider;
import org.jboss.tools.common.model.ui.attribute.adapter.DefaultValueAdapter;
+import org.eclipse.core.runtime.Platform;
import org.eclipse.jface.util.IPropertyChangeListener;
import org.eclipse.jface.viewers.ILabelProvider;
import org.eclipse.swt.SWT;
@@ -244,6 +245,13 @@
}
protected void valueChanged() {
+ //added by Max Areshkau
+ //hack which was applied for fix JBIDE-1694
+ if(comboField!=null&&Platform.OS_LINUX.equals(Platform.getOS())) {
+
+ comboField.forceFocus();
+ }
+ comboField.forceFocus();
setPresentsDefaultValue(false);
boolean oldState = isValid;
refreshValidState();
16 years, 6 months