JBoss Tools SVN: r29941 - in branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui: src/org/jboss/tools/esb/ui/editor/attribute and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-03-22 14:03:10 -0400 (Tue, 22 Mar 2011)
New Revision: 29941
Added:
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/MessageStoreClassValueFilter.java
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ValueFilterHelper.java
Modified:
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/plugin.xml
Log:
JBIDE-8569
https://issues.jboss.org/browse/JBIDE-8569
Modified: branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/plugin.xml
===================================================================
--- branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/plugin.xml 2011-03-22 17:58:41 UTC (rev 29940)
+++ branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/plugin.xml 2011-03-22 18:03:10 UTC (rev 29941)
@@ -49,6 +49,8 @@
class="org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData"/>
<xclass id="org.jboss.tools.esb.ui.editor.attribute.ActionClassValueFilter"
class="org.jboss.tools.esb.ui.editor.attribute.ActionClassValueFilter"/>
+ <xclass id="org.jboss.tools.esb.ui.editor.attribute.MessageStoreClassValueFilter"
+ class="org.jboss.tools.esb.ui.editor.attribute.MessageStoreClassValueFilter"/>
<xclass id="org.jboss.tools.esb.ui.editor.form.ESBActionForm"
class="org.jboss.tools.esb.ui.editor.form.ESBActionForm"/>
<xclass id="org.jboss.tools.esb.ui.wizard.AddGenericActionStep"
Added: branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/MessageStoreClassValueFilter.java
===================================================================
--- branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/MessageStoreClassValueFilter.java (rev 0)
+++ branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/MessageStoreClassValueFilter.java 2011-03-22 18:03:10 UTC (rev 29941)
@@ -0,0 +1,49 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.esb.ui.editor.attribute;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.jdt.core.IAnnotation;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.IMethod;
+import org.eclipse.jdt.core.IType;
+import org.eclipse.jdt.core.JavaModelException;
+import org.jboss.tools.common.meta.XAttribute;
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.ui.attribute.IValueFilter;
+import org.jboss.tools.common.model.util.EclipseJavaUtil;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.esb.ui.wizard.NewActionWizardPage;
+
+/**
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
+public class MessageStoreClassValueFilter implements IValueFilter {
+ IProject project;
+
+ static String MessageStoreInterface = "org.jboss.soa.esb.services.persistence.MessageStore";
+
+ public boolean accept(String value) {
+ return !ValueFilterHelper.isNotESBPackage(value)
+ && (EclipseJavaUtil.isDerivedClass(value, MessageStoreInterface, project)
+ || (ValueFilterHelper.findPackageFragment(project, value) != null));
+ }
+
+ public boolean init(XModelObject context, XAttribute attribute) {
+ project = EclipseResourceUtil.getProject(context);
+ return ValueFilterHelper.isInClassPath(project, MessageStoreInterface);
+ }
+
+}
Property changes on: branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/MessageStoreClassValueFilter.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ValueFilterHelper.java
===================================================================
--- branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ValueFilterHelper.java (rev 0)
+++ branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ValueFilterHelper.java 2011-03-22 18:03:10 UTC (rev 29941)
@@ -0,0 +1,95 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.esb.ui.editor.attribute;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.IPackageFragment;
+import org.eclipse.jdt.core.IPackageFragmentRoot;
+import org.eclipse.jdt.core.JavaModelException;
+import org.jboss.tools.common.EclipseUtil;
+import org.jboss.tools.common.model.util.EclipseJavaUtil;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.esb.ui.ESBUiPlugin;
+
+/**
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
+public class ValueFilterHelper {
+
+ /**
+ * Quick check, that ESB tools do not need to look into the Java type in searching for ESB features.
+ * ESB core qualified names start with org.jboss.* and clients of ESB are not likely to start
+ * qualified names with
+ * java.*
+ * javax.*
+ * com.sun.*
+ * sun.*
+ * org.apache.*
+ * which are excluded by this method.
+ *
+ * @param qualifiedName
+ * @return
+ */
+ public static boolean isNotESBPackage(String qualifiedName) {
+ return qualifiedName.startsWith("java.")
+ || qualifiedName.startsWith("javax.")
+ || qualifiedName.startsWith("com.sun.")
+ || qualifiedName.startsWith("sun.")
+ || qualifiedName.startsWith("org.apache.");
+ }
+
+ /**
+ * Utility method. Returns true if the project is an accessible Java project
+ * that contains class qualifiedName in its class path.
+ *
+ * @param project
+ * @param qualifiedName
+ * @return
+ */
+ public static boolean isInClassPath(IProject project, String qualifiedName) {
+ if(project == null || !project.isAccessible()) return false;
+ try {
+ IJavaProject jp = EclipseResourceUtil.getJavaProject(project);
+ return jp != null && (EclipseJavaUtil.findType(jp, qualifiedName) != null);
+ } catch (JavaModelException e) {
+ return false;
+ }
+ }
+
+ /**
+ * Returns existing package Java model object by qualified package name.
+ *
+ * @param javaProject
+ * @param packageName
+ * @return
+ */
+ public static IPackageFragment findPackageFragment(IProject project, String packageName) {
+ if(project == null || !project.isAccessible()) return null;
+ IJavaProject javaProject = EclipseUtil.getJavaProject(project);
+ if(javaProject == null || packageName == null || packageName.length() == 0) return null;
+ IPackageFragmentRoot[] rs = null;
+ try {
+ rs = javaProject.getPackageFragmentRoots();
+ } catch (JavaModelException e) {
+ ESBUiPlugin.log(e);
+ }
+ if(rs != null) for (int i = 0; i < rs.length; i++) {
+ IPackageFragment f = rs[i].getPackageFragment(packageName);
+ if(f != null && f.exists()) return f;
+ }
+ return null;
+ }
+
+}
Property changes on: branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ValueFilterHelper.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
13 years, 9 months
JBoss Tools SVN: r29940 - in trunk/esb/plugins/org.jboss.tools.esb.ui: src/org/jboss/tools/esb/ui/editor/attribute and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-03-22 13:58:41 -0400 (Tue, 22 Mar 2011)
New Revision: 29940
Added:
trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/MessageStoreClassValueFilter.java
trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ValueFilterHelper.java
Modified:
trunk/esb/plugins/org.jboss.tools.esb.ui/plugin.xml
trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ActionClassValueFilter.java
Log:
JBIDE-8569
https://issues.jboss.org/browse/JBIDE-8569
Modified: trunk/esb/plugins/org.jboss.tools.esb.ui/plugin.xml
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.ui/plugin.xml 2011-03-22 17:54:02 UTC (rev 29939)
+++ trunk/esb/plugins/org.jboss.tools.esb.ui/plugin.xml 2011-03-22 17:58:41 UTC (rev 29940)
@@ -49,6 +49,8 @@
class="org.jboss.tools.esb.ui.editor.form.ESBXMLFormLayoutData"/>
<xclass id="org.jboss.tools.esb.ui.editor.attribute.ActionClassValueFilter"
class="org.jboss.tools.esb.ui.editor.attribute.ActionClassValueFilter"/>
+ <xclass id="org.jboss.tools.esb.ui.editor.attribute.MessageStoreClassValueFilter"
+ class="org.jboss.tools.esb.ui.editor.attribute.MessageStoreClassValueFilter"/>
<xclass id="org.jboss.tools.esb.ui.editor.form.ESBActionForm"
class="org.jboss.tools.esb.ui.editor.form.ESBActionForm"/>
<xclass id="org.jboss.tools.esb.ui.wizard.AddGenericActionStep"
Modified: trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ActionClassValueFilter.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ActionClassValueFilter.java 2011-03-22 17:54:02 UTC (rev 29939)
+++ trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ActionClassValueFilter.java 2011-03-22 17:58:41 UTC (rev 29940)
@@ -36,12 +36,7 @@
static String AbstractActionPipelineProcessor = "org.jboss.soa.esb.actions.AbstractActionPipelineProcessor";
public boolean accept(String value) {
- if(value.startsWith("java.")
- || value.startsWith("javax.")
- || value.startsWith("com.sun.")
- || value.startsWith("sun.")
- || value.startsWith("org.apache.")
- ) {
+ if(ValueFilterHelper.isNotESBPackage(value)) {
return false;
}
boolean b = value.startsWith("org.jboss.soa.esb.actions.")
@@ -74,12 +69,7 @@
public boolean init(XModelObject context, XAttribute attribute) {
project = EclipseResourceUtil.getProject(context);
- try {
- IJavaProject jp = EclipseResourceUtil.getJavaProject(project);
- return jp != null && (EclipseJavaUtil.findType(jp, AbstractActionLifecycle) != null);
- } catch (JavaModelException e) {
- return false;
- }
+ return ValueFilterHelper.isInClassPath(project, AbstractActionLifecycle);
}
}
Added: trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/MessageStoreClassValueFilter.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/MessageStoreClassValueFilter.java (rev 0)
+++ trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/MessageStoreClassValueFilter.java 2011-03-22 17:58:41 UTC (rev 29940)
@@ -0,0 +1,49 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.esb.ui.editor.attribute;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.jdt.core.IAnnotation;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.IMethod;
+import org.eclipse.jdt.core.IType;
+import org.eclipse.jdt.core.JavaModelException;
+import org.jboss.tools.common.meta.XAttribute;
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.ui.attribute.IValueFilter;
+import org.jboss.tools.common.model.util.EclipseJavaUtil;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.esb.ui.wizard.NewActionWizardPage;
+
+/**
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
+public class MessageStoreClassValueFilter implements IValueFilter {
+ IProject project;
+
+ static String MessageStoreInterface = "org.jboss.soa.esb.services.persistence.MessageStore";
+
+ public boolean accept(String value) {
+ return !ValueFilterHelper.isNotESBPackage(value)
+ && (EclipseJavaUtil.isDerivedClass(value, MessageStoreInterface, project)
+ || (ValueFilterHelper.findPackageFragment(project, value) != null));
+ }
+
+ public boolean init(XModelObject context, XAttribute attribute) {
+ project = EclipseResourceUtil.getProject(context);
+ return ValueFilterHelper.isInClassPath(project, MessageStoreInterface);
+ }
+
+}
Property changes on: trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/MessageStoreClassValueFilter.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ValueFilterHelper.java
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ValueFilterHelper.java (rev 0)
+++ trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ValueFilterHelper.java 2011-03-22 17:58:41 UTC (rev 29940)
@@ -0,0 +1,95 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.esb.ui.editor.attribute;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.jdt.core.IJavaProject;
+import org.eclipse.jdt.core.IPackageFragment;
+import org.eclipse.jdt.core.IPackageFragmentRoot;
+import org.eclipse.jdt.core.JavaModelException;
+import org.jboss.tools.common.EclipseUtil;
+import org.jboss.tools.common.model.util.EclipseJavaUtil;
+import org.jboss.tools.common.model.util.EclipseResourceUtil;
+import org.jboss.tools.esb.ui.ESBUiPlugin;
+
+/**
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
+public class ValueFilterHelper {
+
+ /**
+ * Quick check, that ESB tools do not need to look into the Java type in searching for ESB features.
+ * ESB core qualified names start with org.jboss.* and clients of ESB are not likely to start
+ * qualified names with
+ * java.*
+ * javax.*
+ * com.sun.*
+ * sun.*
+ * org.apache.*
+ * which are excluded by this method.
+ *
+ * @param qualifiedName
+ * @return
+ */
+ public static boolean isNotESBPackage(String qualifiedName) {
+ return qualifiedName.startsWith("java.")
+ || qualifiedName.startsWith("javax.")
+ || qualifiedName.startsWith("com.sun.")
+ || qualifiedName.startsWith("sun.")
+ || qualifiedName.startsWith("org.apache.");
+ }
+
+ /**
+ * Utility method. Returns true if the project is an accessible Java project
+ * that contains class qualifiedName in its class path.
+ *
+ * @param project
+ * @param qualifiedName
+ * @return
+ */
+ public static boolean isInClassPath(IProject project, String qualifiedName) {
+ if(project == null || !project.isAccessible()) return false;
+ try {
+ IJavaProject jp = EclipseResourceUtil.getJavaProject(project);
+ return jp != null && (EclipseJavaUtil.findType(jp, qualifiedName) != null);
+ } catch (JavaModelException e) {
+ return false;
+ }
+ }
+
+ /**
+ * Returns existing package Java model object by qualified package name.
+ *
+ * @param javaProject
+ * @param packageName
+ * @return
+ */
+ public static IPackageFragment findPackageFragment(IProject project, String packageName) {
+ if(project == null || !project.isAccessible()) return null;
+ IJavaProject javaProject = EclipseUtil.getJavaProject(project);
+ if(javaProject == null || packageName == null || packageName.length() == 0) return null;
+ IPackageFragmentRoot[] rs = null;
+ try {
+ rs = javaProject.getPackageFragmentRoots();
+ } catch (JavaModelException e) {
+ ESBUiPlugin.log(e);
+ }
+ if(rs != null) for (int i = 0; i < rs.length; i++) {
+ IPackageFragment f = rs[i].getPackageFragment(packageName);
+ if(f != null && f.exists()) return f;
+ }
+ return null;
+ }
+
+}
Property changes on: trunk/esb/plugins/org.jboss.tools.esb.ui/src/org/jboss/tools/esb/ui/editor/attribute/ValueFilterHelper.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
13 years, 9 months
JBoss Tools SVN: r29939 - branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-03-22 13:54:02 -0400 (Tue, 22 Mar 2011)
New Revision: 29939
Modified:
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_1.xml
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_1a.xml
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_2.xml
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_2a.xml
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_3.xml
branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_3a.xml
Log:
JBIDE-8569
https://issues.jboss.org/browse/JBIDE-8569
Modified: branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_1.xml
===================================================================
--- branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_1.xml 2011-03-22 17:52:22 UTC (rev 29938)
+++ branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_1.xml 2011-03-22 17:54:02 UTC (rev 29939)
@@ -8,4 +8,8 @@
<super-class name="org.jboss.soa.esb.actions.AbstractActionPipelineProcessor"/>
</meta-template>
+ <meta-template axis="action@message-store-class" displayName="Message Store Class" xEntity="NONE">
+ <interface name="org.jboss.soa.esb.services.persistence.MessageStore"/>
+ </meta-template>
+
</meta-templates>
\ No newline at end of file
Modified: branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_1a.xml
===================================================================
--- branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_1a.xml 2011-03-22 17:52:22 UTC (rev 29938)
+++ branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_1a.xml 2011-03-22 17:54:02 UTC (rev 29939)
@@ -8,4 +8,8 @@
<super-class name="org.jboss.soa.esb.actions.AbstractActionPipelineProcessor"/>
</meta-template>
+ <meta-template axis="action@message-store-class" displayName="Message Store Class" xEntity="NONE">
+ <interface name="org.jboss.soa.esb.services.persistence.MessageStore"/>
+ </meta-template>
+
</meta-templates>
\ No newline at end of file
Modified: branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_2.xml
===================================================================
--- branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_2.xml 2011-03-22 17:52:22 UTC (rev 29938)
+++ branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_2.xml 2011-03-22 17:54:02 UTC (rev 29939)
@@ -8,4 +8,8 @@
<super-class name="org.jboss.soa.esb.actions.AbstractActionPipelineProcessor"/>
</meta-template>
+ <meta-template axis="action@message-store-class" displayName="Message Store Class" xEntity="NONE">
+ <interface name="org.jboss.soa.esb.services.persistence.MessageStore"/>
+ </meta-template>
+
</meta-templates>
\ No newline at end of file
Modified: branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_2a.xml
===================================================================
--- branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_2a.xml 2011-03-22 17:52:22 UTC (rev 29938)
+++ branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_2a.xml 2011-03-22 17:54:02 UTC (rev 29939)
@@ -8,4 +8,8 @@
<super-class name="org.jboss.soa.esb.actions.AbstractActionPipelineProcessor"/>
</meta-template>
+ <meta-template axis="action@message-store-class" displayName="Message Store Class" xEntity="NONE">
+ <interface name="org.jboss.soa.esb.services.persistence.MessageStore"/>
+ </meta-template>
+
</meta-templates>
\ No newline at end of file
Modified: branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_3.xml
===================================================================
--- branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_3.xml 2011-03-22 17:52:22 UTC (rev 29938)
+++ branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_3.xml 2011-03-22 17:54:02 UTC (rev 29939)
@@ -8,4 +8,8 @@
<super-class name="org.jboss.soa.esb.actions.AbstractActionPipelineProcessor"/>
</meta-template>
+ <meta-template axis="action@message-store-class" displayName="Message Store Class" xEntity="NONE">
+ <interface name="org.jboss.soa.esb.services.persistence.MessageStore"/>
+ </meta-template>
+
</meta-templates>
\ No newline at end of file
Modified: branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_3a.xml
===================================================================
--- branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_3a.xml 2011-03-22 17:52:22 UTC (rev 29938)
+++ branches/jbosstools-3.2.x/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_3a.xml 2011-03-22 17:54:02 UTC (rev 29939)
@@ -8,4 +8,8 @@
<super-class name="org.jboss.soa.esb.actions.AbstractActionPipelineProcessor"/>
</meta-template>
+ <meta-template axis="action@message-store-class" displayName="Message Store Class" xEntity="NONE">
+ <interface name="org.jboss.soa.esb.services.persistence.MessageStore"/>
+ </meta-template>
+
</meta-templates>
\ No newline at end of file
13 years, 9 months
JBoss Tools SVN: r29938 - trunk/esb/plugins/org.jboss.tools.esb.ui/templates.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-03-22 13:52:22 -0400 (Tue, 22 Mar 2011)
New Revision: 29938
Modified:
trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_1.xml
trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_1a.xml
trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_2.xml
trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_2a.xml
trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_3.xml
trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_3a.xml
Log:
JBIDE-8569
https://issues.jboss.org/browse/JBIDE-8569
Modified: trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_1.xml
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_1.xml 2011-03-22 17:43:59 UTC (rev 29937)
+++ trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_1.xml 2011-03-22 17:52:22 UTC (rev 29938)
@@ -8,4 +8,8 @@
<super-class name="org.jboss.soa.esb.actions.AbstractActionPipelineProcessor"/>
</meta-template>
+ <meta-template axis="action@message-store-class" displayName="Message Store Class" xEntity="NONE">
+ <interface name="org.jboss.soa.esb.services.persistence.MessageStore"/>
+ </meta-template>
+
</meta-templates>
\ No newline at end of file
Modified: trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_1a.xml
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_1a.xml 2011-03-22 17:43:59 UTC (rev 29937)
+++ trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_1a.xml 2011-03-22 17:52:22 UTC (rev 29938)
@@ -8,4 +8,8 @@
<super-class name="org.jboss.soa.esb.actions.AbstractActionPipelineProcessor"/>
</meta-template>
+ <meta-template axis="action@message-store-class" displayName="Message Store Class" xEntity="NONE">
+ <interface name="org.jboss.soa.esb.services.persistence.MessageStore"/>
+ </meta-template>
+
</meta-templates>
\ No newline at end of file
Modified: trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_2.xml
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_2.xml 2011-03-22 17:43:59 UTC (rev 29937)
+++ trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_2.xml 2011-03-22 17:52:22 UTC (rev 29938)
@@ -8,4 +8,8 @@
<super-class name="org.jboss.soa.esb.actions.AbstractActionPipelineProcessor"/>
</meta-template>
+ <meta-template axis="action@message-store-class" displayName="Message Store Class" xEntity="NONE">
+ <interface name="org.jboss.soa.esb.services.persistence.MessageStore"/>
+ </meta-template>
+
</meta-templates>
\ No newline at end of file
Modified: trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_2a.xml
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_2a.xml 2011-03-22 17:43:59 UTC (rev 29937)
+++ trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_2a.xml 2011-03-22 17:52:22 UTC (rev 29938)
@@ -8,4 +8,8 @@
<super-class name="org.jboss.soa.esb.actions.AbstractActionPipelineProcessor"/>
</meta-template>
+ <meta-template axis="action@message-store-class" displayName="Message Store Class" xEntity="NONE">
+ <interface name="org.jboss.soa.esb.services.persistence.MessageStore"/>
+ </meta-template>
+
</meta-templates>
\ No newline at end of file
Modified: trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_3.xml
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_3.xml 2011-03-22 17:43:59 UTC (rev 29937)
+++ trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_3.xml 2011-03-22 17:52:22 UTC (rev 29938)
@@ -8,4 +8,8 @@
<super-class name="org.jboss.soa.esb.actions.AbstractActionPipelineProcessor"/>
</meta-template>
+ <meta-template axis="action@message-store-class" displayName="Message Store Class" xEntity="NONE">
+ <interface name="org.jboss.soa.esb.services.persistence.MessageStore"/>
+ </meta-template>
+
</meta-templates>
\ No newline at end of file
Modified: trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_3a.xml
===================================================================
--- trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_3a.xml 2011-03-22 17:43:59 UTC (rev 29937)
+++ trunk/esb/plugins/org.jboss.tools.esb.ui/templates/esb_1_3a.xml 2011-03-22 17:52:22 UTC (rev 29938)
@@ -8,4 +8,8 @@
<super-class name="org.jboss.soa.esb.actions.AbstractActionPipelineProcessor"/>
</meta-template>
+ <meta-template axis="action@message-store-class" displayName="Message Store Class" xEntity="NONE">
+ <interface name="org.jboss.soa.esb.services.persistence.MessageStore"/>
+ </meta-template>
+
</meta-templates>
\ No newline at end of file
13 years, 9 months
JBoss Tools SVN: r29937 - branches/jbosstools-3.2.x/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-03-22 13:43:59 -0400 (Tue, 22 Mar 2011)
New Revision: 29937
Modified:
branches/jbosstools-3.2.x/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test/ESBModelTest.java
Log:
JBIDE-8569
https://issues.jboss.org/browse/JBIDE-8569
Modified: branches/jbosstools-3.2.x/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test/ESBModelTest.java
===================================================================
--- branches/jbosstools-3.2.x/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test/ESBModelTest.java 2011-03-22 17:42:53 UTC (rev 29936)
+++ branches/jbosstools-3.2.x/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test/ESBModelTest.java 2011-03-22 17:43:59 UTC (rev 29937)
@@ -17,6 +17,8 @@
import org.eclipse.core.runtime.Path;
import org.jboss.tools.test.util.TestProjectProvider;
+import org.jboss.tools.common.meta.XAttribute;
+import org.jboss.tools.common.meta.XModelMetaData;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.esb.core.model.ESBConstants;
@@ -460,7 +462,40 @@
return true;
}
+
+ static String VALUE_FILTER_PROPERTY = "valueFilter";
+
+ static String ATTR_MESSAGE_STORE_CLASS = "message store class";
+ static String MESSAGE_STORE_CLASS_VALUE_FILTER_ID = "org.jboss.tools.esb.ui.editor.attribute.MessageStoreClassValueFilter";
+ static String ATTR_CLASS = "class";
+ static String ACTION_CLASS_VALUE_FILTER_ID = "org.jboss.tools.esb.ui.editor.attribute.ActionClassValueFilter";
+
+ public void testValueFilters() throws Exception {
+ XModelObject object = getFileObject("esb-1.0.1", "jboss-esb-jms.xml");
+ XModelMetaData meta = object.getModel().getMetaData();
+
+ XAttribute a = meta.getEntity("ESBPreActionMessagePersister101").getAttribute(ATTR_MESSAGE_STORE_CLASS);
+ assertNotNull(a);
+ String valueFilter = a.getProperty(VALUE_FILTER_PROPERTY);
+ assertEquals(MESSAGE_STORE_CLASS_VALUE_FILTER_ID, valueFilter);
+
+ a = meta.getEntity("ESBPreActionMessagePersister101").getAttribute(ATTR_MESSAGE_STORE_CLASS);
+ assertNotNull(a);
+ valueFilter = a.getProperty(VALUE_FILTER_PROPERTY);
+ assertEquals(MESSAGE_STORE_CLASS_VALUE_FILTER_ID, valueFilter);
+
+ a = meta.getEntity("ESBAction101").getAttribute(ATTR_CLASS);
+ assertNotNull(a);
+ valueFilter = a.getProperty(VALUE_FILTER_PROPERTY);
+ assertEquals(ACTION_CLASS_VALUE_FILTER_ID, valueFilter);
+
+ a = meta.getEntity("ESBAction120").getAttribute(ATTR_CLASS);
+ assertNotNull(a);
+ valueFilter = a.getProperty(VALUE_FILTER_PROPERTY);
+ assertEquals(ACTION_CLASS_VALUE_FILTER_ID, valueFilter);
+ }
+
protected void tearDown() throws Exception {
if(provider != null) {
provider.dispose();
13 years, 9 months
JBoss Tools SVN: r29936 - trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2011-03-22 13:42:53 -0400 (Tue, 22 Mar 2011)
New Revision: 29936
Modified:
trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test/ESBModelTest.java
Log:
JBIDE-8569
https://issues.jboss.org/browse/JBIDE-8569
Modified: trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test/ESBModelTest.java
===================================================================
--- trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test/ESBModelTest.java 2011-03-22 17:38:16 UTC (rev 29935)
+++ trunk/esb/tests/org.jboss.tools.esb.core.test/src/org/jboss/tools/esb/core/test/ESBModelTest.java 2011-03-22 17:42:53 UTC (rev 29936)
@@ -17,6 +17,8 @@
import org.eclipse.core.runtime.Path;
import org.jboss.tools.test.util.TestProjectProvider;
+import org.jboss.tools.common.meta.XAttribute;
+import org.jboss.tools.common.meta.XModelMetaData;
import org.jboss.tools.common.model.XModelObject;
import org.jboss.tools.common.model.util.EclipseResourceUtil;
import org.jboss.tools.esb.core.model.ESBConstants;
@@ -460,7 +462,40 @@
return true;
}
+
+ static String VALUE_FILTER_PROPERTY = "valueFilter";
+
+ static String ATTR_MESSAGE_STORE_CLASS = "message store class";
+ static String MESSAGE_STORE_CLASS_VALUE_FILTER_ID = "org.jboss.tools.esb.ui.editor.attribute.MessageStoreClassValueFilter";
+ static String ATTR_CLASS = "class";
+ static String ACTION_CLASS_VALUE_FILTER_ID = "org.jboss.tools.esb.ui.editor.attribute.ActionClassValueFilter";
+
+ public void testValueFilters() throws Exception {
+ XModelObject object = getFileObject("esb-1.0.1", "jboss-esb-jms.xml");
+ XModelMetaData meta = object.getModel().getMetaData();
+
+ XAttribute a = meta.getEntity("ESBPreActionMessagePersister101").getAttribute(ATTR_MESSAGE_STORE_CLASS);
+ assertNotNull(a);
+ String valueFilter = a.getProperty(VALUE_FILTER_PROPERTY);
+ assertEquals(MESSAGE_STORE_CLASS_VALUE_FILTER_ID, valueFilter);
+
+ a = meta.getEntity("ESBPreActionMessagePersister101").getAttribute(ATTR_MESSAGE_STORE_CLASS);
+ assertNotNull(a);
+ valueFilter = a.getProperty(VALUE_FILTER_PROPERTY);
+ assertEquals(MESSAGE_STORE_CLASS_VALUE_FILTER_ID, valueFilter);
+
+ a = meta.getEntity("ESBAction101").getAttribute(ATTR_CLASS);
+ assertNotNull(a);
+ valueFilter = a.getProperty(VALUE_FILTER_PROPERTY);
+ assertEquals(ACTION_CLASS_VALUE_FILTER_ID, valueFilter);
+
+ a = meta.getEntity("ESBAction120").getAttribute(ATTR_CLASS);
+ assertNotNull(a);
+ valueFilter = a.getProperty(VALUE_FILTER_PROPERTY);
+ assertEquals(ACTION_CLASS_VALUE_FILTER_ID, valueFilter);
+ }
+
protected void tearDown() throws Exception {
if(provider != null) {
provider.dispose();
13 years, 9 months
JBoss Tools SVN: r29935 - in trunk/jst: tests/org.jboss.tools.jst.text.ext.test and 6 other directories.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2011-03-22 13:38:16 -0400 (Tue, 22 Mar 2011)
New Revision: 29935
Added:
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.project
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/.jsdtscope
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.common.component
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.common.project.facet.core.xml
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.jsdt.ui.superType.container
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.jsdt.ui.superType.name
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/WebContent/
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/WebContent/index.html
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/WebContent/style.css
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/src/org/jboss/tools/jst/text/ext/test/CSSStylesheetOpenOnTest.java
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/src/org/jboss/tools/jst/text/ext/test/JstTextExtAllTests.java
Removed:
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/src/org/jboss/tools/jst/text/ext/test/JsfExtAllTests.java
Modified:
trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.xml
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/META-INF/MANIFEST.MF
trunk/jst/tests/org.jboss.tools.jst.text.ext.test/pom.xml
Log:
JBIDE-5387
OpenOn does not work for CSS links in HTML files for plain Web Projects
Modified: trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.xml
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.xml 2011-03-22 16:25:08 UTC (rev 29934)
+++ trunk/jst/plugins/org.jboss.tools.jst.text.ext/plugin.xml 2011-03-22 17:38:16 UTC (rev 29935)
@@ -283,6 +283,9 @@
<partitionType id="com.ibm.sse.STYLE">
<!--axis path="*/style/" /-->
</partitionType>
+ <partitionType id="org.jboss.tools.common.text.ext.jsp.JSP_LINK">
+ <axis path="*/link/*" ignoreCase="true"/>
+ </partitionType>
</contentType>
<contentType id="org.eclipse.wst.html.core.htmlsource">
<partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE">
@@ -294,6 +297,9 @@
<partitionType id="com.ibm.sse.STYLE">
<!--axis path="*/style/" /-->
</partitionType>
+ <partitionType id="org.jboss.tools.common.text.ext.jsp.JSP_LINK">
+ <axis path="*/link/*" ignoreCase="true"/>
+ </partitionType>
</contentType>
<contentType id="jsf.facelet">
<partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE">
@@ -305,6 +311,9 @@
<partitionType id="com.ibm.sse.STYLE">
<!--axis path="*/style/" /-->
</partitionType>
+ <partitionType id="org.jboss.tools.common.text.ext.jsp.JSP_LINK">
+ <axis path="*/link/*" ignoreCase="true"/>
+ </partitionType>
</contentType>
<contentType id="jsf.facelet.composite">
<partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE">
@@ -316,6 +325,9 @@
<partitionType id="com.ibm.sse.STYLE">
<!--axis path="*/style/" /-->
</partitionType>
+ <partitionType id="org.jboss.tools.common.text.ext.jsp.JSP_LINK">
+ <axis path="*/link/*" ignoreCase="true"/>
+ </partitionType>
</contentType>
<contentType id="org.jboss.tools.jst.jsp.jspincludesource">
<partitionType id="org.jboss.tools.common.text.ext.xml.XML_ATTRIBUTE_VALUE">
@@ -327,6 +339,9 @@
<partitionType id="com.ibm.sse.STYLE">
<!--axis path="*/style/" /-->
</partitionType>
+ <partitionType id="org.jboss.tools.common.text.ext.jsp.JSP_LINK">
+ <axis path="*/link/*" ignoreCase="true"/>
+ </partitionType>
</contentType>
</hyperlinkPartitioner>
Modified: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.text.ext.test/META-INF/MANIFEST.MF 2011-03-22 16:25:08 UTC (rev 29934)
+++ trunk/jst/tests/org.jboss.tools.jst.text.ext.test/META-INF/MANIFEST.MF 2011-03-22 17:38:16 UTC (rev 29935)
@@ -2,7 +2,7 @@
Bundle-ManifestVersion: 2
Bundle-Name: %Bundle-Name.0
Bundle-SymbolicName: org.jboss.tools.jst.text.ext.test
-Bundle-Version: 3.1.0.qualifier
+Bundle-Version: 3.3.0.qualifier
Require-Bundle: org.jboss.tools.common.text.ext,
org.junit,
org.jboss.tools.tests,
Modified: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/pom.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.text.ext.test/pom.xml 2011-03-22 16:25:08 UTC (rev 29934)
+++ trunk/jst/tests/org.jboss.tools.jst.text.ext.test/pom.xml 2011-03-22 17:38:16 UTC (rev 29935)
@@ -8,7 +8,7 @@
</parent>
<groupId>org.jboss.tools.jst.tests</groupId>
<artifactId>org.jboss.tools.jst.text.ext.test</artifactId>
- <version>3.1.0-SNAPSHOT</version>
+ <version>3.3.0-SNAPSHOT</version>
<packaging>eclipse-test-plugin</packaging>
<properties>
Added: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.project
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.project (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.project 2011-03-22 17:38:16 UTC (rev 29935)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>OpenOnTest</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.common.project.facet.core.builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.wst.validation.validationbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.wst.common.project.facet.core.nature</nature>
+ <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
+ <nature>org.eclipse.wst.jsdt.core.jsNature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.project
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/.jsdtscope
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/.jsdtscope (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/.jsdtscope 2011-03-22 17:38:16 UTC (rev 29935)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
+ <attributes>
+ <attribute name="hide" value="true"/>
+ </attributes>
+ </classpathentry>
+ <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
+ <classpathentry kind="output" path=""/>
+</classpath>
Added: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.common.component
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.common.component (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.common.component 2011-03-22 17:38:16 UTC (rev 29935)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project-modules id="moduleCoreId" project-version="1.5.0">
+ <wb-module deploy-name="OpenOnTest">
+ <wb-resource deploy-path="/" source-path="/WebContent"/>
+ <property name="context-root" value="OpenOnTest"/>
+ </wb-module>
+</project-modules>
Added: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.common.project.facet.core.xml
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.common.project.facet.core.xml (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.common.project.facet.core.xml 2011-03-22 17:38:16 UTC (rev 29935)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<faceted-project>
+ <fixed facet="wst.web"/>
+ <installed facet="wst.web" version="1.0"/>
+</faceted-project>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.common.project.facet.core.xml
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.jsdt.ui.superType.container
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.jsdt.ui.superType.container (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.jsdt.ui.superType.container 2011-03-22 17:38:16 UTC (rev 29935)
@@ -0,0 +1 @@
+org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
Added: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.jsdt.ui.superType.name
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.jsdt.ui.superType.name (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/.settings/org.eclipse.wst.jsdt.ui.superType.name 2011-03-22 17:38:16 UTC (rev 29935)
@@ -0,0 +1 @@
+Window
\ No newline at end of file
Added: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/WebContent/index.html
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/WebContent/index.html (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/WebContent/index.html 2011-03-22 17:38:16 UTC (rev 29935)
@@ -0,0 +1,10 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:h="http://java.sun.com/jsf/html">
+<head>
+ <link rel="stylesheet" href="style.css" />
+</head>
+<body>
+ <div class="red">aaaa</div>
+</body>
+</html>
Property changes on: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/WebContent/index.html
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/WebContent/style.css
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/WebContent/style.css (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/WebContent/style.css 2011-03-22 17:38:16 UTC (rev 29935)
@@ -0,0 +1,3 @@
+.red {
+ color:red;
+}
\ No newline at end of file
Property changes on: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/projects/OpenOnTest/WebContent/style.css
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Added: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/src/org/jboss/tools/jst/text/ext/test/CSSStylesheetOpenOnTest.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.text.ext.test/src/org/jboss/tools/jst/text/ext/test/CSSStylesheetOpenOnTest.java (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.text.ext.test/src/org/jboss/tools/jst/text/ext/test/CSSStylesheetOpenOnTest.java 2011-03-22 17:38:16 UTC (rev 29935)
@@ -0,0 +1,133 @@
+/*******************************************************************************
+ * Copyright (c) 2011 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.jst.text.ext.test;
+
+import junit.framework.TestCase;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.jface.text.BadLocationException;
+import org.eclipse.jface.text.FindReplaceDocumentAdapter;
+import org.eclipse.jface.text.IDocument;
+import org.eclipse.jface.text.IRegion;
+import org.eclipse.jface.text.hyperlink.IHyperlink;
+import org.eclipse.jface.text.source.ISourceViewer;
+import org.eclipse.ui.IEditorPart;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+import org.jboss.tools.common.text.ext.hyperlink.HyperlinkDetector;
+import org.jboss.tools.jst.jsp.jspeditor.JSPMultiPageEditor;
+import org.jboss.tools.test.util.JobUtils;
+import org.jboss.tools.test.util.WorkbenchUtils;
+
+public class CSSStylesheetOpenOnTest extends TestCase {
+ private static final String PROJECT_NAME = "OpenOnTest";
+ private static final String PAGE_NAME = PROJECT_NAME+"/WebContent/index.html";
+
+ public IProject project = null;
+
+ protected void setUp() {
+ project = ResourcesPlugin.getWorkspace().getRoot().getProject(
+ PROJECT_NAME);
+ PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closeAllEditors(false);
+ JobUtils.waitForIdle();
+ }
+
+ protected void tearDown() {
+ PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closeAllEditors(false);
+ }
+
+ public CSSStylesheetOpenOnTest() {
+ super("HTML OpenOn on CSS Stylesheets test");
+ }
+
+ public void testCSSStylesheetOpenOn() throws PartInitException, BadLocationException {
+ final String editorName = "style.css";
+ final String tagName = "link";
+ final String valueToFind = "style.css";
+ IEditorPart editor = WorkbenchUtils.openEditor(PAGE_NAME);
+ assertTrue(editor instanceof JSPMultiPageEditor);
+ JobUtils.waitForIdle();
+ JSPMultiPageEditor jspMultyPageEditor = (JSPMultiPageEditor) editor;
+ ISourceViewer viewer = jspMultyPageEditor.getSourceEditor().getTextViewer();
+
+ IDocument document = viewer.getDocument();
+ IRegion reg = new FindReplaceDocumentAdapter(document).find(0,
+ tagName, true, true, false, false);
+ assertNotNull("Tag:"+tagName+" not found",reg);
+
+ reg = new FindReplaceDocumentAdapter(document).find(reg.getOffset(),
+ valueToFind, true, true, false, false);
+ assertNotNull("Value to find:"+valueToFind+" not found",reg);
+
+ IHyperlink[] links = HyperlinkDetector.getInstance().detectHyperlinks(viewer, reg, true); // new Region(reg.getOffset() + reg.getLength(), 0)
+
+ assertNotNull("Hyperlinks for value:"+valueToFind+" are not found",links);
+
+ assertTrue("Hyperlinks for value:"+valueToFind+" are not found",links.length!=0);
+
+ boolean found = false;
+ for(IHyperlink link : links){
+ assertNotNull(link.toString());
+
+ link.open();
+ JobUtils.waitForIdle(2000);
+
+ IEditorPart resultEditor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
+ if(editorName.equals(resultEditor.getTitle())){
+ found = true;
+ return;
+ }
+ }
+ assertTrue("OpenOn have not opened "+editorName+" editor",found);
+ }
+
+ public void testCSSClassOpenOn() throws PartInitException, BadLocationException {
+ final String editorName = "style.css";
+ final String tagName = "div";
+ final String valueToFind = "red";
+ IEditorPart editor = WorkbenchUtils.openEditor(PAGE_NAME);
+ assertTrue(editor instanceof JSPMultiPageEditor);
+ JobUtils.waitForIdle();
+ JSPMultiPageEditor jspMultyPageEditor = (JSPMultiPageEditor) editor;
+ ISourceViewer viewer = jspMultyPageEditor.getSourceEditor().getTextViewer();
+
+ IDocument document = viewer.getDocument();
+ IRegion reg = new FindReplaceDocumentAdapter(document).find(0,
+ tagName, true, true, false, false);
+ assertNotNull("Tag:"+tagName+" not found",reg);
+
+ reg = new FindReplaceDocumentAdapter(document).find(reg.getOffset(),
+ valueToFind, true, true, false, false);
+ assertNotNull("Value to find:"+valueToFind+" not found",reg);
+
+ IHyperlink[] links = HyperlinkDetector.getInstance().detectHyperlinks(viewer, reg, true); // new Region(reg.getOffset() + reg.getLength(), 0)
+
+ assertNotNull("Hyperlinks for value:"+valueToFind+" are not found",links);
+
+ assertTrue("Hyperlinks for value:"+valueToFind+" are not found",links.length!=0);
+
+ boolean found = false;
+ for(IHyperlink link : links){
+ assertNotNull(link.toString());
+
+ link.open();
+ JobUtils.waitForIdle(2000);
+
+ IEditorPart resultEditor = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();
+ if(editorName.equals(resultEditor.getTitle())){
+ found = true;
+ return;
+ }
+ }
+ assertTrue("OpenOn have not opened "+editorName+" editor",found);
+ }
+}
Property changes on: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/src/org/jboss/tools/jst/text/ext/test/CSSStylesheetOpenOnTest.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
Deleted: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/src/org/jboss/tools/jst/text/ext/test/JsfExtAllTests.java
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.text.ext.test/src/org/jboss/tools/jst/text/ext/test/JsfExtAllTests.java 2011-03-22 16:25:08 UTC (rev 29934)
+++ trunk/jst/tests/org.jboss.tools.jst.text.ext.test/src/org/jboss/tools/jst/text/ext/test/JsfExtAllTests.java 2011-03-22 17:38:16 UTC (rev 29935)
@@ -1,22 +0,0 @@
-package org.jboss.tools.jst.text.ext.test;
-
-import junit.framework.Test;
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-
-public class JsfExtAllTests extends TestCase{
-
- // all tests were moved to jst.ui.test plugin
- public void testJsfTextExt () {
-
- }
- public static Test suite() {
- TestSuite suite = new TestSuite("Test for default package");
- //$JUnit-BEGIN$
-
- suite.addTestSuite(JsfExtAllTests.class);
-
- //$JUnit-END$
- return suite;
- }
-}
Copied: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/src/org/jboss/tools/jst/text/ext/test/JstTextExtAllTests.java (from rev 29918, trunk/jst/tests/org.jboss.tools.jst.text.ext.test/src/org/jboss/tools/jst/text/ext/test/JsfExtAllTests.java)
===================================================================
--- trunk/jst/tests/org.jboss.tools.jst.text.ext.test/src/org/jboss/tools/jst/text/ext/test/JstTextExtAllTests.java (rev 0)
+++ trunk/jst/tests/org.jboss.tools.jst.text.ext.test/src/org/jboss/tools/jst/text/ext/test/JstTextExtAllTests.java 2011-03-22 17:38:16 UTC (rev 29935)
@@ -0,0 +1,31 @@
+package org.jboss.tools.jst.text.ext.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+import org.jboss.tools.test.util.ProjectImportTestSetup;
+
+public class JstTextExtAllTests {
+
+/*
+ // all tests were moved to jst.ui.test plugin
+ public void testJsfTextExt () {
+
+ }
+*/
+ public static Test suite() {
+ TestSuite suite = new TestSuite(JstTextExtAllTests.class.getName());
+
+ //$JUnit-BEGIN$
+
+// suite.addTestSuite(JstTextExtAllTests.class);
+
+ suite.addTest(new ProjectImportTestSetup(new TestSuite(CSSStylesheetOpenOnTest.class),
+ "org.jboss.tools.jst.text.ext.test",
+ new String[]{"projects/OpenOnTest"},
+ new String[]{"OpenOnTest"}));
+
+ //$JUnit-END$
+ return suite;
+ }
+}
Property changes on: trunk/jst/tests/org.jboss.tools.jst.text.ext.test/src/org/jboss/tools/jst/text/ext/test/JstTextExtAllTests.java
___________________________________________________________________
Added: svn:mime-type
+ text/plain
13 years, 9 months
JBoss Tools SVN: r29934 - in branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui: src/org/jboss/tools/deltacloud/ui/views and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: adietish
Date: 2011-03-22 12:25:08 -0400 (Tue, 22 Mar 2011)
New Revision: 29934
Modified:
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/Columns.java
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/DeltaCloudImageColumns.java
branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/DeltaCloudInstanceColumns.java
Log:
[JBIDE-8319] added missing columns, externalized column titles
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2011-03-22 04:30:13 UTC (rev 29933)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/ChangeLog 2011-03-22 16:25:08 UTC (rev 29934)
@@ -1,3 +1,26 @@
+2011-03-22 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
+
+ * src/org/jboss/tools/deltacloud/ui/views/Columns.java:
+ * src/org/jboss/tools/deltacloud/ui/views/DeltaCloudImageColumns.java:
+ * src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties:
+ * src/org/jboss/tools/deltacloud/ui/views/DeltaCloudInstanceColumns.java (DeltaCloudInstanceColumns):
+ [JBIDE-8319] added missing columns, externalized column titles
+
+2011-03-21 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
+
+ * src/org/jboss/tools/deltacloud/ui/commands/CopyCVPropertySheetPageEntryHandler.java:
+ * src/org/jboss/tools/deltacloud/ui/views/cloud/property/CVPropertySheetPage.java
+ * plugin.xml:
+ [JBIDE-8416] implemented custom property sheet page so that elements copied (to the clipboard)
+ from it do not contain the label
+
+2011-03-17 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
+
+ * src/org/jboss/tools/internal/deltacloud/ui/wizards/EditCloudConnectionWizard.java (performFinish):
+ (editCloud):
+ * src/org/jboss/tools/internal/deltacloud/ui/wizards/NewCloudConnectionWizard.java (performFinish):
+ (createCloud):
+
2011-03-16 André Dietisheim <André Dietisheim@adietisheim-thinkpad>
* src/org/jboss/tools/ * plugin.xml:
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties 2011-03-22 04:30:13 UTC (rev 29933)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/CVMessages.properties 2011-03-22 16:25:08 UTC (rev 29934)
@@ -58,6 +58,9 @@
StopInstancesDialog.msg=Please choose the instances that shall be stopped by checking them:
StopInstancesDialogError.title=Error while stopping instance(s)
StopInstancesDialogError.msg=Could not stop instance(s) {0}
+StopInstancesConfirm.title=Confirm instance stop
+StopInstancesConfirm.msg=You are about to stop a running system(s), that might be in production. Are you sure that you want to stop the given instance(s)?
+StopInstancesConfirmDontWarn.msg=Don't warn me again
RebootingInstance.title=Rebooting Instance
RebootingInstance.msg=Rebooting Instance: {0}
RebootInstancesDialog.title=Reboot Instances
@@ -75,10 +78,15 @@
ConfirmCloudDelete.msg=Please choose the clouds that shall be disconnected by checking them:
CreateInstance.label=Launch Instance
-NAME=Name
-ALIAS=Alias
-ID=ID
-HOSTNAME=Public Hostname
-STATUS=State
-ARCH=Architecture
-DESC=Description
\ No newline at end of file
+DeltaCloudElementColumn.name.label=Name
+DeltaCloudElementColumn.alias.label=Alias
+DeltaCloudElementColumn.id.label=Id
+DeltaCloudElementColumn.imageId.label=Image Id
+DeltaCloudElementColumn.ownerId.label=Owner Id
+DeltaCloudElementColumn.keyId.label=Key Id
+DeltaCloudElementColumn.realm.label=Realm
+DeltaCloudElementColumn.profile.label=Profile
+DeltaCloudElementColumn.state.label=State
+DeltaCloudElementColumn.hostname.label=Public Hostname
+DeltaCloudElementColumn.architecture.label=Architecture
+DeltaCloudElementColumn.description.label=Description
\ No newline at end of file
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/Columns.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/Columns.java 2011-03-22 04:30:13 UTC (rev 29933)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/Columns.java 2011-03-22 16:25:08 UTC (rev 29934)
@@ -24,8 +24,8 @@
private String name;
private int weight;
- public Column(String name, int weight) {
- this.name = name;
+ public Column(String nameKey, int weight) {
+ this.name = CVMessages.getString(nameKey);
this.weight = weight;
}
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/DeltaCloudImageColumns.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/DeltaCloudImageColumns.java 2011-03-22 04:30:13 UTC (rev 29933)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/DeltaCloudImageColumns.java 2011-03-22 16:25:08 UTC (rev 29934)
@@ -12,33 +12,36 @@
import org.jboss.tools.deltacloud.core.DeltaCloudImage;
+/**
+ * @author André Dietisheim
+ */
public class DeltaCloudImageColumns extends Columns<DeltaCloudImage> {
@SuppressWarnings("unchecked")
public DeltaCloudImageColumns() {
super(
- new Column<DeltaCloudImage>("NAME", 20) {
+ new Column<DeltaCloudImage>("DeltaCloudElementColumn.name.label", 20) {
@Override
public String getColumnText(DeltaCloudImage image) {
return image.getName();
}
},
- new Column<DeltaCloudImage>("ID", 20) {
+ new Column<DeltaCloudImage>("DeltaCloudElementColumn.id.label", 20) {
@Override
public String getColumnText(DeltaCloudImage image) {
return image.getId();
}
},
- new Column<DeltaCloudImage>("ARCH", 20) {
+ new Column<DeltaCloudImage>("DeltaCloudElementColumn.architecture.label", 20) {
@Override
public String getColumnText(DeltaCloudImage image) {
return image.getArchitecture();
}
},
- new Column<DeltaCloudImage>("DESC", 40) {
+ new Column<DeltaCloudImage>("DeltaCloudElementColumn.description.label", 40) {
@Override
public String getColumnText(DeltaCloudImage image) {
return image.getDescription();
Modified: branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/DeltaCloudInstanceColumns.java
===================================================================
--- branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/DeltaCloudInstanceColumns.java 2011-03-22 04:30:13 UTC (rev 29933)
+++ branches/jbosstools-3.2.x/deltacloud/plugins/org.jboss.tools.deltacloud.ui/src/org/jboss/tools/deltacloud/ui/views/DeltaCloudInstanceColumns.java 2011-03-22 16:25:08 UTC (rev 29934)
@@ -25,30 +25,65 @@
@SuppressWarnings("unchecked")
public DeltaCloudInstanceColumns() {
super(
- new Column<DeltaCloudInstance>("NAME", 20) {
+ new Column<DeltaCloudInstance>("DeltaCloudElementColumn.name.label", 20) {
@Override
public String getColumnText(DeltaCloudInstance image) {
return image.getName();
}
},
- new Column<DeltaCloudInstance>("ALIAS", 20) {
+ new Column<DeltaCloudInstance>("DeltaCloudElementColumn.alias.label", 20) {
@Override
public String getColumnText(DeltaCloudInstance image) {
return image.getAlias();
}
},
- new Column<DeltaCloudInstance>("ID", 20) {
+ new Column<DeltaCloudInstance>("DeltaCloudElementColumn.id.label", 20) {
@Override
public String getColumnText(DeltaCloudInstance image) {
return image.getId();
}
},
- new Column<DeltaCloudInstance>("STATUS", 20) {
+ new Column<DeltaCloudInstance>("DeltaCloudElementColumn.imageId.label", 20) {
@Override
+ public String getColumnText(DeltaCloudInstance image) {
+ return image.getImageId();
+ }
+ },
+ new Column<DeltaCloudInstance>("DeltaCloudElementColumn.ownerId.label", 20) {
+
+ @Override
+ public String getColumnText(DeltaCloudInstance image) {
+ return image.getOwnerId();
+ }
+ },
+ new Column<DeltaCloudInstance>("DeltaCloudElementColumn.keyId.label", 20) {
+
+ @Override
+ public String getColumnText(DeltaCloudInstance image) {
+ return image.getKeyId();
+ }
+ },
+ new Column<DeltaCloudInstance>("DeltaCloudElementColumn.realm.label", 20) {
+
+ @Override
+ public String getColumnText(DeltaCloudInstance image) {
+ return image.getRealmId();
+ }
+ },
+ new Column<DeltaCloudInstance>("DeltaCloudElementColumn.profile.label", 20) {
+
+ @Override
+ public String getColumnText(DeltaCloudInstance image) {
+ return image.getProfileId();
+ }
+ },
+ new Column<DeltaCloudInstance>("DeltaCloudElementColumn.state.label", 20) {
+
+ @Override
public Image getColumnImage(DeltaCloudInstance instance) {
State state = instance.getState();
if (DeltaCloudInstance.State.STOPPED.equals(state)) {
@@ -68,7 +103,8 @@
return image.getState().toString();
}
},
- new Column<DeltaCloudInstance>("HOSTNAME", 40) {
+
+ new Column<DeltaCloudInstance>("DeltaCloudElementColumn.hostname.label", 40) {
@Override
public String getColumnText(DeltaCloudInstance image) {
return image.getHostName();
13 years, 9 months
JBoss Tools SVN: r29933 - trunk/modeshape/docs/ModeShape_Tools_Reference_Guide/en-US.
by jbosstools-commits@lists.jboss.org
Author: irooskov(a)redhat.com
Date: 2011-03-22 00:30:13 -0400 (Tue, 22 Mar 2011)
New Revision: 29933
Modified:
trunk/modeshape/docs/ModeShape_Tools_Reference_Guide/en-US/Introduction.xml
trunk/modeshape/docs/ModeShape_Tools_Reference_Guide/en-US/modeshape-concepts.xml
Log:
updated to correct issues in QE raised JIRA
Modified: trunk/modeshape/docs/ModeShape_Tools_Reference_Guide/en-US/Introduction.xml
===================================================================
--- trunk/modeshape/docs/ModeShape_Tools_Reference_Guide/en-US/Introduction.xml 2011-03-22 04:21:31 UTC (rev 29932)
+++ trunk/modeshape/docs/ModeShape_Tools_Reference_Guide/en-US/Introduction.xml 2011-03-22 04:30:13 UTC (rev 29933)
@@ -6,10 +6,10 @@
<chapter id="chap-ModeShape_Tools_Reference_Guide-introduction">
<title>Introduction</title>
<para>
- ModeShape tools allows you to publish and unpublish resources to the Modeshape repositories you have made available through your workspace. These repositories are persisted within the workspace, from session to session.
+ ModeShape tools allows you to publish and unpublish resources to the ModeShape repositories you have made available through your workspace. These repositories are persisted within the workspace, from session to session.
</para>
<para>
- The Modeshape registry is persisted from session to session.
+ The ModeShape registry is persisted from session to session.
</para>
</chapter>
Modified: trunk/modeshape/docs/ModeShape_Tools_Reference_Guide/en-US/modeshape-concepts.xml
===================================================================
--- trunk/modeshape/docs/ModeShape_Tools_Reference_Guide/en-US/modeshape-concepts.xml 2011-03-22 04:21:31 UTC (rev 29932)
+++ trunk/modeshape/docs/ModeShape_Tools_Reference_Guide/en-US/modeshape-concepts.xml 2011-03-22 04:30:13 UTC (rev 29933)
@@ -16,7 +16,7 @@
ModeShape repositories can be used in a variety of applications. One such application is provisioning and management. In provisioning and management it is critical to understand and keep track of the metadata for models, databases, services, components, applications, clusters, machines, and other systems used in an enterprise environment. Governance takes this further, by also tracking the policies and expectations against which performance can be verified. In these cases, a repository is an excellent mechanism for managing this complex and highly-varied information.
</para>
<para>
- A ModeShape repository doesn't have to be large and complex. It could be setup to only manage configuration information for an application, or provide a JCR interface on top of non-JCR systems.
+ A ModeShape repository does not have to be large and complex. It could be setup to only manage configuration information for an application, or provide a JCR interface on top of non-JCR systems.
</para>
</section>
13 years, 9 months
JBoss Tools SVN: r29932 - trunk/jsf/docs/userguide/en-US/images/editors_features.
by jbosstools-commits@lists.jboss.org
Author: mcaspers
Date: 2011-03-22 00:21:31 -0400 (Tue, 22 Mar 2011)
New Revision: 29932
Modified:
trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_1.png
trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_2.png
trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_3.png
trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_4.png
trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_5.png
trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_6.png
trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_7.png
trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_8.png
Log:
"Updated screenshots"
Modified: trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_1.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_2.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_3.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_4.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_5.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_6.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_7.png
===================================================================
(Binary files differ)
Modified: trunk/jsf/docs/userguide/en-US/images/editors_features/editors_features_8.png
===================================================================
(Binary files differ)
13 years, 9 months