JBoss Tools SVN: r8783 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-06-16 07:14:41 -0400 (Mon, 16 Jun 2008)
New Revision: 8783
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/messages.properties
Log:
http://jira.jboss.com/jira/browse/JBIDE-2328 Fixed in trunk and brunch 2.1.*
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/messages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/messages.properties 2008-06-16 11:09:27 UTC (rev 8782)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/messages.properties 2008-06-16 11:14:41 UTC (rev 8783)
@@ -14,7 +14,7 @@
STATEFUL_COMPONENT_DOES_NOT_CONTAIN_DESTROY=Stateful component "{0}" must have a method marked @Destroy
STATEFUL_COMPONENT_WRONG_SCOPE=Stateful component "{0}" should not have org.jboss.seam.ScopeType.PAGE, nor org.jboss.seam.ScopeType.STATELESS
UNKNOWN_COMPONENT_CLASS_NAME="{0}" cannot be resolved to a type
-UNKNOWN_COMPONENT_PROPERTY=Class "{0}" of component "{1}" does not contain setter for property "{2}"
+UNKNOWN_COMPONENT_PROPERTY=Class "{0}" of component "{1}" does not have a setter or a field for the property "{2}"
#Entities
ENTITY_COMPONENT_WRONG_SCOPE=Entity component "{0}" should not have org.jboss.seam.ScopeType.STATELESS
17 years, 10 months
JBoss Tools SVN: r8782 - in trunk: seam/tests/org.jboss.tools.seam.ui.test/projects/TestSeamELContentAssist/WebContent and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: estherbin
Date: 2008-06-16 07:09:27 -0400 (Mon, 16 Jun 2008)
New Revision: 8782
Added:
trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/CommonContentAssistantTestCase.java
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestSeamELContentAssist/WebContent/jbide2277/
trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestSeamELContentAssist/WebContent/jbide2277/jbide2277.xhtml
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/jbide/JBide2277Test.java
Log:
Fix http://jira.jboss.com/jira/browse/JBIDE-2277 issue
Added: trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/CommonContentAssistantTestCase.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/CommonContentAssistantTestCase.java (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/CommonContentAssistantTestCase.java 2008-06-16 11:09:27 UTC (rev 8782)
@@ -0,0 +1,56 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+
+package org.jboss.tools.jst.jsp.test.ca;
+
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.jboss.tools.common.test.util.TestProjectProvider;
+
+
+/**
+ * Abstract class contains of common methods.
+ *
+ * @author Eugene Stherbin
+ *
+ */
+public abstract class CommonContentAssistantTestCase extends ContentAssistantTestCase {
+ /** The make copy. */
+ protected boolean makeCopy;
+
+ /** The provider. */
+ protected TestProjectProvider provider;
+
+ protected abstract String getSetUpProjectName();
+
+ @Override
+ public void setUp() throws Exception {
+ provider = new TestProjectProvider("org.jboss.tools.seam.ui.test", null, getSetUpProjectName(), makeCopy);
+ project = provider.getProject();
+ Throwable exception = null;
+ try {
+ project.refreshLocal(IResource.DEPTH_INFINITE, null);
+ } catch (Exception x) {
+ exception = x;
+ x.printStackTrace();
+ }
+ assertNull("An exception caught: " + (exception != null ? exception.getMessage() : ""), exception);
+ }
+
+ @Override
+ public void tearDown() throws Exception {
+ if (provider != null) {
+ provider.dispose();
+ }
+ }
+}
Property changes on: trunk/jst/tests/org.jboss.tools.jst.jsp.test/src/org/jboss/tools/jst/jsp/test/ca/CommonContentAssistantTestCase.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
Added: trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestSeamELContentAssist/WebContent/jbide2277/jbide2277.xhtml
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestSeamELContentAssist/WebContent/jbide2277/jbide2277.xhtml (rev 0)
+++ trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestSeamELContentAssist/WebContent/jbide2277/jbide2277.xhtml 2008-06-16 11:09:27 UTC (rev 8782)
@@ -0,0 +1,12 @@
+<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<ui:composition xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:s="http://jboss.com/products/seam/taglib"
+ xmlns:ui="http://java.sun.com/jsf/facelets"
+ xmlns:f="http://java.sun.com/jsf/core"
+ xmlns:h="http://java.sun.com/jsf/html"
+ xmlns:rich="http://richfaces.ajax4jsf.org/rich"
+ template="layout/template.xhtml">
+<ui:define name="body">
+ <h:outputText value=""/>
+</ui:define>
+</ui:composition>
Property changes on: trunk/seam/tests/org.jboss.tools.seam.ui.test/projects/TestSeamELContentAssist/WebContent/jbide2277/jbide2277.xhtml
___________________________________________________________________
Name: svn:mime-type
+ text/html
Name: svn:eol-style
+ native
Added: trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/jbide/JBide2277Test.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/jbide/JBide2277Test.java (rev 0)
+++ trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/jbide/JBide2277Test.java 2008-06-16 11:09:27 UTC (rev 8782)
@@ -0,0 +1,65 @@
+/*******************************************************************************
+ * Copyright (c) 2007-2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributor:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.seam.ui.test.jbide;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.eclipse.jface.text.contentassist.ICompletionProposal;
+import org.jboss.tools.jst.jsp.test.ca.CommonContentAssistantTestCase;
+import org.jboss.tools.seam.ui.text.java.SeamELProposalProcessor;
+
+/**
+ * @author Eugene Stherbin
+ *
+ */
+public class JBide2277Test extends CommonContentAssistantTestCase {
+ protected static final String JBIDE_2277_PAGE="/WebContent/jbide2277/jbide2277.xhtml";
+
+ public static Test suite() {
+ return new TestSuite(JBide2277Test.class);
+ }
+
+ /**
+ * @see org.jboss.tools.jst.jsp.test.ca.CommonContentAssistantTestCase#getSetUpProjectName()
+ */
+ @Override
+ protected String getSetUpProjectName() {
+ return JBide2227TestCase.IMPORT_PROJECT_NAME;
+ }
+
+ public void testJbide2227(){
+ final String[] proposals = new String[]{};
+ final ICompletionProposal[] rst = checkProposals(JBIDE_2277_PAGE,574, proposals, false);
+
+ checkResult(rst);
+ }
+
+ /**
+ * @param rst
+ */
+ private void checkResult(ICompletionProposal[] rst) {
+ assertTrue(rst.length > 5);
+ String prevDisplay = "";
+ for (ICompletionProposal p : rst) {
+ //Check stars with #{
+ assertTrue(p.getDisplayString().startsWith(SeamELProposalProcessor.EL_START_EXPRESSION));
+
+ //Check alphabetical order
+
+
+ }
+
+
+ }
+
+
+}
Property changes on: trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/jbide/JBide2277Test.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Name: svn:keywords
+ Author Id Revision Date
Name: svn:eol-style
+ native
17 years, 10 months
JBoss Tools SVN: r8781 - in trunk/seam: tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/jbide and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: estherbin
Date: 2008-06-16 07:07:51 -0400 (Mon, 16 Jun 2008)
New Revision: 8781
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java
trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/jbide/JBide2227TestCase.java
Log:
Fix http://jira.jboss.com/jira/browse/JBIDE-2277 issue
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java 2008-06-16 11:07:36 UTC (rev 8780)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java 2008-06-16 11:07:51 UTC (rev 8781)
@@ -18,11 +18,13 @@
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.jdt.ui.PreferenceConstants;
import org.eclipse.jface.preference.IPreferenceStore;
import org.eclipse.jface.text.BadLocationException;
import org.eclipse.jface.text.DocumentEvent;
import org.eclipse.jface.text.IDocument;
+import org.eclipse.jface.text.IDocumentExtension4;
import org.eclipse.jface.text.IInformationControlCreator;
import org.eclipse.jface.text.ITextViewer;
import org.eclipse.jface.text.contentassist.ICompletionProposal;
@@ -30,6 +32,7 @@
import org.eclipse.jface.text.contentassist.ICompletionProposalExtension2;
import org.eclipse.jface.text.contentassist.ICompletionProposalExtension3;
import org.eclipse.jface.text.contentassist.ICompletionProposalExtension4;
+import org.eclipse.jface.text.contentassist.ICompletionProposalExtension5;
import org.eclipse.jface.text.contentassist.IContextInformation;
import org.eclipse.jface.text.contentassist.IContextInformationValidator;
import org.eclipse.swt.graphics.Image;
@@ -59,6 +62,7 @@
import org.jboss.tools.seam.internal.core.el.SeamELCompletionEngine;
import org.jboss.tools.seam.ui.SeamGuiPlugin;
import org.w3c.dom.Node;
+import org.w3c.tidy.AttrCheckImpl.CheckBool;
/**
* Content assist proposal processor.
@@ -68,434 +72,524 @@
*/
public class SeamELProposalProcessor extends AbstractContentAssistProcessor {
- private static final ICompletionProposal[] NO_PROPOSALS= new ICompletionProposal[0];
- private static final IContextInformation[] NO_CONTEXTS= new IContextInformation[0];
+ private static final ICompletionProposal[] NO_PROPOSALS= new ICompletionProposal[0];
+ private static final IContextInformation[] NO_CONTEXTS= new IContextInformation[0];
+ public static final String EL_END_EXPRESSION = "}";
+ public static final String EL_START_EXPRESSION = "#{";
+
+ public static final class Proposal implements ICompletionProposal, ICompletionProposalExtension, ICompletionProposalExtension2, ICompletionProposalExtension3, ICompletionProposalExtension4,ICompletionProposalExtension5{
- public static final class Proposal implements ICompletionProposal, ICompletionProposalExtension, ICompletionProposalExtension2, ICompletionProposalExtension3, ICompletionProposalExtension4 {
+ private final String fString;
+ private final String fPrefix;
+ private final String fNewPrefix;
+ private final int fOffset;
+ private int fNewPosition;
+ private final String fDisplaySuffix;
+ private final String fDisplayPrefix;
- private final String fString;
- private final String fPrefix;
- private final String fNewPrefix;
- private final int fOffset;
- private int fNewPosition;
+// public Proposal(String string, String prefix, int offset) {
+// this(string, prefix, offset, offset + string.length());
+// }
+// public Proposal(String string, String prefix, int offset, String fDisplayPrefix,String fDisplaySuffix) {
+// this(string, prefix, offset, offset + string.length());
+// }
+//
+
+ public Proposal(String string, String prefix, int offset, int newPosition,String fDisplayPrefix,String fDisplaySuffix) {
+ this(string, prefix, prefix, offset, offset + string.length(),fDisplayPrefix,fDisplaySuffix);
+ }
- public Proposal(String string, String prefix, int offset) {
- this(string, prefix, offset, offset + string.length());
- }
+ public Proposal(String string, String prefix, String newPrefix, int offset, int newPosition,String fDisplayPrefix,String fDisplaySuffix) {
+ fString = string;
+ fPrefix = prefix;
+ fNewPrefix = newPrefix;
+ fOffset = offset;
+ fNewPosition = newPosition;
+ this.fDisplayPrefix = fDisplayPrefix;
+ this.fDisplaySuffix = fDisplaySuffix;
+ }
- public Proposal(String string, String prefix, int offset, int newPosition) {
- this(string, prefix, prefix, offset, offset + string.length());
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposal#apply(IDocument)
+ */
+ public void apply(IDocument document) {
+ apply(null, '\0', 0, fOffset);
+ }
- public Proposal(String string, String prefix, String newPrefix, int offset, int newPosition) {
- fString = string;
- fPrefix = prefix;
- fNewPrefix = newPrefix;
- fOffset = offset;
- fNewPosition = newPosition;
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getSelection(IDocument)
+ */
+ public Point getSelection(IDocument document) {
+ int position = fNewPosition;
+ //added by estherbin
+ //fix http://jira.jboss.com/jira/browse/JBIDE-2277
+ if(isStartsWithEl()){
+ position+=EL_START_EXPRESSION.length();
+ }
+ return new Point(position, 0);
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposal#apply(IDocument)
- */
- public void apply(IDocument document) {
- apply(null, '\0', 0, fOffset);
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getAdditionalProposalInfo()
+ */
+ public String getAdditionalProposalInfo() {
+ return null;
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getSelection(IDocument)
- */
- public Point getSelection(IDocument document) {
- return new Point(fNewPosition, 0);
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getDisplayString()
+ */
+ public String getDisplayString() {
+ final StringBuffer sb = new StringBuffer();
+
+ //added by estherbin
+ //fix http://jira.jboss.com/jira/browse/JBIDE-2277
+ if((this.fDisplayPrefix.length() > 0) && (this.fDisplaySuffix.length() > 0)){
+ sb.append(fDisplayPrefix+fPrefix+fString+fDisplaySuffix);
+ }else{
+ sb.append((fNewPrefix == null ? fPrefix : fNewPrefix) + fString);
+ }
+ return sb.toString();
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getAdditionalProposalInfo()
- */
- public String getAdditionalProposalInfo() {
- return null;
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getImage()
+ */
+ public Image getImage() {
+ return SharedXMLEditorPluginImageHelper.getImage(SharedXMLEditorPluginImageHelper.IMG_OBJ_ATTRIBUTE);
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getDisplayString()
- */
- public String getDisplayString() {
- return (fNewPrefix == null ? fPrefix : fNewPrefix) + fString;
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getContextInformation()
+ */
+ public IContextInformation getContextInformation() {
+ return null;
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getImage()
- */
- public Image getImage() {
- return SharedXMLEditorPluginImageHelper.getImage(SharedXMLEditorPluginImageHelper.IMG_OBJ_ATTRIBUTE);
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension#apply(IDocument, char, int)
+ */
+ public void apply(IDocument document, char trigger, int offset) {
+ try {
+ int docCharsToReplace = (fNewPrefix == null || fPrefix == null) ? 0 : fPrefix.length() - fNewPrefix.length();
+ String replacement = fString.substring(offset - fOffset);
+ //added by estherbin
+ //fix http://jira.jboss.com/jira/browse/JBIDE-2277
+ if (isStartsWithEl()) {
+ replacement = EL_START_EXPRESSION + fPrefix + fString + EL_END_EXPRESSION;
+ if (document instanceof IDocumentExtension4) {
+ ((IDocumentExtension4) document).replace(offset - fPrefix.length(), getRemovedLength(offset,document,fPrefix.length()), "",
+ ((IDocumentExtension4) document).getModificationStamp());
+ }
+ document.replace(offset - fPrefix.length(), 0, replacement);
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposal#getContextInformation()
- */
- public IContextInformation getContextInformation() {
- return null;
- }
+ } else {
+ document.replace(offset - docCharsToReplace, docCharsToReplace, replacement);
+ }
+ } catch (BadLocationException x) {
+ SeamGuiPlugin.getPluginLog().logError(x);
+ }
+ }
+
+ /**
+ * @param document
+ * @param length
+ * @return
+ */
+ private int getRemovedLength(int offset,IDocument document, int length) {
+ int len = length;
+// int _offset = offset;
+// while(document.getChar(offset))
+ return len;
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension#apply(IDocument, char, int)
- */
- public void apply(IDocument document, char trigger, int offset) {
- try {
- int docCharsToReplace = (fNewPrefix == null || fPrefix == null) ? 0 :
- fPrefix.length() - fNewPrefix.length();
- String replacement= fString.substring(offset - fOffset);
- document.replace(offset - docCharsToReplace, docCharsToReplace, replacement);
- } catch (BadLocationException x) {
- SeamGuiPlugin.getPluginLog().logError(x);
- }
- }
+ protected boolean isStartsWithEl(){
+ return ((this.fDisplayPrefix.length() > 0) && (this.fDisplaySuffix.length() > 0));
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension#isValidFor(IDocument, int)
- */
- public boolean isValidFor(IDocument document, int offset) {
- return validate(document, offset, null);
- }
+ /**
+ * @param document
+ * @param offset
+ * @return
+ */
+ private int getBeginOffset(IDocument document, int offset) {
+ int _offset = offset;
+ while(_offset-- > 0){
+ try {
+ if ('"' == document.getChar(offset) || '\'' == document.getChar(offset)) {
+ return _offset;
+ }
+ } catch (BadLocationException e) {
+ SeamGuiPlugin.getPluginLog().logError(e);
+ }
+ }
+ return 0;
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension#getTriggerCharacters()
- */
- public char[] getTriggerCharacters() {
- return null;
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension#isValidFor(IDocument, int)
+ */
+ public boolean isValidFor(IDocument document, int offset) {
+ return validate(document, offset, null);
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension#getContextInformationPosition()
- */
- public int getContextInformationPosition() {
- return 0;
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension#getTriggerCharacters()
+ */
+ public char[] getTriggerCharacters() {
+ return null;
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension2#apply(ITextViewer, char, int, int)
- */
- public void apply(ITextViewer viewer, char trigger, int stateMask, int offset) {
- apply(viewer.getDocument(), trigger, offset);
-
- if (fString != null && fString.endsWith("}")) {
- fNewPosition -= 1;
- }
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension#getContextInformationPosition()
+ */
+ public int getContextInformationPosition() {
+ return 0;
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension2#selected(ITextViewer, boolean)
- */
- public void selected(ITextViewer viewer, boolean smartToggle) {
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension2#apply(ITextViewer, char, int, int)
+ */
+ public void apply(ITextViewer viewer, char trigger, int stateMask, int offset) {
+ apply(viewer.getDocument(), trigger, offset);
+ if (fString != null && fString.endsWith(EL_END_EXPRESSION)) {
+ fNewPosition -= 1;
+ }
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension2#unselected(ITextViewer)
- */
- public void unselected(ITextViewer viewer) {
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension2#selected(ITextViewer, boolean)
+ */
+ public void selected(ITextViewer viewer, boolean smartToggle) {
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension2#validate(IDocument document, int offset, DocumentEvent event)
- */
- public boolean validate(IDocument document, int offset, DocumentEvent event) {
- try {
- int prefixStart= fOffset - fPrefix.length();
- return offset >= fOffset && offset < fOffset + fString.length() && document.get(prefixStart, offset - (prefixStart)).equals((fPrefix + fString).substring(0, offset - prefixStart));
- } catch (BadLocationException x) {
- return false;
- }
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension2#unselected(ITextViewer)
+ */
+ public void unselected(ITextViewer viewer) {
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension3#getInformationControlCreator()
- */
- public IInformationControlCreator getInformationControlCreator() {
- return null;
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension2#validate(IDocument document, int offset, DocumentEvent event)
+ */
+ public boolean validate(IDocument document, int offset, DocumentEvent event) {
+ try {
+ int prefixStart= fOffset - fPrefix.length();
+ return offset >= fOffset && offset < fOffset + fString.length() && document.get(prefixStart, offset - (prefixStart)).equals((fPrefix + fString).substring(0, offset - prefixStart));
+ } catch (BadLocationException x) {
+ return false;
+ }
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension3#getPrefixCompletionText(IDocument, int)
- */
- public CharSequence getPrefixCompletionText(IDocument document, int completionOffset) {
- return fPrefix + fString;
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension3#getInformationControlCreator()
+ */
+ public IInformationControlCreator getInformationControlCreator() {
+ return null;
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension3#getPrefixCompletionStart(IDocument, int)
- */
- public int getPrefixCompletionStart(IDocument document, int completionOffset) {
- return fOffset - fPrefix.length();
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension3#getPrefixCompletionText(IDocument, int)
+ */
+ public CharSequence getPrefixCompletionText(IDocument document, int completionOffset) {
+ return fPrefix + fString;
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension4#isAutoInsertable()
- */
- public boolean isAutoInsertable() {
- return false;
- }
-
- /**
- * Return cursor position of proposal replacement string.
- */
- public int getCursorPosition() {
- return fNewPosition;
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension3#getPrefixCompletionStart(IDocument, int)
+ */
+ public int getPrefixCompletionStart(IDocument document, int completionOffset) {
+ return fOffset - fPrefix.length();
+ }
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension4#isAutoInsertable()
+ */
+ public boolean isAutoInsertable() {
+ return false;
+ }
+
+ /**
+ * Return cursor position of proposal replacement string.
+ */
+ public int getCursorPosition() {
+ return fNewPosition;
+ }
- private final SeamELCompletionEngine fEngine= new SeamELCompletionEngine();
+ /* (non-Javadoc)
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposalExtension5#getAdditionalProposalInfo(org.eclipse.core.runtime.IProgressMonitor)
+ */
+ public Object getAdditionalProposalInfo(IProgressMonitor monitor) {
+ // TODO Auto-generated method stub
+ return null;
+ }
- /**
- * Creates a new Seam EL completion proposal computer.
- */
- public SeamELProposalProcessor() {
- }
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#computeCompletionProposals(org.eclipse.jface.text.ITextViewer, int)
- */
- public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset) {
- try {
- ITextEditor part = getActiveEditor();
- if (part == null) {
- return NO_PROPOSALS;
- }
+ private final SeamELCompletionEngine fEngine= new SeamELCompletionEngine();
- IEditorInput editorInput = part.getEditorInput();
- if (!(editorInput instanceof IFileEditorInput)) {
- return NO_PROPOSALS;
- }
+ /**
+ * Creates a new Seam EL completion proposal computer.
+ */
+ public SeamELProposalProcessor() {
+ }
- IFile file = ((IFileEditorInput)editorInput).getFile();
- IProject project = (file == null ? null : file.getProject());
+ /*
+ * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#computeCompletionProposals(org.eclipse.jface.text.ITextViewer, int)
+ */
+ public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int offset) {
+ try {
+ ITextEditor part = getActiveEditor();
+ if (part == null) {
+ return NO_PROPOSALS;
+ }
- ISeamProject seamProject = SeamCorePlugin.getSeamProject(project, true);
- if (seamProject == null) {
- return NO_PROPOSALS;
- }
+ IEditorInput editorInput = part.getEditorInput();
+ if (!(editorInput instanceof IFileEditorInput)) {
+ return NO_PROPOSALS;
+ }
- String prefix= SeamELCompletionEngine.getPrefix(viewer, offset);
- prefix = (prefix == null ? "" : prefix); //$NON-NLS-1$
+ IFile file = ((IFileEditorInput)editorInput).getFile();
+ IProject project = (file == null ? null : file.getProject());
- String proposalPrefix = "";
- String proposalSufix = "";
- String documentContent = null;
- IDocument document = viewer.getDocument();
- if (!checkStartPositionInEL(viewer, offset)) {
- // Work only with attribute value for JSP/HTML
- if((part instanceof XMLTextEditor) || (!isAttributeValue(viewer, offset))) {
- return NO_PROPOSALS;
- }
- prefix = ""; // Clear prefix because it's not the part of EL
- if(isCharSharp(viewer, offset-1)) {
- proposalPrefix = "{"; //$NON-NLS-1$
- } else {
- proposalPrefix = "#{"; //$NON-NLS-1$
- }
-
- if(document != null) {
- documentContent = document.get(0,offset) + proposalPrefix + document.get(offset, document.getLength() - offset);
- }
-
- proposalSufix = "}"; //$NON-NLS-1$
- } else {
- if(viewer.getDocument() != null) {
- documentContent = document.get();
- }
- }
+ ISeamProject seamProject = SeamCorePlugin.getSeamProject(project, true);
+ if (seamProject == null) {
+ return NO_PROPOSALS;
+ }
- List<ElVarSearcher.Var> vars = ElVarSearcher.findAllVars(viewer, offset);
- List<String> suggestions = fEngine.getCompletions(seamProject, file, documentContent, prefix, offset + proposalPrefix.length() - prefix.length(), false, vars);
- List<String> uniqueSuggestions = fEngine.makeUnique(suggestions);
+ String prefix= SeamELCompletionEngine.getPrefix(viewer, offset);
+ prefix = (prefix == null ? "" : prefix); //$NON-NLS-1$
- List<ICompletionProposal> result= new ArrayList<ICompletionProposal>();
- for (String string : uniqueSuggestions) {
- if (string.length() >= 0) {
- string = proposalPrefix + string + proposalSufix;
- if (string.startsWith("['") && string.endsWith("']") && prefix != null && prefix.endsWith(".")) {
- String newPrefix = prefix.substring(0, prefix.length() - 1);
- result.add(new Proposal(string, prefix, newPrefix, offset, offset - 1 + string.length() - proposalSufix.length()));
- } else {
- result.add(new Proposal(string, prefix, offset, offset + string.length() - proposalSufix.length()));
- }
- }
- }
+ String proposalPrefix = "";
+ String proposalSufix = "";
+ String documentContent = null;
+ IDocument document = viewer.getDocument();
+ if (!checkStartPositionInEL(viewer, offset,true)) {
+ // Work only with attribute value for JSP/HTML
+ if((part instanceof XMLTextEditor) || (!isAttributeValue(viewer, offset))) {
+ return NO_PROPOSALS;
+ }
+ prefix = ""; // Clear prefix because it's not the part of EL
+ if(isCharSharp(viewer, offset-1)) {
+ proposalPrefix = "{"; //$NON-NLS-1$
+ } else {
+ proposalPrefix = "#{"; //$NON-NLS-1$
+ }
+
+ if(document != null) {
+ documentContent = document.get(0,offset) + proposalPrefix + document.get(offset, document.getLength() - offset);
+ }
+
+ proposalSufix = "}"; //$NON-NLS-1$
+ } else {
+ if(viewer.getDocument() != null) {
+ documentContent = document.get();
+ }
+ }
- if (result == null || result.size() == 0) {
- return NO_PROPOSALS;
- }
- ICompletionProposal[] resultArray = result.toArray(new ICompletionProposal[result.size()]);
- Arrays.sort(resultArray, new Comparator<ICompletionProposal>() {
- public int compare(ICompletionProposal arg0,
- ICompletionProposal arg1) {
- String str0 = (arg0 == null ? "" : arg0.getDisplayString()); //$NON-NLS-1$
- String str1 = (arg1 == null ? "" : arg1.getDisplayString()); //$NON-NLS-1$
- return str0.compareTo(str1);
- }});
- return resultArray;
- } catch (BadLocationException x) {
- SeamGuiPlugin.getPluginLog().logError(x);
- return NO_PROPOSALS;
- } catch (StringIndexOutOfBoundsException e) {
- SeamGuiPlugin.getPluginLog().logError(e);
- return NO_PROPOSALS;
- }
- }
+ List<ElVarSearcher.Var> vars = ElVarSearcher.findAllVars(viewer, offset);
+ List<String> suggestions = fEngine.getCompletions(seamProject, file, documentContent, prefix, offset + proposalPrefix.length() - prefix.length(), false, vars);
+ List<String> uniqueSuggestions = fEngine.makeUnique(suggestions);
- private boolean isAttributeValue(ITextViewer viewer, int offset) {
- IndexedRegion treeNode = ContentAssistUtils.getNodeAt(viewer, offset);
+ List<ICompletionProposal> result= new ArrayList<ICompletionProposal>();
+ for (String string : uniqueSuggestions) {
+
+ if (string.length() >= 0) {
+ //added by estherbin
+ //fix http://jira.jboss.com/jira/browse/JBIDE-2277
+ string = proposalPrefix + string + proposalSufix;
+ String elDisplaySuffix ="";
+ String elDisplayPrefix ="";
+ if(!checkStartPositionInEL(viewer, offset,false) && !string.endsWith(".")){
+ elDisplaySuffix="}";
+ elDisplayPrefix="#{";
+ }
+ if (string.startsWith("['") && string.endsWith("']") && prefix != null && prefix.endsWith(".")) {
+ String newPrefix = prefix.substring(0, prefix.length() - 1);
+ result.add(new Proposal(string, prefix, newPrefix, offset, (offset - 1 + string.length() - proposalSufix.length()),elDisplayPrefix,elDisplaySuffix));
+ } else {
+ result.add(new Proposal(string, prefix, offset, offset + string.length() - proposalSufix.length(),elDisplayPrefix,elDisplaySuffix));
+ }
+ }
+ }
- if(treeNode instanceof Node) {
- Node node = (Node) treeNode;
- while ((node != null) && (node.getNodeType() == Node.TEXT_NODE) && (node.getParentNode() != null)) {
- node = node.getParentNode();
- }
- if(node instanceof IDOMNode) {
- IDOMNode xmlnode = (IDOMNode) node;
- ITextRegion completionRegion = getCompletionRegion(offset, node);
- if (DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE != completionRegion.getType())
- return false;
- ITextRegion nextRegion = getCompletionRegion(offset + 1, node);
- return DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE == nextRegion.getType();
- }
- }
- return false;
- }
+ if (result == null || result.size() == 0) {
+ return NO_PROPOSALS;
+ }
+ ICompletionProposal[] resultArray = result.toArray(new ICompletionProposal[result.size()]);
+ Arrays.sort(resultArray, new Comparator<ICompletionProposal>() {
+ public int compare(ICompletionProposal arg0,
+ ICompletionProposal arg1) {
+ String str0 = (arg0 == null ? "" : arg0.getDisplayString()); //$NON-NLS-1$
+ String str1 = (arg1 == null ? "" : arg1.getDisplayString()); //$NON-NLS-1$
+ return str0.compareTo(str1);
+ }});
+ return resultArray;
+ } catch (BadLocationException x) {
+ SeamGuiPlugin.getPluginLog().logError(x);
+ return NO_PROPOSALS;
+ } catch (StringIndexOutOfBoundsException e) {
+ SeamGuiPlugin.getPluginLog().logError(e);
+ return NO_PROPOSALS;
+ }
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#computeContextInformation(org.eclipse.jface.text.ITextViewer, int)
- */
- public IContextInformation[] computeContextInformation(ITextViewer viewer, int offset) {
- // no context informations for Seam EL completions
- return NO_CONTEXTS;
- }
-
- private char[] autoActivChars;
+ private boolean isAttributeValue(ITextViewer viewer, int offset) {
+ IndexedRegion treeNode = ContentAssistUtils.getNodeAt(viewer, offset);
- /*
- * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getCompletionProposalAutoActivationCharacters()
- */
- public char[] getCompletionProposalAutoActivationCharacters() {
- if(autoActivChars==null) {
- IPreferenceStore store= EditorsUI.getPreferenceStore();
- String superDefaultChars = store.getDefaultString(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA);
- StringBuffer redhatDefaultChars = new StringBuffer(superDefaultChars);
- if(superDefaultChars.indexOf("{")<0) { //$NON-NLS-1$
- redhatDefaultChars.append('{');
- }
- if(superDefaultChars.indexOf(".")<0) { //$NON-NLS-1$
- redhatDefaultChars.append('.');
- }
- autoActivChars = new char[redhatDefaultChars.length()];
- redhatDefaultChars.getChars(0, redhatDefaultChars.length(), autoActivChars, 0);
- store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA, redhatDefaultChars.toString());
- store.setValue(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA, redhatDefaultChars.toString());
- }
- return autoActivChars;
- }
+ if(treeNode instanceof Node) {
+ Node node = (Node) treeNode;
+ while ((node != null) && (node.getNodeType() == Node.TEXT_NODE) && (node.getParentNode() != null)) {
+ node = node.getParentNode();
+ }
+ if(node instanceof IDOMNode) {
+ IDOMNode xmlnode = (IDOMNode) node;
+ ITextRegion completionRegion = getCompletionRegion(offset, node);
+ if (DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE != completionRegion.getType())
+ return false;
+ ITextRegion nextRegion = getCompletionRegion(offset + 1, node);
+ return DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE == nextRegion.getType();
+ }
+ }
+ return false;
+ }
- /*
- * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getContextInformationAutoActivationCharacters()
- */
- public char[] getContextInformationAutoActivationCharacters() {
- return null;
- }
-
- /*
- * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getContextInformationValidator()
- */
- public IContextInformationValidator getContextInformationValidator() {
- return null;
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#computeContextInformation(org.eclipse.jface.text.ITextViewer, int)
+ */
+ public IContextInformation[] computeContextInformation(ITextViewer viewer, int offset) {
+ // no context informations for Seam EL completions
+ return NO_CONTEXTS;
+ }
+
+ private char[] autoActivChars;
- /*
- * @see org.eclipse.jface.text.contentassist.ICompletionProposalComputer#getErrorMessage()
- */
- public String getErrorMessage() {
- return null; // no custom error message
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getCompletionProposalAutoActivationCharacters()
+ */
+ public char[] getCompletionProposalAutoActivationCharacters() {
+ if(autoActivChars==null) {
+ IPreferenceStore store= EditorsUI.getPreferenceStore();
+ String superDefaultChars = store.getDefaultString(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA);
+ StringBuffer redhatDefaultChars = new StringBuffer(superDefaultChars);
+ if(superDefaultChars.indexOf("{")<0) { //$NON-NLS-1$
+ redhatDefaultChars.append('{');
+ }
+ if(superDefaultChars.indexOf(".")<0) { //$NON-NLS-1$
+ redhatDefaultChars.append('.');
+ }
+ autoActivChars = new char[redhatDefaultChars.length()];
+ redhatDefaultChars.getChars(0, redhatDefaultChars.length(), autoActivChars, 0);
+ store.setDefault(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA, redhatDefaultChars.toString());
+ store.setValue(PreferenceConstants.CODEASSIST_AUTOACTIVATION_TRIGGERS_JAVA, redhatDefaultChars.toString());
+ }
+ return autoActivChars;
+ }
- /*
- * Returns active text editor
- * @return
- */
- private ITextEditor getActiveEditor() {
- IWorkbenchWindow window= PlatformUI.getWorkbench().getActiveWorkbenchWindow();
- if (window != null) {
- IWorkbenchPage page= window.getActivePage();
- if (page != null) {
- IEditorPart editor= page.getActiveEditor();
- if (editor instanceof IEditorWrapper)
- editor = ((IEditorWrapper) editor).getEditor();
-
- if (editor instanceof ITextEditor)
- return (ITextEditor) editor;
- else
- return (ITextEditor)editor.getAdapter(ITextEditor.class);
- }
- }
- return null;
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getContextInformationAutoActivationCharacters()
+ */
+ public char[] getContextInformationAutoActivationCharacters() {
+ return null;
+ }
+
+ /*
+ * @see org.eclipse.jface.text.contentassist.IContentAssistProcessor#getContextInformationValidator()
+ */
+ public IContextInformationValidator getContextInformationValidator() {
+ return null;
+ }
- private boolean isCharSharp(ITextViewer viewer, int offset) throws BadLocationException {
- IDocument doc= viewer.getDocument();
- if (doc == null || offset > doc.getLength() || offset < 0) {
- return false;
- }
+ /*
+ * @see org.eclipse.jface.text.contentassist.ICompletionProposalComputer#getErrorMessage()
+ */
+ public String getErrorMessage() {
+ return null; // no custom error message
+ }
- return '#' == doc.getChar(offset);
- }
+ /*
+ * Returns active text editor
+ * @return
+ */
+ private ITextEditor getActiveEditor() {
+ IWorkbenchWindow window= PlatformUI.getWorkbench().getActiveWorkbenchWindow();
+ if (window != null) {
+ IWorkbenchPage page= window.getActivePage();
+ if (page != null) {
+ IEditorPart editor= page.getActiveEditor();
+ if (editor instanceof IEditorWrapper)
+ editor = ((IEditorWrapper) editor).getEditor();
+
+ if (editor instanceof ITextEditor)
+ return (ITextEditor) editor;
+ else
+ return (ITextEditor)editor.getAdapter(ITextEditor.class);
+ }
+ }
+ return null;
+ }
- /*
- * Checks if the EL start starting characters are present
- * @param viewer
- * @param offset
- * @return
- * @throws BadLocationException
- */
- private boolean checkStartPositionInEL(ITextViewer viewer, int offset) throws BadLocationException {
-
- // JBIDE-1676: Do not even try to get IStructuredDocument in case of not-a-structured document
- // This will prevent class cast exceptions while using the editors other than StructuredEditor
- // (CompilationUnitEditor, for example).
- IStructuredDocumentRegion sdRegion =
- (viewer.getDocument() instanceof IStructuredDocument ?
- ContentAssistUtils.getStructuredDocumentRegion(viewer, offset) :
- null);
- ITextRegion region = (sdRegion == null ? null : sdRegion.getRegionAtCharacterOffset(offset));
-
- int startIndex = (region == null ? 0 : sdRegion.getStartOffset() + region.getStart());
-
- IDocument doc= viewer.getDocument();
- if (doc == null || offset > doc.getLength())
- return false;
+ private boolean isCharSharp(ITextViewer viewer, int offset) throws BadLocationException {
+ IDocument doc= viewer.getDocument();
+ if (doc == null || offset > doc.getLength() || offset < 0) {
+ return false;
+ }
- while (--offset >= startIndex) {
- if ('}' == doc.getChar(offset))
- return false;
+ return '#' == doc.getChar(offset);
+ }
- if ('"' == doc.getChar(offset) || '\'' == doc.getChar(offset)) {
- int backslashCount = 0;
- while (doc.getChar(offset - 1 - backslashCount) == '\\') {
- backslashCount++;
+ /*
+ * Checks if the EL start starting characters are present
+ * @param viewer
+ * @param offset
+ * @return
+ * @throws BadLocationException
+ */
+ private boolean checkStartPositionInEL(ITextViewer viewer, int offset,boolean isCheckBackslashes) throws BadLocationException {
+
+ // JBIDE-1676: Do not even try to get IStructuredDocument in case of not-a-structured document
+ // This will prevent class cast exceptions while using the editors other than StructuredEditor
+ // (CompilationUnitEditor, for example).
+ IStructuredDocumentRegion sdRegion =
+ (viewer.getDocument() instanceof IStructuredDocument ?
+ ContentAssistUtils.getStructuredDocumentRegion(viewer, offset) :
+ null);
+ ITextRegion region = (sdRegion == null ? null : sdRegion.getRegionAtCharacterOffset(offset));
+
+ int startIndex = (region == null ? 0 : sdRegion.getStartOffset() + region.getStart());
+
+ IDocument doc= viewer.getDocument();
+ if (doc == null || offset > doc.getLength())
+ return false;
+
+ while (--offset >= startIndex) {
+ if ('}' == doc.getChar(offset))
+ return false;
+
+ if (isCheckBackslashes) {
+ if ('"' == doc.getChar(offset) || '\'' == doc.getChar(offset)) {
+ int backslashCount = 0;
+ while (doc.getChar(offset - 1 - backslashCount) == '\\') {
+ backslashCount++;
+ }
+ // Added by estherbin
+ // JBIDE-2227
+ if (backslashCount > 0 && (backslashCount % 2 == 0)) {
+ return false;
+ } else {
+ return true;
+ }
}
- // Added by estherbin
- // JBIDE-2227
- if ((backslashCount > 0) && (backslashCount % 2 == 0)) {
- return false;
- } else {
- return true;
- }
}
- if ('{' == doc.getChar(offset) &&
- (offset - 1) >= 0 &&
- ('#' == doc.getChar(offset - 1) ||
- '$' == doc.getChar(offset - 1))) {
- return true;
- }
- }
- return false;
- }
+ if ('{' == doc.getChar(offset) &&
+ (offset - 1) >= 0 &&
+ ('#' == doc.getChar(offset - 1) ||
+ '$' == doc.getChar(offset - 1))) {
+ return true;
+ }
+
+ }
+ return false;
+ }
}
\ No newline at end of file
Modified: trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/jbide/JBide2227TestCase.java
===================================================================
--- trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/jbide/JBide2227TestCase.java 2008-06-16 11:07:36 UTC (rev 8780)
+++ trunk/seam/tests/org.jboss.tools.seam.ui.test/src/org/jboss/tools/seam/ui/test/jbide/JBide2227TestCase.java 2008-06-16 11:07:51 UTC (rev 8781)
@@ -44,7 +44,7 @@
private static final String CA_NAME = "org.eclipse.wst.html.HTML_DEFAULT";
/** The Constant IMPORT_PROJECT_NAME. */
- private static final String IMPORT_PROJECT_NAME = "TestSeamELContentAssist";
+ public static final String IMPORT_PROJECT_NAME = "TestSeamELContentAssist";
/** The Constant PAGE_1. */
private static final String PAGE_1 = "/WebContent/jbide2227/withEl.xhtml";
17 years, 10 months
JBoss Tools SVN: r8780 - trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation.
by jbosstools-commits@lists.jboss.org
Author: akazakov
Date: 2008-06-16 07:07:36 -0400 (Mon, 16 Jun 2008)
New Revision: 8780
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamValidationHelper.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2328 Fixed in trunk and brunch 2.1.*
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 2008-06-16 10:41:47 UTC (rev 8779)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/src/org/jboss/tools/seam/internal/core/validation/SeamValidationHelper.java 2008-06-16 11:07:36 UTC (rev 8780)
@@ -16,7 +16,9 @@
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.IPath;
+import org.eclipse.jdt.core.IField;
import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.IMember;
import org.eclipse.jdt.core.IMethod;
import org.eclipse.jdt.core.IPackageFragment;
import org.eclipse.jdt.core.IType;
@@ -168,7 +170,7 @@
return null;
}
String className = fileName.substring(0, firstDot);
- IProject p = getProject().getProject();
+ IProject p = getProject();
try {
IJavaProject jp = EclipseResourceUtil.getJavaProject(p);
IPackageFragment packageFragment = jp.findPackageFragment(componentXmlFile.getFullPath().removeLastSegments(1));
@@ -183,33 +185,41 @@
}
/**
- * Find setter for property
+ * Find a setter or a field for a property.
* @param type
* @param propertyName
- * @return
+ * @return IMethod (setter) or IFiled (field)
*/
- public IMethod findSetter(IType type, String propertyName) {
+ public IMember findProperty(IType type, String propertyName) {
if(propertyName == null || propertyName.length()==0) {
return null;
}
- String firstLetter = propertyName.substring(0, 1).toUpperCase();
- String nameWithoutFirstLetter = propertyName.substring(1);
- String setterName = "set" + firstLetter + nameWithoutFirstLetter; //$NON-NLS-1$
try {
- return findSetterInHierarchy(type, setterName);
+ return findPropertyInHierarchy(type, propertyName);
} catch (JavaModelException e) {
SeamCorePlugin.getDefault().logError(e);
}
return null;
}
- private IMethod findSetterInHierarchy(IType type, String setterName) throws JavaModelException {
+ private IMember findPropertyInHierarchy(IType type, String propertyName) throws JavaModelException {
+ String firstLetter = propertyName.substring(0, 1).toUpperCase();
+ String nameWithoutFirstLetter = propertyName.substring(1);
+ String setterName = "set" + firstLetter + nameWithoutFirstLetter; //$NON-NLS-1$
+
IMethod[] methods = type.getMethods();
for (int i = 0; i < methods.length; i++) {
if(methods[i].getElementName().equals(setterName) && methods[i].getParameterNames().length==1) {
return methods[i];
}
}
+ IField[] fields = type.getFields();
+ for (int i = 0; i < fields.length; i++) {
+ if(fields[i].getElementName().equals(propertyName)) {
+ return fields[i];
+ }
+ }
+
String superclassName = type.getSuperclassName();
if(superclassName!=null) {
String[][] packages = type.resolveType(superclassName);
@@ -224,9 +234,9 @@
String qName = packageName + packages[i][1];
IType superclass = type.getJavaProject().findType(qName);
if(superclass!=null) {
- IMethod method = findSetterInHierarchy(superclass, setterName);
- if(method!=null) {
- return method;
+ IMember property = findPropertyInHierarchy(superclass, propertyName);
+ if(property!=null) {
+ return property;
}
}
}
17 years, 10 months
JBoss Tools SVN: r8779 - in trunk/ws/plugins/org.jboss.tools.ws.core: src/org/jboss/tools/ws/core/classpath and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-06-16 06:41:47 -0400 (Mon, 16 Jun 2008)
New Revision: 8779
Added:
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/UninstallJbossWSClassPathCommand.java
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/facet/delegate/JbossWSUnInstallRuntimeDelegate.java
Modified:
trunk/ws/plugins/org.jboss.tools.ws.core/plugin.xml
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/classpath/JbossWSRuntimeClassPathInitializer.java
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/JbossWSClassPathCommand.java
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/facet/delegate/JbossWSInstallRuntimeDelegate.java
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/messages/JbossWSCore.properties
trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/messages/JbossWSCoreMessages.java
Log:
JBIDE-2047: add uninstall command for jbossws facet
Modified: trunk/ws/plugins/org.jboss.tools.ws.core/plugin.xml
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/plugin.xml 2008-06-16 10:41:32 UTC (rev 8778)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/plugin.xml 2008-06-16 10:41:47 UTC (rev 8779)
@@ -25,32 +25,16 @@
class="org.jboss.tools.ws.core.facet.delegate.JBossWSFacetInstallDataModelProvider">
</config-factory>
</action>
-<!--
- <action type="UNINSTALL">
- <delegate class="org.eclipse.jst.ws.axis2.facet.deligate.Axis2CoreFacetUnInstallDelegate"/>
- </action>
--->
+ <action
+ facet="jbossws.core"
+ id="jbossws.core.uninstall"
+ type="UNINSTALL">
+ <delegate
+ class="org.jboss.tools.ws.core.facet.delegate.JbossWSUnInstallRuntimeDelegate">
+ </delegate>
+ </action>
+
</project-facet-version>
-<!--
- <project-facet id="axis2.ext">
- <label>%JBOSSWS_FACET_EXT_LABEL</label>
- <description>%JBOSSWS_FACET_EXT_DISCRIPTION</description>
- <member category="axis2.category" />
- </project-facet>
-
- <project-facet-version facet="axis2.ext" version="1.1">
- <constraint>
- <requires facet="axis2.core" version="1.1"/>
- </constraint>
- <action type="INSTALL">
- <delegate class="org.eclipse.jst.ws.axis2.facet.deligate.Axis2ExtFacetInstallDelegate"/>
- </action>
-
- <action type="UNINSTALL">
- <delegate class="org.eclipse.jst.ws.axis2.facet.deligate.Axis2ExtFacetUnInstallDelegate"/>
- </action>
- </project-facet-version>
--->
</extension>
<extension
point="org.eclipse.wst.common.project.facet.core.runtimes">
Modified: trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/classpath/JbossWSRuntimeClassPathInitializer.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/classpath/JbossWSRuntimeClassPathInitializer.java 2008-06-16 10:41:32 UTC (rev 8778)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/classpath/JbossWSRuntimeClassPathInitializer.java 2008-06-16 10:41:47 UTC (rev 8779)
@@ -1,3 +1,14 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
package org.jboss.tools.ws.core.classpath;
import java.util.ArrayList;
@@ -70,31 +81,32 @@
ArrayList<IClasspathEntry> entryList = new ArrayList<IClasspathEntry>();
JbossWSRuntime jbws = JbossWSRuntimeManager.getInstance()
.findRuntimeByName(segment);
- if (jbws.isUserConfigClasspath()) {
- for (String jar : jbws.getLibraries()) {
- entryList.add(getEntry(new Path(jar)));
- }
- entries = entryList.toArray(new IClasspathEntry[entryList
- .size()]);
- } else {
- IPath wsPath = null;
- if (jbws != null) {
- wsPath = new Path(jbws.getHomeDir());
- }
- if (wsPath != null) {
- IPath libPath = wsPath
- .append(JbossWSCoreMessages.Dir_Lib);
- entryList.addAll(Arrays.asList(getEntries(libPath,
- entryList)));
- libPath = wsPath.append(JbossWSCoreMessages.Dir_Client);
- entryList.addAll(Arrays.asList(getEntries(libPath,
- entryList)));
+ if (jbws != null) {
+ if (jbws.isUserConfigClasspath()) {
+ for (String jar : jbws.getLibraries()) {
+ entryList.add(getEntry(new Path(jar)));
+ }
entries = entryList
.toArray(new IClasspathEntry[entryList.size()]);
+ } else {
+ IPath wsPath = new Path(jbws.getHomeDir());
+ if (wsPath != null) {
+ IPath libPath = wsPath
+ .append(JbossWSCoreMessages.Dir_Lib);
+ entryList.addAll(Arrays.asList(getEntries(libPath,
+ entryList)));
+ libPath = wsPath
+ .append(JbossWSCoreMessages.Dir_Client);
+ entryList.addAll(Arrays.asList(getEntries(libPath,
+ entryList)));
+ entries = entryList
+ .toArray(new IClasspathEntry[entryList
+ .size()]);
+ }
}
+ if (entries == null)
+ return new IClasspathEntry[0];
}
- if (entries == null)
- return new IClasspathEntry[0];
}
return entries;
}
Modified: trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/JbossWSClassPathCommand.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/JbossWSClassPathCommand.java 2008-06-16 10:41:32 UTC (rev 8778)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/JbossWSClassPathCommand.java 2008-06-16 10:41:47 UTC (rev 8779)
@@ -64,7 +64,7 @@
IJBossWSFacetDataModelProperties.DEFAULT_VALUE_IS_SERVER_SUPPLIED);
} else {
// store runtime name and runtime location to the project
-
+
String runtimeName = model
.getStringProperty(IJBossWSFacetDataModelProperties.JBOSS_WS_RUNTIME_ID);
String runtimeLocation = model
@@ -121,10 +121,7 @@
for (int i = 0; i < oldClasspathEntries.length
&& !isFolderInClassPathAlready; i++) {
if (oldClasspathEntries[i].getPath().equals(
- project.getFullPath())
- || oldClasspathEntries[i].getPath().lastSegment()
- .toUpperCase().contains(
- JbossWSCoreMessages.JBossAS)) {
+ newClasspath.getPath())) {
isFolderInClassPathAlready = true;
break;
}
Added: trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/UninstallJbossWSClassPathCommand.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/UninstallJbossWSClassPathCommand.java (rev 0)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/command/UninstallJbossWSClassPathCommand.java 2008-06-16 10:41:47 UTC (rev 8779)
@@ -0,0 +1,102 @@
+package org.jboss.tools.ws.core.command;
+
+import java.util.ArrayList;
+import java.util.List;
+
+import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IAdaptable;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.core.runtime.Path;
+import org.eclipse.core.runtime.Status;
+import org.eclipse.jdt.core.IClasspathEntry;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.JavaCore;
+import org.eclipse.jdt.core.JavaModelException;
+import org.eclipse.osgi.util.NLS;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+import org.jboss.tools.ws.core.facet.delegate.IJBossWSFacetDataModelProperties;
+import org.jboss.tools.ws.core.messages.JbossWSCoreMessages;
+import org.jboss.tools.ws.core.utils.StatusUtils;
+
+public class UninstallJbossWSClassPathCommand {
+ IProject project;
+
+ public UninstallJbossWSClassPathCommand(IProject project, IDataModel model) {
+ this.project = project;
+ }
+
+ public IStatus execute(IProgressMonitor monitor, IAdaptable info)
+ throws ExecutionException {
+ return executeOverride(monitor);
+ }
+
+ public IStatus executeOverride(IProgressMonitor monitor) {
+ IStatus status = Status.OK_STATUS;
+ try {
+ boolean isServerSupplied = Boolean
+ .getBoolean(project
+ .getPersistentProperty(IJBossWSFacetDataModelProperties.PERSISTENCE_PROPERTY_SERVER_SUPPLIED_RUNTIME));
+ if (isServerSupplied) {
+// project
+// .getPersistentProperties()
+// .remove(
+// IJBossWSFacetDataModelProperties.PERSISTENCE_PROPERTY_SERVER_SUPPLIED_RUNTIME);
+ } else {
+// project
+// .getPersistentProperties()
+// .remove(
+// IJBossWSFacetDataModelProperties.PERSISTENCE_PROPERTY_QNAME_RUNTIME_NAME);
+// project
+// .getPersistentProperties()
+// .remove(
+// IJBossWSFacetDataModelProperties.PERSISTENCE_PROPERTY_RNTIME_LOCATION);
+ String runtimeName = project
+ .getPersistentProperty(IJBossWSFacetDataModelProperties.PERSISTENCE_PROPERTY_QNAME_RUNTIME_NAME);
+
+ status = removeClassPath(project, runtimeName);
+ }
+
+ } catch (CoreException e) {
+ status = StatusUtils.errorStatus(
+ JbossWSCoreMessages.Error_Remove_Facet_JBossWS, e);
+ }
+ return status;
+ }
+
+ public IStatus removeClassPath(IProject project, String segment) {
+ IStatus status = Status.OK_STATUS;
+ try {
+ IJavaProject javaProject = JavaCore.create(project);
+ IClasspathEntry[] oldClasspathEntries = javaProject
+ .readRawClasspath();
+
+ boolean isFolderInClassPathAlready = false;
+ List<IClasspathEntry> classpathEntries = new ArrayList<IClasspathEntry>();
+ for (int i = 0; i < oldClasspathEntries.length
+ && !isFolderInClassPathAlready; i++) {
+ if (!oldClasspathEntries[i].getPath().equals(
+ new Path(JbossWSCoreMessages.JBossWS_Runtime_Lib)
+ .append(segment))) {
+ classpathEntries.add(oldClasspathEntries[i]);
+ }
+ }
+ if (classpathEntries.size() < oldClasspathEntries.length) {
+ javaProject.setRawClasspath(classpathEntries
+ .toArray(new IClasspathEntry[classpathEntries.size()]),
+ new NullProgressMonitor());
+ }
+ } catch (JavaModelException e) {
+ status = StatusUtils.errorStatus(NLS.bind(
+ JbossWSCoreMessages.Error_Remove_Facet_JBossWS,
+ new String[] { e.getLocalizedMessage() }), e);
+ return status;
+ }
+
+ return status;
+ }
+
+}
Modified: trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/facet/delegate/JbossWSInstallRuntimeDelegate.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/facet/delegate/JbossWSInstallRuntimeDelegate.java 2008-06-16 10:41:32 UTC (rev 8778)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/facet/delegate/JbossWSInstallRuntimeDelegate.java 2008-06-16 10:41:47 UTC (rev 8779)
@@ -7,13 +7,15 @@
*
* Contributors:
* Red Hat, Inc. - initial API and implementation
- ******************************************************************************/
+ ******************************************************************************/
package org.jboss.tools.ws.core.facet.delegate;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Status;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.project.facet.core.IDelegate;
import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
@@ -25,16 +27,20 @@
*/
public class JbossWSInstallRuntimeDelegate implements IDelegate {
- public void execute(IProject project, IProjectFacetVersion arg1, Object arg2,
- IProgressMonitor monitor) throws CoreException {
- monitor.beginTask(JbossWSCoreMessages.Progress_Install_JBossWS_Runtime, 2 );
+ public void execute(IProject project, IProjectFacetVersion arg1,
+ Object arg2, IProgressMonitor monitor) throws CoreException {
+ monitor.beginTask(JbossWSCoreMessages.Progress_Install_JBossWS_Runtime,
+ 2);
- IDataModel model = (IDataModel)arg2;
-
-
- JbossWSClassPathCommand command = new JbossWSClassPathCommand(project, model);
- command.executeOverride(monitor);
- monitor.worked( 1 );
+ IDataModel model = (IDataModel) arg2;
+
+ JbossWSClassPathCommand command = new JbossWSClassPathCommand(project,
+ model);
+ IStatus status = command.executeOverride(monitor);
+ if(!status.equals(Status.OK_STATUS)){
+ throw new CoreException(status);
+ }
+ monitor.worked(1);
monitor.done();
}
Added: trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/facet/delegate/JbossWSUnInstallRuntimeDelegate.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/facet/delegate/JbossWSUnInstallRuntimeDelegate.java (rev 0)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/facet/delegate/JbossWSUnInstallRuntimeDelegate.java 2008-06-16 10:41:47 UTC (rev 8779)
@@ -0,0 +1,42 @@
+/*******************************************************************************
+ * Copyright (c) 2008 Red Hat, Inc.
+ * Distributed under license by Red Hat, Inc. All rights reserved.
+ * This program is made available under the terms of the
+ * Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+
+package org.jboss.tools.ws.core.facet.delegate;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IProgressMonitor;
+import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
+import org.eclipse.wst.common.project.facet.core.IDelegate;
+import org.eclipse.wst.common.project.facet.core.IProjectFacetVersion;
+import org.jboss.tools.ws.core.command.UninstallJbossWSClassPathCommand;
+import org.jboss.tools.ws.core.messages.JbossWSCoreMessages;
+
+/**
+ * @author Grid Qian
+ */
+public class JbossWSUnInstallRuntimeDelegate implements IDelegate {
+
+ public void execute(IProject project, IProjectFacetVersion arg1,
+ Object arg2, IProgressMonitor monitor) throws CoreException {
+ monitor.beginTask(
+ JbossWSCoreMessages.Progress_UnInstall_JBossWS_Runtime, 2);
+
+ IDataModel model = (IDataModel) arg2;
+
+ UninstallJbossWSClassPathCommand command = new UninstallJbossWSClassPathCommand(
+ project, model);
+ command.executeOverride(monitor);
+ monitor.worked(1);
+ monitor.done();
+ }
+
+}
Modified: trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/messages/JbossWSCore.properties
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/messages/JbossWSCore.properties 2008-06-16 10:41:32 UTC (rev 8778)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/messages/JbossWSCore.properties 2008-06-16 10:41:47 UTC (rev 8779)
@@ -1,4 +1,5 @@
Progress_Install_JBossWS_Runtime=JBoss Web Service Runtime
+Progress_UnInstall_JBossWS_Runtime=Uninstall JBoss Web Service Runtime
Dir_Lib=lib
Dir_Client=client
Dir_Web_Inf=WEB-INF
@@ -11,3 +12,4 @@
Error_WS_Location=The JBoss WS Runtime Location is NULL
Error_WS_Classpath=A error comes up when create JBoss WS Classpath
Error_Add_Facet_JBossWS=Exception while install JBossWS facet
+Error_Remove_Facet_JBossWS=Exception while uninstall JBossWS facet
Modified: trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/messages/JbossWSCoreMessages.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/messages/JbossWSCoreMessages.java 2008-06-16 10:41:32 UTC (rev 8778)
+++ trunk/ws/plugins/org.jboss.tools.ws.core/src/org/jboss/tools/ws/core/messages/JbossWSCoreMessages.java 2008-06-16 10:41:47 UTC (rev 8779)
@@ -25,6 +25,7 @@
}
public static String Progress_Install_JBossWS_Runtime;
+ public static String Progress_UnInstall_JBossWS_Runtime;
public static String Dir_Lib;
public static String Dir_Client;
public static String Dir_Web_Inf;
@@ -37,6 +38,7 @@
public static String Error_WS_Location;
public static String Error_WS_Classpath;
public static String Error_Add_Facet_JBossWS;
+ public static String Error_Remove_Facet_JBossWS;
static {
17 years, 10 months
JBoss Tools SVN: r8778 - trunk/ws/plugins/org.jboss.tools.ws.ui/META-INF.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-06-16 06:41:32 -0400 (Mon, 16 Jun 2008)
New Revision: 8778
Modified:
trunk/ws/plugins/org.jboss.tools.ws.ui/META-INF/MANIFEST.MF
Log:
JBIDE-2047: add uninstall command for jbossws facet
Modified: trunk/ws/plugins/org.jboss.tools.ws.ui/META-INF/MANIFEST.MF
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.ui/META-INF/MANIFEST.MF 2008-06-16 10:41:18 UTC (rev 8777)
+++ trunk/ws/plugins/org.jboss.tools.ws.ui/META-INF/MANIFEST.MF 2008-06-16 10:41:32 UTC (rev 8778)
@@ -13,6 +13,7 @@
org.eclipse.wst.common.project.facet.core
Eclipse-LazyStart: true
Export-Package: org.jboss.tools.ws.ui,
+ org.jboss.tools.ws.ui.messages,
org.jboss.tools.ws.ui.preferences
Bundle-Vendor: %PLUGIN_PROVIDER
Bundle-RequiredExecutionEnvironment: J2SE-1.5
17 years, 10 months
JBoss Tools SVN: r8777 - trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-06-16 06:41:18 -0400 (Mon, 16 Jun 2008)
New Revision: 8777
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/InitialClientCommand.java
trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/InitialCommand.java
Log:
JBIDE-2047: add uninstall command for jbossws facet
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/InitialClientCommand.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/InitialClientCommand.java 2008-06-16 10:41:03 UTC (rev 8776)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/InitialClientCommand.java 2008-06-16 10:41:18 UTC (rev 8777)
@@ -14,9 +14,11 @@
import javax.wsdl.WSDLException;
import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Status;
import org.jboss.tools.ws.core.utils.StatusUtils;
import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation;
@@ -28,6 +30,7 @@
import org.jboss.tools.ws.creation.core.messages.JBossWSCreationCoreMessages;
import org.jboss.tools.ws.creation.core.utils.JBossWSCreationUtils;
import org.jboss.tools.ws.creation.core.utils.WSDLPropertyReader;
+import org.jboss.tools.ws.ui.messages.JbossWSUIMessages;
/**
* @author Grid Qian
@@ -48,9 +51,17 @@
public IStatus execute(IProgressMonitor monitor, IAdaptable info)
throws ExecutionException {
- if (!JBossWSCreationUtils.validateJBossWSLocation()) {
- return StatusUtils
- .errorStatus(JBossWSCreationCoreMessages.Error_WS_Location);
+ try {
+ String location = JBossWSCreationUtils.getJbossWSRuntimeLocation(JBossWSCreationUtils.getProjectByName(model.getWebProjectName()));
+ if (location.equals("")) {
+ return StatusUtils
+ .errorStatus(JBossWSCreationCoreMessages.Error_WS_Location);
+ } else if(!new Path(location).append(JbossWSUIMessages.Bin).append(JbossWSUIMessages.Command).toFile().exists()){
+ return StatusUtils
+ .errorStatus(JBossWSCreationCoreMessages.Error_WS_Location);
+ }
+ } catch (CoreException e1) {
+ return StatusUtils.errorStatus(JBossWSCreationCoreMessages.Error_WS_Location);
}
model.setTarget(JBossWSCreationCoreMessages.Value_Target_0);
if (scenario == WebServiceScenario.CLIENT) {
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/InitialCommand.java
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/InitialCommand.java 2008-06-16 10:41:03 UTC (rev 8776)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.core/src/org/jboss/tools/ws/creation/core/commands/InitialCommand.java 2008-06-16 10:41:18 UTC (rev 8777)
@@ -1,11 +1,15 @@
package org.jboss.tools.ws.creation.core.commands;
+import java.io.File;
+
import javax.wsdl.WSDLException;
import org.eclipse.core.commands.ExecutionException;
+import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Status;
import org.jboss.tools.ws.core.utils.StatusUtils;
import org.eclipse.wst.common.frameworks.datamodel.AbstractDataModelOperation;
@@ -17,6 +21,7 @@
import org.jboss.tools.ws.creation.core.messages.JBossWSCreationCoreMessages;
import org.jboss.tools.ws.creation.core.utils.JBossWSCreationUtils;
import org.jboss.tools.ws.creation.core.utils.WSDLPropertyReader;
+import org.jboss.tools.ws.ui.messages.JbossWSUIMessages;
public class InitialCommand extends AbstractDataModelOperation {
@@ -34,9 +39,17 @@
public IStatus execute(IProgressMonitor monitor, IAdaptable info)
throws ExecutionException {
- if (!JBossWSCreationUtils.validateJBossWSLocation()) {
- return StatusUtils
- .errorStatus(JBossWSCreationCoreMessages.Error_WS_Location);
+ try {
+ String location = JBossWSCreationUtils.getJbossWSRuntimeLocation(JBossWSCreationUtils.getProjectByName(model.getWebProjectName()));
+ if (location.equals("")) {
+ return StatusUtils
+ .errorStatus(JBossWSCreationCoreMessages.Error_WS_Location);
+ } else if(!new Path(location).append(JbossWSUIMessages.Bin).append(JbossWSUIMessages.Command).toFile().exists()){
+ return StatusUtils
+ .errorStatus(JBossWSCreationCoreMessages.Error_WS_Location);
+ }
+ } catch (CoreException e1) {
+ return StatusUtils.errorStatus(JBossWSCreationCoreMessages.Error_WS_Location);
}
model.setTarget(JBossWSCreationCoreMessages.Value_Target_0);
if (scenario == WebServiceScenario.TOPDOWN) {
17 years, 10 months
JBoss Tools SVN: r8776 - in trunk/ws/plugins/org.jboss.tools.ws.creation.ui: src/org/jboss/tools/ws/creation/ui and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: Grid.Qian
Date: 2008-06-16 06:41:03 -0400 (Mon, 16 Jun 2008)
New Revision: 8776
Removed:
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/src/org/jboss/tools/ws/creation/ui/startup/
Modified:
trunk/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.xml
Log:
JBIDE-2047: add uninstall command for jbossws facet
Modified: trunk/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.xml
===================================================================
--- trunk/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.xml 2008-06-16 10:29:19 UTC (rev 8775)
+++ trunk/ws/plugins/org.jboss.tools.ws.creation.ui/plugin.xml 2008-06-16 10:41:03 UTC (rev 8776)
@@ -63,11 +63,5 @@
</page>
</wizard-pages>
</extension>
- <extension
- point="org.eclipse.ui.startup">
- <startup
- class="org.jboss.tools.ws.creation.ui.startup.SetDefaultWebServiceServerRuntime">
- </startup>
- </extension>
</plugin>
17 years, 10 months
JBoss Tools SVN: r8775 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-06-16 06:29:19 -0400 (Mon, 16 Jun 2008)
New Revision: 8775
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/AbstractMultiPageContributor.java
Log:
JBIDE-2338
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/AbstractMultiPageContributor.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/AbstractMultiPageContributor.java 2008-06-16 07:52:22 UTC (rev 8774)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/AbstractMultiPageContributor.java 2008-06-16 10:29:19 UTC (rev 8775)
@@ -238,9 +238,12 @@
registerKeyBinding(handler, actions[i], action);
}
}
-
+
protected void registerKeyBinding(IHandlerService handler, String command, IAction action) {
if(action == null) return;
+ if(handler == null) {
+ return;
+ }
ActionHandler h = used.get(action);
if(h == null) {
h = new ActionHandler(action);
17 years, 10 months
JBoss Tools SVN: r8774 - trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-06-16 03:52:22 -0400 (Mon, 16 Jun 2008)
New Revision: 8774
Removed:
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/esb-actions.meta
Log:
Was committed by mistake
Deleted: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/esb-actions.meta
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/esb-actions.meta 2008-06-16 07:50:51 UTC (rev 8773)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/esb-actions.meta 2008-06-16 07:52:22 UTC (rev 8774)
@@ -1,1216 +0,0 @@
-<?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="ESB Editor" VERSION="1.0"/>
- <MAPPINGS>
- <MAPPING name="AnyElementPresentation">
- <PAIR name="route-to,object-path" value="org.jboss.tools.esb.core.model.ESBAnyElementPresentation"/>
- </MAPPING>
- <MAPPING name="FileVersions">
- <PAIR name="ESB1.0.1" value="FileESB101"/>
- </MAPPING>
- <MAPPING name="FilteredTreeConstraints"/>
- <MAPPING name="FilteredTrees"/>
- <MAPPING name="Handlers"/>
- <MAPPING name="Implementations">
- <PAIR name="ESB" value="org.jboss.tools.esb.core.model.ESBCustomizedObjectImpl"/>
- </MAPPING>
- <MAPPING name="Recognizers">
- <PAIR name="xml$47" value="org.jboss.tools.esb.core.model.ESBEntityRecognizer"/>
- </MAPPING>
- </MAPPINGS>
- <ICONS>
- <GROUP name="action">
- <GROUP name="new">
- <GROUP name="esb">
- <ICON name="file" path="plugin:org.jboss.tools.esb.core:images/esb/new_esb_file.gif"/>
- </GROUP>
- </GROUP>
- </GROUP>
- <GROUP name="main">
- <GROUP name="esb">
- <ICON name="action" path="plugin:org.jboss.tools.esb.core:images/esb/action.gif"/>
- <ICON name="actions" path="plugin:org.jboss.tools.esb.core:images/esb/action_list.gif"/>
- <ICON name="bus" path="plugin:org.jboss.tools.esb.core:images/esb/bus.gif"/>
- <ICON name="config" path="plugin:org.jboss.tools.esb.core:images/esb/config.gif"/>
- <ICON name="file" path="plugin:org.jboss.tools.esb.core:images/esb/esb_file.gif"/>
- <ICON name="filter" path="plugin:org.jboss.tools.esb.core:images/esb/filter.gif"/>
- <ICON name="listener" path="plugin:org.jboss.tools.esb.core:images/esb/listener.gif"/>
- <ICON name="listeners" path="images/file/closed_folder.gif"/>
- <ICON name="property" path="plugin:org.jboss.tools.esb.core:images/esb/property.gif"/>
- <ICON name="provider" path="plugin:org.jboss.tools.esb.core:images/esb/provider.gif"/>
- <ICON name="providers" path="images/file/closed_folder.gif"/>
- <ICON name="schedule" path="plugin:org.jboss.tools.esb.core:images/esb/schedule.gif"/>
- <ICON name="service" path="plugin:org.jboss.tools.esb.core:images/esb/service.gif"/>
- <ICON name="services" path="images/file/closed_folder.gif"/>
- </GROUP>
- </GROUP>
- </ICONS>
- <GlobalActions kind="list"/>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData" name="ESBPreActionAggregator101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.Aggregator" name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="pre=true;category=general"
- name="timeout in millies" xmlname="timeoutInMillies"/>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <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"/>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData" name="ESBPreActionByteArrayToString101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.converters.ByteArrayToString"
- name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="pre=true;category=general"
- name="encoding" xmlname="encoding"/>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <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"/>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData" name="ESBPreActionCommandInterpreter101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.jbpm.CommandInterpreter"
- name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <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"/>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData;children=%EntityOrdered%" name="ESBPreActionContentBasedRouter101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- <XChildEntity name="ESBPreRouteTo"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.ContentBasedRouter" name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="pre=true;category=general"
- name="rule set" xmlname="ruleSet"/>
- <XModelAttribute PROPERTIES="category=general;pre=true;save=always"
- name="rule language" xmlname="ruleLanguage"/>
- <XModelAttribute PROPERTIES="pre=true;category=general"
- default="Default(false)" name="rule reload" xmlname="ruleReload">
- <Constraint loader="ListString">
- <value name="Default(false)"/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="ListString"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <Constraint loader="ListString">
- <value name="process"/>
- <value name="split"/>
- </Constraint>
- <Editor name="ListString"/>
- </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"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Add Route To..." kind="action" name="AddRouteTo">
- <EntityData EntityName="ESBPreRouteTo">
- <AttributeData AttributeName="destination name"/>
- <AttributeData AttributeName="service category" Mandatory="no"/>
- <AttributeData AttributeName="service name" Mandatory="no"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData" name="ESBPreActionGroovyProcessor101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.scripting.GroovyActionProcessor"
- name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="pre=true;category=general" name="script" xmlname="script"/>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <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"/>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData" name="ESBPreActionLongToDateConverter101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.converters.LongToDateConverter"
- name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <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"/>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData" name="ESBPreActionMessagePersister101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.MessagePersister" name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="pre=true;category=general"
- name="classification" xmlname="classification"/>
- <XModelAttribute PROPERTIES="pre=true;category=general"
- name="message store class" xmlname="message-store-class">
- <Editor name="AccessibleJava"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <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"/>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData;children=%EntityOrdered%" name="ESBPreActionNotifier101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- <XChildEntity name="ESBPreNotificationList"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.Notifier" name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <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"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Add Notification List..." kind="action" name="AddNotificationList">
- <EntityData EntityName="ESBPreNotificationList">
- <AttributeData AttributeName="type"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData" name="ESBPreActionObjectInvoke101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.converters.ObjectInvoke"
- name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;save=always;pre=true"
- name="class processor" xmlname="class-processor">
- <Editor name="AccessibleJava"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;save=always;pre=true"
- name="class method" xmlname="class-method"/>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <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"/>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData" name="ESBPreActionObjectToCSVString101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.converters.ObjectToCSVString"
- name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;save=always;pre=true"
- name="bean properties" xmlname="bean-properties"/>
- <XModelAttribute PROPERTIES="category=general;pre=true"
- default="default(false)" name="fail on missing property" xmlname="fail-on-missing-property">
- <Constraint loader="ListString">
- <value name="default(false)"/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="ListString"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <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"/>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData" name="ESBPreActionObjectToXStream101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.converters.ObjectToXStream"
- name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="pre=true;category=general"
- name="class alias" xmlname="class-alias"/>
- <XModelAttribute PROPERTIES="category=general;pre=true"
- default="default(true)" name="exclude package" xmlname="exclude-package">
- <Constraint loader="ListString">
- <value name="default(true)"/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="ListString"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <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"/>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData" name="ESBPreActionSOAPClient101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.soap.SOAPClient" name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="pre=true;category=general" name="wsdl" xmlname="wsdl"/>
- <XModelAttribute PROPERTIES="pre=true;category=general"
- name="operation" xmlname="operation"/>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <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"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Add Property..." kind="action" name="AddProperty">
- <EntityData EntityName="ESBProperty">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="value" Mandatory="no"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData" name="ESBPreActionSOAPProcessor101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.soap.SOAPProcessor" name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="pre=true;category=general"
- name="jbossws endpoint" xmlname="jbossws-endpoint"/>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <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"/>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData" name="ESBPreActionSmooksTransformer101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.converters.SmooksTransformer"
- name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;save=always;pre=true"
- name="resource config" xmlname="resource-config"/>
- <XModelAttribute PROPERTIES="category=advanced;pre=true" name="from" xmlname="from"/>
- <XModelAttribute PROPERTIES="category=advanced;pre=true"
- name="from type" xmlname="from-type"/>
- <XModelAttribute PROPERTIES="category=advanced;pre=true" name="to" xmlname="to"/>
- <XModelAttribute PROPERTIES="category=advanced;pre=true"
- name="to type" xmlname="to-type"/>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <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"/>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData;children=%EntityOrdered%" name="ESBPreActionStaticRouter101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- <XChildEntity name="ESBPreRouteTo"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.StaticRouter" name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <Constraint loader="ListString">
- <value name="process"/>
- <value name="split"/>
- </Constraint>
- <Editor name="ListString"/>
- </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"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Add Route To..." kind="action" name="AddRouteTo">
- <EntityData EntityName="ESBPreRouteTo">
- <AttributeData AttributeName="destination name"/>
- <AttributeData AttributeName="service category" Mandatory="no"/>
- <AttributeData AttributeName="service name"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData;children=%EntityOrdered%" name="ESBPreActionStaticWiretap101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- <XChildEntity name="ESBPreRouteTo"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.StaticWiretap" name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <Constraint loader="ListString">
- <value name="process"/>
- </Constraint>
- <Editor name="ListString"/>
- </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"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Add Route To..." kind="action" name="AddRouteTo">
- <EntityData EntityName="ESBPreRouteTo">
- <AttributeData AttributeName="destination name"/>
- <AttributeData AttributeName="service category" Mandatory="no"/>
- <AttributeData AttributeName="service name"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData" name="ESBPreActionSystemPrintln101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.SystemPrintln" name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute
- PROPERTIES="pre=true;category=general;id=true;save=always"
- name="message" xmlname="message"/>
- <XModelAttribute PROPERTIES="pre=true;category=general"
- default="Default(false)" name="print full" xmlname="printfull">
- <Constraint loader="ListString">
- <value name="Default(false)"/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="ListString"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="pre=true;category=general"
- default="Default(false)" name="output stream" xmlname="outputstream">
- <Constraint loader="ListString">
- <value name="Default(false)"/>
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="ListString"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <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"/>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData;children=%EntityOrdered%" name="ESBPreActionXStreamToObject101">
- <XChildrenEntities>
- <XChildEntity name="ESBProperty"/>
- <XChildEntity name="ESBPreAlias"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.action" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="pre-packed action" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general;save=always"
- default="org.jboss.soa.esb.actions.converters.XStreamToObject"
- name="class" xmlname="class">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="pre=true;category=general"
- name="class alias" xmlname="class-alias"/>
- <XModelAttribute PROPERTIES="category=general;pre=true;save=always"
- name="exclude package" xmlname="exclude-package">
- <Constraint loader="ListString">
- <value name="true"/>
- <value name="false"/>
- </Constraint>
- <Editor name="ListString"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="pre=true;category=general;save=always"
- name="incoming type" xmlname="incoming-type">
- <Editor name="AccessibleJava"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="pre=true;category=general"
- name="root node" xmlname="root-node"/>
- <XModelAttribute PROPERTIES="category=general" name="process" xmlname="process">
- <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"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Add Alias..." kind="action" name="AddAlias">
- <EntityData EntityName="ESBPreAlias">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="value" Mandatory="no"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItemReference entity="ESBProperty" name="CopyActions"/>
- <XActionItemReference entity="ESBProperty" name="DeleteActions"/>
- <XActionItemReference entity="ESBProperty" name="Properties"/>
- <XActionItemReference entity="ESBProperty" name="MoveActions"/>
- </XActionItem>
- <XDependencies/>
- </XModelEntity>
- <XModelEntity ImplementingClass="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData;converter=alias"
- XMLSUBPATH="alias" name="ESBPreAlias">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.property" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="alias" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="name" xmlname="name"/>
- <XModelAttribute PROPERTIES="category=general" name="value" xmlname="value"/>
- <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="%ESB%"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData;converter=notification"
- XMLSUBPATH="NotificationList" name="ESBPreNotificationList">
- <XChildrenEntities>
- <XChildEntity name="AnyElement"/>
- </XChildrenEntities>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.property" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="notification list" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="type" xmlname="type"/>
- <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"
- PROPERTIES="entity=AnyElement" WizardClassName="%Default%"
- displayName="Add Tag..." kind="action" name="CreateTag">
- <EntityData EntityName="AnyElementNew">
- <AttributeData AttributeName="tag"/>
- </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>
- <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="org.jboss.tools.esb.core.model.ESBRouteToImpl"
- PROPERTIES="formFactory=%Default%;formLayout=org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData;converter=route"
- XMLSUBPATH="route-to" name="ESBPreRouteTo">
- <XChildrenEntities/>
- <XEntityRenderer>
- <ICONS>
- <ICON info="main.esb.property" type="main"/>
- </ICONS>
- </XEntityRenderer>
- <XModelAttributes>
- <XModelAttribute default="route to" loader="ElementType" name="element type">
- <Editor name="Uneditable"/>
- </XModelAttribute>
- <XModelAttribute PROPERTIES="category=general"
- name="destination name" xmlname="destination-name"/>
- <XModelAttribute PROPERTIES="category=general"
- name="service category" xmlname="service-category"/>
- <XModelAttribute PROPERTIES="category=general;id=true;save=always"
- name="service name" xmlname="service-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>
- <XEntityExtension name="ESBActions101">
- <XChildrenEntities>
- <XChildEntity name="ESBPreActionByteArrayToString101"/>
- <XChildEntity name="ESBPreActionLongToDateConverter101"/>
- <XChildEntity name="ESBPreActionObjectInvoke101"/>
- <XChildEntity name="ESBPreActionObjectToCSVString101"/>
- <XChildEntity name="ESBPreActionObjectToXStream101"/>
- <XChildEntity name="ESBPreActionSmooksTransformer101"/>
- <XChildEntity name="ESBPreActionMessagePersister101"/>
- <XChildEntity name="ESBPreActionXStreamToObject101"/>
- <XChildEntity name="ESBPreActionCommandInterpreter101"/>
- <XChildEntity name="ESBPreActionGroovyProcessor101"/>
- <XChildEntity name="ESBPreActionAggregator101"/>
- <XChildEntity name="ESBPreActionContentBasedRouter101"/>
- <XChildEntity name="ESBPreActionStaticRouter101"/>
- <XChildEntity name="ESBPreActionStaticWiretap101"/>
- <XChildEntity name="ESBPreActionSOAPProcessor101"/>
- <XChildEntity name="ESBPreActionSOAPClient101"/>
- <XChildEntity name="ESBPreActionSystemPrintln101"/>
- <XChildEntity name="ESBPreActionNotifier101"/>
- </XChildrenEntities>
- <XActionItem kind="list">
- <XActionItem ICON="action.empty" displayName="New" group="1"
- kind="list" name="CreateActions">
- <XActionItem displayName="Pre-packed Action" group="1" kind="list" name="PrePackedAction">
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Object Invoke..." kind="action" name="AddObjectInvoke">
- <EntityData EntityName="ESBPreActionObjectInvoke101">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="class processor"/>
- <AttributeData AttributeName="class method"/>
- </EntityData>
- </XActionItem>
- <XActionItem displayName="Converters" group="1" kind="list" name="Converters">
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Byte Array To String..." kind="action" name="AddByteArrayToString">
- <EntityData EntityName="ESBPreActionByteArrayToString101">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="encoding" Mandatory="no"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Long To Date..." kind="action" name="AddLongToDate">
- <EntityData EntityName="ESBPreActionLongToDateConverter101">
- <AttributeData AttributeName="name"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Object To CSV String..." kind="action" name="AddObjectToCSVString">
- <EntityData EntityName="ESBPreActionObjectToCSVString101">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="bean properties"/>
- <AttributeData AttributeName="fail on missing property" Mandatory="no"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Object To XStream..." kind="action" name="AddObjectToXStream">
- <EntityData EntityName="ESBPreActionObjectToXStream101">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="class alias" Mandatory="no"/>
- <AttributeData AttributeName="exclude package" Mandatory="no"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Smooks Transformer..." kind="action" name="AddSmooksTransformer">
- <EntityData EntityName="ESBPreActionSmooksTransformer101">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="resource config"/>
- <AttributeData AttributeName="from" Mandatory="no"/>
- <AttributeData AttributeName="from type" Mandatory="no"/>
- <AttributeData AttributeName="to" Mandatory="no"/>
- <AttributeData AttributeName="to type" Mandatory="no"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Message Persister..." kind="action" name="AddMessagePersister">
- <EntityData EntityName="ESBPreActionMessagePersister101">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="classification" Mandatory="no"/>
- <AttributeData AttributeName="message store class" Mandatory="no"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="XStream To Object..." kind="action" name="AddXStreamToObject">
- <EntityData EntityName="ESBPreActionXStreamToObject101">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="class alias" Mandatory="no"/>
- <AttributeData AttributeName="exclude package" Mandatory="no"/>
- <AttributeData AttributeName="incoming type"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Command Interpreter..." kind="action" name="AddCommandInterpreter">
- <EntityData EntityName="ESBPreActionCommandInterpreter101">
- <AttributeData AttributeName="name"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Groovy Action Processor..." kind="action" name="AddGroovyProcessor">
- <EntityData EntityName="ESBPreActionGroovyProcessor101">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="script"/>
- </EntityData>
- </XActionItem>
- <XActionItem displayName="Routers" group="1" kind="list" name="Routers">
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Aggregator..." kind="action" name="AddAggregator">
- <EntityData EntityName="ESBPreActionAggregator101">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="timeout in millies" Mandatory="no"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Content Based Router..." kind="action" name="AddContentBasedRouter">
- <EntityData EntityName="ESBPreActionContentBasedRouter101">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="process" Mandatory="no"/>
- <AttributeData AttributeName="rule set"/>
- <AttributeData AttributeName="rule language" Mandatory="no"/>
- <AttributeData AttributeName="rule reload" Mandatory="no"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Static Router..." kind="action" name="AddStaticRouter">
- <EntityData EntityName="ESBPreActionStaticRouter101">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="process" Mandatory="no"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Static Wiretap..." kind="action" name="AddStaticWiretap">
- <EntityData EntityName="ESBPreActionStaticWiretap101">
- <AttributeData AttributeName="name"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Notifier..." kind="action" name="AddNotifier">
- <EntityData EntityName="ESBPreActionNotifier101">
- <AttributeData AttributeName="name"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItem displayName="SOAP" group="1" kind="list" name="SOAP">
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="SOAP Processor..." kind="action" name="SOAPProcessor">
- <EntityData EntityName="ESBPreActionSOAPProcessor101">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="jbossws endpoint"/>
- </EntityData>
- </XActionItem>
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="SOAP Client..." kind="action" name="SOAPClient">
- <EntityData EntityName="ESBPreActionSOAPClient101">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="wsdl"/>
- <AttributeData AttributeName="operation"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- <XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="System Println..." kind="action" name="AddSystemPrintln">
- <EntityData EntityName="ESBPreActionSystemPrintln101">
- <AttributeData AttributeName="name"/>
- <AttributeData AttributeName="message"/>
- </EntityData>
- </XActionItem>
- </XActionItem>
- </XActionItem>
- </XActionItem>
- </XEntityExtension>
-</XModelEntityGroup>
17 years, 10 months