JBoss Tools SVN: r3284 - trunk/seam/tests/org.jboss.tools.seam.core.test/META-INF.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2007-08-23 06:42:39 -0400 (Thu, 23 Aug 2007)
New Revision: 3284
Modified:
trunk/seam/tests/org.jboss.tools.seam.core.test/META-INF/MANIFEST.MF
Log:
Added missing dependency on org.jboss.tools.test
Modified: trunk/seam/tests/org.jboss.tools.seam.core.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.core.test/META-INF/MANIFEST.MF 2007-08-23 10:24:46 UTC (rev 3283)
+++ trunk/seam/tests/org.jboss.tools.seam.core.test/META-INF/MANIFEST.MF 2007-08-23 10:42:39 UTC (rev 3284)
@@ -16,5 +16,6 @@
org.jboss.tools.seam.xml,
org.jboss.tools.common.test,
org.jboss.tools.jsf,
- org.eclipse.wst.common.project.facet.core
+ org.eclipse.wst.common.project.facet.core,
+ org.jboss.tools.tests
Provide-Package: org.jboss.tools.seam.core.test
17 years, 5 months
JBoss Tools SVN: r3283 - 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: akazakov
Date: 2007-08-23 06:24:46 -0400 (Thu, 23 Aug 2007)
New Revision: 3283
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamValidationHelper.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-820 Validator invokes when dependend projects were changed
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml 2007-08-23 06:56:01 UTC (rev 3282)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/plugin.xml 2007-08-23 10:24:46 UTC (rev 3283)
@@ -205,6 +205,9 @@
incremental="true"
fullBuild="true"
/>
+ <dependentValidator
+ depValValue="true">
+ </dependentValidator>
</validator>
</extension>
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamValidationHelper.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamValidationHelper.java 2007-08-23 06:56:01 UTC (rev 3282)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamValidationHelper.java 2007-08-23 10:24:46 UTC (rev 3283)
@@ -118,6 +118,9 @@
* @return true if resource is Jar file
*/
public boolean isJar(IResource resource) {
+ if(resource==null) {
+ throw new IllegalArgumentException("Resource must not be null");
+ }
String ext = resource.getFileExtension();
return ext!=null && ext.equalsIgnoreCase("jar");
}
17 years, 5 months
JBoss Tools SVN: r3282 - in trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor: mapping and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: svasilyev
Date: 2007-08-23 02:56:01 -0400 (Thu, 23 Aug 2007)
New Revision: 3282
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/VpeElementMapping.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateSet.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeExpressionBuilder.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeExpressionBuilderException.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeExpressionError.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeExpressionInfo.java
Log:
Some warnings about using collections with raw types were fixed
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-08-22 16:43:07 UTC (rev 3281)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-08-23 06:56:01 UTC (rev 3282)
@@ -11,7 +11,6 @@
package org.jboss.tools.vpe.editor;
import java.io.BufferedReader;
-import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
@@ -23,7 +22,6 @@
import java.util.Set;
import org.eclipse.core.resources.IFile;
-import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.Path;
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.Rectangle;
@@ -87,7 +85,7 @@
private VpePageContext pageContext;
private VpeDnD dnd;
private Node headNode;
- private List includeStack;
+ private List<VpeIncludeInfo> includeStack;
boolean rebuildFlag = false;
private static final String EMPTY_STRING = "";
@@ -131,14 +129,14 @@
private static final String DOTTED_BORDER_STYLE_FOR_SPAN = "border : 1px solid #0051DD; color:#0051DD; background-color:#ECF3FF; padding-left: 3px; padding-right: 3px; line-height : 10px; font-family : arial; font-size : 10px; text-align:top; margin : 1px; -moz-user-modify : read-only";
- static private HashSet unborderedSourceNodes = new HashSet();
+ static private HashSet<String> unborderedSourceNodes = new HashSet<String>();
static{
unborderedSourceNodes.add(TAG_HTML);
unborderedSourceNodes.add(TAG_HEAD);
unborderedSourceNodes.add(TAG_BODY);
}
- static private HashSet unborderedVisualNodes = new HashSet();
+ static private HashSet<String> unborderedVisualNodes = new HashSet<String>();
static{
unborderedVisualNodes.add(TAG_TBODY);
unborderedVisualNodes.add(TAG_THEAD);
@@ -167,7 +165,7 @@
}
public void buildDom(Document sourceDocument) {
- includeStack = new ArrayList();
+ includeStack = new ArrayList<VpeIncludeInfo>();
IEditorInput input = pageContext.getEditPart().getEditorInput();
if (input instanceof IFileEditorInput) {
IFile file = ((IFileEditorInput)input).getFile();
@@ -310,7 +308,7 @@
boolean registerFlag = isCurrentMainDocument();
switch (sourceNode.getNodeType()) {
case Node.ELEMENT_NODE:
- Map xmlnsMap = createXmlns((Element)sourceNode);
+ Map<String, Integer> xmlnsMap = createXmlns((Element)sourceNode);
Set ifDependencySet = new HashSet();
pageContext.setCurrentVisualNode(visualOldContainer);
VpeTemplate template = templateManager.getTemplate(pageContext, (Element)sourceNode, ifDependencySet);
@@ -336,7 +334,7 @@
registerNodes(elementMapping);
}
if (template.isChildren()) {
- List childrenInfoList = creationData.getChildrenInfoList();
+ List<VpeChildrenInfo> childrenInfoList = creationData.getChildrenInfoList();
if (childrenInfoList == null) {
addChildren(template, sourceNode, visualNewElement != null ? visualNewElement : visualOldContainer);
} else {
@@ -397,12 +395,12 @@
}
}
- private void addChildren(VpeTemplate containerTemplate, Node sourceContainer, Node visualOldContainer, List childrenInfoList) {
+ private void addChildren(VpeTemplate containerTemplate, Node sourceContainer, Node visualOldContainer, List<VpeChildrenInfo> childrenInfoList) {
for (int i = 0; i < childrenInfoList.size(); i++) {
- VpeChildrenInfo info = (VpeChildrenInfo)childrenInfoList.get(i);
+ VpeChildrenInfo info = childrenInfoList.get(i);
Node visualParent = info.getVisualParent();
if (visualParent == null) visualParent = visualOldContainer;
- List sourceChildren = info.getSourceChildren();
+ List<Node> sourceChildren = info.getSourceChildren();
int childrenCount = 0;
if (sourceChildren != null) {
for (int j = 0; j < sourceChildren.size(); j++) {
@@ -1601,10 +1599,10 @@
pageContext.dispose();
}
- private Map createXmlns(Element sourceNode) {
+ private Map<String, Integer> createXmlns(Element sourceNode) {
NamedNodeMap attrs = ((Element)sourceNode).getAttributes();
if (attrs != null) {
- Map xmlnsMap = new HashMap();
+ Map<String, Integer> xmlnsMap = new HashMap<String, Integer>();
for (int i = 0; i < attrs.getLength(); i++) {
addTaglib(sourceNode, xmlnsMap, attrs.item(i).getNodeName(), true);
}
@@ -1618,8 +1616,8 @@
private void setXmlnsAttribute(VpeElementMapping elementMapping, String name, String value) {
Element sourceElement = (Element)elementMapping.getSourceNode();
if (sourceElement != null) {
- Map xmlnsMap = elementMapping.getXmlnsMap();
- if (xmlnsMap == null) xmlnsMap = new HashMap();
+ Map<String, Integer> xmlnsMap = elementMapping.getXmlnsMap();
+ if (xmlnsMap == null) xmlnsMap = new HashMap<String, Integer>();
addTaglib(sourceElement, xmlnsMap, name, true);
elementMapping.setXmlnsMap(xmlnsMap.size() > 0 ? xmlnsMap : null);
}
@@ -1628,7 +1626,7 @@
private void removeXmlnsAttribute(VpeElementMapping elementMapping, String name) {
Element sourceElement = (Element)elementMapping.getSourceNode();
if (sourceElement != null) {
- Map xmlnsMap = elementMapping.getXmlnsMap();
+ Map<String, Integer> xmlnsMap = elementMapping.getXmlnsMap();
if (xmlnsMap != null) {
Object id = xmlnsMap.remove(name);
if (id != null) {
@@ -1639,7 +1637,7 @@
}
}
- private void addTaglib(Element sourceElement, Map xmlnsMap, String attrName, boolean ns) {
+ private void addTaglib(Element sourceElement, Map<String, Integer> xmlnsMap, String attrName, boolean ns) {
Attr attr = sourceElement.getAttributeNode(attrName);
if (ATTR_XMLNS.equals(attr.getPrefix())) {
xmlnsMap.put(attr.getNodeName(), new Integer(attr.hashCode()));
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/VpeElementMapping.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/VpeElementMapping.java 2007-08-22 16:43:07 UTC (rev 3281)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/VpeElementMapping.java 2007-08-23 06:56:01 UTC (rev 3282)
@@ -22,12 +22,12 @@
public class VpeElementMapping extends VpeNodeMapping {
private VpeTemplate template;
- private Set ifDependencySet;
- private Map xmlnsMap;
+ private Set<String> ifDependencySet;
+ private Map<String, Integer> xmlnsMap;
private Object data;
private Element border;
- public VpeElementMapping(Element sourceElement, Element visualElement, Element border, VpeTemplate template, Set ifDependencySet, Object data) {
+ public VpeElementMapping(Element sourceElement, Element visualElement, Element border, VpeTemplate template, Set<String> ifDependencySet, Object data) {
super(sourceElement, visualElement);
this.template = template;
if (ifDependencySet != null && ifDependencySet.size() > 0) {
@@ -41,11 +41,11 @@
return template;
}
- public Map getXmlnsMap() {
+ public Map<String, Integer> getXmlnsMap() {
return xmlnsMap;
}
- public void setXmlnsMap(Map xmlnsMap) {
+ public void setXmlnsMap(Map<String, Integer> xmlnsMap) {
this.xmlnsMap = xmlnsMap;
}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateSet.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateSet.java 2007-08-22 16:43:07 UTC (rev 3281)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateSet.java 2007-08-23 06:56:01 UTC (rev 3282)
@@ -19,7 +19,7 @@
import org.jboss.tools.vpe.editor.context.VpePageContext;
public class VpeTemplateSet {
- private List templates = new ArrayList();
+ private List<VpeTemplateSet> templates = new ArrayList<VpeTemplateSet>();
private VpeTemplate defTemplate;
VpeTemplateSet(){
@@ -37,7 +37,7 @@
VpeTemplate getTemplate(VpePageContext pageContext, Node sourceNode, Set ifDependencySet) {
for (int i = 0; i < templates.size(); i++) {
- VpeTemplateSet set = (VpeTemplateSet)templates.get(i);
+ VpeTemplateSet set = templates.get(i);
VpeTemplate template = set.getTemplate(pageContext, sourceNode, ifDependencySet);
if (template != null) {
return template;
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeExpressionBuilder.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeExpressionBuilder.java 2007-08-22 16:43:07 UTC (rev 3281)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeExpressionBuilder.java 2007-08-23 06:56:01 UTC (rev 3282)
@@ -41,7 +41,7 @@
private String originalText;
private String text;
private boolean caseSensitive;
- private Set dependencySet;
+ private Set<String> dependencySet;
public VpeExpressionInfo buildPlainExpression(String text, boolean caseSensitive) throws VpeExpressionBuilderException {
if (text == null) {
@@ -53,7 +53,7 @@
return new VpeExpressionInfo();
}
this.caseSensitive = caseSensitive;
- dependencySet = new HashSet();
+ dependencySet = new HashSet<String>();
return new VpeExpressionInfo(build(), dependencySet.size() > 0 ? dependencySet : null);
}
@@ -62,8 +62,8 @@
return new VpeExpressionInfo();
}
VpeExpressionBuilder builder = new VpeExpressionBuilder();
- Set dependencySet = new HashSet();
- List expressions = new ArrayList();
+ Set<String> dependencySet = new HashSet<String>();
+ List<VpeExpression> expressions = new ArrayList<VpeExpression>();
int len = text.length();
int startIndex = 0;
while (startIndex < len) {
@@ -193,7 +193,7 @@
error("Function \'" + name + "\' is not found", namePos);
}
int bracketPos = currentPosition();
- List params = new ArrayList();
+ List<VpeOperand> params = new ArrayList<VpeOperand>();
text = text.substring(1);
text = text.trim();
while (!end() && nextChar() != FUNC_BRACKET_RIGHT) {
@@ -212,7 +212,7 @@
}
text = text.substring(1);
if (params.size() > 0) {
- function.setParameters((VpeOperand[])params.toArray(new VpeOperand[params.size()]));
+ function.setParameters(params.toArray(new VpeOperand[params.size()]));
}
String[] signatures = function.getSignatures();
if (signatures != null) {
@@ -315,9 +315,10 @@
throw new VpeExpressionBuilderException(originalText, message, pos);
}
- private void error(String message) throws VpeExpressionBuilderException {
- error(message, currentPosition());
- }
+ // Remove comment if need
+// private void error(String message) throws VpeExpressionBuilderException {
+// error(message, currentPosition());
+// }
private void undefinedCharacter(int pos) throws VpeExpressionBuilderException {
error("Undefined character \'" + originalText.charAt(pos) + '\'', pos);
@@ -343,7 +344,7 @@
if (value.length() <= 1) {
return null;
}
- boolean exprBracket;
+
if (value.charAt(0) == COMPL_EXPR_LEFT_BRACKET) {
if (value.charAt(value.length() - 1) == COMPL_EXPR_RIGHT_BRACKET) {
value = value.substring(1, value.length() - 1);
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeExpressionBuilderException.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeExpressionBuilderException.java 2007-08-22 16:43:07 UTC (rev 3281)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeExpressionBuilderException.java 2007-08-23 06:56:01 UTC (rev 3282)
@@ -11,6 +11,7 @@
package org.jboss.tools.vpe.editor.template.expression;
public class VpeExpressionBuilderException extends Exception {
+ private static final long serialVersionUID = 2506700447659526980L;
public VpeExpressionBuilderException(String expression, String message, int pos) {
super("Expression: \"" + expression + "\" pos=" + pos + " " + message);
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeExpressionError.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeExpressionError.java 2007-08-22 16:43:07 UTC (rev 3281)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeExpressionError.java 2007-08-23 06:56:01 UTC (rev 3282)
@@ -12,6 +12,8 @@
public class VpeExpressionError extends Error {
+ private static final long serialVersionUID = 3620963302559253556L;
+
VpeExpressionError(String message) {
super(message);
}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeExpressionInfo.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeExpressionInfo.java 2007-08-22 16:43:07 UTC (rev 3281)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/expression/VpeExpressionInfo.java 2007-08-23 06:56:01 UTC (rev 3282)
@@ -14,13 +14,13 @@
public class VpeExpressionInfo {
private VpeExpression expression;
- private Set dependencySet;
+ private Set<String> dependencySet;
VpeExpressionInfo() {
this(null, null);
}
- VpeExpressionInfo(VpeExpression expression, Set dependencySet) {
+ VpeExpressionInfo(VpeExpression expression, Set<String> dependencySet) {
this.expression = expression;
this.dependencySet = dependencySet;
}
@@ -29,7 +29,7 @@
return expression;
}
- public Set getDependencySet() {
+ public Set<String> getDependencySet() {
return dependencySet;
}
}
17 years, 5 months
JBoss Tools SVN: r3281 - branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2007-08-22 12:43:07 -0400 (Wed, 22 Aug 2007)
New Revision: 3281
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaDomEventListener.java
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-743
Modified: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaDomEventListener.java
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaDomEventListener.java 2007-08-22 15:26:38 UTC (rev 3280)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaDomEventListener.java 2007-08-22 16:43:07 UTC (rev 3281)
@@ -52,6 +52,16 @@
public static final String CONTEXTMENUEVENTTYPE="contextmenu";
+ public static final String DRAGGESTUREEVENT = "draggesture";
+
+ public static final String DRAGOVEREVENT = "dragover";
+
+ public static final String DRAGDROPEVENT = "dragdrop";
+
+ public static final String DRAGENTEREVENT = "dragenter";
+
+ public static final String DRAGEXITEVENT = "dragexit";
+
public MozillaDomEventListener() {
createCOMInterfaces();
}
@@ -132,6 +142,7 @@
// }
//
// // IVpeDropListener
+ //generates when drag event exist
// int CanDrag(int aDragEvent, int _retval, int aNode, int offset) {
// int canDrag = 0;
//
@@ -183,7 +194,7 @@
// XPCOM.memmove(offset, new int[] {0}, 4);
// return XPCOM.NS_OK;
// }
-//
+ //generates on external drop event
// int CanDropExternal(int aDropEvent, int aFlavor, int aTransData, int _retval, int aNode, int offset) {
// int canDrop = 0;
// int aCaretParent = 0;
@@ -210,7 +221,7 @@
// XPCOM.memmove(offset, new int[] {caretOffset}, 4);
// return XPCOM.NS_OK;
// }
-//
+//
// int DropExternal(int aDropEvent, int aFlavor, int aTransData, int aNode, int offset) {
// nsIDOMMouseEvent mouseEvent = nsIDOMEvent.queryMouseEvent(aDropEvent);
//
@@ -251,6 +262,7 @@
/* (non-Javadoc)
* @see org.mozilla.interfaces.nsIClipboardDragDropHooks#allowDrop(org.mozilla.interfaces.nsIDOMEvent, org.mozilla.interfaces.nsIDragSession)
*/
+ // checks is drop allowed
public boolean allowDrop(nsIDOMEvent event, nsIDragSession dragSession) {
boolean canDrop = false;
nsIDOMMouseEvent mouseEvent = (nsIDOMMouseEvent) event.queryInterface(nsIDOMMouseEvent.NS_IDOMMOUSEEVENT_IID);
@@ -352,7 +364,7 @@
} else if(CONTEXTMENUEVENTTYPE.equals(domEvent.getType())) {
//first param are null 0, because this not used in event handler
getEditorDomEventListener().onShowContextMenu(0, domEvent, (nsIDOMNode) domEvent.getTarget().queryInterface(nsIDOMNode.NS_IDOMNODE_IID));
- }
+ }
getEditorDomEventListener().onRefresh();
//not using default mozilla event handlers
Modified: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java 2007-08-22 15:26:38 UTC (rev 3280)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java 2007-08-22 16:43:07 UTC (rev 3281)
@@ -472,7 +472,13 @@
//context menu event handler(add by Max Areshkau)
contentAreaEventTarget.addEventListener(MozillaDomEventListener.CONTEXTMENUEVENTTYPE, contentAreaEventListener, false);
-
+ //drag drop event handlers
+ contentAreaEventTarget.addEventListener(MozillaDomEventListener.DRAGDROPEVENT, contentAreaEventListener, false);
+ contentAreaEventTarget.addEventListener(MozillaDomEventListener.DRAGENTEREVENT, contentAreaEventListener, false);
+ contentAreaEventTarget.addEventListener(MozillaDomEventListener.DRAGEXITEVENT, contentAreaEventListener, false);
+ contentAreaEventTarget.addEventListener(MozillaDomEventListener.DRAGGESTUREEVENT, contentAreaEventListener, false);
+ contentAreaEventTarget.addEventListener(MozillaDomEventListener.DRAGOVEREVENT, contentAreaEventListener, false);
+
documentEventTarget = (nsIDOMEventTarget) getDomDocument().queryInterface(nsIDOMEventTarget.NS_IDOMEVENTTARGET_IID);
documentEventTarget.addEventListener("keypress", contentAreaEventListener, false); //$NON-NLS-1$
} else {
17 years, 5 months
JBoss Tools SVN: r3280 - in trunk/documentation/GettingStartedGuide/docs/resources: styles/en and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: smukhina
Date: 2007-08-22 11:26:38 -0400 (Wed, 22 Aug 2007)
New Revision: 3280
Modified:
trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.css
trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.xsl
trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html_chunk.xsl
trunk/documentation/GettingStartedGuide/docs/resources/support.xml
trunk/documentation/GettingStartedGuide/docs/resources/support/docbook-xsl/html/html.xsl
Log:
http://jira.jboss.com/jira/browse/RF-600
Table of contents optimization
done for single and multi page versions
Modified: trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.css
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.css 2007-08-22 15:23:41 UTC (rev 3279)
+++ trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.css 2007-08-22 15:26:38 UTC (rev 3280)
@@ -333,3 +333,14 @@
SPAN.java16 {
FONT-SIZE: 8pt; COLOR: #646464; LINE-HEIGHT: 10px
}
+
+.expand_collapse_toc {
+ clear:both;
+ float:left;
+ font-family:monospace;
+ width:20px;
+ color: #2A7BD4;
+ cursor: pointer;
+}
+
+
Modified: trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.xsl
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.xsl 2007-08-22 15:23:41 UTC (rev 3279)
+++ trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html.xsl 2007-08-22 15:26:38 UTC (rev 3280)
@@ -15,16 +15,17 @@
-->
<!DOCTYPE xsl:stylesheet [
- <!ENTITY db_xsl_path "../../support/docbook-xsl/">
+ <!ENTITY db_xsl_path "../support/docbook-xsl">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns="http://www.w3.org/TR/xhtml1/transitional"
exclude-result-prefixes="#default">
-
-<xsl:import href="&db_xsl_path;/html/docbook.xsl"/>
+<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
+<xsl:include href="./collapsing-navigation.xsl"></xsl:include>
+
<!--###################################################
HTML Settings
################################################### -->
@@ -81,6 +82,6 @@
procedure before
</xsl:param>
<xsl:template match="section[@role = 'NotInToc']//*" mode="toc" />
- <xsl:template match="chapter[@role = 'NotInToc']//section//*" mode="toc" />
-
+ <xsl:template match="chapter[@role = 'NotInToc']//section//*" mode="toc" />
+
</xsl:stylesheet>
Modified: trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html_chunk.xsl
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html_chunk.xsl 2007-08-22 15:23:41 UTC (rev 3279)
+++ trunk/documentation/GettingStartedGuide/docs/resources/styles/en/html_chunk.xsl 2007-08-22 15:26:38 UTC (rev 3280)
@@ -23,8 +23,13 @@
xmlns="http://www.w3.org/TR/xhtml1/transitional"
exclude-result-prefixes="#default">
-<xsl:import href="&db_xsl_path;/html/chunk.xsl"/>
+<!-- <xsl:import href="&db_xsl_path;/html/chunk.xsl"/> -->
+<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl"/>
+
+<xsl:include href="./collapsing-navigation.xsl"></xsl:include>
+
+
<!--###################################################
HTML Settings
################################################### -->
Modified: trunk/documentation/GettingStartedGuide/docs/resources/support/docbook-xsl/html/html.xsl
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/resources/support/docbook-xsl/html/html.xsl 2007-08-22 15:23:41 UTC (rev 3279)
+++ trunk/documentation/GettingStartedGuide/docs/resources/support/docbook-xsl/html/html.xsl 2007-08-22 15:26:38 UTC (rev 3280)
@@ -1,90 +1,86 @@
-<?xml version='1.0'?>
+<?xml version="1.0"?>
+
+<!--
+
+ This is the XSL HTML configuration file for the Hibernate
+ Reference Documentation.
+
+ It took me days to figure out this stuff and fix most of
+ the obvious bugs in the DocBook XSL distribution. Some of
+ the workarounds might not be appropriate with a newer version
+ of DocBook XSL. This file is released as part of Hibernate,
+ hence LGPL licensed.
+
+ christian(a)hibernate.org
+-->
+
+<!DOCTYPE xsl:stylesheet [
+ <!ENTITY db_xsl_path "../support/docbook-xsl">
+]>
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version='1.0'>
+ version="1.0"
+ xmlns="http://www.w3.org/TR/xhtml1/transitional"
+ exclude-result-prefixes="#default">
+<xsl:import href="http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl"/>
+<xsl:include href="./collapsing-navigation.xsl"></xsl:include>
-<!-- ********************************************************************
- $Id: html.xsl,v 1.1.1.1 2004/10/19 21:21:46 juntao Exp $
- ********************************************************************
+<!--###################################################
+ HTML Settings
+ ################################################### -->
- This file is part of the XSL DocBook Stylesheet distribution.
- See ../README or http://nwalsh.com/docbook/xsl/ for copyright
- and other information.
+ <xsl:param name="html.stylesheet">css/html.css</xsl:param>
- ******************************************************************** -->
+ <!-- These extensions are required for table printing and other stuff -->
+ <xsl:param name="use.extensions">1</xsl:param>
+ <xsl:param name="tablecolumns.extension">0</xsl:param>
+ <xsl:param name="callout.extensions">1</xsl:param>
+ <xsl:param name="graphicsize.extension">0</xsl:param>
-<xsl:template name="anchor">
- <xsl:param name="node" select="."/>
- <xsl:param name="conditional" select="1"/>
- <xsl:variable name="id">
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="$node"/>
- </xsl:call-template>
- </xsl:variable>
- <xsl:if test="$conditional = 0 or $node/@id">
- <a name="{$id}"/>
- </xsl:if>
-</xsl:template>
+<!--###################################################
+ Table Of Contents
+ ################################################### -->
-<xsl:template name="href.target.uri">
- <xsl:param name="context" select="."/>
- <xsl:param name="object" select="."/>
- <xsl:text>#</xsl:text>
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="$object"/>
- </xsl:call-template>
-</xsl:template>
+ <!-- Generate the TOCs for named components only -->
+ <xsl:param name="generate.toc">
+ book toc
+ </xsl:param>
+
+ <!-- Show only Sections up to level 3 in the TOCs -->
+ <xsl:param name="toc.section.depth">3</xsl:param>
+
+<!--###################################################
+ Labels
+ ################################################### -->
-<xsl:template name="href.target">
- <xsl:param name="context" select="."/>
- <xsl:param name="object" select="."/>
- <xsl:text>#</xsl:text>
- <xsl:call-template name="object.id">
- <xsl:with-param name="object" select="$object"/>
- </xsl:call-template>
-</xsl:template>
+ <!-- Label Chapters and Sections (numbering) -->
+ <xsl:param name="chapter.autolabel">1</xsl:param>
+ <xsl:param name="section.autolabel" select="1"/>
+ <xsl:param name="section.label.includes.component.label" select="1"/>
-<xsl:template name="href.target.with.base.dir">
- <xsl:param name="object" select="."/>
- <xsl:if test="$manifest.in.base.dir = 0">
- <xsl:value-of select="$base.dir"/>
- </xsl:if>
- <xsl:call-template name="href.target">
- <xsl:with-param name="object" select="$object"/>
- </xsl:call-template>
-</xsl:template>
+<!--###################################################
+ Callouts
+ ################################################### -->
-<xsl:template name="dingbat">
- <xsl:param name="dingbat">bullet</xsl:param>
- <xsl:call-template name="dingbat.characters">
- <xsl:with-param name="dingbat" select="$dingbat"/>
- </xsl:call-template>
-</xsl:template>
+ <!-- Don't use graphics, use a simple number style -->
+ <xsl:param name="callout.graphics">0</xsl:param>
-<xsl:template name="dingbat.characters">
- <!-- now that I'm using the real serializer, all that dingbat malarky -->
- <!-- isn't necessary anymore... -->
- <xsl:param name="dingbat">bullet</xsl:param>
- <xsl:choose>
- <xsl:when test="$dingbat='bullet'">•</xsl:when>
- <xsl:when test="$dingbat='copyright'">©</xsl:when>
- <xsl:when test="$dingbat='trademark'">™</xsl:when>
- <xsl:when test="$dingbat='trade'">™</xsl:when>
- <xsl:when test="$dingbat='registered'">®</xsl:when>
- <xsl:when test="$dingbat='service'">(SM)</xsl:when>
- <xsl:when test="$dingbat='nbsp'"> </xsl:when>
- <xsl:when test="$dingbat='ldquo'">“</xsl:when>
- <xsl:when test="$dingbat='rdquo'">”</xsl:when>
- <xsl:when test="$dingbat='lsquo'">‘</xsl:when>
- <xsl:when test="$dingbat='rsquo'">’</xsl:when>
- <xsl:when test="$dingbat='em-dash'">—</xsl:when>
- <xsl:when test="$dingbat='mdash'">—</xsl:when>
- <xsl:when test="$dingbat='en-dash'">–</xsl:when>
- <xsl:when test="$dingbat='ndash'">–</xsl:when>
- <xsl:otherwise>
- <xsl:text>•</xsl:text>
- </xsl:otherwise>
- </xsl:choose>
-</xsl:template>
+ <!-- Place callout marks at this column in annotated areas -->
+ <xsl:param name="callout.defaultcolumn">90</xsl:param>
-</xsl:stylesheet>
+<!--###################################################
+ Misc
+ ################################################### -->
+ <!-- Placement of titles -->
+ <xsl:param name="formal.title.placement">
+ figure after
+ example before
+ equation before
+ table before
+ procedure before
+ </xsl:param>
+ <xsl:template match="section[@role = 'NotInToc']//*" mode="toc" />
+ <xsl:template match="chapter[@role = 'NotInToc']//section//*" mode="toc" />
+
+</xsl:stylesheet>
Modified: trunk/documentation/GettingStartedGuide/docs/resources/support.xml
===================================================================
--- trunk/documentation/GettingStartedGuide/docs/resources/support.xml 2007-08-22 15:23:41 UTC (rev 3279)
+++ trunk/documentation/GettingStartedGuide/docs/resources/support.xml 2007-08-22 15:26:38 UTC (rev 3280)
@@ -170,6 +170,11 @@
<include name="**/*.css"/>
</fileset>
</copy>
+ <copy todir="${build.dir}/${lang}/html">
+ <fileset dir="${styles.dir}/${lang}">
+ <include name="**/*.js"/>
+ </fileset>
+ </copy>
<copy todir="${build.dir}/${lang}/html/css/images">
<fileset dir="${styles.dir}/${lang}/Images">
@@ -210,6 +215,11 @@
</fileset>
</copy>
+ <copy todir="${build.dir}/${lang}/html_single">
+ <fileset dir="${styles.dir}/${lang}">
+ <include name="**/*.js"/>
+ </fileset>
+ </copy>
<java classname="com.icl.saxon.StyleSheet"
fork="true" dir="${basedir}">
<classpath refid="lib.classpath"/>
17 years, 5 months
JBoss Tools SVN: r3279 - branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2007-08-22 11:23:41 -0400 (Wed, 22 Aug 2007)
New Revision: 3279
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeDnD.java
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeSelectionBuilder.java
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-744
Modified: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2007-08-22 15:23:36 UTC (rev 3278)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2007-08-22 15:23:41 UTC (rev 3279)
@@ -744,7 +744,7 @@
if (!switcher.startActiveEditor(ActiveEditorSwitcher.ACTIVE_EDITOR_VISUAL)) {
return;
}
- nsIDOMElement visualDragElement = selectionBuilder.getDragElement(mouseEvent);
+ nsIDOMElement visualDragElement = selectionBuilder.getDragElement(mouseEvent);
if (VpeDebug.printVisualMouseEvent) {
nsIDOMNode visualNode = VisualDomUtil.getTargetNode(mouseEvent);
System.out.println("<<< mouseDown targetNode: " + visualNode.getNodeName() + " (" + visualNode + ") selectedElement: " + (visualDragElement != null ? visualDragElement.getNodeName() + " (" + visualDragElement + ")" : null)); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$
Modified: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeDnD.java
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeDnD.java 2007-08-22 15:23:36 UTC (rev 3278)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeDnD.java 2007-08-22 15:23:41 UTC (rev 3279)
@@ -14,6 +14,7 @@
import org.eclipse.swt.graphics.Rectangle;
import org.mozilla.interfaces.nsIDOMNSHTMLElement;
import org.mozilla.interfaces.nsIDOMNode;
+import org.mozilla.xpcom.XPCOMException;
/**
* @author Max Areshkau
@@ -23,9 +24,17 @@
public class VpeDnD {
public Rectangle getBounds(nsIDOMNode visualNode) {
-
+ try {
+
nsIDOMNSHTMLElement domNSHTMLElement = (nsIDOMNSHTMLElement) visualNode.queryInterface(nsIDOMNSHTMLElement.NS_IDOMNSHTMLELEMENT_IID);
return new Rectangle(domNSHTMLElement.getOffsetLeft(), domNSHTMLElement.getOffsetTop(),domNSHTMLElement.getOffsetWidth(),domNSHTMLElement.getOffsetHeight());
- }
+
+ } catch(XPCOMException xpcomException) {
+
+ //TODO Max Areshkau
+ //If node not not implement nsIDOMNSHTMLElement, may be check best take a parent node
+ return new Rectangle(0, 0, 0,0);
+ }
+ }
}
Modified: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeSelectionBuilder.java
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeSelectionBuilder.java 2007-08-22 15:23:36 UTC (rev 3278)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeSelectionBuilder.java 2007-08-22 15:23:41 UTC (rev 3279)
@@ -1151,7 +1151,7 @@
if (visualNode != null && visualNode.getNodeType() == Node.ELEMENT_NODE &&
(HTML.TAG_INPUT.equalsIgnoreCase(visualNode.getNodeName()) || HTML.TAG_BUTTON.equalsIgnoreCase(visualNode.getNodeName()) || "SELECT".equalsIgnoreCase(visualNode.getNodeName())) &&
!selection.containsNode(visualNode, false) && visualBuilder.canInnerDrag((nsIDOMElement)visualNode.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID))) {
- return (nsIDOMElement)visualNode;
+ return (nsIDOMElement)visualNode.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
}
return null;
}
Modified: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-08-22 15:23:36 UTC (rev 3278)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-08-22 15:23:41 UTC (rev 3279)
@@ -1444,11 +1444,11 @@
}
private boolean inDragArea(Rectangle dragArea, Point mousePoint) {
- //TODO add drag and drop support
+ //TODO add drag and drop support
// return dragArea.contains(mousePoint) &&
// mousePoint.x < (dragArea.x + DRAG_AREA_WIDTH) &&
// mousePoint.y < (dragArea.y + DRAG_AREA_HEIGHT);
- return true;
+ return false;
}
nsIDOMElement getDragElement(nsIDOMMouseEvent mouseEvent) {
@@ -1456,17 +1456,13 @@
/*We use element on which was click
*
*/
- try{
- nsIDOMEventTarget eventTarget = mouseEvent.getTarget();
- nsIDOMElement selectedElement = (nsIDOMElement) eventTarget.queryInterface(nsIDOMElement.NS_IDOMELEMENT_IID);
+
+ nsIDOMElement selectedElement = xulRunnerEditor.getLastSelectedElement();
if (selectedElement != null && canInnerDrag(selectedElement)) {
if (inDragArea(getNodeBounds(selectedElement), VisualDomUtil.getMousePoint(mouseEvent))) {
return selectedElement;
}
}
- } catch(XPCOMException exception) {
- exception.printStackTrace();
- }
return null;
}
17 years, 5 months
JBoss Tools SVN: r3278 - branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor.
by jbosstools-commits@lists.jboss.org
Author: mareshkau
Date: 2007-08-22 11:23:36 -0400 (Wed, 22 Aug 2007)
New Revision: 3278
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-744
Modified: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java 2007-08-22 14:38:06 UTC (rev 3277)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerEditor.java 2007-08-22 15:23:36 UTC (rev 3278)
@@ -228,7 +228,7 @@
* Function created to restore functionality of MozillaBrowser
* @return
*/
- private nsIDOMElement getLastSelectedElement() {
+ public nsIDOMElement getLastSelectedElement() {
return lastSelectedElement;
}
@@ -265,16 +265,16 @@
getIFlasher().setColor(flasherHiddentElementColor);
}
-// getIFlasher().repaintElement(getLastSelectedElement());
- getIFlasher().drawElementOutline(getLastSelectedElement());
+ getIFlasher().repaintElement(getLastSelectedElement());
+// getIFlasher().drawElementOutline(getLastSelectedElement());
}else {
getIFlasher().setColor(flasherHiddentElementColor);
nsIDOMElement domElement = findVisbleParentElement(getLastSelectedElement());
if(domElement!=null) {
- getIFlasher().drawElementOutline(getLastSelectedElement());
-// getIFlasher().repaintElement(domElement);
+// getIFlasher().drawElementOutline(getLastSelectedElement());
+ getIFlasher().repaintElement(domElement);
}
}
@@ -315,7 +315,6 @@
}
setLastSelectedElement(element);
- lastSelectedElement = element;
lastResizerConstrains = resizerConstrains;
}
17 years, 5 months
JBoss Tools SVN: r3277 - branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor.
by jbosstools-commits@lists.jboss.org
Author: ayukhovich
Date: 2007-08-22 10:38:06 -0400 (Wed, 22 Aug 2007)
New Revision: 3277
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/VpeResizerMouseListener.java
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/VpeResizerMouseMotionListener.java
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerVpeResizer.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-742
add functionality of resizing
Modified: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/VpeResizerMouseListener.java
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/VpeResizerMouseListener.java 2007-08-22 14:34:00 UTC (rev 3276)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/VpeResizerMouseListener.java 2007-08-22 14:38:06 UTC (rev 3277)
@@ -54,9 +54,7 @@
mouseDown(mouseEvent);
} else if (XulRunnerConstants.EVENT_NAME_MOUSEUP.equals(mouseEvent.getType())) {
mouseUp(mouseEvent);
- } else if (XulRunnerConstants.EVENT_NAME_MOUSEMOVE.equals(mouseEvent.getType())) {
- mouseMove(mouseEvent);
- }
+ }
}
/*
@@ -131,14 +129,4 @@
}
}
}
-
- /**
- * processing event of mouseMove
- *
- * @param mouseEvent
- * a nsIDOMMouseEvent object
- */
- private void mouseMove(nsIDOMMouseEvent mouseEvent) {
- vpeResizer.mouseMove(mouseEvent);
- }
}
Modified: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/VpeResizerMouseMotionListener.java
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/VpeResizerMouseMotionListener.java 2007-08-22 14:34:00 UTC (rev 3276)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/VpeResizerMouseMotionListener.java 2007-08-22 14:38:06 UTC (rev 3277)
@@ -42,7 +42,7 @@
if ( mouseEvent == null ) {
return;
}
-
+ System.out.println("VpeResizerMouseMoti: mouseMove");
vpeResizer.mouseMove(mouseEvent);
}
Modified: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerVpeResizer.java
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerVpeResizer.java 2007-08-22 14:34:00 UTC (rev 3276)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe.xulrunner/src/org/jboss/tools/vpe/xulrunner/editor/XulRunnerVpeResizer.java 2007-08-22 14:38:06 UTC (rev 3277)
@@ -73,7 +73,8 @@
private int originalX;
private int originalY;
- private int usedEResizeMarkerHandle;
+ /** bit-mask of used resize marker */
+ private int usedResizeMarker;
private int incrementFactorX;
private int incrementFactorY;
@@ -134,8 +135,7 @@
/*
* (non-Javadoc)
*
- * @see org.jboss.vpe.mozilla.resizer.IVpeResizer#show(org.mozilla.interfaces.nsIDOMElement,
- * int)
+ * @see org.jboss.vpe.mozilla.resizer.IVpeResizer#show(org.mozilla.interfaces.nsIDOMElement, int)
*/
public void show(nsIDOMElement domElement, int resizers) {
resizingObject = domElement;
@@ -454,28 +454,28 @@
}
if (locationStr.equals(RESIZER_MARKER_STRING_TOPLEFT)) {
- usedEResizeMarkerHandle = RESIZER_MARKER_TOPLEFT;
+ usedResizeMarker = RESIZER_MARKER_TOPLEFT;
setResizeIncrements(1, 1, -1, -1, false);
} else if (locationStr.equals(RESIZER_MARKER_STRING_TOP)) {
- usedEResizeMarkerHandle = RESIZER_MARKER_TOP;
+ usedResizeMarker = RESIZER_MARKER_TOP;
setResizeIncrements(0, 1, 0, -1, false);
} else if (locationStr.equals(RESIZER_MARKER_STRING_TOPRIGHT)) {
- usedEResizeMarkerHandle = RESIZER_MARKER_TOPRIGHT;
+ usedResizeMarker = RESIZER_MARKER_TOPRIGHT;
setResizeIncrements(0, 1, 1, -1, false);
} else if (locationStr.equals(RESIZER_MARKER_STRING_LEFT)) {
- usedEResizeMarkerHandle = RESIZER_MARKER_LEFT;
+ usedResizeMarker = RESIZER_MARKER_LEFT;
setResizeIncrements(1, 0, -1, 0, false);
} else if (locationStr.equals(RESIZER_MARKER_STRING_RIGHT)) {
- usedEResizeMarkerHandle = RESIZER_MARKER_RIGHT;
+ usedResizeMarker = RESIZER_MARKER_RIGHT;
setResizeIncrements(0, 0, 1, 0, false);
} else if (locationStr.equals(RESIZER_MARKER_STRING_BOTTOMLEFT)) {
- usedEResizeMarkerHandle = RESIZER_MARKER_BOTTOMLEFT;
+ usedResizeMarker = RESIZER_MARKER_BOTTOMLEFT;
setResizeIncrements(1, 0, -1, 1, false);
} else if (locationStr.equals(RESIZER_MARKER_STRING_BOTTOM)) {
- usedEResizeMarkerHandle = RESIZER_MARKER_BOTTOM;
+ usedResizeMarker = RESIZER_MARKER_BOTTOM;
setResizeIncrements(0, 0, 0, 1, false);
} else if (locationStr.equals(RESIZER_MARKER_STRING_BOTTOMRIGHT)) {
- usedEResizeMarkerHandle = RESIZER_MARKER_BOTTOMRIGHT;
+ usedResizeMarker = RESIZER_MARKER_BOTTOMRIGHT;
setResizeIncrements(0, 0, 1, 1, false);
}
@@ -494,7 +494,7 @@
}
mouseMotionListener = new VpeResizerMouseMotionListener(this);
- if ( mouseMotionListener != null ) {
+ if ( mouseMotionListener == null ) {
return;
}
@@ -761,8 +761,7 @@
* @param aClientX
* @param aClientY
*/
- private void endResizing(int aClientX, int aClientY)
- {
+ private void endResizing(int aClientX, int aClientY) {
if (resizingShadow == null) {
return;
}
@@ -777,17 +776,13 @@
int width = getNewResizingWidth(aClientX, aClientY);
int height = getNewResizingHeight(aClientX, aClientY);
- int listenersCount = objectResizeEventListeners.size();
- if (listenersCount != 0) {
- IVpeResizeListener listener;
- int index;
- for (index = 0; index < listenersCount; index++) {
- listener = objectResizeEventListeners.get(index);
- listener.onEndResizing(usedEResizeMarkerHandle,top,left,width,height,resizingObject);
+ if ( objectResizeEventListeners.size() != 0) {
+ for ( IVpeResizeListener resizeListener : objectResizeEventListeners ) {
+ resizeListener.onEndResizing(usedResizeMarker,top,left,width,height,resizingObject);
}
}
- usedEResizeMarkerHandle = 0;
+ usedResizeMarker = 0;
}
/**
17 years, 5 months
JBoss Tools SVN: r3276 - in trunk/seam/plugins/org.jboss.tools.seam.xml: resources/meta and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-08-22 10:34:00 -0400 (Wed, 22 Aug 2007)
New Revision: 3276
Added:
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-async.meta
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml
trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-persistence.meta
Log:
JBIDE-789 Added recognizing async-2.0.xsd
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2007-08-22 14:33:47 UTC (rev 3275)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/plugin.xml 2007-08-22 14:34:00 UTC (rev 3276)
@@ -4,6 +4,7 @@
<extension point="org.jboss.tools.common.model.meta">
<meta path="meta/seam-components.meta"/>
+ <meta path="meta/seam-async.meta"/>
<meta path="meta/seam-core.meta"/>
<meta path="meta/seam-drools.meta"/>
<meta path="meta/seam-framework.meta"/>
Added: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-async.meta
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-async.meta (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-async.meta 2007-08-22 14:34:00 UTC (rev 3276)
@@ -0,0 +1,248 @@
+<?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="Struts Editor" VERSION="1.0"/>
+ <MAPPINGS>
+ <MAPPING name="Handlers"/>
+ <MAPPING name="SeamNamespaces">
+ <PAIR name="async" value="http://jboss.com/products/seam/async"/>
+ </MAPPING>
+ <MAPPING name="SeamSchemas">
+ <PAIR name="async$20" value="http://jboss.com/products/seam/async-2.0.xsd"/>
+ </MAPPING>
+ </MAPPINGS>
+ <ICONS>
+ <GROUP name="action">
+ <GROUP name="new">
+ <GROUP name="async">
+ <ICON name="dispatcher" path="images/struts/plug_in.gif"/>
+ </GROUP>
+ </GROUP>
+ </GROUP>
+ <GROUP name="main">
+ <GROUP name="seam">
+ <GROUP name="async">
+ <ICON name="dispatcher" path="images/struts/plug_in.gif"/>
+ </GROUP>
+ </GROUP>
+ </GROUP>
+ </ICONS>
+ <GlobalActions kind="list"/>
+ <XModelEntity ImplementingClass="%Custom%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData"
+ XMLSUBPATH="async:thread-pool-dispatcher" name="SeamAsyncPool">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.async.dispatcher" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="thread pool dispatcher"
+ loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="org.jboss.seam.async.dispatcher" name="name" xmlname="name"/>
+ <XModelAttributeReference
+ attributes="class,scope,precedence,installed,auto-create"
+ entity="SeamComponent" name="component"/>
+ <XModelAttribute PROPERTIES="category=general"
+ name="thread-pool-size" xmlname="thread-pool-size"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <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="%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>
+ <XModelEntity ImplementingClass="%Custom%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData"
+ XMLSUBPATH="async:quartz-dispatcher" name="SeamAsyncQuartz">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.async.dispatcher" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="quartz dispatcher" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="org.jboss.seam.async.dispatcher" name="name" xmlname="name"/>
+ <XModelAttributeReference
+ attributes="class,scope,precedence,installed,auto-create"
+ entity="SeamComponent" name="component"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <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="%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>
+ <XModelEntity ImplementingClass="%Custom%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData"
+ XMLSUBPATH="async:timer-service-dispatcher" name="SeamAsyncTimer">
+ <XChildrenEntities/>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.async.dispatcher" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="timer service dispatcher"
+ loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="org.jboss.seam.async.dispatcher" name="name" xmlname="name"/>
+ <XModelAttributeReference
+ attributes="class,scope,precedence,installed,auto-create,jndi-name"
+ entity="SeamComponent" name="component"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <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="%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="FileSeamComponents20">
+ <XChildrenEntities>
+ <XChildEntity name="SeamAsyncPool"/>
+ <XChildEntity name="SeamAsyncQuartz"/>
+ <XChildEntity name="SeamAsyncTimer"/>
+ </XChildrenEntities>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions">
+ <XActionItem ICON="action.empty" displayName="Async" group="1"
+ kind="list" name="Async">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Timer Service Dispatcher..." kind="action" name="AddTimer">
+ <EntityData EntityName="SeamAsyncTimer">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="scope" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Quartz Dispatcher..." kind="action" name="AddQuartz">
+ <EntityData EntityName="SeamAsyncQuartz">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="scope" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Thread Pool Dispatcher..." kind="action" name="AddPool">
+ <EntityData EntityName="SeamAsyncPool">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="scope" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ </XActionItem>
+ </XActionItem>
+ </XEntityExtension>
+ <XEntityExtension name="FileSeamComponents20_EditorActionList">
+ <XChildrenEntities/>
+ <XActionItem kind="list">
+ <XActionItem ICON="action.empty" displayName="New" group="1"
+ kind="list" name="CreateActions">
+ <XActionItem ICON="action.empty" displayName="Async" group="1"
+ kind="list" name="Async">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Timer Service Dispatcher..." kind="action" name="AddTimer">
+ <EntityData EntityName="SeamAsyncTimer">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="scope" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Quartz Dispatcher..." kind="action" name="AddQuartz">
+ <EntityData EntityName="SeamAsyncQuartz">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="scope" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Thread Pool Dispatcher..." kind="action" name="AddPool">
+ <EntityData EntityName="SeamAsyncPool">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="scope" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ </XActionItem>
+ </XActionItem>
+ </XEntityExtension>
+</XModelEntityGroup>
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-persistence.meta
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-persistence.meta 2007-08-22 14:33:47 UTC (rev 3275)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml/resources/meta/seam-persistence.meta 2007-08-22 14:34:00 UTC (rev 3276)
@@ -28,6 +28,64 @@
</ICONS>
<GlobalActions kind="list"/>
<XModelEntity ImplementingClass="%Custom%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData;children=%Ordered%;childrenLoader=map;saveDefault=false"
+ XMLSUBPATH="persistence:cfg-properties" name="SeamPersistenceCfgProperties">
+ <XChildrenEntities>
+ <XChildEntity name="SeamMapEntry"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.property" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="cfg properties" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="cfg-properties" name="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ WizardClassName="%Default%" displayName="Add Entry..."
+ kind="action" name="AddEntry">
+ <EntityData EntityName="SeamMapEntry">
+ <AttributeData AttributeName="key"/>
+ <AttributeData AttributeName="value"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <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 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="%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>
+ <XModelEntity ImplementingClass="%Custom%"
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData"
XMLSUBPATH="persistence:entity-manager-factory" name="SeamPersistenceEntityManagerFactory">
<XChildrenEntities>
@@ -78,6 +136,54 @@
<XDependencies/>
</XModelEntity>
<XModelEntity ImplementingClass="%Custom%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData"
+ XMLSUBPATH="persistence:filter" name="SeamPersistenceFilter">
+ <XChildrenEntities>
+ <XChildEntity maxCount="1" name="SeamPersistenceParameters" required="yes"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.core.timeZoneSelector" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="filter" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttributeReference
+ attributes="name,class,scope,precedence,installed,auto-create"
+ entity="SeamComponent" name="component"/>
+ <XModelAttribute PROPERTIES="category=general" name="filter name" xmlname="persistence:name.#text"/>
+ <XModelAttribute PROPERTIES="category=advanced" name="enabled" xmlname="enabled"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <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="%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>
+ <XModelEntity ImplementingClass="%Custom%"
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData;children=%Ordered%;childrenLoader=list;saveDefault=false"
XMLSUBPATH="persistence:filters" name="SeamPersistenceFilters">
<XChildrenEntities>
@@ -136,6 +242,61 @@
</XModelEntity>
<XModelEntity ImplementingClass="%Custom%"
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData"
+ XMLSUBPATH="persistence:hibernate-session-factory" name="SeamPersistenceHibernateSessionFactory">
+ <XChildrenEntities>
+ <XChildEntity maxCount="1" name="SeamPersistenceMappingClasses" required="yes"/>
+ <XChildEntity maxCount="1" name="SeamPersistenceMappingFiles" required="yes"/>
+ <XChildEntity maxCount="1" name="SeamPersistenceMappingJars" required="yes"/>
+ <XChildEntity maxCount="1" name="SeamPersistenceMappingPackages" required="yes"/>
+ <XChildEntity maxCount="1" name="SeamPersistenceMappingResources" required="yes"/>
+ <XChildEntity maxCount="1" name="SeamPersistenceCfgProperties" required="yes"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.core.bundle" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="hibernate session factory"
+ loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general" name="name" xmlname="name"/>
+ <XModelAttributeReference
+ attributes="class,scope,precedence,installed,auto-create"
+ entity="SeamComponent" name="component"/>
+ <XModelAttribute PROPERTIES="category=general"
+ name="cfg-resource-name" xmlname="cfg-resource-name"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <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="%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>
+ <XModelEntity ImplementingClass="%Custom%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData"
XMLSUBPATH="persistence:managed-persistence-context" name="SeamPersistenceManagedContext">
<XChildrenEntities>
<XChildEntity maxCount="1" name="SeamPersistenceFilters" required="yes"/>
@@ -187,7 +348,401 @@
<XDependencies/>
</XModelEntity>
<XModelEntity ImplementingClass="%Custom%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData"
+ XMLSUBPATH="persistence:managed-hibernate-session" name="SeamPersistenceManagedHibernateSession">
+ <XChildrenEntities>
+ <XChildEntity maxCount="1" name="SeamPersistenceFilters" required="yes"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.core.bundle" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="managed hibernate session"
+ loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general" name="name" xmlname="name"/>
+ <XModelAttributeReference
+ attributes="class,scope,precedence,installed,auto-create"
+ entity="SeamComponent" name="component"/>
+ <XModelAttribute PROPERTIES="category=general" name="session-factory" xmlname="session-factory"/>
+ <XModelAttribute PROPERTIES="category=general"
+ name="session-factory-jndi-name" xmlname="session-factory-jndi-name"/>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions"/>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <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="%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>
+ <XModelEntity ImplementingClass="%Custom%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData;children=%Ordered%;childrenLoader=list;saveDefault=false"
+ XMLSUBPATH="persistence:mapping-classes" name="SeamPersistenceMappingClasses">
+ <XChildrenEntities>
+ <XChildEntity name="SeamListEntry"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.property" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="mapping classes" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="mapping-classes" name="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ WizardClassName="%Default%" displayName="Add Entry..."
+ kind="action" name="AddEntry">
+ <EntityData EntityName="SeamListEntry">
+ <AttributeData AttributeName="value"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <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 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="%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>
+ <XModelEntity ImplementingClass="%Custom%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData;children=%Ordered%;childrenLoader=list;saveDefault=false"
+ XMLSUBPATH="persistence:mapping-files" name="SeamPersistenceMappingFiles">
+ <XChildrenEntities>
+ <XChildEntity name="SeamListEntry"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.property" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="mapping files" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="mapping-files" name="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ WizardClassName="%Default%" displayName="Add Entry..."
+ kind="action" name="AddEntry">
+ <EntityData EntityName="SeamListEntry">
+ <AttributeData AttributeName="value"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <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 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="%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>
+ <XModelEntity ImplementingClass="%Custom%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData;children=%Ordered%;childrenLoader=list;saveDefault=false"
+ XMLSUBPATH="persistence:mapping-jars" name="SeamPersistenceMappingJars">
+ <XChildrenEntities>
+ <XChildEntity name="SeamListEntry"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.property" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="mapping jars" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="mapping-jars" name="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ WizardClassName="%Default%" displayName="Add Entry..."
+ kind="action" name="AddEntry">
+ <EntityData EntityName="SeamListEntry">
+ <AttributeData AttributeName="value"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <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 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="%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>
+ <XModelEntity ImplementingClass="%Custom%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData;children=%Ordered%;childrenLoader=list;saveDefault=false"
+ XMLSUBPATH="persistence:mapping-packages" name="SeamPersistenceMappingPackages">
+ <XChildrenEntities>
+ <XChildEntity name="SeamListEntry"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.property" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="mapping packages" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="mapping-packages" name="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ WizardClassName="%Default%" displayName="Add Entry..."
+ kind="action" name="AddEntry">
+ <EntityData EntityName="SeamListEntry">
+ <AttributeData AttributeName="value"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <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 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="%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>
+ <XModelEntity ImplementingClass="%Custom%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData;children=%Ordered%;childrenLoader=list;saveDefault=false"
+ XMLSUBPATH="persistence:mapping-resources" name="SeamPersistenceMappingResources">
+ <XChildrenEntities>
+ <XChildEntity name="SeamListEntry"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.property" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="mapping resources" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="mapping-resources" name="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ WizardClassName="%Default%" displayName="Add Entry..."
+ kind="action" name="AddEntry">
+ <EntityData EntityName="SeamListEntry">
+ <AttributeData AttributeName="value"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <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 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="%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>
+ <XModelEntity ImplementingClass="%Custom%"
PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData;children=%Ordered%;childrenLoader=map;saveDefault=false"
+ XMLSUBPATH="persistence:parameters" name="SeamPersistenceParameters">
+ <XChildrenEntities>
+ <XChildEntity name="SeamMapEntry"/>
+ </XChildrenEntities>
+ <XEntityRenderer>
+ <ICONS>
+ <ICON info="main.seam.property" type="main"/>
+ </ICONS>
+ </XEntityRenderer>
+ <XModelAttributes>
+ <XModelAttribute default="parameters" loader="ElementType" name="element type">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute PROPERTIES="id=true;category=general"
+ default="parameters" name="name">
+ <Editor name="Uneditable"/>
+ </XModelAttribute>
+ <XModelAttribute TRIM="no" name="comment" visibility="false" xmlname="#comment">
+ <Editor name="Note"/>
+ </XModelAttribute>
+ </XModelAttributes>
+ <XActionItem kind="list">
+ <XActionItem kind="list" name="CreateActions">
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ WizardClassName="%Default%" displayName="Add Entry..."
+ kind="action" name="AddEntry">
+ <EntityData EntityName="SeamMapEntry">
+ <AttributeData AttributeName="key"/>
+ <AttributeData AttributeName="value"/>
+ </EntityData>
+ </XActionItem>
+ </XActionItem>
+ <XActionItem ICON="action.empty" displayName="Create" kind="list" name="EditActions"/>
+ <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 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="%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>
+ <XModelEntity ImplementingClass="%Custom%"
+ PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData;children=%Ordered%;childrenLoader=map;saveDefault=false"
XMLSUBPATH="persistence:persistence-unit-properties" name="SeamPersistenceUnitProperties">
<XChildrenEntities>
<XChildEntity name="SeamMapEntry"/>
@@ -249,6 +804,9 @@
<XChildrenEntities>
<XChildEntity name="SeamPersistenceManagedContext"/>
<XChildEntity name="SeamPersistenceEntityManagerFactory"/>
+ <XChildEntity name="SeamPersistenceFilter"/>
+ <XChildEntity name="SeamPersistenceManagedHibernateSession"/>
+ <XChildEntity name="SeamPersistenceHibernateSessionFactory"/>
</XChildrenEntities>
<XActionItem kind="list">
<XActionItem ICON="action.empty" displayName="New" group="1"
@@ -271,6 +829,31 @@
<AttributeData AttributeName="persistence-unit-name" Mandatory="no"/>
</EntityData>
</XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Filter..." kind="action" name="AddFilter">
+ <EntityData EntityName="SeamPersistenceFilter">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="filter name" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Managed Hibernate Session..." kind="action" name="AddManagedHibernateSession">
+ <EntityData EntityName="SeamPersistenceManagedHibernateSession">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="session-factory" Mandatory="no"/>
+ <AttributeData AttributeName="session-factory-jndi-name" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Hibernate Session Factory..." kind="action" name="AddHibernateSessionFactory">
+ <EntityData EntityName="SeamPersistenceHibernateSessionFactory">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="cfg-resource-name" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
</XActionItem>
</XActionItem>
</XActionItem>
@@ -298,6 +881,31 @@
<AttributeData AttributeName="persistence-unit-name" Mandatory="no"/>
</EntityData>
</XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Filter..." kind="action" name="AddFilter">
+ <EntityData EntityName="SeamPersistenceFilter">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="filter name" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Managed Hibernate Session..." kind="action" name="AddManagedHibernateSession">
+ <EntityData EntityName="SeamPersistenceManagedHibernateSession">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="session-factory" Mandatory="no"/>
+ <AttributeData AttributeName="session-factory-jndi-name" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
+ <XActionItem HandlerClassName="%Create%" ICON="action.empty"
+ PROPERTIES="validator.add=true" WizardClassName="%Default%"
+ displayName="Hibernate Session Factory..." kind="action" name="AddHibernateSessionFactory">
+ <EntityData EntityName="SeamPersistenceHibernateSessionFactory">
+ <AttributeData AttributeName="name"/>
+ <AttributeData AttributeName="cfg-resource-name" Mandatory="no"/>
+ </EntityData>
+ </XActionItem>
</XActionItem>
</XActionItem>
</XActionItem>
17 years, 5 months
JBoss Tools SVN: r3275 - trunk/seam/plugins/org.jboss.tools.seam.xml.ui/src/org/jboss/tools/seam/xml/ui/editor/form/core.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-08-22 10:33:47 -0400 (Wed, 22 Aug 2007)
New Revision: 3275
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml.ui/src/org/jboss/tools/seam/xml/ui/editor/form/core/PropertyListFormLayoutData.java
trunk/seam/plugins/org.jboss.tools.seam.xml.ui/src/org/jboss/tools/seam/xml/ui/editor/form/core/SeamComponentsCoreFormLayoutData.java
Log:
JBIDE-789 Added recognizing async-2.0.xsd
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml.ui/src/org/jboss/tools/seam/xml/ui/editor/form/core/PropertyListFormLayoutData.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml.ui/src/org/jboss/tools/seam/xml/ui/editor/form/core/PropertyListFormLayoutData.java 2007-08-22 14:16:00 UTC (rev 3274)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml.ui/src/org/jboss/tools/seam/xml/ui/editor/form/core/PropertyListFormLayoutData.java 2007-08-22 14:33:47 UTC (rev 3275)
@@ -274,4 +274,25 @@
final static IFormData MAIL_MELDWARE_USER_FORM_DEFINITION = new FormData(
ENT_MAIL_MELDWARE_USER, new String[]{null}, MAIL_MELDWARE_USER_DEFINITIONS);
+ /**
+ * Persistence
+ */
+ static String ENT_PERS_MAPPING_CLASSES = "SeamPersistenceMappingClasses";
+ static String ENT_PERS_MAPPING_FILES = "SeamPersistenceMappingFiles";
+ static String ENT_PERS_MAPPING_JARS = "SeamPersistenceMappingJars";
+ static String ENT_PERS_MAPPING_PACKAGES = "SeamPersistenceMappingPackages";
+ static String ENT_PERS_MAPPING_RESOURCES = "SeamPersistenceMappingResources";
+
+ final static IFormData PERS_MAPPING_CLASSES_FORM_DEFINITION = new FormData(
+ ENT_PERS_MAPPING_CLASSES, new String[]{null}, new IFormData[] {createListDefinition("Mapping Classes")});
+ final static IFormData PERS_MAPPING_FILES_FORM_DEFINITION = new FormData(
+ ENT_PERS_MAPPING_FILES, new String[]{null}, new IFormData[] {createListDefinition("Mapping Files")});
+ final static IFormData PERS_MAPPING_JARS_FORM_DEFINITION = new FormData(
+ ENT_PERS_MAPPING_JARS, new String[]{null}, new IFormData[] {createListDefinition("Mapping Jars")});
+ final static IFormData PERS_MAPPING_PACKAGES_FORM_DEFINITION = new FormData(
+ ENT_PERS_MAPPING_PACKAGES, new String[]{null}, new IFormData[] {createListDefinition("Mapping Packages")});
+ final static IFormData PERS_MAPPING_RESOURCES_FORM_DEFINITION = new FormData(
+ ENT_PERS_MAPPING_RESOURCES, new String[]{null}, new IFormData[] {createListDefinition("Mapping Resources")});
+
+
}
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml.ui/src/org/jboss/tools/seam/xml/ui/editor/form/core/SeamComponentsCoreFormLayoutData.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml.ui/src/org/jboss/tools/seam/xml/ui/editor/form/core/SeamComponentsCoreFormLayoutData.java 2007-08-22 14:16:00 UTC (rev 3274)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml.ui/src/org/jboss/tools/seam/xml/ui/editor/form/core/SeamComponentsCoreFormLayoutData.java 2007-08-22 14:33:47 UTC (rev 3275)
@@ -57,6 +57,12 @@
PropertyListFormLayoutData.MAIL_MELDWARE_FORM_DEFINITION,
PropertyListFormLayoutData.MAIL_MELDWARE_USER_FORM_DEFINITION,
PropertyListFormLayoutData.MAIL_USERS_FORM_DEFINITION,
+
+ PropertyListFormLayoutData.PERS_MAPPING_CLASSES_FORM_DEFINITION,
+ PropertyListFormLayoutData.PERS_MAPPING_FILES_FORM_DEFINITION,
+ PropertyListFormLayoutData.PERS_MAPPING_JARS_FORM_DEFINITION,
+ PropertyListFormLayoutData.PERS_MAPPING_PACKAGES_FORM_DEFINITION,
+ PropertyListFormLayoutData.PERS_MAPPING_RESOURCES_FORM_DEFINITION,
};
17 years, 5 months