JBoss Tools SVN: r14250 - in branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui: wizards and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: rob.stryker(a)jboss.com
Date: 2009-03-18 01:45:00 -0400 (Wed, 18 Mar 2009)
New Revision: 14250
Modified:
branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java
branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties
branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java
Log:
Applying commit 14204 to JBIDE-4034 in 3.0.1 branch
Modified: branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java
===================================================================
--- branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java 2009-03-17 20:51:34 UTC (rev 14249)
+++ branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.java 2009-03-18 05:45:00 UTC (rev 14250)
@@ -40,9 +40,11 @@
public static String rwf_Explanation;
public static String rwf_BaseName;
public static String rwf_NameInUse;
- public static String rwf_invalidDirectory;
+ public static String rwf_homeMissingFiles;
+ public static String rwf_homeIncorrectVersion;
public static String rwf_nameTextBlank;
public static String rwf_homeDirBlank;
+ public static String rwf_NoVMSelected;
public static String swf_Title;
public static String swf_RuntimeInformation;
public static String swf_AuthorizationDescription;
Modified: branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties
===================================================================
--- branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties 2009-03-17 20:51:34 UTC (rev 14249)
+++ branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/Messages.properties 2009-03-18 05:45:00 UTC (rev 14250)
@@ -10,9 +10,11 @@
rwf_Explanation=A JBoss Server runtime references a JBoss installation directory.\nIt can be used to set up classpaths for projects which depend on this runtime,\nas well as by a "server" which will be able to start and stop instances of JBoss.
rwf_BaseName=JBoss _VERSION_ Runtime
rwf_NameInUse=Runtime name already in use
-rwf_invalidDirectory=The home directory does not exist, is missing key files, or is of the incorrect version.
+rwf_homeMissingFiles=The home directory does not exist or is missing the run.jar.
+rwf_homeIncorrectVersion=The server's home directory is of the incorrect version.
rwf_nameTextBlank=The name field must not be blank
rwf_homeDirBlank=The directory field must not be blank
+rwf_NoVMSelected=No VM selected
JBAS_version=JBoss Application Server {0}
JBEAP_version=JBoss Enterprise Application Platform {0}
swf_Title=Create a new JBoss Server
Modified: branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java
===================================================================
--- branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java 2009-03-17 20:51:34 UTC (rev 14249)
+++ branches/jbosstools-3.0.x/as/plugins/org.jboss.ide.eclipse.as.ui/jbossui/org/jboss/ide/eclipse/as/ui/wizards/JBossRuntimeWizardFragment.java 2009-03-18 05:45:00 UTC (rev 14250)
@@ -445,9 +445,13 @@
private void updateErrorMessage() {
String error = getErrorString();
- if (error == null)
- handle.setMessage(null, IMessageProvider.NONE);
- else
+ if (error == null) {
+ String warn = getWarningString();
+ if( warn != null )
+ handle.setMessage(warn, IMessageProvider.WARNING);
+ else
+ handle.setMessage(null, IMessageProvider.NONE);
+ } else
handle.setMessage(error, IMessageProvider.ERROR);
}
@@ -462,7 +466,7 @@
}
if (!isHomeValid())
- return Messages.rwf_invalidDirectory;
+ return Messages.rwf_homeMissingFiles;
if (name == null || name.equals(""))
return Messages.rwf_nameTextBlank;
@@ -471,19 +475,31 @@
return Messages.rwf_homeDirBlank;
if (jreComboIndex < 0)
- return "No VM selected";
+ return Messages.rwf_NoVMSelected;
return null;
}
+
+ private String getWarningString() {
+ if( !isHomeVersionValid())
+ return Messages.rwf_homeIncorrectVersion;
+ return null;
+ }
protected boolean isHomeValid() {
if( homeDir == null || !(new File(homeDir).exists())) return false;
+ IRuntime rt = (IRuntime) getTaskModel().getObject(
+ TaskModel.TASK_RUNTIME);
+ String v = rt.getRuntimeType().getVersion();
+ return new Path(homeDir).append("bin").append("run.jar").toFile().exists();
+ }
+
+ protected boolean isHomeVersionValid() {
String version = new ServerBeanLoader().getFullServerVersion(new File(homeDir, JBossServerType.AS.getSystemJarPath()));
IRuntime rt = (IRuntime) getTaskModel().getObject(
TaskModel.TASK_RUNTIME);
String v = rt.getRuntimeType().getVersion();
- return new Path(homeDir).append("bin").append("run.jar").toFile().exists()
- && version.startsWith(v);
+ return version.startsWith(v);
}
private void browseHomeDirClicked() {
15 years, 3 months
JBoss Tools SVN: r14249 - trunk/vpe/plugins/org.jboss.tools.vpe/ve.
by jbosstools-commits@lists.jboss.org
Author: yradtsevich
Date: 2009-03-17 16:51:34 -0400 (Tue, 17 Mar 2009)
New Revision: 14249
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css
Log:
RESOLVED PARTIALLY - issue JBIDE-3995 (#1): VPE - combobox looks <select> tag
https://jira.jboss.org/jira/browse/JBIDE-3995
- part #1 of the issue has been resolved: by default combobox looks 2 times taller then original expected
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css 2009-03-17 19:37:47 UTC (rev 14248)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/ve/EditorOverride.css 2009-03-17 20:51:34 UTC (rev 14249)
@@ -334,6 +334,14 @@
background-image: url("resource:/res/table-remove-row-active.gif");
}
+/*JBIDE-3995 #1*/
+select div {
+ display: inline;
+}
+select table {
+ display: none;
+}
+
span.vpe-text {
background :inherit !important;
background-image:none !important;
15 years, 3 months
JBoss Tools SVN: r14248 - trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-03-17 15:37:47 -0400 (Tue, 17 Mar 2009)
New Revision: 14248
Added:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JPAMapMockTests.java
Log:
mock test for ui Hibernate/JPA generate functionality
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JPAMapMockTests.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JPAMapMockTests.java (rev 0)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JPAMapMockTests.java 2009-03-17 19:37:47 UTC (rev 14248)
@@ -0,0 +1,145 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2009 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.hibernate.eclipse.jdt.ui.test;
+
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Set;
+
+import org.eclipse.jdt.core.ICompilationUnit;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jface.preference.IPreferenceStore;
+import org.eclipse.jface.viewers.ISelection;
+import org.hibernate.eclipse.jdt.ui.internal.jpa.actions.JPAMapToolActor;
+import org.hibernate.eclipse.jdt.ui.internal.jpa.collect.AllEntitiesInfoCollector;
+import org.hibernate.eclipse.jdt.ui.internal.jpa.common.EntityInfo;
+import org.hibernate.eclipse.jdt.ui.internal.jpa.process.AllEntitiesProcessor;
+import org.hibernate.eclipse.jdt.ui.internal.jpa.process.AnnotStyle;
+import org.jmock.Expectations;
+import org.jmock.Mockery;
+import org.jmock.Sequence;
+import org.jmock.lib.legacy.ClassImposteriser;
+
+import junit.framework.TestCase;
+
+/**
+ *
+ *
+ * @author Vitali Yemialyanchyk
+ */
+public class JPAMapMockTests extends TestCase {
+
+
+ public Mockery context = new Mockery() {{
+ setImposteriser(ClassImposteriser.INSTANCE);
+ }};
+
+ public void testMockSave() {
+ final IPreferenceStore preferenceStore = context.mock(IPreferenceStore.class);
+
+ final AllEntitiesProcessor allEntitiesProcessor = new AllEntitiesProcessor();
+ allEntitiesProcessor.setAnnotationStyle(AnnotStyle.AUTO);
+ allEntitiesProcessor.setPreferenceStore(preferenceStore);
+
+ context.checking(new Expectations() {{
+ oneOf(preferenceStore).setValue(AllEntitiesProcessor.storePropertyName, 2);
+ }});
+ allEntitiesProcessor.saveAnnotationStylePreference();
+ context.assertIsSatisfied();
+
+ allEntitiesProcessor.setAnnotationStyle(null);
+ context.checking(new Expectations() {{
+ oneOf(preferenceStore).setValue(AllEntitiesProcessor.storePropertyName, 0);
+ }});
+ allEntitiesProcessor.saveAnnotationStylePreference();
+ context.assertIsSatisfied();
+ }
+
+ public void testJPAMapToolActor() {
+
+ final JPAMapToolActor jpaMapToolActor = JPAMapToolActor.getInstance();
+
+ final AllEntitiesProcessor allEntitiesProcessor = context.mock(AllEntitiesProcessor.class);
+ final AllEntitiesInfoCollector allEntitiesInfoCollector = context.mock(AllEntitiesInfoCollector.class);
+ final ISelection selection = context.mock(ISelection.class);
+ final ICompilationUnit compilationUnit = context.mock(ICompilationUnit.class);
+ final IJavaProject javaProject = context.mock(IJavaProject.class);
+
+ jpaMapToolActor.setAllEntitiesProcessor(allEntitiesProcessor);
+ jpaMapToolActor.setAllEntitiesInfoCollector(allEntitiesInfoCollector);
+ jpaMapToolActor.setSelection(selection);
+
+ context.checking(new Expectations() {{
+ exactly(1).of(allEntitiesProcessor).modify(null, new HashMap<String, EntityInfo>(), true);
+ }});
+ jpaMapToolActor.updateSelected();
+ context.assertIsSatisfied();
+
+ jpaMapToolActor.setSelection(null);
+ Set<ICompilationUnit> selectionCU = new HashSet<ICompilationUnit>();
+ selectionCU.add(compilationUnit);
+ jpaMapToolActor.setSelectionCU(selectionCU);
+
+ final Sequence sequence = context.sequence("updateSelected"); //$NON-NLS-1$
+ context.checking(new Expectations() {{
+ allowing(compilationUnit).getJavaProject();
+ inSequence(sequence);
+ will(returnValue(javaProject));
+
+ allowing(allEntitiesInfoCollector).initCollector(javaProject);
+ inSequence(sequence);
+
+ allowing(allEntitiesInfoCollector).collect(compilationUnit);
+ inSequence(sequence);
+
+ allowing(allEntitiesInfoCollector).resolveRelations();
+ inSequence(sequence);
+
+ allowing(allEntitiesInfoCollector).getNonAbstractCUNumber();
+ inSequence(sequence);
+ will(returnValue(2));
+
+ allowing(allEntitiesInfoCollector).getAnnotationStylePreference();
+ inSequence(sequence);
+ will(returnValue(AnnotStyle.GETTERS));
+
+ allowing(allEntitiesProcessor).setAnnotationStylePreference(AnnotStyle.GETTERS);
+ inSequence(sequence);
+
+ allowing(allEntitiesInfoCollector).getMapCUs_Info();
+ inSequence(sequence);
+ will(returnValue(null));
+
+ allowing(allEntitiesProcessor).modify(javaProject, null, true);
+ inSequence(sequence);
+
+ allowing(allEntitiesProcessor).saveAnnotationStylePreference();
+ inSequence(sequence);
+ }});
+ jpaMapToolActor.updateSelected();
+ context.assertIsSatisfied();
+
+ /** /
+ jpaMapToolActor.clearSelectionCU();
+ jpaMapToolActor.addCompilationUnit(compilationUnit);
+ jpaMapToolActor.addCompilationUnit(compilationUnit);
+ context.checking(new Expectations() {{
+ jpaMapToolActor.expects(once()).method("updateSelectedItems").with(eq(selection));
+ one(authorizedPurchaserManager).retrievePurchasers(user.getId());
+ will(returnValue(Collections.emptyList()));
+
+ allowing(securityContext).getAuthentication();
+ will(returnValue(authentication));
+ }});
+ jpaMapToolActor.updateOpen();
+ /**/
+ }
+}
15 years, 3 months
JBoss Tools SVN: r14247 - in trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa: collect and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-03-17 15:35:56 -0400 (Tue, 17 Mar 2009)
New Revision: 14247
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/actions/JPAMapToolActor.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/AllEntitiesInfoCollector.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/common/JPAConst.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/process/AllEntitiesProcessor.java
Log:
code review, change store preferences to simple string name instead of class name
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/actions/JPAMapToolActor.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/actions/JPAMapToolActor.java 2009-03-17 19:33:42 UTC (rev 14246)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/actions/JPAMapToolActor.java 2009-03-17 19:35:56 UTC (rev 14247)
@@ -87,6 +87,10 @@
protected AllEntitiesProcessor processor = new AllEntitiesProcessor();
protected JPAMapToolActor() {
+ initAnnotationStylePreference();
+ }
+
+ public void initAnnotationStylePreference() {
processor.initAnnotationStylePreference();
}
@@ -384,4 +388,17 @@
this.selection = selection;
}
+ // setters for testing
+
+ public void setAllEntitiesInfoCollector(AllEntitiesInfoCollector collector) {
+ this.collector = collector;
+ }
+
+ public void setAllEntitiesProcessor(AllEntitiesProcessor processor) {
+ this.processor = processor;
+ }
+
+ public void setSelectionCU(Set<ICompilationUnit> selectionCU) {
+ this.selectionCU = selectionCU;
+ }
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/AllEntitiesInfoCollector.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/AllEntitiesInfoCollector.java 2009-03-17 19:33:42 UTC (rev 14246)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/collect/AllEntitiesInfoCollector.java 2009-03-17 19:35:56 UTC (rev 14247)
@@ -665,12 +665,13 @@
CollectEntityInfo finder = new CollectEntityInfo();
cu.accept(finder);
EntityInfo result = finder.getEntityInfo();
- result.adjustParameters();
+ Iterator<String> it = null;
if (result != null) {
+ result.adjustParameters();
mapCUs_Info.put(fullyQualifiedName, result);
+ it = result.getDependences();
}
- Iterator<String> it = result.getDependences();
- while (it.hasNext()) {
+ if (it != null) while (it.hasNext()) {
String fullyQualifiedNameTmp = it.next();
collect(fullyQualifiedNameTmp);
}
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/common/JPAConst.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/common/JPAConst.java 2009-03-17 19:33:42 UTC (rev 14246)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/common/JPAConst.java 2009-03-17 19:35:56 UTC (rev 14247)
@@ -10,27 +10,27 @@
*/
public class JPAConst {
- static public String IMPORT_SERIALIZABLE = "java.io.Serializable"; //$NON-NLS-1$
- static public String IMPORT_ENTITY = "javax.persistence.Entity"; //$NON-NLS-1$
- static public String IMPORT_GENERATED_VALUE = "javax.persistence.GeneratedValue"; //$NON-NLS-1$
- static public String IMPORT_ID = "javax.persistence.Id"; //$NON-NLS-1$
- static public String IMPORT_JOINCOLUMN = "javax.persistence.JoinColumn"; //$NON-NLS-1$
- static public String IMPORT_ONE2ONE = "javax.persistence.OneToOne"; //$NON-NLS-1$
- static public String IMPORT_ONE2MANY = "javax.persistence.OneToMany"; //$NON-NLS-1$
- static public String IMPORT_MANY2ONE = "javax.persistence.ManyToOne"; //$NON-NLS-1$
- static public String IMPORT_MANY2MANY = "javax.persistence.ManyToMany"; //$NON-NLS-1$
+ public static final String IMPORT_SERIALIZABLE = "java.io.Serializable"; //$NON-NLS-1$
+ public static final String IMPORT_ENTITY = "javax.persistence.Entity"; //$NON-NLS-1$
+ public static final String IMPORT_GENERATED_VALUE = "javax.persistence.GeneratedValue"; //$NON-NLS-1$
+ public static final String IMPORT_ID = "javax.persistence.Id"; //$NON-NLS-1$
+ public static final String IMPORT_JOINCOLUMN = "javax.persistence.JoinColumn"; //$NON-NLS-1$
+ public static final String IMPORT_ONE2ONE = "javax.persistence.OneToOne"; //$NON-NLS-1$
+ public static final String IMPORT_ONE2MANY = "javax.persistence.OneToMany"; //$NON-NLS-1$
+ public static final String IMPORT_MANY2ONE = "javax.persistence.ManyToOne"; //$NON-NLS-1$
+ public static final String IMPORT_MANY2MANY = "javax.persistence.ManyToMany"; //$NON-NLS-1$
- static public String ANNOTATION_SERIALIZABLE = "Serializable"; //$NON-NLS-1$
- static public String ANNOTATION_ENTITY = "Entity"; //$NON-NLS-1$
- static public String ANNOTATION_GENERATED_VALUE = "GeneratedValue"; //$NON-NLS-1$
- static public String ANNOTATION_ID = "Id"; //$NON-NLS-1$
- static public String ANNOTATION_JOINCOLUMN = "JoinColumn"; //$NON-NLS-1$
- static public String ANNOTATION_ONE2ONE = "OneToOne"; //$NON-NLS-1$
- static public String ANNOTATION_ONE2MANY = "OneToMany"; //$NON-NLS-1$
- static public String ANNOTATION_MANY2ONE = "ManyToOne"; //$NON-NLS-1$
- static public String ANNOTATION_MANY2MANY = "ManyToMany"; //$NON-NLS-1$
+ public static final String ANNOTATION_SERIALIZABLE = "Serializable"; //$NON-NLS-1$
+ public static final String ANNOTATION_ENTITY = "Entity"; //$NON-NLS-1$
+ public static final String ANNOTATION_GENERATED_VALUE = "GeneratedValue"; //$NON-NLS-1$
+ public static final String ANNOTATION_ID = "Id"; //$NON-NLS-1$
+ public static final String ANNOTATION_JOINCOLUMN = "JoinColumn"; //$NON-NLS-1$
+ public static final String ANNOTATION_ONE2ONE = "OneToOne"; //$NON-NLS-1$
+ public static final String ANNOTATION_ONE2MANY = "OneToMany"; //$NON-NLS-1$
+ public static final String ANNOTATION_MANY2ONE = "ManyToOne"; //$NON-NLS-1$
+ public static final String ANNOTATION_MANY2MANY = "ManyToMany"; //$NON-NLS-1$
- static public Vector<String> ALL_IMPORTS = new Vector<String>();
+ public static final Vector<String> ALL_IMPORTS = new Vector<String>();
static {
//ALL_IMPORTS.add(IMPORT_SERIALIZABLE);
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/process/AllEntitiesProcessor.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/process/AllEntitiesProcessor.java 2009-03-17 19:33:42 UTC (rev 14246)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.jdt.ui/src/org/hibernate/eclipse/jdt/ui/internal/jpa/process/AllEntitiesProcessor.java 2009-03-17 19:35:56 UTC (rev 14247)
@@ -42,12 +42,15 @@
* @author Vitali
*/
public class AllEntitiesProcessor implements IHibernateJPAWizardParams {
-
/**
* place to search compilation units
*/
- protected IJavaProject javaProject;
+ protected IJavaProject javaProject = null;
/**
+ * place to store default settings
+ */
+ protected IPreferenceStore preferenceStore = null;
+ /**
* annotation style
*/
protected AnnotStyle annotationStyle = AnnotStyle.FIELDS;
@@ -55,6 +58,11 @@
* annotation style preference of majority
*/
protected AnnotStyle annotationStylePreference = AnnotStyle.FIELDS;
+ /**
+ * annotation style preference of majority
+ */
+ public final static String storePropertyName =
+ "hibernate.jpa.generation.AnnotationStyle.preference"; //$NON-NLS-1$
/**
* change info storage
@@ -64,9 +72,20 @@
public AllEntitiesProcessor() {
}
+ public IPreferenceStore getPreferenceStore() {
+ if (preferenceStore == null) {
+ preferenceStore = Activator.getDefault().getPreferenceStore();
+ }
+ return preferenceStore;
+ }
+
+ public void setPreferenceStore(IPreferenceStore preferenceStore) {
+ this.preferenceStore = preferenceStore;
+ }
+
public void initAnnotationStylePreference() {
- IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore();
- int value = preferenceStore.getInt(AllEntitiesProcessor.class.toString());
+ IPreferenceStore preferenceStore = getPreferenceStore();
+ int value = preferenceStore.getInt(storePropertyName);
if (value >= AnnotStyle.values().length) {
value = 0;
}
@@ -74,7 +93,7 @@
}
public void saveAnnotationStylePreference() {
- IPreferenceStore preferenceStore = Activator.getDefault().getPreferenceStore();
+ IPreferenceStore preferenceStore = getPreferenceStore();
int value = 0;
while (value < AnnotStyle.values().length) {
if (AnnotStyle.values()[value] == annotationStyle) {
@@ -85,7 +104,7 @@
if (value >= AnnotStyle.values().length) {
value = 0;
}
- preferenceStore.setValue(AllEntitiesProcessor.class.toString(), value);
+ preferenceStore.setValue(storePropertyName, value);
}
/**
15 years, 3 months
JBoss Tools SVN: r14246 - trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-03-17 15:33:42 -0400 (Tue, 17 Mar 2009)
New Revision: 14246
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JDTuiAllTests.java
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JPAMapTest.java
Log:
code review
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JDTuiAllTests.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JDTuiAllTests.java 2009-03-17 19:23:23 UTC (rev 14245)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JDTuiAllTests.java 2009-03-17 19:33:42 UTC (rev 14246)
@@ -7,7 +7,7 @@
public static Test suite() {
TestSuite suite = new TestSuite(
- "Test for org.hibernate.eclipse.jdt.ui.test");
+ "Test for org.hibernate.eclipse.jdt.ui.test"); //$NON-NLS-1$
//$JUnit-BEGIN$
//suite.addTestSuite(HibernateErrorsTest.class);
//suite.addTestSuite(HibernateErrorsTest2.class);
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JPAMapTest.java
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JPAMapTest.java 2009-03-17 19:23:23 UTC (rev 14245)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/JPAMapTest.java 2009-03-17 19:33:42 UTC (rev 14246)
@@ -44,20 +44,16 @@
/**
*
*
- * @author Vitali
+ * @author Vitali Yemialyanchyk
*/
public class JPAMapTest extends TestCase {
- public static String PROJECT_NAME = "TestProject"; //$NON-NLS-1$
- public static String RESOURCE_PATH = "res/project/"; //$NON-NLS-1$
- public static String SPECIMEN_PATH = "res/specimen/"; //$NON-NLS-1$
- public static String TESTRESOURCE_PATH = "testresources"; //$NON-NLS-1$
- public static String TEST_FIELDS = "fields"; //$NON-NLS-1$
- public static String TEST_GETTERS = "getters"; //$NON-NLS-1$
- static {
- RESOURCE_PATH.replaceAll("//", File.separator); //$NON-NLS-1$
- SPECIMEN_PATH.replaceAll("//", File.separator); //$NON-NLS-1$
- }
+ public static final String PROJECT_NAME = "TestProject"; //$NON-NLS-1$
+ public static final String RESOURCE_PATH = "res/project/".replaceAll("//", File.separator); //$NON-NLS-1$ //$NON-NLS-2$
+ public static final String SPECIMEN_PATH = "res/specimen/".replaceAll("//", File.separator); //$NON-NLS-1$ //$NON-NLS-2$
+ public static final String TESTRESOURCE_PATH = "testresources"; //$NON-NLS-1$
+ public static final String TEST_FIELDS = "fields"; //$NON-NLS-1$
+ public static final String TEST_GETTERS = "getters"; //$NON-NLS-1$
protected AllEntitiesInfoCollector collector = new AllEntitiesInfoCollector();
protected AllEntitiesProcessor processor = new AllEntitiesProcessor();
@@ -126,7 +122,7 @@
//ICompilationUnit icu2 = Utils.findCompilationUnit(javaProject,
// "test.annotated." + testSelection + ".Person"); //$NON-NLS-1$ //$NON-NLS-2$
ICompilationUnit icu4 = null;
- if (testSelection == TEST_GETTERS) {
+ if (testSelection.equals(TEST_GETTERS)) {
icu4 = Utils.findCompilationUnit(javaProject,
"test.annotated." + testSelection + ".FotoXPerson"); //$NON-NLS-1$ //$NON-NLS-2$
}
15 years, 3 months
JBoss Tools SVN: r14245 - in trunk/hibernatetools/tests/org.hibernate.eclipse.console.test: META-INF and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-03-17 15:23:23 -0400 (Tue, 17 Mar 2009)
New Revision: 14245
Added:
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/bsh-core-2.0b4.jar
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/cglib-2.1_3-src.jar
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/cglib-nodep-2.1_3.jar
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/hamcrest-core-1.1.jar
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/hamcrest-library-1.1.jar
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/jmock-2.5.1.jar
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/jmock-junit3-2.5.1.jar
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/jmock-junit4-2.5.1.jar
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/jmock-legacy-2.5.1.jar
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/jmock-script-2.5.1.jar
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/objenesis-1.0.jar
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/.classpath
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF
trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/build.properties
Log:
add jmock libraries
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/.classpath
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/.classpath 2009-03-17 17:58:51 UTC (rev 14244)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/.classpath 2009-03-17 19:23:23 UTC (rev 14245)
@@ -4,6 +4,17 @@
<classpathentry exported="true" kind="lib" path="lib/hibernate-tools-tests.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hsqldb.jar"/>
<classpathentry exported="true" kind="lib" path="lib/jaxen-1.1-beta-7.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jmock-2.5.1/bsh-core-2.0b4.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jmock-2.5.1/cglib-2.1_3-src.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jmock-2.5.1/cglib-nodep-2.1_3.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jmock-2.5.1/hamcrest-core-1.1.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jmock-2.5.1/hamcrest-library-1.1.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jmock-2.5.1/jmock-2.5.1.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jmock-2.5.1/jmock-junit3-2.5.1.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jmock-2.5.1/jmock-junit4-2.5.1.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jmock-2.5.1/jmock-legacy-2.5.1.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jmock-2.5.1/jmock-script-2.5.1.jar"/>
+ <classpathentry exported="true" kind="lib" path="lib/jmock-2.5.1/objenesis-1.0.jar"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="output" path="build/eclipse"/>
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF 2009-03-17 17:58:51 UTC (rev 14244)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/META-INF/MANIFEST.MF 2009-03-17 19:23:23 UTC (rev 14245)
@@ -6,13 +6,37 @@
Bundle-ClassPath: org.hibernate.eclipse.console.test.test/,
lib/hibernate-tools-tests.jar,
lib/hsqldb.jar,
- lib/jaxen-1.1-beta-7.jar
+ lib/jaxen-1.1-beta-7.jar,
+ lib/jmock-2.5.1/bsh-core-2.0b4.jar,
+ lib/jmock-2.5.1/cglib-2.1_3-src.jar,
+ lib/jmock-2.5.1/cglib-nodep-2.1_3.jar,
+ lib/jmock-2.5.1/hamcrest-core-1.1.jar,
+ lib/jmock-2.5.1/hamcrest-library-1.1.jar,
+ lib/jmock-2.5.1/jmock-2.5.1.jar,
+ lib/jmock-2.5.1/jmock-junit3-2.5.1.jar,
+ lib/jmock-2.5.1/jmock-junit4-2.5.1.jar,
+ lib/jmock-2.5.1/jmock-legacy-2.5.1.jar,
+ lib/jmock-2.5.1/jmock-script-2.5.1.jar,
+ lib/jmock-2.5.1/objenesis-1.0.jar
Bundle-Vendor: %Bundle-Vendor.0
Bundle-Localization: plugin
Export-Package: org.hibernate.eclipse.console.test,
org.hibernate.eclipse.console.test.mappingproject,
org.hibernate.eclipse.console.test.xpl,
- org.hibernate.eclipse.hqleditor.preferences
+ org.hibernate.eclipse.hqleditor.preferences,
+ org.jmock,
+ org.jmock.api,
+ org.jmock.integration.junit3,
+ org.jmock.integration.junit4,
+ org.jmock.internal,
+ org.jmock.internal.matcher,
+ org.jmock.lib,
+ org.jmock.lib.action,
+ org.jmock.lib.concurrent,
+ org.jmock.lib.concurrent.internal,
+ org.jmock.lib.legacy,
+ org.jmock.lib.script,
+ org.jmock.syntax
Require-Bundle: org.junit,
org.eclipse.jdt.core,
org.eclipse.core.resources,
Modified: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/build.properties
===================================================================
--- trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/build.properties 2009-03-17 17:58:51 UTC (rev 14244)
+++ trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/build.properties 2009-03-17 19:23:23 UTC (rev 14245)
@@ -6,6 +6,17 @@
lib/hibernate-tools-tests.jar,\
lib/hsqldb.jar,\
lib/jaxen-1.1-beta-7.jar,\
+ lib/jmock-2.5.1/bsh-core-2.0b4.jar,\
+ lib/jmock-2.5.1/cglib-2.1_3-src.jar,\
+ lib/jmock-2.5.1/cglib-nodep-2.1_3.jar,\
+ lib/jmock-2.5.1/hamcrest-core-1.1.jar,\
+ lib/jmock-2.5.1/hamcrest-library-1.1.jar,\
+ lib/jmock-2.5.1/jmock-2.5.1.jar,\
+ lib/jmock-2.5.1/jmock-junit3-2.5.1.jar,\
+ lib/jmock-2.5.1/jmock-junit4-2.5.1.jar,\
+ lib/jmock-2.5.1/jmock-legacy-2.5.1.jar,\
+ lib/jmock-2.5.1/jmock-script-2.5.1.jar,\
+ lib/jmock-2.5.1/objenesis-1.0.jar,\
res/,\
about.html,\
plugin.properties
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/bsh-core-2.0b4.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/bsh-core-2.0b4.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/cglib-2.1_3-src.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/cglib-2.1_3-src.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/cglib-nodep-2.1_3.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/cglib-nodep-2.1_3.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/hamcrest-core-1.1.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/hamcrest-core-1.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/hamcrest-library-1.1.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/hamcrest-library-1.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/jmock-2.5.1.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/jmock-2.5.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/jmock-junit3-2.5.1.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/jmock-junit3-2.5.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/jmock-junit4-2.5.1.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/jmock-junit4-2.5.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/jmock-legacy-2.5.1.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/jmock-legacy-2.5.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/jmock-script-2.5.1.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/jmock-script-2.5.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/objenesis-1.0.jar
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/tests/org.hibernate.eclipse.console.test/lib/jmock-2.5.1/objenesis-1.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
15 years, 3 months
JBoss Tools SVN: r14244 - branches/jbosstools-3.0.x/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/pv.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-03-17 13:58:51 -0400 (Tue, 17 Mar 2009)
New Revision: 14244
Modified:
branches/jbosstools-3.0.x/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/pv/JsfTreeListener.java
Log:
JBIDE-3904
Modified: branches/jbosstools-3.0.x/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/pv/JsfTreeListener.java
===================================================================
--- branches/jbosstools-3.0.x/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/pv/JsfTreeListener.java 2009-03-17 17:56:36 UTC (rev 14243)
+++ branches/jbosstools-3.0.x/jsf/plugins/org.jboss.tools.jsf/src/org/jboss/tools/jsf/model/pv/JsfTreeListener.java 2009-03-17 17:58:51 UTC (rev 14244)
@@ -112,6 +112,7 @@
WebProjectNode n = getProjectRoot(model);
if(n == null) return;
WebProjectNode b = (WebProjectNode)n.getChildByPath(name);
+ if(b == null) return;
b.invalidate();
}
}
\ No newline at end of file
15 years, 3 months
JBoss Tools SVN: r14243 - branches/jbosstools-3.0.x/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-03-17 13:56:36 -0400 (Tue, 17 Mar 2009)
New Revision: 14243
Modified:
branches/jbosstools-3.0.x/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/RegularChildren.java
Log:
JBIDE-3904
Modified: branches/jbosstools-3.0.x/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/RegularChildren.java
===================================================================
--- branches/jbosstools-3.0.x/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/RegularChildren.java 2009-03-17 17:53:01 UTC (rev 14242)
+++ branches/jbosstools-3.0.x/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/model/impl/RegularChildren.java 2009-03-17 17:56:36 UTC (rev 14243)
@@ -247,7 +247,11 @@
public void put(String key, XModelObject value) {
entries.put(key, value);
- cache = null;
+ if(cache != null) {
+ synchronized(this) {
+ cache = null;
+ }
+ }
}
/**
@@ -269,7 +273,10 @@
* @return
*/
public XModelObject[] getSortedValues(Comparator<XModelObject> comparator) {
- if (cache != null) return cache;
+ XModelObject[] c = cache;
+ //Otherwise, cache can be made null between 'if' and 'return', but we
+ //avoid synchronizing this line for the most probable return to be very fast.
+ if (c != null) return c;
synchronized (this) {
if (cache != null) return cache;
if (size() == 0) {
@@ -279,13 +286,17 @@
if (comparator != null)
Arrays.sort(cache, comparator);
}
+ return cache;
}
- return cache;
}
public void remove(String key) {
entries.remove(key);
- cache = null;
+ if(cache != null) {
+ synchronized(this) {
+ cache = null;
+ }
+ }
}
/**
15 years, 3 months
JBoss Tools SVN: r14242 - branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.xml/resources/meta.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2009-03-17 13:53:01 -0400 (Tue, 17 Mar 2009)
New Revision: 14242
Modified:
branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-components.meta
Log:
JBIDE-3961
Modified: branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-components.meta
===================================================================
--- branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-components.meta 2009-03-17 16:34:15 UTC (rev 14241)
+++ branches/jbosstools-3.0.x/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-components.meta 2009-03-17 17:53:01 UTC (rev 14242)
@@ -633,7 +633,8 @@
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- WizardClassName="%Default%" displayName="Event..." kind="action" name="AddEvent">
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Event..." kind="action" name="AddEvent">
<EntityData EntityName="SeamEvent">
<AttributeData AttributeName="type"/>
</EntityData>
@@ -691,7 +692,8 @@
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- WizardClassName="%Default%" displayName="Event..." kind="action" name="AddEvent">
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Event..." kind="action" name="AddEvent">
<EntityData EntityName="SeamEvent">
<AttributeData AttributeName="type"/>
</EntityData>
@@ -817,7 +819,8 @@
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- WizardClassName="%Default%" displayName="Event..." kind="action" name="AddEvent">
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Event..." kind="action" name="AddEvent">
<EntityData EntityName="SeamEvent">
<AttributeData AttributeName="type"/>
</EntityData>
@@ -875,7 +878,8 @@
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- WizardClassName="%Default%" displayName="Event..." kind="action" name="AddEvent">
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Event..." kind="action" name="AddEvent">
<EntityData EntityName="SeamEvent">
<AttributeData AttributeName="type"/>
</EntityData>
@@ -1002,13 +1006,15 @@
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- WizardClassName="%Default%" displayName="Event..." kind="action" name="AddEvent">
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Event..." kind="action" name="AddEvent">
<EntityData EntityName="SeamEvent20">
<AttributeData AttributeName="type"/>
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- WizardClassName="%Default%" displayName="Import..." kind="action" name="AddImport">
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Import..." kind="action" name="AddImport">
<EntityData EntityName="SeamImport">
<AttributeData AttributeName="import"/>
</EntityData>
@@ -1138,13 +1144,15 @@
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- WizardClassName="%Default%" displayName="Event..." kind="action" name="AddEvent">
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Event..." kind="action" name="AddEvent">
<EntityData EntityName="SeamEvent20">
<AttributeData AttributeName="type"/>
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- WizardClassName="%Default%" displayName="Import..." kind="action" name="AddImport">
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Import..." kind="action" name="AddImport">
<EntityData EntityName="SeamImport">
<AttributeData AttributeName="import"/>
</EntityData>
15 years, 3 months
JBoss Tools SVN: r14241 - trunk/jsf/docs/userguide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: msorokin
Date: 2009-03-17 12:34:15 -0400 (Tue, 17 Mar 2009)
New Revision: 14241
Modified:
trunk/jsf/docs/userguide/en/modules/preferences.xml
Log:
https://jira.jboss.org/jira/browse/JBDS-666
Seam Pages Diagram is documented in Visual Web Tools Reference Guide
Modified: trunk/jsf/docs/userguide/en/modules/preferences.xml
===================================================================
--- trunk/jsf/docs/userguide/en/modules/preferences.xml 2009-03-17 16:32:47 UTC (rev 14240)
+++ trunk/jsf/docs/userguide/en/modules/preferences.xml 2009-03-17 16:34:15 UTC (rev 14241)
@@ -739,6 +739,31 @@
</mediaobject>
</figure>
</section>
+
+ <section id="SeamPagesDiagram">
+ <?dbhtml filename="SeamPagesDiagram.html"?>
+ <title>Seam Pages Diagram</title>
+
+
+
+ <para>In order to customize the layout of the Diagram used for editing and composing <property>page.xml</property> file in <property>Graphical mode</property> of <property>Seam Pages Editor</property> you can go to
+ <property>Window > Preferences > JBoss Tools > Web > Seam > Editors > Seam Pages Diagram</property>.
+ </para>
+
+ <figure>
+ <title>Preferences of Seam Pages Diagram</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/preferences/preferences_44.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
+ </section>
+
+
+
+
<section id="Struts">
<?dbhtml filename="Struts.html"?>
15 years, 3 months