JBoss Tools SVN: r24477 - in trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui: src/org/jboss/tools/deltacloud/ui/views and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: jjohnstn
Date: 2010-08-26 14:29:05 -0400 (Thu, 26 Aug 2010)
New Revision: 24477
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVImagesCategoryElement.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVInstancesCategoryElement.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/ImageView.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceViewLabelAndContentProvider.java
Log:
2010-08-26 Jeff Johnston <jjohnstn(a)redhat.com>
* src/org/jboss/tools/deltacloud/ui/views/CVImagesCategoryElement.java (listChanged): Add new
cloud argument.
* src/org/jboss/tools/deltacloud/ui/views/CVInstancesCategoryElement.java (listChanged): Ditto.
* src/org/jboss/tools/deltacloud/ui/views/ImageView.java (listChanged): Ditto.
(.modifyText): Decouple image list listener using the currCloud right away
before it is reset.
* src/org/jboss/tools/deltacloud/ui/views/InstanceView.java:
(listChanged): Add new cloud argument and use to verify that the cloud matches
the one for the new list.
(makeActions): Add refresh action.
(.modifyText): Decouple instance list listener using the currCloud right away
before it is reset.
(fillLocalPullDown): Add refresh action.
(PerformInstanceActionThread.run): Don't perform refresh in a Display thread, just
run it in the current thread.
* src/org/jboss/tools/deltacloud/ui/views/InstanceViewLabelAndContentProvider.java (inputChanged):
For a cloud input, use getCurrInstances rather than getInstances method of cloud.
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-08-26 18:22:14 UTC (rev 24476)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2010-08-26 18:29:05 UTC (rev 24477)
@@ -1,3 +1,23 @@
+2010-08-26 Jeff Johnston <jjohnstn(a)redhat.com>
+
+ * src/org/jboss/tools/deltacloud/ui/views/CVImagesCategoryElement.java (listChanged): Add new
+ cloud argument.
+ * src/org/jboss/tools/deltacloud/ui/views/CVInstancesCategoryElement.java (listChanged): Ditto.
+ * src/org/jboss/tools/deltacloud/ui/views/ImageView.java (listChanged): Ditto.
+ (.modifyText): Decouple image list listener using the currCloud right away
+ before it is reset.
+ * src/org/jboss/tools/deltacloud/ui/views/InstanceView.java:
+ (listChanged): Add new cloud argument and use to verify that the cloud matches
+ the one for the new list.
+ (makeActions): Add refresh action.
+ (.modifyText): Decouple instance list listener using the currCloud right away
+ before it is reset.
+ (fillLocalPullDown): Add refresh action.
+ (PerformInstanceActionThread.run): Don't perform refresh in a Display thread, just
+ run it in the current thread.
+ * src/org/jboss/tools/deltacloud/ui/views/InstanceViewLabelAndContentProvider.java (inputChanged):
+ For a cloud input, use getCurrInstances rather than getInstances method of cloud.
+
2010-08-25 Jeff Johnston <jjohnstn(a)redhat.com>
* src/org/jboss/tools/deltacloud/ui/views/DeltaCloudView.java (.menuAboutToShow): New
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVImagesCategoryElement.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVImagesCategoryElement.java 2010-08-26 18:22:14 UTC (rev 24476)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVImagesCategoryElement.java 2010-08-26 18:29:05 UTC (rev 24477)
@@ -44,7 +44,7 @@
}
@Override
- public void listChanged(DeltaCloudImage[] images) {
+ public void listChanged(DeltaCloud cloud, DeltaCloudImage[] images) {
clearChildren();
for (int i = 0; i < images.length; ++i) {
DeltaCloudImage d = images[i];
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVInstancesCategoryElement.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVInstancesCategoryElement.java 2010-08-26 18:22:14 UTC (rev 24476)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVInstancesCategoryElement.java 2010-08-26 18:29:05 UTC (rev 24477)
@@ -44,7 +44,7 @@
}
@Override
- public void listChanged(DeltaCloudInstance[] instances) {
+ public void listChanged(DeltaCloud cloud, DeltaCloudInstance[] instances) {
clearChildren();
for (int i = 0; i < instances.length; ++i) {
DeltaCloudInstance d = instances[i];
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/ImageView.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/ImageView.java 2010-08-26 18:22:14 UTC (rev 24476)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/ImageView.java 2010-08-26 18:29:05 UTC (rev 24477)
@@ -76,13 +76,15 @@
@Override
public void modifyText(ModifyEvent e) {
int index = cloudSelector.getSelectionIndex();
+ if (currCloud != null)
+ currCloud.removeImageListListener(parentView);
currCloud = clouds[index];
+ viewer.setInput(new DeltaCloudImage[0]);
+ viewer.refresh();
Display.getCurrent().asyncExec(new Runnable() {
@Override
public void run() {
- // TODO Auto-generated method stub
- currCloud.removeImageListListener(parentView);
viewer.setInput(currCloud);
currCloud.addImageListListener(parentView);
viewer.refresh();
@@ -349,19 +351,21 @@
cloudSelector.addModifyListener(cloudModifyListener);
}
- public void listChanged(DeltaCloudImage[] list) {
+ public void listChanged(DeltaCloud cloud, DeltaCloudImage[] list) {
final DeltaCloudImage[] finalList = list;
- Display.getDefault().syncExec(new Runnable() {
- @Override
- public void run() {
- // TODO Auto-generated method stub
- currCloud.removeImageListListener(parentView);
- viewer.setInput(finalList);
- currCloud.addImageListListener(parentView);
- viewer.refresh();
- }
-
- });
+ if (cloud.getName().equals(currCloud.getName())) {
+ Display.getDefault().syncExec(new Runnable() {
+ @Override
+ public void run() {
+ // TODO Auto-generated method stub
+ currCloud.removeImageListListener(parentView);
+ viewer.setInput(finalList);
+ currCloud.addImageListListener(parentView);
+ viewer.refresh();
+ }
+
+ });
+ }
}
}
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java 2010-08-26 18:22:14 UTC (rev 24476)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceView.java 2010-08-26 18:29:05 UTC (rev 24477)
@@ -14,11 +14,8 @@
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.jface.action.MenuManager;
import org.eclipse.jface.action.Separator;
-import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.jface.layout.TableColumnLayout;
import org.eclipse.jface.viewers.ColumnWeightData;
-import org.eclipse.jface.viewers.DoubleClickEvent;
-import org.eclipse.jface.viewers.IDoubleClickListener;
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.jface.viewers.IStructuredSelection;
@@ -48,6 +45,7 @@
import org.eclipse.swt.widgets.Table;
import org.eclipse.swt.widgets.TableColumn;
import org.eclipse.ui.IActionBars;
+import org.eclipse.ui.ISharedImages;
import org.eclipse.ui.IWorkbenchActionConstants;
import org.eclipse.ui.PlatformUI;
import org.eclipse.ui.part.ViewPart;
@@ -74,6 +72,7 @@
private final static String REBOOTING_INSTANCE_MSG = "RebootingInstance.msg"; //$NON-NLS-1$
private final static String DESTROYING_INSTANCE_TITLE = "DestroyingInstance.title"; //$NON-NLS-1$
private final static String DESTROYING_INSTANCE_MSG = "DestroyingInstance.msg"; //$NON-NLS-1$
+ private static final String REFRESH = "Refresh.label"; //$NON-NLS-1$
private TableViewer viewer;
@@ -86,7 +85,7 @@
private InstanceViewLabelAndContentProvider contentProvider;
- private Action doubleClickAction;
+ private Action refreshAction;
private Action startAction;
private Action stopAction;
private Action destroyAction;
@@ -107,17 +106,18 @@
@Override
public void modifyText(ModifyEvent e) {
int index = cloudSelector.getSelectionIndex();
+ if (currCloud != null)
+ currCloud.removeInstanceListListener(parentView);
currCloud = clouds[index];
+ viewer.setInput(new DeltaCloudInstance[0]);
+ viewer.refresh();
Display.getCurrent().asyncExec(new Runnable() {
@Override
public void run() {
- // TODO Auto-generated method stub
- currCloud.removeInstanceListListener(parentView);
viewer.setInput(currCloud);
currCloud.addInstanceListListener(parentView);
viewer.refresh();
-
}
});
@@ -236,7 +236,6 @@
PlatformUI.getWorkbench().getHelpSystem().setHelp(viewer.getControl(), "org.jboss.tools.deltacloud.ui.viewer");
makeActions();
hookContextMenu();
- hookDoubleClickAction();
hookSelection();
contributeToActionBars();
@@ -277,7 +276,7 @@
}
private void fillLocalPullDown(IMenuManager manager) {
- //TODO
+ manager.add(refreshAction);
}
private void fillContextMenu(IMenuManager manager) {
@@ -344,20 +343,15 @@
}
currentPerformingActions.put(instance.getId(), this);
cloud.performInstanceAction(instance.getId(), action);
- Display.getDefault().syncExec(new Runnable() {
- @Override
- public void run() {
- while (instance != null && !(instance.getState().equals(expectedState))
- && !(instance.getState().equals(DeltaCloudInstance.TERMINATED))) {
- instance = refreshInstance(instance);
- try {
- Thread.sleep(300);
- } catch (InterruptedException e) {
- break;
- }
- }
+ while (instance != null && !(instance.getState().equals(expectedState))
+ && !(instance.getState().equals(DeltaCloudInstance.TERMINATED))) {
+ instance = refreshInstance(instance);
+ try {
+ Thread.sleep(300);
+ } catch (InterruptedException e) {
+ break;
}
- });
+ }
} catch (DeltaCloudException e) {
// do nothing..action had problem executing..perhaps illegal
} finally {
@@ -399,13 +393,26 @@
}
private void makeActions() {
- doubleClickAction = new Action() {
+ refreshAction = new Action() {
public void run() {
- ISelection selection = viewer.getSelection();
- Object obj = ((IStructuredSelection)selection).getFirstElement();
- showMessage("Double-click detected on "+obj.toString());
+ Thread t = new Thread(new Runnable() {
+
+ @Override
+ public void run() {
+ if (currCloud != null) {
+ currCloud.getImages();
+ }
+ }
+
+ });
+ t.start();
}
};
+ refreshAction.setText(CVMessages.getString(REFRESH));
+ refreshAction.setToolTipText(CVMessages.getString(REFRESH));
+ refreshAction.setImageDescriptor(PlatformUI.getWorkbench().getSharedImages().
+ getImageDescriptor(ISharedImages.IMG_TOOL_REDO));
+
startAction = new Action() {
public void run() {
ISelection selection = viewer.getSelection();
@@ -510,21 +517,6 @@
return null;
}
- private void hookDoubleClickAction() {
- viewer.addDoubleClickListener(new IDoubleClickListener() {
- public void doubleClick(DoubleClickEvent event) {
- doubleClickAction.run();
- }
- });
- }
-
- private void showMessage(String message) {
- MessageDialog.openInformation(
- viewer.getControl().getShell(),
- CVMessages.getString("CloudViewName"), //$NON-NLS-1$
- message);
- }
-
@Override
public void setFocus() {
// TODO Auto-generated method stub
@@ -546,10 +538,10 @@
public void changeEvent(int type) {
String currName = null;
- clouds = DeltaCloudManager.getDefault().getClouds();
if (currCloud != null) {
currName = currCloud.getName();
}
+ clouds = DeltaCloudManager.getDefault().getClouds();
String[] cloudNames = new String[clouds.length];
int index = 0;
for (int i = 0; i < clouds.length; ++i) {
@@ -571,20 +563,22 @@
cloudSelector.addModifyListener(cloudModifyListener);
}
- public void listChanged(DeltaCloudInstance[] list) {
+ public void listChanged(DeltaCloud cloud, DeltaCloudInstance[] list) {
// Run following under Display thread since this can be
// triggered by a non-display thread notifying listeners.
final DeltaCloudInstance[] finalList = list;
- Display.getDefault().syncExec(new Runnable() {
- @Override
- public void run() {
- // TODO Auto-generated method stub
- currCloud.removeInstanceListListener(parentView);
- viewer.setInput(finalList);
- currCloud.addInstanceListListener(parentView);
- viewer.refresh();
- }
- });
+ if (cloud.getName().equals(currCloud.getName())) {
+ Display.getDefault().syncExec(new Runnable() {
+ @Override
+ public void run() {
+ // TODO Auto-generated method stub
+ currCloud.removeInstanceListListener(parentView);
+ viewer.setInput(finalList);
+ currCloud.addInstanceListListener(parentView);
+ viewer.refresh();
+ }
+ });
+ }
}
}
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceViewLabelAndContentProvider.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceViewLabelAndContentProvider.java 2010-08-26 18:22:14 UTC (rev 24476)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/InstanceViewLabelAndContentProvider.java 2010-08-26 18:29:05 UTC (rev 24477)
@@ -74,7 +74,7 @@
instances = (DeltaCloudInstance[])newInput;
} else {
cloud = (DeltaCloud)newInput;
- instances = cloud.getInstances();
+ instances = cloud.getCurrInstances();
}
}
}
15 years, 4 months
JBoss Tools SVN: r24476 - in trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core: src/org/jboss/tools/deltacloud/core and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: jjohnstn
Date: 2010-08-26 14:22:14 -0400 (Thu, 26 Aug 2010)
New Revision: 24476
Modified:
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/ChangeLog
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IImageListListener.java
trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IInstanceListListener.java
Log:
2010-08-26 Jeff Johnston <jjohnstn(a)redhat.com>
* src/org/jboss/tools/deltacloud/core/DeltaCloud.java (notifyImageListListeners): Pass new
cloud argument to listeners.
(notifyInstanceListListeners): Ditto.
(refreshInstance): Fix the check for states to be in the String realm rather than
the State realm.
* src/org/jboss/tools/deltacloud/core/IImageListListener.java: Add new cloud argument
to listChanged notifier method.
* src/org/jboss/tools/deltacloud/core/IInstanceListListener.java: Ditto.
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/ChangeLog
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/ChangeLog 2010-08-26 17:11:33 UTC (rev 24475)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/ChangeLog 2010-08-26 18:22:14 UTC (rev 24476)
@@ -1,3 +1,14 @@
+2010-08-26 Jeff Johnston <jjohnstn(a)redhat.com>
+
+ * src/org/jboss/tools/deltacloud/core/DeltaCloud.java (notifyImageListListeners): Pass new
+ cloud argument to listeners.
+ (notifyInstanceListListeners): Ditto.
+ (refreshInstance): Fix the check for states to be in the String realm rather than
+ the State realm.
+ * src/org/jboss/tools/deltacloud/core/IImageListListener.java: Add new cloud argument
+ to listChanged notifier method.
+ * src/org/jboss/tools/deltacloud/core/IInstanceListListener.java: Ditto.
+
2010-08-23 Jeff Johnston <jjohnstn(a)redhat.com>
* src/org/jboss/tools/deltacloud/core/client/Instance.java (getKey): New method.
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java 2010-08-26 17:11:33 UTC (rev 24475)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/DeltaCloud.java 2010-08-26 18:22:14 UTC (rev 24476)
@@ -104,7 +104,7 @@
public void notifyInstanceListListeners(DeltaCloudInstance[] array) {
Object[] listeners = instanceListeners.getListeners();
for (int i = 0; i < listeners.length; ++i)
- ((IInstanceListListener)listeners[i]).listChanged(array);
+ ((IInstanceListListener)listeners[i]).listChanged(this, array);
}
public void addImageListListener(IImageListListener listener) {
@@ -118,7 +118,7 @@
public void notifyImageListListeners(DeltaCloudImage[] array) {
Object[] listeners = imageListeners.getListeners();
for (int i = 0; i < listeners.length; ++i)
- ((IImageListListener)listeners[i]).listChanged(array);
+ ((IImageListListener)listeners[i]).listChanged(this, array);
}
public DeltaCloudInstance[] getInstances() {
@@ -175,7 +175,7 @@
if (inst.getId().equals(instanceId)) {
instance.setKey(inst.getKey());
// FIXME: remove BOGUS state when server fixes state problems
- if (!(instance.getState().equals(DeltaCloudInstance.BOGUS)) && !(inst.getState().equals(instance.getState()))) {
+ if (!(retVal.getState().equals(DeltaCloudInstance.BOGUS)) && !(inst.getState().equals(retVal.getState()))) {
instances.set(i, retVal);
DeltaCloudInstance[] instanceArray = new DeltaCloudInstance[instances.size()];
instanceArray = instances.toArray(instanceArray);
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IImageListListener.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IImageListListener.java 2010-08-26 17:11:33 UTC (rev 24475)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IImageListListener.java 2010-08-26 18:22:14 UTC (rev 24476)
@@ -2,6 +2,6 @@
public interface IImageListListener {
- public void listChanged(DeltaCloudImage[] list);
+ public void listChanged(DeltaCloud cloud, DeltaCloudImage[] list);
}
Modified: trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IInstanceListListener.java
===================================================================
--- trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IInstanceListListener.java 2010-08-26 17:11:33 UTC (rev 24475)
+++ trunk/deltacloud/plugins/org.jboss.tools.deltacloud.core/src/org/jboss/tools/deltacloud/core/IInstanceListListener.java 2010-08-26 18:22:14 UTC (rev 24476)
@@ -2,6 +2,6 @@
public interface IInstanceListListener {
- public void listChanged(DeltaCloudInstance[] list);
+ public void listChanged(DeltaCloud cloud, DeltaCloudInstance[] list);
}
15 years, 4 months
JBoss Tools SVN: r24475 - in branches/jbosstools-3.2.0.M2/bpel/plugins: org.eclipse.bpel.validator/src/org/eclipse/bpel/validator and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: bbrodt
Date: 2010-08-26 13:11:33 -0400 (Thu, 26 Aug 2010)
New Revision: 24475
Modified:
branches/jbosstools-3.2.0.M2/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/util/BPELReader.java
branches/jbosstools-3.2.0.M2/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/BPELReader.java
Log:
https://jira.jboss.org/browse/JBIDE-6825
Fix blocking bug. This is still in trunk but will be fixed soon.
Modified: branches/jbosstools-3.2.0.M2/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/util/BPELReader.java
===================================================================
--- branches/jbosstools-3.2.0.M2/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/util/BPELReader.java 2010-08-26 14:26:16 UTC (rev 24474)
+++ branches/jbosstools-3.2.0.M2/bpel/plugins/org.eclipse.bpel.ui/src/org/eclipse/bpel/ui/util/BPELReader.java 2010-08-26 17:11:33 UTC (rev 24475)
@@ -76,7 +76,10 @@
// but no parsing errors were logged in the Resource. This is because demand
// load was used by createResource(). Force a reload here, this time with
// proper error logging.
- processResource.unload();
+ // FIXME: this somehow breaks the resource change notifications, so that changes to the model
+ // don't cause the Resource to be marked dirty.
+ // This is a quick patch for JBT 3.2.0.M2, I'll fix this later
+// processResource.unload();
processResource.load(Collections.EMPTY_MAP);
EList<EObject> contents = processResource.getContents();
if (!contents.isEmpty())
@@ -182,7 +185,10 @@
try {
// https://jira.jboss.org/browse/JBIDE-6825
- processResource.unload();
+ // FIXME: this somehow breaks the resource change notifications, so that changes to the model
+ // don't cause the Resource to be marked dirty.
+ // This is a quick patch for JBT 3.2.0.M2, I'll fix this later
+// processResource.unload();
processResource.load(Collections.EMPTY_MAP);
EList<EObject> contents = processResource.getContents();
if (!contents.isEmpty())
Modified: branches/jbosstools-3.2.0.M2/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/BPELReader.java
===================================================================
--- branches/jbosstools-3.2.0.M2/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/BPELReader.java 2010-08-26 14:26:16 UTC (rev 24474)
+++ branches/jbosstools-3.2.0.M2/bpel/plugins/org.eclipse.bpel.validator/src/org/eclipse/bpel/validator/BPELReader.java 2010-08-26 17:11:33 UTC (rev 24475)
@@ -121,7 +121,10 @@
// but no parsing errors were logged in the Resource. This is because demand
// load was used by createResource(). Force a reload here, this time with
// proper error logging.
- processResource.unload();
+ // FIXME: this somehow breaks the resource change notifications, so that changes to the model
+ // don't cause the Resource to be marked dirty.
+ // This is a quick patch for JBT 3.2.0.M2, I'll fix this later
+// processResource.unload();
processResource.load (Collections.EMPTY_MAP);
EList contents = processResource.getContents();
if (!contents.isEmpty()) {
15 years, 4 months
JBoss Tools SVN: r24474 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml: resources/meta and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-08-26 10:26:16 -0400 (Thu, 26 Aug 2010)
New Revision: 24474
Added:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss/tools/hibernate/xml/model/HibernateResourceTree.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss/tools/hibernate/xml/model/handlers/OpenResourceHandler.java
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/meta/hibconfig3.meta
Log:
https://jira.jboss.org/browse/JBIDE-2607
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml 2010-08-26 14:01:54 UTC (rev 24473)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/plugin.xml 2010-08-26 14:26:16 UTC (rev 24474)
@@ -42,6 +42,9 @@
class="org.jboss.tools.hibernate.xml.model.HibernateLoader"/>
<xclass id="org.jboss.tools.hibernate.xml.model.HibernateRecognizer"
class="org.jboss.tools.hibernate.xml.model.HibernateRecognizer"/>
+ <xclass id="org.jboss.tools.hibernate.xml.model.HibernateResourceTree"
+ class="org.jboss.tools.hibernate.xml.model.HibernateResourceTree"/>
+
<xclass id="org.jboss.tools.hibernate.xml.model.handlers.AddHibernateAnyHandler"
class="org.jboss.tools.hibernate.xml.model.handlers.AddHibernateAnyHandler"/>
<xclass id="org.jboss.tools.hibernate.xml.model.handlers.AddHibernateCollectionHandler"
@@ -106,6 +109,8 @@
class="org.jboss.tools.hibernate.xml.model.handlers.DeletePropertyHandler"/>
<xclass id="org.jboss.tools.hibernate.xml.model.handlers.AddPropertySupport"
class="org.jboss.tools.hibernate.xml.model.handlers.AddPropertySupport"/>
+ <xclass id="org.jboss.tools.hibernate.xml.model.handlers.OpenResourceHandler"
+ class="org.jboss.tools.hibernate.xml.model.handlers.OpenResourceHandler"/>
<xclass id="org.jboss.tools.hibernate.xml.model.GrantActionsConstraint"
class="org.jboss.tools.hibernate.xml.model.GrantActionsConstraint"/>
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/meta/hibconfig3.meta
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/meta/hibconfig3.meta 2010-08-26 14:01:54 UTC (rev 24473)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/resources/meta/hibconfig3.meta 2010-08-26 14:26:16 UTC (rev 24474)
@@ -1,1848 +1,1858 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE XModelEntityGroup PUBLIC "-//Red Hat, Inc.//DTD Meta 1.0//EN"
- "meta.dtd">
-<XModelEntityGroup>
- <VERSION DEPENDS="Model:1.0" MODULE="Hibernate" VERSION="1.0"/>
- <MAPPINGS>
- <MAPPING name="AttributeConstraints">
- <PAIR name="IntEL" value="org.jboss.tools.hibernate.xml.model.constraint.IntELConstraint"/>
- <PAIR name="ListEL" value="org.jboss.tools.hibernate.xml.model.constraint.ListELConstraint"/>
- <PAIR name="ListIntEL" value="org.jboss.tools.hibernate.xml.model.constraint.ListIntELConstraint"/>
- </MAPPING>
- <MAPPING name="Implementations">
- <PAIR name="ComplexProperty" value="org.jboss.tools.hibernate.xml.model.impl.HibConfigComplexPropertyImpl"/>
- </MAPPING>
- </MAPPINGS>
- <ICONS>
- <GROUP name="action"/>
- <GROUP name="main"/>
- </ICONS>
- <GlobalActions kind="list"/>
- <XModelEntity
- AdoptManagerClass="org.jboss.tools.hibernate.xml.model.handlers.FolderOwnerAdopt"
- ImplementationLoadingClass="org.jboss.tools.hibernate.xml.model.HibConfigLoader"
- ImplementingClass="org.jboss.tools.hibernate.xml.model.impl.FileHibernateImpl"
- ObjectEditorClass="org.jboss.tools.hibernate.ui.xml.editor.HibConfig3CompoundEditor"
- PROPERTIES="loaderKind=file;formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData"
- XMLSUBPATH="hibernate-configuration" name="FileHibConfig3">
- <XChildrenEntities>
- <XChildEntity maxCount="1" name="HibConfig3SessionFactory" required="yes"/>
- <XChildEntity maxCount="1" name="HibConfig3Security" required="yes"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.file" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="hibernate-configuration"
- loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general" name="name" xmlname="NAME"/>
- <XModelAttribute default="xml" name="extension" xmlname="EXTENSION">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute loader="ElementType" name="_lateload" visibility="false">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute
- default="-//Hibernate/Hibernate Configuration DTD 3.0//EN"
- name="publicId" visibility="false"/>
- <XModelAttribute
- default="http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
- name="systemId" visibility="false"/>
- <XModelAttribute default="no" name="isIncorrect" visibility="false">
- <Constraint loader="List">
- <value name="yes"/>
- <value name="no"/>
- </Constraint>
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute name="incorrectBody" visibility="false"/>
- <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
- <Editor name="Note"/>
- </XModelAttribute>
- <XModelAttribute name="encoding">
- <Constraint loader="ListString">
- <value name="ISO-8859-1"/>
- <value name="UTF-8"/>
- </Constraint>
- <Editor name="ListString"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem HandlerClassName="%Open%" ICON="action.edit"
- displayName="Open" kind="action" name="Open"/>
- <XActionItem displayName="Open With" group="1" kind="list" name="OpenWith">
- <XActionItem HIDE="always"
- HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithExternalHandler"
- ICON="main.file.java_file" PROPERTIES="extension=tiles-definitions"
- displayName="Open with External Program" kind="action" name="OpenWithSelected"/>
- <XActionItem HIDE="always"
- HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithChoiceHandler"
- ICON="main.file.java_file" displayName="Choose Program..."
- kind="action" name="OpenWithChoice">
- <EntityData EntityName="OpenWithHelper">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="default"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItem kind="list" name="EditActions">
- <XActionItem HandlerClassName="%RenameFile%" ICON="action.empty"
- PROPERTIES="validator.edit=true" WizardClassName="%Default%"
- displayName="Rename..." kind="action" name="Rename">
- <EntityData EntityName="FileHibernate3">
- <AttributeData AttributeName="name"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItem kind="list" name="SaveActions">
- <XActionItem HIDE="always" HandlerClassName="%SaveFile%"
- ICON="action.save" displayName="Save" kind="action" name="Save"/>
- </XActionItem>
- <XActionItem ICON="action.empty" displayName="New" group="1"
- kind="list" name="CreateActions">
- <XActionItem HandlerClassName="%Hibernate3Replace%"
- ICON="main.hibernate.array"
- PROPERTIES="validator.add=true;childEntity=HibConfig3SessionFactory"
- WizardClassName="%Default%" displayName="Session Factory..."
- kind="action" name="AddSessionFactory">
- <EntityData EntityName="HibConfig3SessionFactory">
- <AttributeData AttributeName="name"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%Hibernate3Replace%"
- ICON="main.hibernate.array"
- PROPERTIES="validator.add=true;childEntity=HibConfig3Security"
- WizardClassName="%Default%" displayName="Security..." kind="action" name="AddSecurity">
- <EntityData EntityName="HibConfig3Security">
- <AttributeData AttributeName="context"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
- <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
- ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
- <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
- ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
- <XActionItem BaseActionName="Paste" HandlerClassName="%Paste%"
- ICON="action.paste" displayName="Paste" kind="action" name="Paste"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%DeleteFile%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem kind="list" name="DiscardActions">
- <XActionItem HIDE="always"
- HandlerClassName="org.jboss.tools.common.model.filesystems.impl.DiscardFileHandler"
- ICON="action.delete"
- PROPERTIES="significanceMessageClass=org.jboss.tools.common.model.filesystems.impl.DiscardFileSignificanceMessage"
- displayName="Discard Changes" kind="action" name="Discard"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity name="FileHibConfig3_EditorActionList">
- <XChildrenEntities/>
- <XEntityRenderer/>
- <XModelAttributes/>
- <XActionItem kind="list">
- <XActionItem kind="list" name="EditActions"/>
- <XActionItem kind="list" name="SaveActions">
- <XActionItem HIDE="always" HandlerClassName="%SaveFile%"
- ICON="action.save" displayName="Save" kind="action" name="Save"/>
- </XActionItem>
- <XActionItem ICON="action.empty" displayName="New" group="1"
- kind="list" name="CreateActions">
- <XActionItem HandlerClassName="%Hibernate3Replace%"
- ICON="main.hibernate.array"
- PROPERTIES="validator.add=true;childEntity=HibConfig3SessionFactory"
- WizardClassName="%Default%" displayName="Session Factory..."
- kind="action" name="AddSessionFactory">
- <EntityData EntityName="HibConfig3SessionFactory">
- <AttributeData AttributeName="name"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%Hibernate3Replace%"
- ICON="main.hibernate.array"
- PROPERTIES="validator.add=true;childEntity=HibConfig3Security"
- WizardClassName="%Default%" displayName="Security..." kind="action" name="AddSecurity">
- <EntityData EntityName="HibConfig3Security">
- <AttributeData AttributeName="context"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem kind="list" name="DiscardActions">
- <XActionItem HIDE="always"
- HandlerClassName="org.jboss.tools.common.model.filesystems.impl.DiscardFileHandler"
- ICON="action.delete"
- PROPERTIES="significanceMessageClass=org.jboss.tools.common.model.filesystems.impl.DiscardFileSignificanceMessage"
- displayName="Discard Changes" kind="action" name="Discard"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity
- ImplementationLoadingClass="org.jboss.tools.common.model.loaders.impl.BodyLoader"
- ImplementingClass="org.jboss.tools.common.model.filesystems.impl.FileXMLImpl"
- ObjectEditorClass="org.hibernate.eclipse.mapper.editors.ReverseEngineeringEditor" name="FileHibReverse3">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.file" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="hibernate reverse engineering file"
- loader="ElementType" name="element type" visibility="false">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute name="name" xmlname="NAME"/>
- <XModelAttribute TRIM="no" name="body" visibility="false"/>
- <XModelAttribute default="no" name="isIncorrect" visibility="false">
- <Constraint loader="List">
- <value name="yes"/>
- <value name="no"/>
- </Constraint>
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute default="xml" name="extension" xmlname="EXTENSION">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute loader="ElementType" name="_lateload" visibility="false">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem HandlerClassName="%Open%" ICON="main.file.java_file"
- displayName="Open" kind="action" name="Open"/>
- <XActionItem displayName="Open With" group="1" kind="list" name="OpenWith">
- <XActionItem HIDE="always"
- HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithExternalHandler"
- ICON="main.file.java_file" PROPERTIES="extension=struts-config"
- displayName="Open with External Program" kind="action" name="OpenWithSelected"/>
- <XActionItem HIDE="always"
- HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithChoiceHandler"
- ICON="main.file.java_file" displayName="Choose Program..."
- kind="action" name="OpenWithChoice">
- <EntityData EntityName="OpenWithHelper">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="default"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItem kind="list" name="SaveActions">
- <XActionItem HIDE="disabled" HandlerClassName="%SaveFile%"
- ICON="action.save" displayName="Save" kind="action" name="Save"/>
- </XActionItem>
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
- <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
- ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
- <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
- ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%DeleteFile%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%Hibernate3OrderedFolder%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData" name="HibConfig3CachesFolder">
- <XChildrenEntities>
- <XChildEntity name="HibConfig3ClassCache"/>
- <XChildEntity name="HibConfig3CollectionCache"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.folder" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="properties" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute default="Caches" name="name" visibility="false" xmlname="NAME">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.empty" displayName="New" group="1"
- kind="list" name="CreateActions">
- <XActionItem HandlerClassName="%Create%"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Class Cache..." kind="action" name="AddClassCache">
- <EntityData EntityName="HibConfig3ClassCache">
- <AttributeData AttributeName="class"/>
- <AttributeData AttributeName="usage"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%Create%"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Collection Cache..." kind="action" name="AddCollectionCache">
- <EntityData EntityName="HibConfig3CollectionCache">
- <AttributeData AttributeName="collection"/>
- <AttributeData AttributeName="usage"/>
- </EntityData>
- </XActionItem>
- <XActionItem HIDE="always"
- HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.ShowMenuHandler"
- PROPERTIES="actionList=CreateActions" displayName="Cache..."
- kind="action" name="AddCache"/>
- </XActionItem>
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
- <XActionItem HandlerClassName="%Paste%" ICON="action.paste"
- displayName="Paste" kind="action" name="Paste"/>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity
- ImplementingClass="org.jboss.tools.hibernate.xml.model.impl.HibConfigCacheImpl"
- XMLSUBPATH="class-cache" name="HibConfig3ClassCache">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.any" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="class-cache" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="save=always;id=true;category=general"
- name="class" xmlname="class">
- <Editor name="AccessibleJava"/>
- </XModelAttribute>
- <XModelAttribute name="region" xmlname="region"/>
- <XModelAttribute PROPERTIES="save=always" default="read-only"
- name="usage" xmlname="usage">
- <Constraint loader="List">
- <value name="read-only"/>
- <value name="read-write"/>
- <value name="nonstrict-read-write"/>
- <value name="transactional"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute name="include" xmlname="include">
- <Constraint loader="List">
- <value/>
- <value name="all"/>
- <value name="non-lazy"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute name="item" visibility="false">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
- <Editor name="Note"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
- <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
- ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
- <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
- ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions">
- <XActionItem HIDE="always" HandlerClassName="%Move%"
- ICON="action.move" displayName="Move" kind="action" name="Move"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity
- ImplementingClass="org.jboss.tools.hibernate.xml.model.impl.HibConfigCacheImpl"
- XMLSUBPATH="collection-cache" name="HibConfig3CollectionCache">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.any" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="collection-cache" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="save=always;id=true;category=general"
- name="collection" xmlname="collection"/>
- <XModelAttribute name="region" xmlname="region"/>
- <XModelAttribute PROPERTIES="save=always" default="read-only"
- name="usage" xmlname="usage">
- <Constraint loader="List">
- <value name="read-only"/>
- <value name="read-write"/>
- <value name="nonstrict-read-write"/>
- <value name="transactional"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute name="item" visibility="false">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
- <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
- ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
- <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
- ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions">
- <XActionItem HIDE="always" HandlerClassName="%Move%"
- ICON="action.move" displayName="Move" kind="action" name="Move"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%Regular2%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData"
- XMLSUBPATH="event" name="HibConfig3Event">
- <XChildrenEntities>
- <XChildEntity name="HibConfig3Listener"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.any" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="event" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="save=always;id=true;category=general"
- default="auto-flush" name="type" xmlname="type">
- <Constraint loader="List">
- <value name="auto-flush"/>
- <value name="merge"/>
- <value name="create"/>
- <value name="create-onflush"/>
- <value name="delete"/>
- <value name="dirty-check"/>
- <value name="evict"/>
- <value name="flush"/>
- <value name="flush-entity"/>
- <value name="load"/>
- <value name="load-collection"/>
- <value name="lock"/>
- <value name="refresh"/>
- <value name="replicate"/>
- <value name="save-update"/>
- <value name="save"/>
- <value name="update"/>
- <value name="pre-load"/>
- <value name="pre-update"/>
- <value name="pre-insert"/>
- <value name="pre-delete"/>
- <value name="pre-collection-recreate"/>
- <value name="pre-collection-remove"/>
- <value name="pre-collection-update"/>
- <value name="post-load"/>
- <value name="post-update"/>
- <value name="post-insert"/>
- <value name="post-delete"/>
- <value name="post-collection-recreate"/>
- <value name="post-collection-remove"/>
- <value name="post-collection-update"/>
- <value name="post-commit-update"/>
- <value name="post-commit-insert"/>
- <value name="post-commit-delete"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
- <Editor name="Note"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.empty" displayName="New" group="1"
- kind="list" name="CreateActions">
- <XActionItem HandlerClassName="%Create%"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Listener..." kind="action" name="AddListener">
- <EntityData EntityName="HibConfig3Listener">
- <AttributeData AttributeName="class"/>
- <AttributeData AttributeName="type" Mandatory="no"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
- <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
- ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
- <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
- ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions">
- <XActionItem HIDE="always" HandlerClassName="%Move%"
- ICON="action.move" displayName="Move" kind="action" name="Move"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%Hibernate3OrderedFolder%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData" name="HibConfig3EventsFolder">
- <XChildrenEntities>
- <XChildEntity name="HibConfig3Event"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.folder" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="events" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute default="Events" name="name" visibility="false" xmlname="NAME">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.empty" displayName="New" group="1"
- kind="list" name="CreateActions">
- <XActionItem HandlerClassName="%Create%"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Event..." kind="action" name="AddEvent">
- <EntityData EntityName="HibConfig3Event">
- <AttributeData AttributeName="type"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
- <XActionItem HandlerClassName="%Paste%" ICON="action.paste"
- displayName="Paste" kind="action" name="Paste"/>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%Regular2%" XMLSUBPATH="grant" name="HibConfig3Grant">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.any" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="grant" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="save=always;id=true;category=general"
- name="role" xmlname="role"/>
- <XModelAttribute PROPERTIES="save=always;category=general"
- name="entity-name" xmlname="entity-name">
- <Editor name="AccessibleJava"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="save=always;category=general;separator=comma;greedy=always"
- name="actions" xmlname="actions">
- <Constraint loader="org.jboss.tools.hibernate.xml.model.GrantActionsConstraint">
- <value name="*"/>
- <value name="read"/>
- <value name="insert"/>
- <value name="update"/>
- <value name="delete"/>
- </Constraint>
- <Editor name="ListAdd"/>
- </XModelAttribute>
- <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
- <Editor name="Note"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
- <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
- ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
- <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
- ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions">
- <XActionItem HIDE="always" HandlerClassName="%Move%"
- ICON="action.move" displayName="Move" kind="action" name="Move"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity
- ImplementingClass="org.jboss.tools.hibernate.xml.model.impl.HibConfigListenerImpl"
- XMLSUBPATH="listener" name="HibConfig3Listener">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.any" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="listener" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general" name="type" xmlname="type">
- <Constraint loader="List">
- <value name="auto-flush"/>
- <value name="merge"/>
- <value name="create"/>
- <value name="create-onflush"/>
- <value name="delete"/>
- <value name="dirty-check"/>
- <value name="evict"/>
- <value name="flush"/>
- <value name="flush-entity"/>
- <value name="load"/>
- <value name="load-collection"/>
- <value name="lock"/>
- <value name="refresh"/>
- <value name="replicate"/>
- <value name="save-update"/>
- <value name="save"/>
- <value name="update"/>
- <value name="pre-load"/>
- <value name="pre-update"/>
- <value name="pre-insert"/>
- <value name="pre-delete"/>
- <value name="pre-collection-recreate"/>
- <value name="pre-collection-remove"/>
- <value name="pre-collection-update"/>
- <value name="post-commit-update"/>
- <value name="post-commit-insert"/>
- <value name="post-commit-delete"/>
- <value name="post-load"/>
- <value name="post-update"/>
- <value name="post-insert"/>
- <value name="post-delete"/>
- <value name="post-collection-recreate"/>
- <value name="post-collection-remove"/>
- <value name="post-collection-update"/>
- <value name="post-commit-update"/>
- <value name="post-commit-insert"/>
- <value name="post-commit-delete"/>
- <value/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="save=always;id=true;category=general"
- name="class" xmlname="class">
- <Editor name="AccessibleJava"/>
- </XModelAttribute>
- <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
- <Editor name="Note"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
- <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
- ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
- <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
- ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions">
- <XActionItem HIDE="always" HandlerClassName="%Move%"
- ICON="action.move" displayName="Move" kind="action" name="Move"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%Hibernate3OrderedFolder%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData" name="HibConfig3ListenersFolder">
- <XChildrenEntities>
- <XChildEntity name="HibConfig3Listener"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.folder" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="listeners" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute default="Listeners" name="name" visibility="false" xmlname="NAME">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.empty" displayName="New" group="1"
- kind="list" name="CreateActions">
- <XActionItem HandlerClassName="%Create%"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Listener..." kind="action" name="AddListener">
- <EntityData EntityName="HibConfig3Listener">
- <AttributeData AttributeName="class"/>
- <AttributeData AttributeName="type" Mandatory="no"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
- <XActionItem HandlerClassName="%Paste%" ICON="action.paste"
- displayName="Paste" kind="action" name="Paste"/>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity
- ImplementingClass="org.jboss.tools.hibernate.xml.model.impl.HibConfigMappingImpl"
- XMLSUBPATH="mapping" name="HibConfig3Mapping">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.any" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="mapping" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=advanced" name="resource" xmlname="resource"/>
- <XModelAttribute PROPERTIES="category=advanced" name="file" xmlname="file"/>
- <XModelAttribute PROPERTIES="category=advanced" name="jar" xmlname="jar"/>
- <XModelAttribute PROPERTIES="category=general" name="package" xmlname="package"/>
- <XModelAttribute PROPERTIES="category=general" name="class" xmlname="class">
- <Editor name="AccessibleJava"/>
- </XModelAttribute>
- <XModelAttribute COPYABLE="no" PROPERTIES="id=true" name="item" visibility="false">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
- <Editor name="Note"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
- <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
- ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
- <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
- ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions">
- <XActionItem HIDE="always" HandlerClassName="%Move%"
- ICON="action.move" displayName="Move" kind="action" name="Move"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%Hibernate3OrderedFolder%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData" name="HibConfig3MappingsFolder">
- <XChildrenEntities>
- <XChildEntity name="HibConfig3Mapping"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.folder" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="properties" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute default="Mappings" name="name" visibility="false" xmlname="NAME">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.empty" displayName="New" group="1"
- kind="list" name="CreateActions">
- <XActionItem HandlerClassName="%Create%"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Mapping..." kind="action" name="AddMapping">
- <EntityData EntityName="HibConfig3Mapping">
- <AttributeData AttributeName="class" Mandatory="no"/>
- <AttributeData AttributeName="package" Mandatory="no"/>
- <AttributeData AttributeName="file" Mandatory="no"/>
- <AttributeData AttributeName="jar" Mandatory="no"/>
- <AttributeData AttributeName="resource" Mandatory="no"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
- <XActionItem HandlerClassName="%Paste%" ICON="action.paste"
- displayName="Paste" kind="action" name="Paste"/>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectBytecode">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.folder" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="Bytecode" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="id=true;category=general"
- default="Bytecode" name="name" visibility="false" xmlname="name">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.bytecode.provider" name="provider"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.bytecode.use_reflection_optimizer" name="use reflection optimizer">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectC3P0">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.folder" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="C3P0" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="id=true;category=general" default="C3P0"
- name="name" visibility="false" xmlname="name">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.c3p0.acquire_increment" name="acquire increment">
- <Constraint loader="%IntEL%">
- <value name="mandatory=false"/>
- </Constraint>
- <Editor name="Int"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.c3p0.idle_test_period" name="idle test period">
- <Constraint loader="%IntEL%">
- <value name="mandatory=false"/>
- </Constraint>
- <Editor name="Int"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.c3p0.max_size" name="max size">
- <Constraint loader="%IntEL%">
- <value name="mandatory=false"/>
- </Constraint>
- <Editor name="Int"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.c3p0.max_statements" name="max statements">
- <Constraint loader="%IntEL%">
- <value name="mandatory=false"/>
- </Constraint>
- <Editor name="Int"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.c3p0.min_size" name="min size">
- <Constraint loader="%IntEL%">
- <value name="mandatory=false"/>
- </Constraint>
- <Editor name="Int"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.c3p0.timeout" name="timeout">
- <Constraint loader="%IntEL%">
- <value name="mandatory=false"/>
- </Constraint>
- <Editor name="Int"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectCache">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.folder" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="Cache" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="id=true;category=general"
- default="Cache" name="name" visibility="false" xmlname="name">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.cache.jndi" name="jndi"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.cache.provider_class" name="provider class">
- <Editor name="AccessibleJava"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.cache.provider_configuration_file_resource_path" name="provider configuration file"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.cache.query_cache_factory" name="query cache factory">
- <Editor name="AccessibleJava"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.cache.region_prefix" name="region prefix"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.cache.use_minimal_puts" name="use minimal puts">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.cache.use_query_cache" name="use query cache">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.cache.use_second_level_cache" name="use second level cache">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.cache.use_structured_entries" name="use structured entries">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ComplexProperty%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData" name="HibConfig3ObjectConnection">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.folder" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="Connection" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="id=true;category=general"
- default="Connection" name="name" visibility="false" xmlname="name">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.connection.driver_class" name="driver class">
- <Editor name="AccessibleJava"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.connection.url" name="url"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.connection.username" name="username"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.connection.password" name="password"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.connection.pool_size" name="pool size">
- <Constraint loader="%IntEL%">
- <value name="mandatory=false"/>
- </Constraint>
- <Editor name="Int"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=advanced;h_property=hibernate.connection" name="connection"/>
- <XModelAttribute
- PROPERTIES="category=advanced;h_property=hibernate.connection.autocommit" name="autocommit">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=advanced;h_property=hibernate.connection.datasource" name="datasource"/>
- <XModelAttribute
- PROPERTIES="category=advanced;h_property=hibernate.connection.isolation" name="isolation"/>
- <XModelAttribute
- PROPERTIES="category=advanced;h_property=hibernate.connection.provider_class" name="provider class">
- <Editor name="AccessibleJava"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=advanced;h_property=hibernate.connection.release_mode" name="release mode">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="on_close"/>
- <value name="after_transaction"/>
- <value name="after_statement"/>
- <value name="auto"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectHibernate">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.folder" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="Hibernate" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="id=true;category=general"
- default="Hibernate" name="name" visibility="false" xmlname="name">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.dialect" name="dialect">
- <Constraint loader="ListString">
- <value name="org.hibernate.dialect.DB2Dialect"/>
- <value name="org.hibernate.dialect.DB2400Dialect"/>
- <value name="org.hibernate.dialect.DB2390Dialect"/>
- <value name="org.hibernate.dialect.PostgreSQLDialect"/>
- <value name="org.hibernate.dialect.MySQLDialect"/>
- <value name="org.hibernate.dialect.MySQLInnoDBDialect"/>
- <value name="org.hibernate.dialect.MySQLMyISAMDialect"/>
- <value name="org.hibernate.dialect.OracleDialect"/>
- <value name="org.hibernate.dialect.Oracle9iDialect"/>
- <value name="org.hibernate.dialect.Oracle10gDialect"/>
- <value name="org.hibernate.dialect.SybaseDialect"/>
- <value name="org.hibernate.dialect.SybaseAnywhereDialect"/>
- <value name="org.hibernate.dialect.SQLServerDialect"/>
- <value name="org.hibernate.dialect.SAPDBDialect"/>
- <value name="org.hibernate.dialect.InformixDialect"/>
- <value name="org.hibernate.dialect.HSQLDialect"/>
- <value name="org.hibernate.dialect.IngresDialect"/>
- <value name="org.hibernate.dialect.ProgressDialect"/>
- <value name="org.hibernate.dialect.MckoiDialect"/>
- <value name="org.hibernate.dialect.InterbaseDialect"/>
- <value name="org.hibernate.dialect.PointbaseDialect"/>
- <value name="org.hibernate.dialect.FrontbaseDialect"/>
- <value name="org.hibernate.dialect.FirebirdDialect"/>
- </Constraint>
- <Editor name="ListString"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.show_sql" name="show sql">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.use_sql_comments" name="use sql comments">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.format_sql" name="format sql">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.default_batch_fetch_size" name="default batch fetch size">
- <Constraint loader="%IntEL%">
- <value name="mandatory=false"/>
- </Constraint>
- <Editor name="Int"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.default_catalog" name="default catalog"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.default_entity_mode" name="default entity mode">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="dynamic-map"/>
- <value name="dom4j"/>
- <value name="pojo"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.default_schema" name="default schema"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.current_session_context_class" name="current session context class"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.generate_statistics" name="generate statistics">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.hbm2ddl.auto" name="hbm2ddl auto">
- <Constraint loader="ListString">
- <value/>
- <value name="validate"/>
- <value name="update"/>
- <value name="create"/>
- <value name="create-drop"/>
- </Constraint>
- <Editor name="ListString"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.jacc_context_id" name="jacc context id"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.max_fetch_depth" name="max fetch depth">
- <Constraint loader="%IntEL%">
- <value name="mandatory=false"/>
- </Constraint>
- <Editor name="Int"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.order_inserts" name="order inserts">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.order_updates" name="order updates">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.session_factory_name" name="session factory name"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.use_identifier_rollback" name="use identifier rollback">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectJDBC">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.folder" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="JDBC" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="id=true;category=general" default="JDBC"
- name="name" visibility="false" xmlname="name">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.jdbc.batch_size" name="batch size">
- <Constraint loader="%IntEL%">
- <value name="mandatory=false"/>
- </Constraint>
- <Editor name="Int"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.jdbc.batch_versioned_data" name="batch versioned data"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.jdbc.factory_class" name="factory class"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.jdbc.fetch_size" name="fetch size">
- <Constraint loader="%IntEL%">
- <value name="mandatory=false"/>
- </Constraint>
- <Editor name="Int"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.jdbc.sql_exception_converter" name="sql exception converter"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.jdbc.use_get_generated_keys" name="use get generated keys">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.jdbc.use_scrollable_resultset" name="use scrollable resultset">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.jdbc.use_streams_for_binary" name="use streams for binary">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.jdbc.wrap_result_sets" name="wrap result sets">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectJNDI">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.folder" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="JNDI" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="id=true;category=general" default="JNDI"
- name="name" visibility="false" xmlname="name">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.jndi" name="jndi"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.jndi.class" name="class">
- <Editor name="AccessibleJava"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.jndi.url" name="url"/>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectProxool">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.folder" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="Proxool" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="id=true;category=general"
- default="Proxool" name="name" visibility="false" xmlname="name">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.proxool" name="proxool"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.proxool.existing_pool" name="existing pool"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.proxool.pool_alias" name="pool alias"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.proxool.properties" name="properties"/>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.proxool.xml" name="xml"/>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectQuery">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.folder" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="Query" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="id=true;category=general"
- default="Query" name="name" visibility="false" xmlname="name">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.query.factory_class" name="factory class">
- <Editor name="AccessibleJava"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.query.jpaql_strict_compliance" name="jpaql strict compliance">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.query.startup_check" name="startup check">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.query.substitutions" name="substitutions"/>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectTransaction">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.folder" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="Transaction" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="id=true;category=general"
- default="Transaction" name="name" visibility="false" xmlname="name">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.transaction.auto_close_session" name="auto close session">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.transaction.factory_class" name="factory class">
- <Editor name="AccessibleJava"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.transaction.flush_before_completion" name="flush before completion">
- <Constraint loader="%ListEL%">
- <value/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="List"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="category=general;h_property=hibernate.transaction.manager_lookup_class" name="manager lookup class">
- <Editor name="AccessibleJava"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%Hibernate3OrderedFolder%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData" name="HibConfig3PropertiesFolder">
- <XChildrenEntities>
- <XChildEntity maxCount="1" name="HibConfig3ObjectConnection" required="yes"/>
- <XChildEntity maxCount="1" name="HibConfig3ObjectHibernate" required="yes"/>
- <XChildEntity maxCount="1" name="HibConfig3ObjectBytecode" required="yes"/>
- <XChildEntity maxCount="1" name="HibConfig3ObjectC3P0" required="yes"/>
- <XChildEntity maxCount="1" name="HibConfig3ObjectCache" required="yes"/>
- <XChildEntity maxCount="1" name="HibConfig3ObjectJDBC" required="yes"/>
- <XChildEntity maxCount="1" name="HibConfig3ObjectJNDI" required="yes"/>
- <XChildEntity maxCount="1" name="HibConfig3ObjectProxool" required="yes"/>
- <XChildEntity maxCount="1" name="HibConfig3ObjectQuery" required="yes"/>
- <XChildEntity maxCount="1" name="HibConfig3ObjectTransaction" required="yes"/>
- <XChildEntity name="HibConfig3Property"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.folder" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="properties" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute default="Properties" name="name" visibility="false" xmlname="NAME">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.empty" displayName="New" group="1"
- kind="list" name="CreateActions">
- <XActionItem HandlerClassName="%SpecialWizard%"
- PROPERTIES="validator.add=true;support=org.jboss.tools.hibernate.xml.model.handlers.AddPropertySupport"
- displayName="Property..." kind="action" name="AddProperty">
- <EntityData EntityName="HibConfig3Property">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="value" Mandatory="no"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
- <XActionItem HandlerClassName="%Paste%" ICON="action.paste"
- displayName="Paste" kind="action" name="Paste"/>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity
- ImplementingClass="org.jboss.tools.hibernate.xml.model.impl.HibConfigSimplePropertyImpl"
- XMLSUBPATH="property" name="HibConfig3Property">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.any" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="property" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="save=always;id=true;category=general"
- name="name" xmlname="name">
- <Constraint loader="ListString"/>
- </XModelAttribute>
- <XModelAttribute name="value" xmlname="#text"/>
- <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
- <Editor name="Note"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
- <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
- ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
- <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
- ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete"
- HandlerClassName="org.jboss.tools.hibernate.xml.model.handlers.DeletePropertyHandler"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions">
- <XActionItem HIDE="always" HandlerClassName="%Move%"
- ICON="action.move" displayName="Move" kind="action" name="Move"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%Regular2%" XMLSUBPATH="security" name="HibConfig3Security">
- <XChildrenEntities>
- <XChildEntity name="HibConfig3Grant"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.any" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="security" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="save=always;category=general"
- name="context" xmlname="context"/>
- <XModelAttribute PROPERTIES="id=true" default="Security" name="name" visibility="false"/>
- <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
- <Editor name="Note"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.empty" displayName="New" group="1"
- kind="list" name="CreateActions">
- <XActionItem HandlerClassName="%Create%" ICON="main.hibernate.array"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Grant..." kind="action" name="AddGrant">
- <EntityData EntityName="HibConfig3Grant">
- <AttributeData AttributeName="role"/>
- <AttributeData AttributeName="entity-name"/>
- <AttributeData AttributeName="actions"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
- <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
- ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
- <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
- ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
- <XActionItem BaseActionName="Paste" HandlerClassName="%Paste%"
- ICON="action.paste" displayName="Paste" kind="action" name="Paste"/>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%Ordered2%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData"
- XMLSUBPATH="session-factory" name="HibConfig3SessionFactory">
- <XChildrenEntities>
- <XChildEntity maxCount="1" name="HibConfig3PropertiesFolder" required="yes"/>
- <XChildEntity maxCount="1" name="HibConfig3MappingsFolder" required="yes"/>
- <XChildEntity maxCount="1" name="HibConfig3CachesFolder" required="yes"/>
- <XChildEntity maxCount="1" name="HibConfig3EventsFolder" required="yes"/>
- <XChildEntity maxCount="1" name="HibConfig3ListenersFolder" required="yes"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.hibernate.any" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="session-factory" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="save=always;category=general"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="id=true" default="Session Factory"
- name="path" visibility="false"/>
- <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
- <Editor name="Note"/>
- </XModelAttribute>
- </XModelAttributes>
- <XActionItem kind="list">
- <XActionItem ICON="action.empty" displayName="New" group="1"
- kind="list" name="CreateActions">
- <XActionItem HandlerClassName="%Redirect%" ICON="main.hibernate.any"
- PROPERTIES="sourcepath=Properties;actionpath=CreateActions/AddProperty"
- WizardClassName="%Default%" displayName="Property..." kind="action" name="AddProperty"/>
- <XActionItem HandlerClassName="%Redirect%" ICON="main.hibernate.any"
- PROPERTIES="sourcepath=Mappings;actionpath=CreateActions/AddMapping"
- WizardClassName="%Default%" displayName="Mapping..." kind="action" name="AddMapping"/>
- <XActionItem HandlerClassName="%Redirect%" ICON="main.hibernate.any"
- PROPERTIES="sourcepath=Caches;actionpath=CreateActions/AddClassCache"
- WizardClassName="%Default%" displayName="Class Cache..."
- kind="action" name="AddClassCache"/>
- <XActionItem HandlerClassName="%Redirect%" ICON="main.hibernate.any"
- PROPERTIES="sourcepath=Caches;actionpath=CreateActions/AddCollectionCache"
- WizardClassName="%Default%" displayName="Collection Cache..."
- kind="action" name="AddCollectionCache"/>
- <XActionItem HandlerClassName="%Redirect%" ICON="main.hibernate.any"
- PROPERTIES="sourcepath=Events;actionpath=CreateActions/AddEvent"
- WizardClassName="%Default%" displayName="Event..." kind="action" name="AddEvent"/>
- <XActionItem HandlerClassName="%Redirect%" ICON="main.hibernate.any"
- PROPERTIES="sourcepath=Listeners;actionpath=CreateActions/AddListener"
- WizardClassName="%Default%" displayName="Listener..." kind="action" name="AddListener"/>
- </XActionItem>
- <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
- <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
- ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
- <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
- ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
- <XActionItem BaseActionName="Paste"
- HandlerClassName="%Hibernate3PasteUnique%" ICON="action.paste"
- displayName="Paste" kind="action" name="Paste"/>
- </XActionItem>
- <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
- <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
- ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
- </XActionItem>
- <XActionItem ICON="action.empty" kind="list" name="Properties">
- <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
- displayName="Properties..." kind="action" name="Properties"/>
- </XActionItem>
- <XActionItem displayName="move" kind="list" name="MoveActions">
- <XActionItem HIDE="always" HandlerClassName="%Move%"
- ICON="action.move" displayName="Move" kind="action" name="Move"/>
- </XActionItem>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XEntityExtension name="FileFolder">
- <XChildrenEntities>
- <XChildEntity name="FileHibConfig3"/>
- <XChildEntity name="FileHibReverse3"/>
- </XChildrenEntities>
- <XActionItem kind="list">
- <XActionItem displayName="New" group="1" kind="list" name="CreateActions">
- <XActionItem displayName="File" group="1" kind="list" name="CreateFiles">
- <XActionItem kind="list" name="ORM">
- <XActionItem HIDE="always" HandlerClassName="%SpecialWizard%"
- ICON="main.hibernate.file"
- PROPERTIES="entity=FileHibConfig3;extensions=.xml.;validator.addfile=true;support=org.jboss.tools.common.model.files.handlers.CreateFileSupport;extension=xml"
- displayName="Hibernate Configuration 3.0..." kind="action" name="CreateFileHibConfig3">
- <EntityData EntityName="NewFileWizard">
- <AttributeData AttributeName="folder"/>
- <AttributeData AttributeName="separator" Mandatory="no"/>
- <AttributeData AttributeName="name"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%WizardInvoker%"
- ICON="main.hibernate.file"
- PROPERTIES="plugin=org.hibernate.eclipse.console;wizard=org.hibernate.eclipse.console.wizards.NewConfigurationWizard"
- displayName="Hibernate Configuration 3.0..." kind="action" name="CreateFileHibConfig3V"/>
- </XActionItem>
- </XActionItem>
- </XActionItem>
- </XActionItem>
- </XEntityExtension>
- <XEntityExtension name="FileSystemFolder">
- <XChildrenEntities>
- <XChildEntity name="FileHibConfig3"/>
- <XChildEntity name="FileHibReverse3"/>
- </XChildrenEntities>
- <XActionItem kind="list">
- <XActionItem displayName="New" group="1" kind="list" name="CreateActions">
- <XActionItem displayName="File" group="1" kind="list" name="CreateFiles">
- <XActionItem kind="list" name="ORM">
- <XActionItem HIDE="always" HandlerClassName="%SpecialWizard%"
- ICON="main.hibernate.file"
- PROPERTIES="entity=FileHibConfig3;extensions=.xml.;validator.addfile=true;support=org.jboss.tools.common.model.files.handlers.CreateFileSupport;extension=xml"
- displayName="Hibernate Configuration 3.0..." kind="action" name="CreateFileHibConfig3">
- <EntityData EntityName="NewFileWizard">
- <AttributeData AttributeName="folder"/>
- <AttributeData AttributeName="separator" Mandatory="no"/>
- <AttributeData AttributeName="name"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%WizardInvoker%"
- ICON="main.hibernate.file"
- PROPERTIES="plugin=org.hibernate.eclipse.console;wizard=org.hibernate.eclipse.console.wizards.NewConfigurationWizard"
- displayName="Hibernate Configuration 3.0..." kind="action" name="CreateFileHibConfig3V"/>
- </XActionItem>
- </XActionItem>
- </XActionItem>
- </XActionItem>
- </XEntityExtension>
- <XEntityExtension name="FileSystemJar">
- <XChildrenEntities>
- <XChildEntity name="FileHibConfig3"/>
- <XChildEntity name="FileHibReverse3"/>
- </XChildrenEntities>
- <XActionItem kind="list"/>
- </XEntityExtension>
- <XEntityExtension name="JarFolder">
- <XChildrenEntities>
- <XChildEntity name="FileHibConfig3"/>
- <XChildEntity name="FileHibReverse3"/>
- </XChildrenEntities>
- <XActionItem kind="list"/>
- </XEntityExtension>
-</XModelEntityGroup>
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE XModelEntityGroup PUBLIC "-//Red Hat, Inc.//DTD Meta 1.0//EN"
+ "meta.dtd">
+<XModelEntityGroup>
+ <VERSION DEPENDS="Model:1.0" MODULE="Hibernate" VERSION="1.0"/>
+ <MAPPINGS>
+ <MAPPING name="AttributeConstraints">
+ <PAIR name="IntEL" value="org.jboss.tools.hibernate.xml.model.constraint.IntELConstraint"/>
+ <PAIR name="ListEL" value="org.jboss.tools.hibernate.xml.model.constraint.ListELConstraint"/>
+ <PAIR name="ListIntEL" value="org.jboss.tools.hibernate.xml.model.constraint.ListIntELConstraint"/>
+ </MAPPING>
+ <MAPPING name="FilteredTrees">
+ <PAIR name="HibernateResourceTree" value="org.jboss.tools.hibernate.xml.model.HibernateResourceTree"/>
+ </MAPPING>
+ <MAPPING name="Implementations">
+ <PAIR name="ComplexProperty" value="org.jboss.tools.hibernate.xml.model.impl.HibConfigComplexPropertyImpl"/>
+ </MAPPING>
+ </MAPPINGS>
+ <ICONS>
+ <GROUP name="action"/>
+ <GROUP name="main"/>
+ </ICONS>
+ <GlobalActions kind="list"/>
+ <XModelEntity
+ AdoptManagerClass="org.jboss.tools.hibernate.xml.model.handlers.FolderOwnerAdopt"
+ ImplementationLoadingClass="org.jboss.tools.hibernate.xml.model.HibConfigLoader"
+ ImplementingClass="org.jboss.tools.hibernate.xml.model.impl.FileHibernateImpl"
+ ObjectEditorClass="org.jboss.tools.hibernate.ui.xml.editor.HibConfig3CompoundEditor"
+ PROPERTIES="loaderKind=file;formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData"
+ XMLSUBPATH="hibernate-configuration" name="FileHibConfig3">
+ <XChildrenEntities>
+ <XChildEntity maxCount="1" name="HibConfig3SessionFactory" required="yes"/>
+ <XChildEntity maxCount="1" name="HibConfig3Security" required="yes"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.file" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="hibernate-configuration"
+ loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general" name="name" xmlname="NAME"/>
+ <XModelAttribute default="xml" name="extension" xmlname="EXTENSION">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute loader="ElementType" name="_lateload" visibility="false">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute
+ default="-//Hibernate/Hibernate Configuration DTD 3.0//EN"
+ name="publicId" visibility="false"/>
+ <XModelAttribute
+ default="http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"
+ name="systemId" visibility="false"/>
+ <XModelAttribute default="no" name="isIncorrect" visibility="false">
+ <Constraint loader="List">
+ <value name="yes"/>
+ <value name="no"/>
+ </Constraint>
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute name="incorrectBody" visibility="false"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ <XModelAttribute name="encoding">
+ <Constraint loader="ListString">
+ <value name="ISO-8859-1"/>
+ <value name="UTF-8"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem HandlerClassName="%Open%" ICON="action.edit"
+ displayName="Open" kind="action" name="Open"/>
+ <XActionItem displayName="Open With" group="1" kind="list" name="OpenWith">
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithExternalHandler"
+ ICON="main.file.java_file" PROPERTIES="extension=tiles-definitions"
+ displayName="Open with External Program" kind="action" name="OpenWithSelected"/>
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithChoiceHandler"
+ ICON="main.file.java_file" displayName="Choose Program..."
+ kind="action" name="OpenWithChoice">
+ <EntityData EntityName="OpenWithHelper">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="default"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem kind="list" name="EditActions">
+ <XActionItem HandlerClassName="%RenameFile%" ICON="action.empty"
+ PROPERTIES="validator.edit=true" WizardClassName="%Default%"
+ displayName="Rename..." kind="action" name="Rename">
+ <EntityData EntityName="FileHibernate3">
+ <AttributeData AttributeName="name"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem kind="list" name="SaveActions">
+ <XActionItem HIDE="always" HandlerClassName="%SaveFile%"
+ ICON="action.save" displayName="Save" kind="action" name="Save"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Hibernate3Replace%"
+ ICON="main.hibernate.array"
+ PROPERTIES="validator.add=true;childEntity=HibConfig3SessionFactory"
+ WizardClassName="%Default%" displayName="Session Factory..."
+ kind="action" name="AddSessionFactory">
+ <EntityData EntityName="HibConfig3SessionFactory">
+ <AttributeData AttributeName="name"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Hibernate3Replace%"
+ ICON="main.hibernate.array"
+ PROPERTIES="validator.add=true;childEntity=HibConfig3Security"
+ WizardClassName="%Default%" displayName="Security..." kind="action" name="AddSecurity">
+ <EntityData EntityName="HibConfig3Security">
+ <AttributeData AttributeName="context"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ <XActionItem BaseActionName="Paste" HandlerClassName="%Paste%"
+ ICON="action.paste" displayName="Paste" kind="action" name="Paste"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%DeleteFile%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem kind="list" name="DiscardActions">
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.common.model.filesystems.impl.DiscardFileHandler"
+ ICON="action.delete"
+ PROPERTIES="significanceMessageClass=org.jboss.tools.common.model.filesystems.impl.DiscardFileSignificanceMessage"
+ displayName="Discard Changes" kind="action" name="Discard"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity name="FileHibConfig3_EditorActionList">
+ <XChildrenEntities/>
+ <XEntityRenderer/>
+ <XModelAttributes/>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="EditActions"/>
+ <XActionItem kind="list" name="SaveActions">
+ <XActionItem HIDE="always" HandlerClassName="%SaveFile%"
+ ICON="action.save" displayName="Save" kind="action" name="Save"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Hibernate3Replace%"
+ ICON="main.hibernate.array"
+ PROPERTIES="validator.add=true;childEntity=HibConfig3SessionFactory"
+ WizardClassName="%Default%" displayName="Session Factory..."
+ kind="action" name="AddSessionFactory">
+ <EntityData EntityName="HibConfig3SessionFactory">
+ <AttributeData AttributeName="name"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Hibernate3Replace%"
+ ICON="main.hibernate.array"
+ PROPERTIES="validator.add=true;childEntity=HibConfig3Security"
+ WizardClassName="%Default%" displayName="Security..." kind="action" name="AddSecurity">
+ <EntityData EntityName="HibConfig3Security">
+ <AttributeData AttributeName="context"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem kind="list" name="DiscardActions">
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.common.model.filesystems.impl.DiscardFileHandler"
+ ICON="action.delete"
+ PROPERTIES="significanceMessageClass=org.jboss.tools.common.model.filesystems.impl.DiscardFileSignificanceMessage"
+ displayName="Discard Changes" kind="action" name="Discard"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity
+ ImplementationLoadingClass="org.jboss.tools.common.model.loaders.impl.BodyLoader"
+ ImplementingClass="org.jboss.tools.common.model.filesystems.impl.FileXMLImpl"
+ ObjectEditorClass="org.hibernate.eclipse.mapper.editors.ReverseEngineeringEditor" name="FileHibReverse3">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.file" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="hibernate reverse engineering file"
+ loader="ElementType" name="element type" visibility="false">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute name="name" xmlname="NAME"/>
+ <XModelAttribute TRIM="no" name="body" visibility="false"/>
+ <XModelAttribute default="no" name="isIncorrect" visibility="false">
+ <Constraint loader="List">
+ <value name="yes"/>
+ <value name="no"/>
+ </Constraint>
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute default="xml" name="extension" xmlname="EXTENSION">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute loader="ElementType" name="_lateload" visibility="false">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem HandlerClassName="%Open%" ICON="main.file.java_file"
+ displayName="Open" kind="action" name="Open"/>
+ <XActionItem displayName="Open With" group="1" kind="list" name="OpenWith">
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithExternalHandler"
+ ICON="main.file.java_file" PROPERTIES="extension=struts-config"
+ displayName="Open with External Program" kind="action" name="OpenWithSelected"/>
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.OpenWithChoiceHandler"
+ ICON="main.file.java_file" displayName="Choose Program..."
+ kind="action" name="OpenWithChoice">
+ <EntityData EntityName="OpenWithHelper">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="default"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem kind="list" name="SaveActions">
+ <XActionItem HIDE="disabled" HandlerClassName="%SaveFile%"
+ ICON="action.save" displayName="Save" kind="action" name="Save"/>
+ </XActionItem>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%DeleteFile%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%Hibernate3OrderedFolder%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData" name="HibConfig3CachesFolder">
+ <XChildrenEntities>
+ <XChildEntity name="HibConfig3ClassCache"/>
+ <XChildEntity name="HibConfig3CollectionCache"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.folder" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="properties" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute default="Caches" name="name" visibility="false" xmlname="NAME">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Class Cache..." kind="action" name="AddClassCache">
+ <EntityData EntityName="HibConfig3ClassCache">
+ <AttributeData AttributeName="class"/>
+ <AttributeData AttributeName="usage"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Collection Cache..." kind="action" name="AddCollectionCache">
+ <EntityData EntityName="HibConfig3CollectionCache">
+ <AttributeData AttributeName="collection"/>
+ <AttributeData AttributeName="usage"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HIDE="always"
+ HandlerClassName="org.jboss.tools.common.meta.action.impl.handlers.ShowMenuHandler"
+ PROPERTIES="actionList=CreateActions" displayName="Cache..."
+ kind="action" name="AddCache"/>
+ </XActionItem>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem HandlerClassName="%Paste%" ICON="action.paste"
+ displayName="Paste" kind="action" name="Paste"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity
+ ImplementingClass="org.jboss.tools.hibernate.xml.model.impl.HibConfigCacheImpl"
+ XMLSUBPATH="class-cache" name="HibConfig3ClassCache">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.any" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="class-cache" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="save=always;id=true;category=general"
+ name="class" xmlname="class">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute name="region" xmlname="region"/>
+ <XModelAttribute PROPERTIES="save=always" default="read-only"
+ name="usage" xmlname="usage">
+ <Constraint loader="List">
+ <value name="read-only"/>
+ <value name="read-write"/>
+ <value name="nonstrict-read-write"/>
+ <value name="transactional"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute name="include" xmlname="include">
+ <Constraint loader="List">
+ <value/>
+ <value name="all"/>
+ <value name="non-lazy"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute name="item" visibility="false">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions">
+ <XActionItem HIDE="always" HandlerClassName="%Move%"
+ ICON="action.move" displayName="Move" kind="action" name="Move"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity
+ ImplementingClass="org.jboss.tools.hibernate.xml.model.impl.HibConfigCacheImpl"
+ XMLSUBPATH="collection-cache" name="HibConfig3CollectionCache">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.any" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="collection-cache" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="save=always;id=true;category=general"
+ name="collection" xmlname="collection"/>
+ <XModelAttribute name="region" xmlname="region"/>
+ <XModelAttribute PROPERTIES="save=always" default="read-only"
+ name="usage" xmlname="usage">
+ <Constraint loader="List">
+ <value name="read-only"/>
+ <value name="read-write"/>
+ <value name="nonstrict-read-write"/>
+ <value name="transactional"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute name="item" visibility="false">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions">
+ <XActionItem HIDE="always" HandlerClassName="%Move%"
+ ICON="action.move" displayName="Move" kind="action" name="Move"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%Regular2%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData"
+ XMLSUBPATH="event" name="HibConfig3Event">
+ <XChildrenEntities>
+ <XChildEntity name="HibConfig3Listener"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.any" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="event" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="save=always;id=true;category=general"
+ default="auto-flush" name="type" xmlname="type">
+ <Constraint loader="List">
+ <value name="auto-flush"/>
+ <value name="merge"/>
+ <value name="create"/>
+ <value name="create-onflush"/>
+ <value name="delete"/>
+ <value name="dirty-check"/>
+ <value name="evict"/>
+ <value name="flush"/>
+ <value name="flush-entity"/>
+ <value name="load"/>
+ <value name="load-collection"/>
+ <value name="lock"/>
+ <value name="refresh"/>
+ <value name="replicate"/>
+ <value name="save-update"/>
+ <value name="save"/>
+ <value name="update"/>
+ <value name="pre-load"/>
+ <value name="pre-update"/>
+ <value name="pre-insert"/>
+ <value name="pre-delete"/>
+ <value name="pre-collection-recreate"/>
+ <value name="pre-collection-remove"/>
+ <value name="pre-collection-update"/>
+ <value name="post-load"/>
+ <value name="post-update"/>
+ <value name="post-insert"/>
+ <value name="post-delete"/>
+ <value name="post-collection-recreate"/>
+ <value name="post-collection-remove"/>
+ <value name="post-collection-update"/>
+ <value name="post-commit-update"/>
+ <value name="post-commit-insert"/>
+ <value name="post-commit-delete"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Listener..." kind="action" name="AddListener">
+ <EntityData EntityName="HibConfig3Listener">
+ <AttributeData AttributeName="class"/>
+ <AttributeData AttributeName="type" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions">
+ <XActionItem HIDE="always" HandlerClassName="%Move%"
+ ICON="action.move" displayName="Move" kind="action" name="Move"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%Hibernate3OrderedFolder%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData" name="HibConfig3EventsFolder">
+ <XChildrenEntities>
+ <XChildEntity name="HibConfig3Event"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.folder" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="events" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute default="Events" name="name" visibility="false" xmlname="NAME">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Event..." kind="action" name="AddEvent">
+ <EntityData EntityName="HibConfig3Event">
+ <AttributeData AttributeName="type"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem HandlerClassName="%Paste%" ICON="action.paste"
+ displayName="Paste" kind="action" name="Paste"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%Regular2%" XMLSUBPATH="grant" name="HibConfig3Grant">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.any" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="grant" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="save=always;id=true;category=general"
+ name="role" xmlname="role"/>
+ <XModelAttribute PROPERTIES="save=always;category=general"
+ name="entity-name" xmlname="entity-name">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="save=always;category=general;separator=comma;greedy=always"
+ name="actions" xmlname="actions">
+ <Constraint loader="org.jboss.tools.hibernate.xml.model.GrantActionsConstraint">
+ <value name="*"/>
+ <value name="read"/>
+ <value name="insert"/>
+ <value name="update"/>
+ <value name="delete"/>
+ </Constraint>
+ <Editor name="ListAdd"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions">
+ <XActionItem HIDE="always" HandlerClassName="%Move%"
+ ICON="action.move" displayName="Move" kind="action" name="Move"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity
+ ImplementingClass="org.jboss.tools.hibernate.xml.model.impl.HibConfigListenerImpl"
+ XMLSUBPATH="listener" name="HibConfig3Listener">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.any" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="listener" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=general" name="type" xmlname="type">
+ <Constraint loader="List">
+ <value name="auto-flush"/>
+ <value name="merge"/>
+ <value name="create"/>
+ <value name="create-onflush"/>
+ <value name="delete"/>
+ <value name="dirty-check"/>
+ <value name="evict"/>
+ <value name="flush"/>
+ <value name="flush-entity"/>
+ <value name="load"/>
+ <value name="load-collection"/>
+ <value name="lock"/>
+ <value name="refresh"/>
+ <value name="replicate"/>
+ <value name="save-update"/>
+ <value name="save"/>
+ <value name="update"/>
+ <value name="pre-load"/>
+ <value name="pre-update"/>
+ <value name="pre-insert"/>
+ <value name="pre-delete"/>
+ <value name="pre-collection-recreate"/>
+ <value name="pre-collection-remove"/>
+ <value name="pre-collection-update"/>
+ <value name="post-commit-update"/>
+ <value name="post-commit-insert"/>
+ <value name="post-commit-delete"/>
+ <value name="post-load"/>
+ <value name="post-update"/>
+ <value name="post-insert"/>
+ <value name="post-delete"/>
+ <value name="post-collection-recreate"/>
+ <value name="post-collection-remove"/>
+ <value name="post-collection-update"/>
+ <value/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="save=always;id=true;category=general"
+ name="class" xmlname="class">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions">
+ <XActionItem HIDE="always" HandlerClassName="%Move%"
+ ICON="action.move" displayName="Move" kind="action" name="Move"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%Hibernate3OrderedFolder%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData" name="HibConfig3ListenersFolder">
+ <XChildrenEntities>
+ <XChildEntity name="HibConfig3Listener"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.folder" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="listeners" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute default="Listeners" name="name" visibility="false" xmlname="NAME">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Listener..." kind="action" name="AddListener">
+ <EntityData EntityName="HibConfig3Listener">
+ <AttributeData AttributeName="class"/>
+ <AttributeData AttributeName="type" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem HandlerClassName="%Paste%" ICON="action.paste"
+ displayName="Paste" kind="action" name="Paste"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity
+ ImplementingClass="org.jboss.tools.hibernate.xml.model.impl.HibConfigMappingImpl"
+ XMLSUBPATH="mapping" name="HibConfig3Mapping">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.any" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="mapping" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced" name="resource" xmlname="resource">
+ <Constraint loader="Tree">
+ <value name="HibernateResourceTree"/>
+ <value name="linkAction=OpenMapping"/>
+ </Constraint>
+ <Editor name="TreeChooser"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="category=advanced" name="file" xmlname="file"/>
+ <XModelAttribute PROPERTIES="category=advanced" name="jar" xmlname="jar"/>
+ <XModelAttribute PROPERTIES="category=general" name="package" xmlname="package"/>
+ <XModelAttribute PROPERTIES="category=general" name="class" xmlname="class">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute COPYABLE="no" PROPERTIES="id=true" name="item" visibility="false">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem
+ HandlerClassName="org.jboss.tools.hibernate.xml.model.handlers.OpenResourceHandler"
+ ICON="action.empty" PROPERTIES="actionpath=Open;attribute=resource"
+ displayName="Open Mapping" kind="action" name="OpenMapping"/>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions">
+ <XActionItem HIDE="always" HandlerClassName="%Move%"
+ ICON="action.move" displayName="Move" kind="action" name="Move"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%Hibernate3OrderedFolder%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData" name="HibConfig3MappingsFolder">
+ <XChildrenEntities>
+ <XChildEntity name="HibConfig3Mapping"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.folder" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="properties" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute default="Mappings" name="name" visibility="false" xmlname="NAME">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Mapping..." kind="action" name="AddMapping">
+ <EntityData EntityName="HibConfig3Mapping">
+ <AttributeData AttributeName="class" Mandatory="no"/>
+ <AttributeData AttributeName="package" Mandatory="no"/>
+ <AttributeData AttributeName="file" Mandatory="no"/>
+ <AttributeData AttributeName="jar" Mandatory="no"/>
+ <AttributeData AttributeName="resource" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem HandlerClassName="%Paste%" ICON="action.paste"
+ displayName="Paste" kind="action" name="Paste"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectBytecode">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.folder" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="Bytecode" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="Bytecode" name="name" visibility="false" xmlname="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.bytecode.provider" name="provider"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.bytecode.use_reflection_optimizer" name="use reflection optimizer">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectC3P0">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.folder" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="C3P0" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general" default="C3P0"
+ name="name" visibility="false" xmlname="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.c3p0.acquire_increment" name="acquire increment">
+ <Constraint loader="%IntEL%">
+ <value name="mandatory=false"/>
+ </Constraint>
+ <Editor name="Int"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.c3p0.idle_test_period" name="idle test period">
+ <Constraint loader="%IntEL%">
+ <value name="mandatory=false"/>
+ </Constraint>
+ <Editor name="Int"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.c3p0.max_size" name="max size">
+ <Constraint loader="%IntEL%">
+ <value name="mandatory=false"/>
+ </Constraint>
+ <Editor name="Int"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.c3p0.max_statements" name="max statements">
+ <Constraint loader="%IntEL%">
+ <value name="mandatory=false"/>
+ </Constraint>
+ <Editor name="Int"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.c3p0.min_size" name="min size">
+ <Constraint loader="%IntEL%">
+ <value name="mandatory=false"/>
+ </Constraint>
+ <Editor name="Int"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.c3p0.timeout" name="timeout">
+ <Constraint loader="%IntEL%">
+ <value name="mandatory=false"/>
+ </Constraint>
+ <Editor name="Int"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectCache">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.folder" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="Cache" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="Cache" name="name" visibility="false" xmlname="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.cache.jndi" name="jndi"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.cache.provider_class" name="provider class">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.cache.provider_configuration_file_resource_path" name="provider configuration file"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.cache.query_cache_factory" name="query cache factory">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.cache.region_prefix" name="region prefix"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.cache.use_minimal_puts" name="use minimal puts">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.cache.use_query_cache" name="use query cache">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.cache.use_second_level_cache" name="use second level cache">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.cache.use_structured_entries" name="use structured entries">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%ComplexProperty%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData" name="HibConfig3ObjectConnection">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.folder" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="Connection" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="Connection" name="name" visibility="false" xmlname="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.connection.driver_class" name="driver class">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.connection.url" name="url"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.connection.username" name="username"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.connection.password" name="password"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.connection.pool_size" name="pool size">
+ <Constraint loader="%IntEL%">
+ <value name="mandatory=false"/>
+ </Constraint>
+ <Editor name="Int"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=advanced;h_property=hibernate.connection" name="connection"/>
+ <XModelAttribute
+ PROPERTIES="category=advanced;h_property=hibernate.connection.autocommit" name="autocommit">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=advanced;h_property=hibernate.connection.datasource" name="datasource"/>
+ <XModelAttribute
+ PROPERTIES="category=advanced;h_property=hibernate.connection.isolation" name="isolation"/>
+ <XModelAttribute
+ PROPERTIES="category=advanced;h_property=hibernate.connection.provider_class" name="provider class">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=advanced;h_property=hibernate.connection.release_mode" name="release mode">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="on_close"/>
+ <value name="after_transaction"/>
+ <value name="after_statement"/>
+ <value name="auto"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectHibernate">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.folder" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="Hibernate" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="Hibernate" name="name" visibility="false" xmlname="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.dialect" name="dialect">
+ <Constraint loader="ListString">
+ <value name="org.hibernate.dialect.DB2Dialect"/>
+ <value name="org.hibernate.dialect.DB2400Dialect"/>
+ <value name="org.hibernate.dialect.DB2390Dialect"/>
+ <value name="org.hibernate.dialect.PostgreSQLDialect"/>
+ <value name="org.hibernate.dialect.MySQLDialect"/>
+ <value name="org.hibernate.dialect.MySQLInnoDBDialect"/>
+ <value name="org.hibernate.dialect.MySQLMyISAMDialect"/>
+ <value name="org.hibernate.dialect.OracleDialect"/>
+ <value name="org.hibernate.dialect.Oracle9iDialect"/>
+ <value name="org.hibernate.dialect.Oracle10gDialect"/>
+ <value name="org.hibernate.dialect.SybaseDialect"/>
+ <value name="org.hibernate.dialect.SybaseAnywhereDialect"/>
+ <value name="org.hibernate.dialect.SQLServerDialect"/>
+ <value name="org.hibernate.dialect.SAPDBDialect"/>
+ <value name="org.hibernate.dialect.InformixDialect"/>
+ <value name="org.hibernate.dialect.HSQLDialect"/>
+ <value name="org.hibernate.dialect.IngresDialect"/>
+ <value name="org.hibernate.dialect.ProgressDialect"/>
+ <value name="org.hibernate.dialect.MckoiDialect"/>
+ <value name="org.hibernate.dialect.InterbaseDialect"/>
+ <value name="org.hibernate.dialect.PointbaseDialect"/>
+ <value name="org.hibernate.dialect.FrontbaseDialect"/>
+ <value name="org.hibernate.dialect.FirebirdDialect"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.show_sql" name="show sql">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.use_sql_comments" name="use sql comments">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.format_sql" name="format sql">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.default_batch_fetch_size" name="default batch fetch size">
+ <Constraint loader="%IntEL%">
+ <value name="mandatory=false"/>
+ </Constraint>
+ <Editor name="Int"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.default_catalog" name="default catalog"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.default_entity_mode" name="default entity mode">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="dynamic-map"/>
+ <value name="dom4j"/>
+ <value name="pojo"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.default_schema" name="default schema"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.current_session_context_class" name="current session context class"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.generate_statistics" name="generate statistics">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.hbm2ddl.auto" name="hbm2ddl auto">
+ <Constraint loader="ListString">
+ <value/>
+ <value name="validate"/>
+ <value name="update"/>
+ <value name="create"/>
+ <value name="create-drop"/>
+ </Constraint>
+ <Editor name="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.jacc_context_id" name="jacc context id"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.max_fetch_depth" name="max fetch depth">
+ <Constraint loader="%IntEL%">
+ <value name="mandatory=false"/>
+ </Constraint>
+ <Editor name="Int"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.order_inserts" name="order inserts">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.order_updates" name="order updates">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.session_factory_name" name="session factory name"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.use_identifier_rollback" name="use identifier rollback">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectJDBC">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.folder" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="JDBC" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general" default="JDBC"
+ name="name" visibility="false" xmlname="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.jdbc.batch_size" name="batch size">
+ <Constraint loader="%IntEL%">
+ <value name="mandatory=false"/>
+ </Constraint>
+ <Editor name="Int"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.jdbc.batch_versioned_data" name="batch versioned data"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.jdbc.factory_class" name="factory class"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.jdbc.fetch_size" name="fetch size">
+ <Constraint loader="%IntEL%">
+ <value name="mandatory=false"/>
+ </Constraint>
+ <Editor name="Int"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.jdbc.sql_exception_converter" name="sql exception converter"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.jdbc.use_get_generated_keys" name="use get generated keys">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.jdbc.use_scrollable_resultset" name="use scrollable resultset">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.jdbc.use_streams_for_binary" name="use streams for binary">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.jdbc.wrap_result_sets" name="wrap result sets">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectJNDI">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.folder" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="JNDI" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general" default="JNDI"
+ name="name" visibility="false" xmlname="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.jndi" name="jndi"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.jndi.class" name="class">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.jndi.url" name="url"/>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectProxool">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.folder" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="Proxool" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="Proxool" name="name" visibility="false" xmlname="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.proxool" name="proxool"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.proxool.existing_pool" name="existing pool"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.proxool.pool_alias" name="pool alias"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.proxool.properties" name="properties"/>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.proxool.xml" name="xml"/>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectQuery">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.folder" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="Query" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="Query" name="name" visibility="false" xmlname="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.query.factory_class" name="factory class">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.query.jpaql_strict_compliance" name="jpaql strict compliance">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.query.startup_check" name="startup check">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.query.substitutions" name="substitutions"/>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%ComplexProperty%" name="HibConfig3ObjectTransaction">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.folder" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="Transaction" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="Transaction" name="name" visibility="false" xmlname="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.transaction.auto_close_session" name="auto close session">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.transaction.factory_class" name="factory class">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.transaction.flush_before_completion" name="flush before completion">
+ <Constraint loader="%ListEL%">
+ <value/>
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="List"/>
+ </XModelAttribute>
+ <XModelAttribute
+ PROPERTIES="category=general;h_property=hibernate.transaction.manager_lookup_class" name="manager lookup class">
+ <Editor name="AccessibleJava"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions"/>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions"/>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%Hibernate3OrderedFolder%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData" name="HibConfig3PropertiesFolder">
+ <XChildrenEntities>
+ <XChildEntity maxCount="1" name="HibConfig3ObjectConnection" required="yes"/>
+ <XChildEntity maxCount="1" name="HibConfig3ObjectHibernate" required="yes"/>
+ <XChildEntity maxCount="1" name="HibConfig3ObjectBytecode" required="yes"/>
+ <XChildEntity maxCount="1" name="HibConfig3ObjectC3P0" required="yes"/>
+ <XChildEntity maxCount="1" name="HibConfig3ObjectCache" required="yes"/>
+ <XChildEntity maxCount="1" name="HibConfig3ObjectJDBC" required="yes"/>
+ <XChildEntity maxCount="1" name="HibConfig3ObjectJNDI" required="yes"/>
+ <XChildEntity maxCount="1" name="HibConfig3ObjectProxool" required="yes"/>
+ <XChildEntity maxCount="1" name="HibConfig3ObjectQuery" required="yes"/>
+ <XChildEntity maxCount="1" name="HibConfig3ObjectTransaction" required="yes"/>
+ <XChildEntity name="HibConfig3Property"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.folder" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="properties" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute default="Properties" name="name" visibility="false" xmlname="NAME">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%SpecialWizard%"
+ PROPERTIES="validator.add=true;support=org.jboss.tools.hibernate.xml.model.handlers.AddPropertySupport"
+ displayName="Property..." kind="action" name="AddProperty">
+ <EntityData EntityName="HibConfig3Property">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="value" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem HandlerClassName="%Paste%" ICON="action.paste"
+ displayName="Paste" kind="action" name="Paste"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity
+ ImplementingClass="org.jboss.tools.hibernate.xml.model.impl.HibConfigSimplePropertyImpl"
+ XMLSUBPATH="property" name="HibConfig3Property">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.any" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="property" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="save=always;id=true;category=general"
+ name="name" xmlname="name">
+ <Constraint loader="ListString"/>
+ </XModelAttribute>
+ <XModelAttribute name="value" xmlname="#text"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete"
+ HandlerClassName="org.jboss.tools.hibernate.xml.model.handlers.DeletePropertyHandler"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions">
+ <XActionItem HIDE="always" HandlerClassName="%Move%"
+ ICON="action.move" displayName="Move" kind="action" name="Move"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%Regular2%" XMLSUBPATH="security" name="HibConfig3Security">
+ <XChildrenEntities>
+ <XChildEntity name="HibConfig3Grant"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.any" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="security" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="save=always;category=general"
+ name="context" xmlname="context"/>
+ <XModelAttribute PROPERTIES="id=true" default="Security" name="name" visibility="false"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="main.hibernate.array"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Grant..." kind="action" name="AddGrant">
+ <EntityData EntityName="HibConfig3Grant">
+ <AttributeData AttributeName="role"/>
+ <AttributeData AttributeName="entity-name"/>
+ <AttributeData AttributeName="actions"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ <XActionItem BaseActionName="Paste" HandlerClassName="%Paste%"
+ ICON="action.paste" displayName="Paste" kind="action" name="Paste"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XModelEntity ImplementingClass="%Ordered2%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.hibernate.ui.xml.form.Hibernate3FormLayoutData"
+ XMLSUBPATH="session-factory" name="HibConfig3SessionFactory">
+ <XChildrenEntities>
+ <XChildEntity maxCount="1" name="HibConfig3PropertiesFolder" required="yes"/>
+ <XChildEntity maxCount="1" name="HibConfig3MappingsFolder" required="yes"/>
+ <XChildEntity maxCount="1" name="HibConfig3CachesFolder" required="yes"/>
+ <XChildEntity maxCount="1" name="HibConfig3EventsFolder" required="yes"/>
+ <XChildEntity maxCount="1" name="HibConfig3ListenersFolder" required="yes"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.hibernate.any" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="session-factory" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="save=always;category=general"
+ name="name" xmlname="name"/>
+ <XModelAttribute PROPERTIES="id=true" default="Session Factory"
+ name="path" visibility="false"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Redirect%" ICON="main.hibernate.any"
+ PROPERTIES="sourcepath=Properties;actionpath=CreateActions/AddProperty"
+ WizardClassName="%Default%" displayName="Property..." kind="action" name="AddProperty"/>
+ <XActionItem HandlerClassName="%Redirect%" ICON="main.hibernate.any"
+ PROPERTIES="sourcepath=Mappings;actionpath=CreateActions/AddMapping"
+ WizardClassName="%Default%" displayName="Mapping..." kind="action" name="AddMapping"/>
+ <XActionItem HandlerClassName="%Redirect%" ICON="main.hibernate.any"
+ PROPERTIES="sourcepath=Caches;actionpath=CreateActions/AddClassCache"
+ WizardClassName="%Default%" displayName="Class Cache..."
+ kind="action" name="AddClassCache"/>
+ <XActionItem HandlerClassName="%Redirect%" ICON="main.hibernate.any"
+ PROPERTIES="sourcepath=Caches;actionpath=CreateActions/AddCollectionCache"
+ WizardClassName="%Default%" displayName="Collection Cache..."
+ kind="action" name="AddCollectionCache"/>
+ <XActionItem HandlerClassName="%Redirect%" ICON="main.hibernate.any"
+ PROPERTIES="sourcepath=Events;actionpath=CreateActions/AddEvent"
+ WizardClassName="%Default%" displayName="Event..." kind="action" name="AddEvent"/>
+ <XActionItem HandlerClassName="%Redirect%" ICON="main.hibernate.any"
+ PROPERTIES="sourcepath=Listeners;actionpath=CreateActions/AddListener"
+ WizardClassName="%Default%" displayName="Listener..." kind="action" name="AddListener"/>
+ </XActionItem>
+ <XActionItem ICON="action.copy" displayName="Copy" kind="list" name="CopyActions">
+ <XActionItem BaseActionName="Cut" HandlerClassName="%Cut%"
+ ICON="action.cut" displayName="Cut" kind="action" name="Cut"/>
+ <XActionItem BaseActionName="Copy" HandlerClassName="%Copy%"
+ ICON="action.copy" displayName="Copy" kind="action" name="Copy"/>
+ <XActionItem BaseActionName="Paste"
+ HandlerClassName="%Hibernate3PasteUnique%" ICON="action.paste"
+ displayName="Paste" kind="action" name="Paste"/>
+ </XActionItem>
+ <XActionItem ICON="action.delete" displayName="Delete" kind="list" name="DeleteActions">
+ <XActionItem BaseActionName="Delete" HandlerClassName="%Delete%"
+ ICON="action.delete" displayName="Delete" kind="action" name="Delete"/>
+ </XActionItem>
+ <XActionItem ICON="action.empty" kind="list" name="Properties">
+ <XActionItem HandlerClassName="%Properties%" ICON="action.empty"
+ displayName="Properties..." kind="action" name="Properties"/>
+ </XActionItem>
+ <XActionItem displayName="move" kind="list" name="MoveActions">
+ <XActionItem HIDE="always" HandlerClassName="%Move%"
+ ICON="action.move" displayName="Move" kind="action" name="Move"/>
+ </XActionItem>
+ </XActionItem>
+ <XDependencies/>
+ </XModelEntity>
+ <XEntityExtension name="FileFolder">
+ <XChildrenEntities>
+ <XChildEntity name="FileHibConfig3"/>
+ <XChildEntity name="FileHibReverse3"/>
+ </XChildrenEntities>
+ <XActionItem kind="list">
+ <XActionItem displayName="New" group="1" kind="list" name="CreateActions">
+ <XActionItem displayName="File" group="1" kind="list" name="CreateFiles">
+ <XActionItem kind="list" name="ORM">
+ <XActionItem HIDE="always" HandlerClassName="%SpecialWizard%"
+ ICON="main.hibernate.file"
+ PROPERTIES="entity=FileHibConfig3;extensions=.xml.;validator.addfile=true;support=org.jboss.tools.common.model.files.handlers.CreateFileSupport;extension=xml"
+ displayName="Hibernate Configuration 3.0..." kind="action" name="CreateFileHibConfig3">
+ <EntityData EntityName="NewFileWizard">
+ <AttributeData AttributeName="folder"/>
+ <AttributeData AttributeName="separator" Mandatory="no"/>
+ <AttributeData AttributeName="name"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%WizardInvoker%"
+ ICON="main.hibernate.file"
+ PROPERTIES="plugin=org.hibernate.eclipse.console;wizard=org.hibernate.eclipse.console.wizards.NewConfigurationWizard"
+ displayName="Hibernate Configuration 3.0..." kind="action" name="CreateFileHibConfig3V"/>
+ </XActionItem>
+ </XActionItem>
+ </XActionItem>
+ </XActionItem>
+ </XEntityExtension>
+ <XEntityExtension name="FileSystemFolder">
+ <XChildrenEntities>
+ <XChildEntity name="FileHibConfig3"/>
+ <XChildEntity name="FileHibReverse3"/>
+ </XChildrenEntities>
+ <XActionItem kind="list">
+ <XActionItem displayName="New" group="1" kind="list" name="CreateActions">
+ <XActionItem displayName="File" group="1" kind="list" name="CreateFiles">
+ <XActionItem kind="list" name="ORM">
+ <XActionItem HIDE="always" HandlerClassName="%SpecialWizard%"
+ ICON="main.hibernate.file"
+ PROPERTIES="entity=FileHibConfig3;extensions=.xml.;validator.addfile=true;support=org.jboss.tools.common.model.files.handlers.CreateFileSupport;extension=xml"
+ displayName="Hibernate Configuration 3.0..." kind="action" name="CreateFileHibConfig3">
+ <EntityData EntityName="NewFileWizard">
+ <AttributeData AttributeName="folder"/>
+ <AttributeData AttributeName="separator" Mandatory="no"/>
+ <AttributeData AttributeName="name"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%WizardInvoker%"
+ ICON="main.hibernate.file"
+ PROPERTIES="plugin=org.hibernate.eclipse.console;wizard=org.hibernate.eclipse.console.wizards.NewConfigurationWizard"
+ displayName="Hibernate Configuration 3.0..." kind="action" name="CreateFileHibConfig3V"/>
+ </XActionItem>
+ </XActionItem>
+ </XActionItem>
+ </XActionItem>
+ </XEntityExtension>
+ <XEntityExtension name="FileSystemJar">
+ <XChildrenEntities>
+ <XChildEntity name="FileHibConfig3"/>
+ <XChildEntity name="FileHibReverse3"/>
+ </XChildrenEntities>
+ <XActionItem kind="list"/>
+ </XEntityExtension>
+ <XEntityExtension name="JarFolder">
+ <XChildrenEntities>
+ <XChildEntity name="FileHibConfig3"/>
+ <XChildEntity name="FileHibReverse3"/>
+ </XChildrenEntities>
+ <XActionItem kind="list"/>
+ </XEntityExtension>
+</XModelEntityGroup>
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss/tools/hibernate/xml/model/HibernateResourceTree.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss/tools/hibernate/xml/model/HibernateResourceTree.java (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss/tools/hibernate/xml/model/HibernateResourceTree.java 2010-08-26 14:26:16 UTC (rev 24474)
@@ -0,0 +1,108 @@
+package org.jboss.tools.hibernate.xml.model;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.jboss.tools.common.model.XModel;
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.XModelObjectConstants;
+import org.jboss.tools.common.model.filesystems.FileSystemsHelper;
+import org.jboss.tools.common.model.filesystems.XFileObject;
+import org.jboss.tools.common.model.filesystems.impl.FileSystemsImpl;
+import org.jboss.tools.common.model.impl.trees.FileSystemResourceTree;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.common.model.util.XModelObjectLoaderUtil;
+
+public class HibernateResourceTree extends FileSystemResourceTree {
+
+ protected boolean accepts0(XModelObject o) {
+ int type = o.getFileType();
+ if(type == XModelObject.FOLDER) return !XModelObjectConstants.TRUE.equals(o.get("overlapped")); //$NON-NLS-1$
+ if(type != XModelObject.FILE) return false;
+ String pathpart = o.getPathPart();
+ String pp = pathpart;
+ pp = pp.toLowerCase();
+ return pp.endsWith(".hbm.xml");
+ }
+
+ public void setModel(XModel model) {
+ super.setModel(model);
+ if(EclipseResourceUtil.isProjectFragment(model)) {
+ FileSystemsImpl fs = (FileSystemsImpl)FileSystemsHelper.getFileSystems(model);
+ if(fs != null) fs.forceUpdate();
+ }
+ }
+
+ public XModelObject[] getChildren(XModelObject object) {
+ if(object == getRoot()) {
+ XModelObject[] os = object.getChildren();
+ List<XModelObject> list = new ArrayList<XModelObject>();
+ for (int i = 0; i < os.length; i++) {
+ String name = os[i].getAttributeValue(XModelObjectConstants.ATTR_NAME);
+ if(name.startsWith("src")) { //$NON-NLS-1$
+ list.add(os[i]);
+ }
+ }
+ for (int i = 0; i < os.length; i++) {
+ String name = os[i].getAttributeValue(XModelObjectConstants.ATTR_NAME);
+ if(name.startsWith("lib-")) { //$NON-NLS-1$
+ list.add(os[i]);
+ }
+ }
+ return list.toArray(new XModelObject[0]);
+ }
+
+ if(!hasChildren(object)) return new XModelObject[0];
+ List<XModelObject> l = new ArrayList<XModelObject>();
+ XModelObject[] cs = object.getChildren();
+ for (int i = 0; i < cs.length; i++) if(accept(cs[i])) l.add(cs[i]);
+ return l.toArray(new XModelObject[0]);
+ }
+
+ public XModelObject getParent(XModelObject object) {
+ return object.getParent();
+ }
+
+ private boolean accept(XModelObject c) {
+ if(c.getFileType() == XFileObject.FOLDER) {
+ String overlapped = c.get("overlapped"); //$NON-NLS-1$
+ if(overlapped != null && overlapped.length() > 0) {
+ String overlappedSystem = c.get("overlappedSystem"); //$NON-NLS-1$
+ if(!"FileSystems/WEB-INF".equals(overlappedSystem)) return false; //$NON-NLS-1$
+ }
+ } else if(c.getFileType() == XFileObject.FILE) {
+ String nm = c.getAttributeValue("name"); //$NON-NLS-1$
+ if(nm.length() == 0) return false;
+ if(!accepts0(c)) return false;
+ }
+ return true;
+ }
+
+ public boolean isSelectable(XModelObject object) {
+ return (object != null && (object.getFileType() == XFileObject.FILE || object.getFileType() == XFileObject.FOLDER));
+ }
+
+ public String getPath(XModelObject o) {
+ if(o == null || o.getFileType() == XModelObject.SYSTEM) return ""; //$NON-NLS-1$
+ String s = XModelObjectLoaderUtil.getResourcePath(o);
+ String p = o.getPath();
+ if(p == null) return ""; //$NON-NLS-1$
+ int b = "FileSystems/".length(), e = p.length() - s.length(); //$NON-NLS-1$
+ if(e < b) return ""; //$NON-NLS-1$
+ if(o.getFileType() == XFileObject.FOLDER) s += "/"; //$NON-NLS-1$
+ if(s.startsWith("/")) s = s.substring(1);
+ return s;
+ }
+
+ public XModelObject find(String value) {
+ if(value != null && value.endsWith("/")) {
+ value = value.substring(0, value.length() - 1);
+ }
+ XModelObject result = model.getByPath(value);
+ if(result == null && value != null && !value.startsWith("/")) { //$NON-NLS-1$
+ result = model.getByPath("/" + value); //$NON-NLS-1$
+ }
+ return result;
+ }
+
+}
Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss/tools/hibernate/xml/model/HibernateResourceTree.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss/tools/hibernate/xml/model/handlers/OpenResourceHandler.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss/tools/hibernate/xml/model/handlers/OpenResourceHandler.java (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss/tools/hibernate/xml/model/handlers/OpenResourceHandler.java 2010-08-26 14:26:16 UTC (rev 24474)
@@ -0,0 +1,73 @@
+package org.jboss.tools.hibernate.xml.model.handlers;
+
+import java.util.Properties;
+
+import org.eclipse.core.resources.IResource;
+import org.jboss.tools.common.meta.action.XActionInvoker;
+import org.jboss.tools.common.meta.action.impl.handlers.DefaultRedirectHandler;
+import org.jboss.tools.common.model.XModelException;
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.files.handlers.CreateFileSupport;
+import org.jboss.tools.common.model.filesystems.FileSystemsHelper;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
+
+public class OpenResourceHandler extends DefaultRedirectHandler {
+
+ public boolean isEnabled(XModelObject object) {
+ if(super.isEnabled(object)) return true;
+ return object != null && object.isObjectEditable();
+ }
+
+ protected XModelObject getTrueSource(XModelObject source) {
+ String attr = action.getProperty("attribute");
+ String path = source.getAttributeValue(attr);
+ if(path == null || path.length() == 0) return null;
+ XModelObject o = source.getModel().getByPath(path);
+ if(o != null) return o;
+ if(!path.startsWith("/")) {
+ o = source.getModel().getByPath("/" + path);
+ }
+ return o;
+ }
+
+ public void executeHandler(XModelObject object, Properties p) throws XModelException {
+ if(!isEnabled(object)) return;
+ if(super.isEnabled(object)) {
+ super.executeHandler(object, p);
+ } else {
+// XModelObject r = object.getModel().getByPath(FileSystemsHelper.FILE_SYSTEMS + "/src");
+//
+// IResource resource = r != null ? (IResource)r.getAdapter(IResource.class) : null;
+// if(resource == null) resource = EclipseResourceUtil.getProject(object);
+//
+// String attr = action.getProperty("attribute");
+// String path = object.getAttributeValue(attr);
+// if(path == null) return;
+// int s = path.lastIndexOf('/');
+// String folder = (s < 0) ? "" : path.substring(0, s);
+// if(folder.length() > 0 && !folder.startsWith("/")) folder = "/" + folder;
+// String fileName = (s < 0) ? path : path.substring(s + 1);
+// Properties p1 = new Properties();
+// p1.setProperty(CreateFileSupport.INITIAL_FOLDER_PROPERTY, resource.getFullPath() + folder);
+// p1.setProperty(CreateFileSupport.INITIAL_FILE_PROPERTY, fileName);
+// if(r == null) {
+// XModelObject fo = object.getParent();
+// while(fo != null && fo.getFileType() <= XModelObject.FILE) fo = fo.getParent();
+// r = fo;
+// }
+// XActionInvoker.invoke("CreateActions/CreateFiles/ORM/CreateFileHibernate3", r, p1);
+// XModelObject newFile = (XModelObject)p1.get("created");
+// if(newFile == null) return;
+// IResource newResource = (IResource)newFile.getAdapter(IResource.class);
+// if(newResource == null) return;
+// String path1 = resource.getFullPath().toString();
+// String path2 = newResource.getFullPath().toString();
+// if(path2.startsWith(path1)) {
+// String value = path2.substring(path1.length());
+// object.setAttributeValue(attr, value);
+// }
+//
+ }
+ }
+
+}
Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.xml/src/org/jboss/tools/hibernate/xml/model/handlers/OpenResourceHandler.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 4 months
JBoss Tools SVN: r24473 - in trunk/cdi: tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/annotations/qualifier and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2010-08-26 10:01:54 -0400 (Thu, 26 Aug 2010)
New Revision: 24473
Added:
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/annotations/qualifier/HairyTargetOk.java
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/messages.properties
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/QualifierWithMembersTest.java
trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/ValidationTest.java
Log:
https://jira.jboss.org/browse/JBIDE-6924 Fixed CDI validator for Qualifier
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/messages.properties
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/messages.properties 2010-08-26 13:43:12 UTC (rev 24472)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/messages.properties 2010-08-26 14:01:54 UTC (rev 24473)
@@ -23,7 +23,7 @@
MISSING_NONBINDING_FOR_ARRAY_VALUE_IN_QUALIFIER_TYPE_MEMBER=Array-valued member of a qualifier type must be annotated @Nonbinding [JSR-299 �5.2.5]
MISSING_NONBINDING_FOR_ANNOTATION_VALUE_IN_INTERCEPTOR_BINDING_TYPE_MEMBER=Annotation-valued member of an interceptor binding type must be annotated @Nonbinding [JSR-299 �9.5.2]
MISSING_NONBINDING_FOR_ARRAY_VALUE_IN_INTERCEPTOR_BINDING_TYPE_MEMBER=Array-valued member of an interceptor binding type must be annotated @Nonbinding [JSR-299 �9.5.2]
-MISSING_TARGET_ANNOTATION_IN_QUALIFIER_TYPE=Qualifier annotation type must be annotated with @Target('{'TYPE, METHOD, FIELD, PARAMETER'}') or @Target('{'METHOD, FIELD'}') [JSR-299 �2.3.2, �10.1]
+MISSING_TARGET_ANNOTATION_IN_QUALIFIER_TYPE=Qualifier annotation type must be annotated with @Target('{'TYPE, METHOD, FIELD, PARAMETER'}') or @Target('{'FIELD, PARAMETER'}') [JSR-299 �2.3.2, �10.1]
MISSING_RETENTION_ANNOTATION_IN_QUALIFIER_TYPE=Qualifier annotation type must be annotated with @Retention(RUNTIME) [JSR-299 �2.3.2]
MISSING_TARGET_ANNOTATION_IN_STEREOTYPE_TYPE=Stereotype annotation type must be annotated with one of @Target('{'TYPE, METHOD, FIELD'}'), @Target('{'METHOD, FIELD'}'), @Target('{'TYPE'}'), @Target('{'METHOD'}'), @Target('{'FIELD'}') [JSR-299 �2.7.1]
MISSING_RETENTION_ANNOTATION_IN_STEREOTYPE_TYPE=Stereotype annotation type must be annotated with @Retention(RUNTIME) [JSR-299 �2.7.1]
Added: trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/annotations/qualifier/HairyTargetOk.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/annotations/qualifier/HairyTargetOk.java (rev 0)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/annotations/qualifier/HairyTargetOk.java 2010-08-26 14:01:54 UTC (rev 24473)
@@ -0,0 +1,22 @@
+package org.jboss.jsr299.tck.tests.jbt.validation.annotations.qualifier.broken;
+
+import static java.lang.annotation.ElementType.FIELD;
+import static java.lang.annotation.ElementType.PARAMETER;
+import static java.lang.annotation.RetentionPolicy.RUNTIME;
+
+import java.lang.annotation.Documented;
+import java.lang.annotation.Inherited;
+import java.lang.annotation.Retention;
+import java.lang.annotation.Target;
+
+import javax.inject.Qualifier;
+
+@Target( { FIELD, PARAMETER })
+@Retention(RUNTIME)
+@Documented
+@Qualifier
+@Inherited
+@interface HairyTargetOk {
+
+ public boolean clipped();
+}
\ No newline at end of file
Property changes on: trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/annotations/qualifier/HairyTargetOk.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/QualifierWithMembersTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/QualifierWithMembersTest.java 2010-08-26 13:43:12 UTC (rev 24472)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/QualifierWithMembersTest.java 2010-08-26 14:01:54 UTC (rev 24473)
@@ -102,11 +102,11 @@
assertEquals("Wrong number of the beans", 0, beans.size());
}
+ // TODO This test fails because of https://jira.jboss.org/browse/JBIDE-6517
public void testQualifierCoincidingSimpleNameInInjectingBeanAndCoincidingSimpleNameInInjectedBeanResolved() throws CoreException {
IInjectionPointField injection = getInjectionPointField("JavaSource/org/jboss/jsr299/tck/tests/jbt/resolution/coincidence/ObtainsInstanceBean.java", "cashPaymentProcessor");
Set<IBean> beans = cdiProject.getBeans(true, injection);
assertEquals("Wrong number of the beans", 1, beans.size());
assertContainsBeanClass(beans, "org.jboss.jsr299.tck.tests.jbt.resolution.coincidence.FirstPaymentProcessor");
}
-
}
\ No newline at end of file
Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/ValidationTest.java
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/ValidationTest.java 2010-08-26 13:43:12 UTC (rev 24472)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/src/org/jboss/tools/cdi/core/test/tck/ValidationTest.java 2010-08-26 14:01:54 UTC (rev 24473)
@@ -1427,6 +1427,11 @@
assertMarkerIsCreated(file, CDIValidationMessages.MISSING_TARGET_ANNOTATION_IN_QUALIFIER_TYPE.substring(0, 56) + ".*", 32);
}
+ public void testQualifierWithTargetOk() throws Exception {
+ IFile file = tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/validation/annotations/qualifier/HairyTargetOk.java");
+ assertMarkerIsNotCreated(file, CDIValidationMessages.MISSING_TARGET_ANNOTATION_IN_QUALIFIER_TYPE.substring(0, 56) + ".*", 14);
+ }
+
public void testStereotypeWithMissingTarget() throws Exception {
IFile file = tckProject.getFile("JavaSource/org/jboss/jsr299/tck/tests/jbt/validation/annotations/stereotype/broken/FishStereotype_MissingTarget.java");
assertMarkerIsCreated(file, CDIValidationMessages.MISSING_TARGET_ANNOTATION_IN_STEREOTYPE_TYPE.substring(0, 56) + ".*", 19);
15 years, 4 months
JBoss Tools SVN: r24472 - in trunk/cdi: plugins/org.jboss.tools.cdi.core/META-INF and 5 other directories.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2010-08-26 09:43:12 -0400 (Thu, 26 Aug 2010)
New Revision: 24472
Added:
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/BeansXmlValidator.java
Modified:
trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MANIFEST.MF
trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.xml
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/preferences/CDIPreferences.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDIValidationMessages.java
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/errorList.txt
trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/messages.properties
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIConfigurationBlock.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIPreferencesMessages.java
trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIPreferencesMessages.properties
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/decorators/beans.xml
trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/disposers/beans.xml
Log:
https://jira.jboss.org/browse/JBIDE-6523 beans.xml validation
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MANIFEST.MF 2010-08-26 13:32:45 UTC (rev 24471)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/META-INF/MANIFEST.MF 2010-08-26 13:43:12 UTC (rev 24472)
@@ -19,7 +19,8 @@
org.jboss.tools.common.el.core,
org.eclipse.ltk.core.refactoring,
org.eclipse.jface.text,
- org.eclipse.equinox.preferences
+ org.eclipse.equinox.preferences,
+ org.eclipse.wst.sse.core
Bundle-ActivationPolicy: lazy
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-Vendor: JBoss by Red Hat
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.xml
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.xml 2010-08-26 13:32:45 UTC (rev 24471)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/plugin.xml 2010-08-26 13:43:12 UTC (rev 24472)
@@ -102,6 +102,10 @@
class="org.jboss.tools.cdi.internal.core.validation.CDICoreValidator"
id="org.jboss.tools.cdi.core.CoreValidator">
</validator>
+ <!--validator
+ class="org.jboss.tools.cdi.internal.core.validation.BeansXmlValidator"
+ id="org.jboss.tools.cdi.core.BeansXmlValidator">
+ </validator-->
</extension>
<!-- Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=315390 -->
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/preferences/CDIPreferences.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/preferences/CDIPreferences.java 2010-08-26 13:32:45 UTC (rev 24471)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/core/preferences/CDIPreferences.java 2010-08-26 13:43:12 UTC (rev 24472)
@@ -223,6 +223,15 @@
public static final String ILLEGAL_QUALIFIER_IN_STEREOTYPE = INSTANCE.createSeverityOption("illegalQualifierInStereotype"); //$NON-NLS-1$
// - bean class is deployed in two different bean archives (12.1 non-portable)
// ? is it a definition problem
+
+// - Each child <class> element must specify the name of an alternative/decorator/interceptor bean class/stereotype annotation. If there is no class with the specified
+// name, or if the class with the specified name is not alternative/decorator/interceptor bean class/stereotype annotation, the container automatically detects the problem
+// and treats it as a deployment problem.
+ public static final String ILLEGAL_TYPE_NAME_IN_BEANS_XML = INSTANCE.createSeverityOption("illegalTypeInBeansXml"); //$NON-NLS-1$
+// - If the same type is listed twice under the <alternatives>, <decorators> or <interceptors> element, the container automatically detects the problem and
+// treats it as a deployment problem.
+ public static final String DUPLICATE_TYPE_IN_BEANS_XML = INSTANCE.createSeverityOption("duplicateTypeInBeansXml"); //$NON-NLS-1$
+
/**
* @return the only instance of CDIPreferences
*/
@@ -263,6 +272,10 @@
return true;
}
+ public static boolean shouldValidateBeansXml(IProject project) {
+ return !(CDIPreferences.IGNORE.equals(INSTANCE.getProjectPreference(project, ILLEGAL_TYPE_NAME_IN_BEANS_XML)) && CDIPreferences.IGNORE.equals(INSTANCE.getProjectPreference(project, DUPLICATE_TYPE_IN_BEANS_XML)));
+ }
+
public static boolean isValidationEnabled(IProject project) {
return INSTANCE.isEnabled(project);
}
Added: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/BeansXmlValidator.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/BeansXmlValidator.java (rev 0)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/BeansXmlValidator.java 2010-08-26 13:43:12 UTC (rev 24472)
@@ -0,0 +1,204 @@
+/*******************************************************************************
+ * Copyright (c) 2010 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.cdi.internal.core.validation;
+
+import java.io.IOException;
+import java.util.Set;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IWorkspaceRoot;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.IType;
+import org.eclipse.wst.sse.core.StructuredModelManager;
+import org.eclipse.wst.sse.core.internal.provisional.IModelManager;
+import org.eclipse.wst.sse.core.internal.provisional.IStructuredModel;
+import org.eclipse.wst.sse.core.internal.provisional.IndexedRegion;
+import org.eclipse.wst.validation.internal.core.ValidationException;
+import org.eclipse.wst.validation.internal.provisional.core.IReporter;
+import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
+import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
+import org.jboss.tools.cdi.core.CDICorePlugin;
+import org.jboss.tools.cdi.core.preferences.CDIPreferences;
+import org.jboss.tools.common.EclipseUtil;
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.util.EclipseJavaUtil;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.jst.web.kb.internal.validation.ContextValidationHelper;
+import org.jboss.tools.jst.web.kb.internal.validation.ValidatorManager;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+
+/**
+ * @author Alexey Kazakov
+ */
+public class BeansXmlValidator extends CDICoreValidator {
+
+ public String ENT_CDI_BEANS = "FileCDIBeans"; //$NON-NLS-1$
+ public static final String ID = "org.jboss.tools.cdi.core.BeansXmlValidator"; //$NON-NLS-1$
+
+ private IJavaProject javaProject;
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.jboss.tools.jst.web.kb.validation.IValidator#getId()
+ */
+ public String getId() {
+ return ID;
+ }
+
+ @Override
+ public void init(IProject project, ContextValidationHelper validationHelper, org.eclipse.wst.validation.internal.provisional.core.IValidator manager,
+ IReporter reporter) {
+ super.init(project, validationHelper, manager, reporter);
+ javaProject = EclipseUtil.getJavaProject(project);
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.jboss.tools.cdi.internal.core.validation.CDICoreValidator#shouldValidate(org.eclipse.core.resources.IProject)
+ */
+ @Override
+ public boolean shouldValidate(IProject project) {
+ return super.shouldValidate(project) && CDIPreferences.shouldValidateBeansXml(project);
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.jboss.tools.jst.web.kb.validation.IValidator#validate(java.util.Set,
+ * org.eclipse.core.resources.IProject,
+ * org.jboss.tools.jst.web.kb.internal.validation.ContextValidationHelper,
+ * org.jboss.tools.jst.web.kb.internal.validation.ValidatorManager,
+ * org.eclipse.wst.validation.internal.provisional.core.IReporter)
+ */
+ public IStatus validate(Set<IFile> changedFiles, IProject project, ContextValidationHelper validationHelper, ValidatorManager manager, IReporter reporter)
+ throws ValidationException {
+ init(project, validationHelper, manager, reporter);
+ displaySubtask(CDIValidationMessages.SEARCHING_RESOURCES);
+
+ if (cdiProject == null) {
+ return OK_STATUS;
+ }
+ IWorkspaceRoot root = ResourcesPlugin.getWorkspace().getRoot();
+ for (IFile currentFile : changedFiles) {
+ if (reporter.isCancelled()) {
+ break;
+ }
+ // Check if it's a beans.xml
+ XModelObject xmo = EclipseResourceUtil.createObjectForResource(currentFile);
+ if(xmo != null && xmo.getModelEntity().getName().startsWith(ENT_CDI_BEANS)) {
+ validateBeansXml(currentFile);
+ }
+ }
+
+ return OK_STATUS;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see
+ * org.jboss.tools.jst.web.kb.validation.IValidator#validateAll(org.eclipse
+ * .core.resources.IProject,
+ * org.jboss.tools.jst.web.kb.internal.validation.ContextValidationHelper,
+ * org.jboss.tools.jst.web.kb.internal.validation.ValidatorManager,
+ * org.eclipse.wst.validation.internal.provisional.core.IReporter)
+ */
+ public IStatus validateAll(IProject project, ContextValidationHelper validationHelper, ValidatorManager manager, IReporter reporter)
+ throws ValidationException {
+ init(project, validationHelper, manager, reporter);
+ if (cdiProject == null) {
+ return OK_STATUS;
+ }
+ displaySubtask(CDIValidationMessages.VALIDATING_PROJECT, new String[] { projectName });
+ removeAllMessagesFromResource(cdiProject.getNature().getProject());
+
+ // TODO get all the beans.xml and validate them
+
+ return OK_STATUS;
+ }
+
+ private void validateBeansXml(IFile beansXml) {
+ IModelManager manager = StructuredModelManager.getModelManager();
+ if(manager == null) {
+ // this may happen if plug-in org.eclipse.wst.sse.core
+ // is stopping or un-installed, that is Eclipse is shutting down.
+ // there is no need to report it, just stop validation.
+ return;
+ }
+
+ IStructuredModel model = null;
+ try {
+ model = manager.getModelForRead(beansXml);
+ if (model instanceof IDOMModel) {
+ IDOMModel domModel = (IDOMModel) model;
+ IDOMDocument document = domModel.getDocument();
+
+ NodeList list = document.getElementsByTagName("class");
+ for (int i = 0; i < list.getLength(); i++) {
+ Node classNode = list.item(i);
+ NodeList children = classNode.getChildNodes();
+
+ boolean empty = true;
+ for (int j = 0; j < children.getLength(); j++) {
+ Node node = children.item(j);
+ if(node.getNodeType() == Node.TEXT_NODE) {
+ String value = node.getNodeValue();
+ if(value!=null) {
+ String className = value.trim();
+ if(className.length()==0) {
+ continue;
+ }
+ empty = false;
+ if(node instanceof IndexedRegion) {
+ int start = ((IndexedRegion)node).getStartOffset() + value.indexOf(className);
+ int length = className.length();
+ IType type = EclipseJavaUtil.findType(javaProject, className);
+ if(type==null) {
+ if(node instanceof IndexedRegion) {
+ addError(CDIValidationMessages.CONFLICTING_INTERCEPTOR_BINDINGS, CDIPreferences.CONFLICTING_INTERCEPTOR_BINDINGS,
+ new String[]{}, length, start, beansXml);
+ break;
+ }
+ }
+ }
+ }
+ }
+ }
+
+ if(empty) {
+ if(classNode instanceof IndexedRegion) {
+ int start = ((IndexedRegion)classNode).getStartOffset();
+ int end = ((IndexedRegion)classNode).getEndOffset();
+ int length = end - start;
+ addError(CDIValidationMessages.CONFLICTING_INTERCEPTOR_BINDINGS, CDIPreferences.CONFLICTING_INTERCEPTOR_BINDINGS,
+ new String[]{}, length, start, beansXml);
+ }
+ }
+ }
+ }
+ } catch (CoreException e) {
+ CDICorePlugin.getDefault().logError(e);
+ } catch (IOException e) {
+ CDICorePlugin.getDefault().logError(e);
+ } finally {
+ if (model != null) {
+ model.releaseFromRead();
+ }
+ }
+ }
+}
\ No newline at end of file
Property changes on: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/BeansXmlValidator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2010-08-26 13:32:45 UTC (rev 24471)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDICoreValidator.java 2010-08-26 13:43:12 UTC (rev 24472)
@@ -1821,7 +1821,7 @@
{TARGET_METHOD, TARGET_FIELD},
{TARGET_TYPE}, {TARGET_METHOD}, {TARGET_FIELD}};
validateTargetAnnotation(stereotype, variants, CDIValidationMessages.MISSING_TARGET_ANNOTATION_IN_STEREOTYPE_TYPE, resource);
-
+
/*
* Stereotype annotation type should be annotated with @Retention(RUNTIME)
*/
@@ -1849,7 +1849,7 @@
CDICorePlugin.getDefault().logError(e);
}
}
-
+
private void validateScopeAnnotationTypeAnnotations(IScope scope, IResource resource) throws JavaModelException {
/*
* Scope annotation type should be annotated with @Target({TYPE, METHOD, FIELD})
@@ -1863,8 +1863,6 @@
validateRetentionAnnotation(scope, CDIValidationMessages.MISSING_RETENTION_ANNOTATION_IN_SCOPE_TYPE, resource);
}
-
-
void validateRetentionAnnotation(ICDIAnnotation type, String message, IResource resource) throws JavaModelException {
IAnnotationDeclaration retention = type.getAnnotationDeclaration(CDIConstants.RETENTION_ANNOTATION_TYPE_NAME);
if(retention == null) {
@@ -1888,7 +1886,7 @@
}
}
}
-
+
Set<String> getTargetAnnotationValues(IAnnotationDeclaration target) throws JavaModelException {
Set<String> result = new HashSet<String>();
IMemberValuePair[] ps = target.getDeclaration().getMemberValuePairs();
@@ -1913,7 +1911,6 @@
return result;
}
-
/**
* Validates a qualifier.
*
@@ -1943,7 +1940,7 @@
CDICorePlugin.getDefault().logError(e);
}
}
-
+
static String TARGET_METHOD = "METHOD";
static String TARGET_FIELD = "FIELD";
static String TARGET_PARAMETER = "PARAMETER";
@@ -1957,7 +1954,7 @@
String[][] variants = {{TARGET_METHOD, TARGET_FIELD, TARGET_PARAMETER, TARGET_TYPE},
{TARGET_FIELD, TARGET_PARAMETER}};
validateTargetAnnotation(qualifier, variants, CDIValidationMessages.MISSING_TARGET_ANNOTATION_IN_QUALIFIER_TYPE, resource);
-
+
/*
* Qualifier annotation type should be annotated with @Retention(RUNTIME)
*/
@@ -1991,7 +1988,6 @@
addError(message, CDIPreferences.MISSING_OR_INCORRECT_TARGET_OR_RETENTION_IN_ANNOTATION_TYPE, target, resource);
}
}
-
}
private void validateInterceptorBinding(IInterceptorBinding binding) {
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDIValidationMessages.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDIValidationMessages.java 2010-08-26 13:32:45 UTC (rev 24471)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/CDIValidationMessages.java 2010-08-26 13:43:12 UTC (rev 24472)
@@ -124,10 +124,22 @@
public static String ILLEGAL_INJECTING_USERTRANSACTION_TYPE;
public static String ILLEGAL_INJECTING_INJECTIONPOINT_TYPE;
public static String ILLEGAL_QUALIFIER_IN_STEREOTYPE;
+ public static String UNKNOWN_ALTERNATIVE_BEAN_CLASS_NAME;
+ public static String ILLEGAL_ALTERNATIVE_BEAN_CLASS;
+ public static String UNKNOWN_ALTERNATIVE_ANNOTATION_NAME;
+ public static String ILLEGAL_ALTERNATIVE_ANNOTATION;
+ public static String DUPLICATE_ALTERNATIVE_TYPE;
+ public static String UNKNOWN_DECORATOR_BEAN_CLASS_NAME;
+ public static String ILLEGAL_DECORATOR_BEAN_CLASS;
+ public static String DUPLICATE_DECORATOR_CLASS;
+ public static String UNKNOWN_INTERCEPTOR_CLASS_NAME;
+ public static String ILLEGAL_INTERCEPTOR_CLASS;
+ public static String DUPLICATE_INTERCEPTOR_CLASS;
public static String SEARCHING_RESOURCES;
public static String VALIDATING_RESOURCE;
public static String VALIDATING_PROJECT;
+ public static String VALIDATING_BEANS_XML;
static {
NLS.initializeMessages(BUNDLE_NAME, CDIValidationMessages.class);
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/errorList.txt
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/errorList.txt 2010-08-26 13:32:45 UTC (rev 24471)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/errorList.txt 2010-08-26 13:43:12 UTC (rev 24472)
@@ -122,21 +122,12 @@
- X specializes Y and Y has a name and X declares a name explicitly, using @Named
- interceptor or decorator is annotated @Specializes (Non-Portable behavior)
-5.2.1. Unsatisfied and ambiguous dependencies
-- If an unsatisfied or unresolvable ambiguous dependency exists, the container automatically detects the problem and
- treats it as a deployment problem.
-
-5.2.2. Legal injection point types
-- injection point type is a type variable
-
5.1.4. Inter-module injection
- a decorator can not be injected
- an interceptor can not be injected
-5.2.4. Primitive types and null values
-- if an injection point of primitive type resolves to a bean that may have null values, such as a producer method
- with a non-primitive return type or a producer field with a non-primitive type, the container automatically detects the problem
- and treats it as a deployment problem.
+5.2.2. Legal injection point types
+- injection point type is a type variable
5.2.5. Qualifier annotations with members
- array-valued or annotation-valued member of a qualifier type is not annotated @Nonbinding (Non-Portable behavior)
@@ -188,4 +179,45 @@
- bean with scope @Dependent has an observer method declared notifyObserver=IF_EXISTS
12.1. Bean archives
-- bean class is deployed in two different bean archives (Non-Portable behavior) - (JBT: let's ignore this rule so far since we don't have any good tool to recognize such components)
\ No newline at end of file
+- bean class is deployed in two different bean archives (Non-Portable behavior) - (JBT: let's ignore this rule so far since we don't have any good tool to recognize such components)
+
+
+
+Deployment problems
+
+5.2.1. Unsatisfied and ambiguous dependencies
+- If an unsatisfied or unresolvable ambiguous dependency exists, the container automatically detects the problem and
+ treats it as a deployment problem.
+
+5.2.4. Primitive types and null values
+- if an injection point of primitive type resolves to a bean that may have null values, such as a producer method
+ with a non-primitive return type or a producer field with a non-primitive type, the container automatically detects the problem
+ and treats it as a deployment problem.
+
+
+
+Beans.xml
+
+5.1.1. Declaring selected alternatives for a bean archive
+- Each child <class> element must specify the name of an alternative bean class. If there is no class with the specified
+ name, or if the class with the specified name is not an alternative bean class, the container automatically detects the problem
+ and treats it as a deployment problem.
+- Each child <stereotype> element must specify the name of an @Alternative stereotype annotation. If there is no annotation
+ with the specified name, or the annotation is not an @Alternative stereotype, the container automatically detects the
+ problem and treats it as a deployment problem.
+- If the same type is listed twice under the <alternatives> element, the container automatically detects the problem and
+ treats it as a deployment problem.
+
+8.2. Decorator enablement and ordering
+- Each child <class> element must specify the name of a decorator bean class. If there is no class with the specified name,
+ or if the class with the specified name is not a decorator bean class, the container automatically detects the problem and
+ treats it as a deployment problem.
+- If the same class is listed twice under the <decorators> element, the container automatically detects the problem and
+ treats it as a deployment problem.
+
+9.4. Interceptor enablement and ordering
+- Each child <class> element must specify the name of an interceptor class. If there is no class with the specified name, or if
+ the class with the specified name is not an interceptor class, the container automatically detects the problem and treats it as
+ a deployment problem.
+- If the same class is listed twice under the <interceptors> element, the container automatically detects the problem and treats it as
+ a deployment problem.
\ No newline at end of file
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/messages.properties
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/messages.properties 2010-08-26 13:32:45 UTC (rev 24471)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.core/src/org/jboss/tools/cdi/internal/core/validation/messages.properties 2010-08-26 13:43:12 UTC (rev 24472)
@@ -105,7 +105,22 @@
ILLEGAL_INJECTING_INJECTIONPOINT_TYPE=Java EE component class supporting injection that is not a bean has an injection point of type InjectionPoint and qualifier @Default [JSR-299 �5.5.7]
ILLEGAL_QUALIFIER_IN_STEREOTYPE=Stereotypes cannot declare qualifier annotations (except @Named) [JSR-299 �2.7.1.3]
+#Beans.xml
+
+UNKNOWN_ALTERNATIVE_BEAN_CLASS_NAME=There is no class with the specified name [JSR-299 �5.1.1]
+ILLEGAL_ALTERNATIVE_BEAN_CLASS=<class> element must specify the name of an alternative bean class [JSR-299 �5.1.1]
+UNKNOWN_ALTERNATIVE_ANNOTATION_NAME=There is no annotation with the specified name [JSR-299 �5.1.1]
+ILLEGAL_ALTERNATIVE_ANNOTATION=<stereotype> element must specify the name of an @Alternative stereotype annotation [JSR-299 �5.1.1]
+DUPLICATE_ALTERNATIVE_TYPE=The same type cannot be listed more than once under the <alternatives> element [JSR-299 �5.1.1]
+UNKNOWN_DECORATOR_BEAN_CLASS_NAME=There is no class with the specified name [JSR-299 �8.2]
+ILLEGAL_DECORATOR_BEAN_CLASS=<class> element must specify the name of a decorator bean class [JSR-299 �8.2]
+DUPLICATE_DECORATOR_CLASS=The same class cannot be listed more then once under the <decorators> element [JSR-299 �8.2]
+UNKNOWN_INTERCEPTOR_CLASS_NAME=There is no class with the specified name [JSR-299 �9.4]
+ILLEGAL_INTERCEPTOR_CLASS=<class> element must specify the name of an interceptor class [JSR-299 �9.4]
+DUPLICATE_INTERCEPTOR_CLASS=The same class cannot be listed more then once under the <interceptors> element [JSR-299 �9.4]
+
#Messages for Progress Monitor
SEARCHING_RESOURCES=project "{0}"; searching resources for validation (CDI Validator).
VALIDATING_RESOURCE=project "{0}"; resource "{1}" (CDI Validator)
-VALIDATING_PROJECT=project "{0}" (CDI Validator)
\ No newline at end of file
+VALIDATING_PROJECT=project "{0}" (CDI Validator)
+VALIDATING_BEANS_XML=project "{0}"; validating beans.xml (CDI beans.xml Validator).
\ No newline at end of file
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIConfigurationBlock.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIConfigurationBlock.java 2010-08-26 13:32:45 UTC (rev 24471)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIConfigurationBlock.java 2010-08-26 13:43:12 UTC (rev 24472)
@@ -144,6 +144,15 @@
CDICorePlugin.PLUGIN_ID
);
+ private static SectionDescription SECTION_BEANSXML = new SectionDescription(
+ CDIPreferencesMessages.CDIValidatorConfigurationBlock_section_beansxml,
+ new String[][]{
+ {CDIPreferences.ILLEGAL_TYPE_NAME_IN_BEANS_XML, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_illegalTypeInBeansXml_label},
+ {CDIPreferences.DUPLICATE_TYPE_IN_BEANS_XML, CDIPreferencesMessages.CDIValidatorConfigurationBlock_pb_duplicateTypeInBeansXml_label},
+ },
+ CDICorePlugin.PLUGIN_ID
+ );
+
private static SectionDescription[] ALL_SECTIONS = new SectionDescription[]{
SECTION_NAME,
SECTION_TYPE,
@@ -151,7 +160,8 @@
SECTION_MEMBER,
SECTION_INTERCEPTOR,
SECTION_SPECIALIZATION,
- SECTION_MISCELLANEOUS
+ SECTION_MISCELLANEOUS,
+ SECTION_BEANSXML
};
private static Key[] getKeys() {
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIPreferencesMessages.java
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIPreferencesMessages.java 2010-08-26 13:32:45 UTC (rev 24471)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIPreferencesMessages.java 2010-08-26 13:43:12 UTC (rev 24472)
@@ -126,6 +126,10 @@
public static String CDIValidatorConfigurationBlock_pb_illegalInjectingInjectionPointType_label;
public static String CDIValidatorConfigurationBlock_pb_illegalQualifierInStereotype_label;
+ // Beans.xml
+ public static String CDIValidatorConfigurationBlock_section_beansxml;
+ public static String CDIValidatorConfigurationBlock_pb_illegalTypeInBeansXml_label;
+ public static String CDIValidatorConfigurationBlock_pb_duplicateTypeInBeansXml_label;
public static String CDI_VALIDATOR_PREFERENCE_PAGE_CDI_VALIDATOR;
Modified: trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIPreferencesMessages.properties
===================================================================
--- trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIPreferencesMessages.properties 2010-08-26 13:32:45 UTC (rev 24471)
+++ trunk/cdi/plugins/org.jboss.tools.cdi.ui/src/org/jboss/tools/cdi/ui/preferences/CDIPreferencesMessages.properties 2010-08-26 13:43:12 UTC (rev 24472)
@@ -110,5 +110,9 @@
CDIValidatorConfigurationBlock_pb_illegalInjectingInjectionPointType_label=Illegal injecting injection point type:
CDIValidatorConfigurationBlock_pb_illegalQualifierInStereotype_label=Illegal qualifier in stereotype:
+##Beans.xml
+CDIValidatorConfigurationBlock_section_beansxml=beans.xml
+CDIValidatorConfigurationBlock_pb_illegalTypeInBeansXml_label=Illegal type name:
+CDIValidatorConfigurationBlock_pb_duplicateTypeInBeansXml_label=Duplicate type name:
CDI_VALIDATOR_PREFERENCE_PAGE_CDI_VALIDATOR=CDI Validator
Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/decorators/beans.xml
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/decorators/beans.xml 2010-08-26 13:32:45 UTC (rev 24471)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/decorators/beans.xml 2010-08-26 13:43:12 UTC (rev 24472)
@@ -1,8 +1,8 @@
<beans>
<decorators>
- <class>org.jboss.jsr299.tck.tests.jdt.validation.decorators.NamedDecoratorBroken</class>
- <class>org.jboss.jsr299.tck.tests.jdt.validation.decorators.DecoratorWithWrongScopeBroken</class>
- <class>org.jboss.jsr299.tck.tests.jdt.validation.decorators.AlternativeDecoratorBroken</class>
- <class>org.jboss.jsr299.tck.tests.jdt.validation.decorators.ObserverMethodInDecoratorBroken</class>
+ <class>org.jboss.jsr299.tck.tests.jbt.validation.decorators.NamedDecoratorBroken</class>
+ <class>org.jboss.jsr299.tck.tests.jbt.validation.decorators.DecoratorWithWrongScopeBroken</class>
+ <class>org.jboss.jsr299.tck.tests.jbt.validation.decorators.AlternativeDecoratorBroken</class>
+ <class>org.jboss.jsr299.tck.tests.jbt.validation.decorators.ObserverMethodInDecoratorBroken</class>
</decorators>
</beans>
\ No newline at end of file
Modified: trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/disposers/beans.xml
===================================================================
--- trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/disposers/beans.xml 2010-08-26 13:32:45 UTC (rev 24471)
+++ trunk/cdi/tests/org.jboss.tools.cdi.core.test/resources/tck/tests/jbt/validation/disposers/beans.xml 2010-08-26 13:43:12 UTC (rev 24472)
@@ -1,5 +1,5 @@
<beans>
<decorators>
- <class>org.jboss.jsr299.tck.tests.jdt.validation.disposers.TimestampLogger</class>
+ <class>org.jboss.jsr299.tck.tests.jbt.validation.disposers.TimestampLogger</class>
</decorators>
</beans>
15 years, 4 months
JBoss Tools SVN: r24471 - in trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test: wizard and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: dmaliarevich
Date: 2010-08-26 09:32:45 -0400 (Thu, 26 Aug 2010)
New Revision: 24471
Modified:
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExportUnknownTagsWizardTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ImportUnknownTagsWizardTest.java
trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/NewXHTMLPageWizardTest.java
Log:
https://jira.jboss.org/browse/JBIDE-6687 , JUnits for the "New XHTML Page" Wizard have been added.
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java 2010-08-26 13:01:14 UTC (rev 24470)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/VPEAllBotTests.java 2010-08-26 13:32:45 UTC (rev 24471)
@@ -62,8 +62,8 @@
suite.addTestSuite(VPESourceCodeTemplatesPreferencePageTest.class);
suite.addTestSuite(ExternalizeStringsDialogTest.class);
suite.addTestSuite(JspFileEditingTest.class);
- suite.addTestSuite(XhtmlFilePerformanceTest.class);
- suite.addTestSuite(ManagePaletteGroupsTest.class);
+ suite.addTestSuite(XhtmlFilePerformanceTest.class);
+ suite.addTestSuite(ManagePaletteGroupsTest.class);
suite.addTestSuite(PaletteEditorTest.class);
suite.addTestSuite(ToolbarTextFormattingTest.class);
suite.addTestSuite(VisualEditorContextMenuTest.class);
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExportUnknownTagsWizardTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExportUnknownTagsWizardTest.java 2010-08-26 13:01:14 UTC (rev 24470)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ExportUnknownTagsWizardTest.java 2010-08-26 13:32:45 UTC (rev 24471)
@@ -53,7 +53,7 @@
bot.menu("File").menu("Export...").click(); //$NON-NLS-1$ //$NON-NLS-2$
bot.shell("Export").activate(); //$NON-NLS-1$
SWTBotTree importTree = bot.tree();
- importTree.expandNode("Other").select("Unknown tags templates"); //$NON-NLS-1$ //$NON-NLS-2$
+ importTree.expandNode("Other").select("User specified tag templates"); //$NON-NLS-1$ //$NON-NLS-2$
bot.button(WidgetVariables.NEXT_BUTTON).click();
/*
* Check table values
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ImportUnknownTagsWizardTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ImportUnknownTagsWizardTest.java 2010-08-26 13:01:14 UTC (rev 24470)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/ImportUnknownTagsWizardTest.java 2010-08-26 13:32:45 UTC (rev 24471)
@@ -41,7 +41,7 @@
bot.menu("File").menu("Import...").click(); //$NON-NLS-1$ //$NON-NLS-2$
bot.shell("Import").activate(); //$NON-NLS-1$
SWTBotTree importTree = bot.tree();
- importTree.expandNode("Other").select("Unknown tags templates"); //$NON-NLS-1$ //$NON-NLS-2$
+ importTree.expandNode("Other").select("User specified tag templates"); //$NON-NLS-1$ //$NON-NLS-2$
bot.button(WidgetVariables.NEXT_BUTTON).click();
/*
* Load stored tags
@@ -65,22 +65,22 @@
/*
* Check that templates have been added to the preference page
*/
- bot.menu(IDELabel.Menu.WINDOW).menu(IDELabel.Menu.PREFERENCES).click(); //$NON-NLS-1$ //$NON-NLS-2$
- bot.shell(IDELabel.Shell.PREFERENCES).activate(); //$NON-NLS-1$
+ bot.menu(IDELabel.Menu.WINDOW).menu(IDELabel.Menu.PREFERENCES).click();
+ bot.shell(IDELabel.Shell.PREFERENCES).activate();
importTree = bot.tree();
- importTree.expandNode(IDELabel.PreferencesDialog.JBOSS_TOOLS) //$NON-NLS-1$d
- .expandNode(IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB) //$NON-NLS-1$
- .expandNode(IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB_EDITORS) //$NON-NLS-1$
- .select(IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB_EDITORS_VPE); //$NON-NLS-1$
- bot.tabItem(IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB_EDITORS_VPE_VISUAL_TEMPLATES).activate(); //$NON-NLS-1$
+ importTree.expandNode(IDELabel.PreferencesDialog.JBOSS_TOOLS)
+ .expandNode(IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB)
+ .expandNode(IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB_EDITORS)
+ .select(IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB_EDITORS_VPE);
+ bot.tabItem(IDELabel.PreferencesDialog.JBOSS_TOOLS_WEB_EDITORS_VPE_VISUAL_TEMPLATES).activate();
/*
* Check table values on the preferences page
*/
String taglib00 = bot.table().cell(0, 0);
String taglib10 = bot.table().cell(1, 0);
bot.button(WidgetVariables.OK_BUTTON).click();
- assertEquals("Wrong table value.", "taglibName:tagName", taglib00); //$NON-NLS-1$ //$NON-NLS-2$
- assertEquals("Wrong table value.", "lib:tag", taglib10); //$NON-NLS-1$ //$NON-NLS-2$
+ assertEquals("Wrong table value.", "lib:tag", taglib00); //$NON-NLS-1$ //$NON-NLS-2$
+ assertEquals("Wrong table value.", "taglibName:tagName", taglib10); //$NON-NLS-1$ //$NON-NLS-2$
}
Modified: trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/NewXHTMLPageWizardTest.java
===================================================================
--- trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/NewXHTMLPageWizardTest.java 2010-08-26 13:01:14 UTC (rev 24470)
+++ trunk/vpe/tests/org.jboss.tools.vpe.ui.bot.test/src/org/jboss/tools/vpe/ui/bot/test/wizard/NewXHTMLPageWizardTest.java 2010-08-26 13:32:45 UTC (rev 24471)
@@ -23,7 +23,7 @@
@Override
protected void closeUnuseDialogs() {
// TODO Auto-generated method stub
-
+
}
@Override
@@ -31,19 +31,68 @@
// TODO Auto-generated method stub
return false;
}
-
+
+ /**
+ * Test new xhtml page wizard basic functionality.
+ */
public void testNewXHTMLPageWizard() {
/*
* Open wizard page
*/
- open.newObject(ActionItem.NewObject.JBossToolsWebXHTMLFile.LABEL);
- bot.shell(IDELabel.Shell.NEW_XHTML_FILE).activate();
- bot.textWithLabel(ActionItem.NewObject.JBossToolsWebXHTMLFile.TEXT_FILE_NAME).setText("test");
- bot.button(IDELabel.Button.NEXT).click();
- bot.checkBox(IDELabel.NewXHTMLFileDialog.USE_XHTML_TEMPLATE_CHECK_BOX).select();
- bot.table().select(IDELabel.NewXHTMLFileDialog.TEMPLATE_FACELET_FORM_XHTML_NAME);
- bot.button(IDELabel.Button.FINISH).click();
- assertEquals("Active Editor Title should be" ,"test.xhtml", this.bot.activeEditor().getTitle()); //$NON-NLS-1$ //$NON-NLS-2$
+ open.newObject(ActionItem.NewObject.JBossToolsWebXHTMLFile.LABEL);
+ bot.shell(IDELabel.Shell.NEW_XHTML_FILE).activate();
+ bot.textWithLabel(ActionItem.NewObject.JBossToolsWebXHTMLFile.TEXT_FILE_NAME).setText("test"); //$NON-NLS-1$
+ bot.textWithLabel(
+ ActionItem.NewObject.JBossToolsWebXHTMLFile.TEXT_ENTER_OR_SELECT_THE_PARENT_FOLDER)
+ .setText(JBT_TEST_PROJECT_NAME + "/WebContent/pages"); //$NON-NLS-1$
+ bot.button(IDELabel.Button.NEXT).click();
+ /*
+ * Check that the checkbox is disabled by default
+ */
+ assertFalse(
+ "'" + IDELabel.NewXHTMLFileDialog.USE_XHTML_TEMPLATE_CHECK_BOX //$NON-NLS-1$
+ + "' checkbox should be disabled by default", //$NON-NLS-1$
+ bot.checkBox(
+ IDELabel.NewXHTMLFileDialog.USE_XHTML_TEMPLATE_CHECK_BOX)
+ .isChecked());
+ bot.checkBox(IDELabel.NewXHTMLFileDialog.USE_XHTML_TEMPLATE_CHECK_BOX).select();
+ bot.table().select(IDELabel.NewXHTMLFileDialog.TEMPLATE_FACELET_FORM_XHTML_NAME);
+ bot.button(IDELabel.Button.FINISH).click();
+ assertEquals("Active Editor Title should be" ,"test.xhtml", this.bot.activeEditor().getTitle()); //$NON-NLS-1$ //$NON-NLS-2$
}
+ /**
+ * Test blank result without any template text.
+ * Tests https://jira.jboss.org/browse/JBIDE-6921
+ */
+ public void testBlankResultWithoutAnyTemplateText_JBIDE6921() {
+ open.newObject(ActionItem.NewObject.JBossToolsWebXHTMLFile.LABEL);
+ bot.shell(IDELabel.Shell.NEW_XHTML_FILE).activate();
+ bot.textWithLabel(ActionItem.NewObject.JBossToolsWebXHTMLFile.TEXT_FILE_NAME).setText("test2"); //$NON-NLS-1$
+ bot.textWithLabel(
+ ActionItem.NewObject.JBossToolsWebXHTMLFile.TEXT_ENTER_OR_SELECT_THE_PARENT_FOLDER)
+ .setText(JBT_TEST_PROJECT_NAME + "/WebContent/pages"); //$NON-NLS-1$
+ bot.button(IDELabel.Button.NEXT).click();
+ /*
+ * Check that the checkbox is stored between the dialog's launches
+ */
+ assertTrue(
+ "'" + IDELabel.NewXHTMLFileDialog.USE_XHTML_TEMPLATE_CHECK_BOX //$NON-NLS-1$
+ + "' checkbox should be enabled (after previous dialog call)", //$NON-NLS-1$
+ bot.checkBox(
+ IDELabel.NewXHTMLFileDialog.USE_XHTML_TEMPLATE_CHECK_BOX)
+ .isChecked());
+ /*
+ * Make some click on the checkbox and leave it disabled
+ */
+ bot.checkBox(IDELabel.NewXHTMLFileDialog.USE_XHTML_TEMPLATE_CHECK_BOX).select();
+ bot.checkBox(IDELabel.NewXHTMLFileDialog.USE_XHTML_TEMPLATE_CHECK_BOX).deselect();
+ bot.checkBox(IDELabel.NewXHTMLFileDialog.USE_XHTML_TEMPLATE_CHECK_BOX).select();
+ bot.checkBox(IDELabel.NewXHTMLFileDialog.USE_XHTML_TEMPLATE_CHECK_BOX).deselect();
+ bot.button(IDELabel.Button.FINISH).click();
+ assertEquals("Active Editor Title should be" ,"test2.xhtml", this.bot.activeEditor().getTitle()); //$NON-NLS-1$ //$NON-NLS-2$
+ assertEquals("Created XHTML file should be blank" ,"", this.bot.activeEditor().toTextEditor().getText()); //$NON-NLS-1$ //$NON-NLS-2$
+
+ }
+
}
15 years, 4 months
JBoss Tools SVN: r24470 - in trunk/seam/tests/org.jboss.tools.seam.core.test: projects/SeamWebWarTestProject/WebContent/WEB-INF and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-08-26 09:01:14 -0400 (Thu, 26 Aug 2010)
New Revision: 24470
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/WEB-INF/pages.xml
trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/login.page.xml
trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
Log:
https://jira.jboss.org/browse/JBIDE-6360
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/WEB-INF/pages.xml
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/WEB-INF/pages.xml 2010-08-26 12:58:10 UTC (rev 24469)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/WEB-INF/pages.xml 2010-08-26 13:01:14 UTC (rev 24470)
@@ -10,6 +10,12 @@
<rule if-outcome="home">
<redirect view-id="/home.xhtml"/>
</rule>
+ <rule if-outcome="home1">
+ <redirect view-id="/home1.xhtml"/>
+ </rule>
+ <rule if-outcome="home2">
+ <render view-id="/home2.xhtml"/>
+ </rule>
</navigation>
</page>
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/login.page.xml
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/login.page.xml 2010-08-26 12:58:10 UTC (rev 24469)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/projects/SeamWebWarTestProject/WebContent/login.page.xml 2010-08-26 13:01:14 UTC (rev 24470)
@@ -7,5 +7,8 @@
<rule if="#{identity.loggedIn}">
<redirect view-id="/home.xhtml"/>
</rule>
+ <rule if-outcome="ok">
+ <redirect view-id="/home1.xhtml"/>
+ </rule>
</navigation>
</page>
\ No newline at end of file
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2010-08-26 12:58:10 UTC (rev 24469)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/src/org/jboss/tools/seam/core/test/SeamValidatorsTest.java 2010-08-26 13:01:14 UTC (rev 24470)
@@ -813,6 +813,23 @@
9);
}
+ public void testErrorMarkerInPagesXML() throws CoreException, ValidationException {
+ SeamCoreValidatorWrapper seamValidator = new SeamCoreValidatorWrapper(project);
+
+ assertMarkerIsCreatedForLine(
+ seamValidator,
+ "WebContent/WEB-INF/pages.xml",
+ SeamValidationMessages.UNRESOLVED_VIEW_ID,
+ new Object[] {"/home1.xhtml"},
+ 14);
+ assertMarkerIsCreatedForLine(
+ seamValidator,
+ "WebContent/WEB-INF/pages.xml",
+ SeamValidationMessages.UNRESOLVED_VIEW_ID,
+ new Object[] {"/home2.xhtml"},
+ 17);
+ }
+
public static int getMarkersNumber(IResource resource) {
return getMarkersNumberByGroupName(resource, SeamValidationErrorManager.MARKED_SEAM_PROJECT_MESSAGE_GROUP);
}
15 years, 4 months
JBoss Tools SVN: r24469 - in trunk/seam/plugins/org.jboss.tools.seam.core: src/org/jboss/tools/seam/internal/core/validation and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-08-26 08:58:10 -0400 (Thu, 26 Aug 2010)
New Revision: 24469
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java
Log:
https://jira.jboss.org/browse/JBIDE-6360
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF 2010-08-26 12:57:30 UTC (rev 24468)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF 2010-08-26 12:58:10 UTC (rev 24469)
@@ -12,6 +12,7 @@
org.eclipse.jdt.launching,
org.jboss.tools.common.el.core,
org.jboss.tools.seam.xml,
+ org.jboss.tools.seam.pages.xml,
org.eclipse.wst.common.frameworks.ui,
org.eclipse.wst.common.project.facet.core,
org.eclipse.jst.jsf.core,
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java 2010-08-26 12:57:30 UTC (rev 24468)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamCoreValidator.java 2010-08-26 12:58:10 UTC (rev 24469)
@@ -17,6 +17,7 @@
import java.util.List;
import java.util.Set;
+import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
@@ -25,6 +26,7 @@
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Path;
import org.eclipse.jdt.core.Flags;
import org.eclipse.jdt.core.IMember;
import org.eclipse.jdt.core.IMethod;
@@ -74,6 +76,7 @@
import org.jboss.tools.seam.internal.core.SeamComponentDeclaration;
import org.jboss.tools.seam.internal.core.SeamProject;
import org.jboss.tools.seam.internal.core.SeamTextSourceReference;
+import org.jboss.tools.seam.pages.xml.model.SeamPagesConstants;
/**
* Validator for Java and XML files.
@@ -316,9 +319,30 @@
displaySubtask(SeamValidationMessages.VALIDATING_CLASS, new String[]{projectName, d.getClassName()});
validateMethodsOfUnknownComponent(d);
}
-
+ IResource webContent = EclipseResourceUtil.getFirstWebContentResource(project);
+ if(webContent instanceof IContainer) {
+ validateAllPageXMLFiles((IContainer)webContent);
+ }
+
return OK_STATUS;
}
+
+ void validateAllPageXMLFiles(IContainer c) {
+ IResource[] rs = null;
+ try {
+ rs = ((IContainer)c).members();
+ } catch (CoreException e) {
+ SeamCorePlugin.getDefault().logError(e);
+ }
+ for (int i = 0; i < rs.length; i++) {
+ if(rs[i] instanceof IContainer) {
+ validateAllPageXMLFiles((IContainer)rs[i]);
+ } else if(rs[i] instanceof IFile) {
+ validatePageXML((IFile)rs[i]);
+ }
+ }
+
+ }
private void validateFactory(IPath sourceFilePath, Set<String> markedDuplicateFactoryNames) {
Set<ISeamFactory> factories = seamProject.getFactoriesByPath(sourceFilePath);
@@ -963,17 +987,18 @@
}
private void validatePageXML(IFile f) {
- if(f.getName().equals("pages.xml")) {
+ if(f.getName().equals("pages.xml") || f.getName().endsWith(".page.xml")) {
XModelObject object = EclipseResourceUtil.createObjectForResource(f);
if(object == null) return;
- if(object.getModelEntity().getName().startsWith("FileSeamPage")) {
+ if(object.getModelEntity().getName().startsWith(SeamPagesConstants.ENT_FILE_SEAM_PAGE)) {
validatePageRedirects(object, f);
}
}
}
private void validatePageRedirects(XModelObject o, IFile f) {
- if(o.getModelEntity().getName().startsWith("SeamPageRedirect")) {
+ String entity = o.getModelEntity().getName();
+ if(entity.startsWith(SeamPagesConstants.ENT_REDIRECT) || entity.startsWith(SeamPagesConstants.ENT_RENDER)) {
validatePageRedirect(o, f);
} else {
XModelObject[] cs = o.getChildren();
@@ -984,7 +1009,7 @@
}
private void validatePageRedirect(XModelObject redirect, IFile f) {
- String path = redirect.getAttributeValue("view id");
+ String path = redirect.getAttributeValue(SeamPagesConstants.ATTR_VIEW_ID);
if(path == null || path.length() == 0 || path.indexOf('*') >= 0) return;
path = path.replace('\\', '/');
if(path.indexOf('?') >= 0) {
@@ -992,7 +1017,7 @@
}
XModelObject target = redirect.getModel().getByPath(path);
if(target == null) {
- XMLValueInfo i = new XMLValueInfo(redirect, "view id");
+ XMLValueInfo i = new XMLValueInfo(redirect, SeamPagesConstants.ATTR_VIEW_ID);
addError(NLS.bind(SeamValidationMessages.UNRESOLVED_VIEW_ID, path), SeamPreferences.UNRESOLVED_VIEW_ID, i, f);
}
15 years, 4 months
JBoss Tools SVN: r24468 - trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2010-08-26 08:57:30 -0400 (Thu, 26 Aug 2010)
New Revision: 24468
Modified:
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/SeamPagesConstants.java
Log:
https://jira.jboss.org/browse/JBIDE-6360
Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/SeamPagesConstants.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/SeamPagesConstants.java 2010-08-26 12:06:30 UTC (rev 24467)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/SeamPagesConstants.java 2010-08-26 12:57:30 UTC (rev 24468)
@@ -37,11 +37,14 @@
public String ENT_NAVIGATION = "SeamPageNavigation"; //$NON-NLS-1$
public String ENT_NAVIGATION_RULE = "SeamPageNavigationRule"; //$NON-NLS-1$
- public String ENT_EXCEPTION = "SeamPageException";
+ public String ENT_EXCEPTION = "SeamPageException"; //$NON-NLS-1$
- public String ENT_RULE = "SeamPageRule";
+ public String ENT_RULE = "SeamPageRule"; //$NON-NLS-1$
public String ENT_RULE_12 = "SeamPageRule" + SUFF_12;
public String ENT_RULE_20 = "SeamPageRule" + SUFF_20;
+
+ public String ENT_REDIRECT = "SeamPageRedirect"; //$NON-NLS-1$
+ public String ENT_RENDER = "SeamPageRender"; //$NON-NLS-1$
public String ENT_PARAM = "SeamPageParam";
public String ENT_PARAM_12 = ENT_PARAM + SUFF_12;
15 years, 4 months