JBoss Tools SVN: r5293 - trunk/jbpm/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2007-12-14 07:00:58 -0500 (Fri, 14 Dec 2007)
New Revision: 5293
Added:
trunk/jbpm/docs/reference/en/modules/the_views.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-143 - the third chapter is devided into two chapters. So "the_views" is new one
Added: trunk/jbpm/docs/reference/en/modules/the_views.xml
===================================================================
--- trunk/jbpm/docs/reference/en/modules/the_views.xml (rev 0)
+++ trunk/jbpm/docs/reference/en/modules/the_views.xml 2007-12-14 12:00:58 UTC (rev 5293)
@@ -0,0 +1,136 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<chapter id="the_views" xreflabel="the_views">
+ <?dbhtml filename="the_views.html"?>
+ <chapterinfo>
+ <keywordset>
+ <keyword>jBPM</keyword>
+ </keywordset>
+ </chapterinfo>
+
+ <title>The views</title>
+
+ <para>This chapter will explain you how to work with views and editors provided by JBDS.</para>
+
+ <section id="the_outline_view">
+ <?dbhtml filename="the_outline_view.html"?>
+ <title>The Outline View</title>
+ <para>To have a way to quickly see an outline of the process use the JBDS Outline view. If it is not
+ visible select <emphasis>
+ <property>Window > Show view > Outline</property>
+ </emphasis>. It is presented as the classical tree view. Also you can use <emphasis>
+ <property>Overview</property>
+ </emphasis> that comes as a scrollable thumbnail.</para>
+ <figure>
+ <title>The Outline and Overview Views</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/the_views/the_views1.png"
+ scale="75"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="the_properties_view">
+ <?dbhtml filename="the_properties_view.html"?>
+ <title>The Properties View</title>
+ <para> Here, we dwell on the JBDS <property>Properties view</property>.</para>
+ <para>Notice if it's not visible you can access it by navigating <emphasis>
+ <property>Window > Show view > Properties</property>
+ </emphasis>. The view shows the relevant properties of the selected item. Some of these
+ properties may be directly editable in the properties view. An example of a directly
+ editable property is the name property of the process definition. As you can see in the
+ next figure, the name property of the process definition can be changed to <emphasis>
+ <property>jbay</property>
+ </emphasis>. You can also write a description for this property.</para>
+ <figure>
+ <title>The Properties of a Process Definition</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/the_views/the_views2.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>Let's change the name of the first transition to <emphasis>
+ <property>to_auction</property>
+ </emphasis>. We repeat this name change for the second transition and name it <emphasis>
+ <property>to_end</property>
+ </emphasis>.</para>
+ <figure>
+ <title>Transitions Names</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/the_views/the_views3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+
+
+ <section id="direct_editing">
+ <?dbhtml filename="direct_editing.html"?>
+ <title>Direct Editing</title>
+ <para>Besides, some properties can be directly edited in the graphical editor. One example of this is
+ the <emphasis>
+ <property>Name</property>
+ </emphasis> property of nodes. You can edit this directly by selecting the node of which
+ you want to change the name and then click once inside this node. This enables an editor
+ in the node. We change the name of the node to <emphasis>
+ <property>auction</property>
+ </emphasis>.</para>
+ <figure>
+ <title>Directly Editing the Node Name</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/the_views/the_views4.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="the_source_view">
+ <?dbhtml filename="the_source_view.html"?>
+ <title>The Source View</title>
+ <para>Now that we have defined a simple process definition, we can have a look at the xml
+ that is being generated under the covers. To see this xml, click on the source tab of
+ the process definition editor.</para>
+ <figure>
+ <title>The Source View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/the_views/the_views5.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ <para>This source tab is editable, so if you know your way around in jPDL, you can create or
+ tweak your process definitions directly in the xml source.</para>
+ </section>
+ <section id="the_design_view">
+ <?dbhtml filename="the_design_view.html"?>
+ <title>The Design View</title>
+ <para>One more way to edit your file is to use <property>Design view</property> that's available at the bottom of the file editor.
+ You can see it in the next picture:</para>
+ <figure>
+ <title>The Design View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/the_views/the_views6.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <section id="the_deployment_view">
+ <?dbhtml filename="the_deployment_view.html"?>
+ <title>The Deployment View</title>
+ <para>To adjust the deployment settings of the project you should switch to the next tab that opens the
+ <property>Deployment view</property>.</para>
+ <figure>
+ <title>The Deployment View</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/the_views/the_views7.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+ </section>
+ <para>As we have already arranged the project, let's pass on to the next step.</para>
+
+</chapter>
\ No newline at end of file
17 years, 1 month
JBoss Tools SVN: r5292 - in trunk/jbpm/docs/reference/en/images: the_views and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2007-12-14 06:59:15 -0500 (Fri, 14 Dec 2007)
New Revision: 5292
Added:
trunk/jbpm/docs/reference/en/images/the_views/
trunk/jbpm/docs/reference/en/images/the_views/the_views1.png
trunk/jbpm/docs/reference/en/images/the_views/the_views2.png
trunk/jbpm/docs/reference/en/images/the_views/the_views3.png
trunk/jbpm/docs/reference/en/images/the_views/the_views4.png
trunk/jbpm/docs/reference/en/images/the_views/the_views5.png
trunk/jbpm/docs/reference/en/images/the_views/the_views6.png
trunk/jbpm/docs/reference/en/images/the_views/the_views7.png
Log:
http://jira.jboss.com/jira/browse/JBDS-143 - new chapter "The views" is added. Acccoding to this new folder with images is added
Added: trunk/jbpm/docs/reference/en/images/the_views/the_views1.png
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/docs/reference/en/images/the_views/the_views1.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/docs/reference/en/images/the_views/the_views2.png
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/docs/reference/en/images/the_views/the_views2.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/docs/reference/en/images/the_views/the_views3.png
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/docs/reference/en/images/the_views/the_views3.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/docs/reference/en/images/the_views/the_views4.png
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/docs/reference/en/images/the_views/the_views4.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/docs/reference/en/images/the_views/the_views5.png
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/docs/reference/en/images/the_views/the_views5.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/docs/reference/en/images/the_views/the_views6.png
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/docs/reference/en/images/the_views/the_views6.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jbpm/docs/reference/en/images/the_views/the_views7.png
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/docs/reference/en/images/the_views/the_views7.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years, 1 month
JBoss Tools SVN: r5291 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2007-12-13 12:58:17 -0500 (Thu, 13 Dec 2007)
New Revision: 5291
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1356 New Seam Runtime dialog improvements
Issue is fixed
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java 2007-12-13 17:14:17 UTC (rev 5290)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/widget/editor/SeamRuntimeListFieldEditor.java 2007-12-13 17:58:17 UTC (rev 5291)
@@ -293,6 +293,7 @@
"default", SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_USE_AS_DEFAULT, false); //$NON-NLS-1$
SeamRuntime current = null;
+ List<SeamVersion> validSeamVersions = null;
/**
* @param parent
@@ -313,10 +314,14 @@
"version", SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_VERSION2, Arrays.asList( //$NON-NLS-1$
new String[]{SeamVersion.SEAM_1_2.toString(), SeamVersion.SEAM_2_0.toString()}),
SeamVersion.SEAM_1_2.toString(), false);
+ validSeamVersions = new ArrayList<SeamVersion>();
+ validSeamVersions.add(SeamVersion.SEAM_1_2);
+ validSeamVersions.add(SeamVersion.SEAM_2_0);
} else {
this.version = IFieldEditorFactory.INSTANCE.createComboEditor(
"version", SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_VERSION2, validSeamVersions,
SeamVersion.SEAM_1_2.toString(), false);
+ this.validSeamVersions = validSeamVersions;
}
setMessage(SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_CREATE_A_SEAM_RUNTIME);
@@ -338,12 +343,12 @@
root.setLayoutData(dg);
GridLayout gl = new GridLayout(3, false);
root.setLayout(gl);
+ homeDir.doFillIntoGrid(root);
+ homeDir.addPropertyChangeListener(this);
name.doFillIntoGrid(root);
name.addPropertyChangeListener(this);
version.doFillIntoGrid(root);
version.addPropertyChangeListener(this);
- homeDir.doFillIntoGrid(root);
- homeDir.addPropertyChangeListener(this);
setPageComplete(false);
setControl(root);
}
@@ -352,7 +357,25 @@
*
*/
public void propertyChange(PropertyChangeEvent evt) {
+ if ("homeDir".equals(evt.getPropertyName())) {
+ if (name.getValueAsString() == null ||
+ "".equals(name.getValueAsString().trim())) {
+ String homeDirName = homeDir.getValueAsString();
+ if (homeDirName != null && !"".equals(homeDirName.trim())) {
+ File folder = new File(homeDirName);
+ homeDirName = folder.getName();
+ }
+ name.setValue(homeDirName);
+ String seamVersion = getSeamVersion(homeDir.getValueAsString());
+ for (SeamVersion ver : validSeamVersions) {
+ if (seamVersion.matches(ver.toString().replace(".","\\.")+".*")) {
+ version.setValue(ver.toString());
+ break;
+ }
+ }
+ }
+ }
if(name.getValueAsString()==null || "".equals( //$NON-NLS-1$
name.getValueAsString().toString().trim())) {
setErrorMessage(SeamUIMessages.SEAM_RUNTIME_LIST_FIELD_EDITOR_NAME_CANNOT_BE_EMPTY);
17 years, 1 month
JBoss Tools SVN: r5290 - in trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test: META-INF and 9 other directories.
by jbosstools-commits@lists.jboss.org
Author: dsakovich
Date: 2007-12-13 12:14:17 -0500 (Thu, 13 Dec 2007)
New Revision: 5290
Added:
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/.classpath
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/.project
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/build.properties
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/seamtest.jar
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/ImportSeamComponents.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamAllTests.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentTest.java
trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamTestPlugin.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1491
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/.classpath
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/.classpath (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/.classpath 2007-12-13 17:14:17 UTC (rev 5290)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/.project
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/.project (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/.project 2007-12-13 17:14:17 UTC (rev 5290)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.jsf.vpe.seam.test</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/META-INF/MANIFEST.MF 2007-12-13 17:14:17 UTC (rev 5290)
@@ -0,0 +1,14 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Seam Test Plug-in
+Bundle-SymbolicName: org.jboss.tools.jsf.vpe.seam.test
+Bundle-Version: 1.0.0
+Bundle-Activator: org.jboss.tools.jsf.vpe.seam.test.SeamTestPlugin
+Require-Bundle: org.eclipse.ui,
+ org.eclipse.core.runtime,
+ org.eclipse.core.resources,
+ org.eclipse.ui.ide,
+ org.jboss.tools.common,
+ org.junit,
+ org.jboss.tools.vpe
+Eclipse-LazyStart: true
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/build.properties
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/build.properties (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/build.properties 2007-12-13 17:14:17 UTC (rev 5290)
@@ -0,0 +1,4 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/seamtest.jar
===================================================================
(Binary files differ)
Property changes on: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/resources/seamtest.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/ImportSeamComponents.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/ImportSeamComponents.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/ImportSeamComponents.java 2007-12-13 17:14:17 UTC (rev 5290)
@@ -0,0 +1,92 @@
+package org.jboss.tools.jsf.vpe.seam.test;
+
+import java.io.IOException;
+import java.lang.reflect.InvocationTargetException;
+import java.util.zip.ZipFile;
+
+import org.eclipse.core.resources.IProject;
+import org.eclipse.core.resources.IResource;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.CoreException;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.NullProgressMonitor;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.dialogs.IOverwriteQuery;
+import org.eclipse.ui.internal.wizards.datatransfer.ZipLeveledStructureProvider;
+import org.eclipse.ui.wizards.datatransfer.ImportOperation;
+
+/**
+ * Class for importing project from jar file
+ *
+ * @author dsakovich(a)exadel.com
+ *
+ */
+public class ImportSeamComponents {
+ private static final String PROJECT_NAME = "SeamTest"; // $NON-NLS-1$
+ private static final String COMPONENTS_PATH = "WebContent/pages"; // $NON-NLS-1$
+
+ @SuppressWarnings("restriction")
+ static void importSeamPages(String path) {
+ IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(
+ PROJECT_NAME);
+ ZipLeveledStructureProvider zipStructureProvider;
+ try {
+ zipStructureProvider = new ZipLeveledStructureProvider(new ZipFile(
+ path));
+
+ IOverwriteQuery overwrite = new IOverwriteQuery() {
+ public String queryOverwrite(String pathString) {
+ return ALL;
+ }
+ };
+
+ ImportOperation importOp = new ImportOperation(project
+ .getFullPath(), zipStructureProvider.getRoot(),
+ zipStructureProvider, overwrite);
+
+ importOp.setContext(PlatformUI.getWorkbench()
+ .getActiveWorkbenchWindow().getShell());
+
+ importOp.run(new NullProgressMonitor());
+ } catch (InvocationTargetException ite) {
+ SeamTestPlugin.getPluginLog().logError(ite.getCause());
+ } catch (InterruptedException ie) {
+ SeamTestPlugin.getPluginLog().logError(ie);
+ } catch (IOException e) {
+ SeamTestPlugin.getPluginLog().logError(e);
+ }
+ }
+
+ /**
+ *
+ * @return
+ * @throws CoreException
+ */
+ static IPath getComponentPath(String componentPage) throws CoreException {
+ IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(
+ PROJECT_NAME);
+ if (project != null) {
+ IResource resource = project.getFolder(COMPONENTS_PATH).findMember(
+ componentPage);
+ if (resource != null) {
+ return resource.getFullPath();
+ }
+
+ }
+
+ return null;
+ }
+
+ /**
+ *
+ * @throws CoreException
+ */
+ static void removeProject() throws CoreException {
+ IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(
+ PROJECT_NAME);
+ if (project != null) {
+ project.delete(IResource.ALWAYS_DELETE_PROJECT_CONTENT,
+ new NullProgressMonitor());
+ }
+ }
+}
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamAllTests.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamAllTests.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamAllTests.java 2007-12-13 17:14:17 UTC (rev 5290)
@@ -0,0 +1,32 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and 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:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.seam.test;
+
+import junit.framework.Test;
+import junit.framework.TestSuite;
+
+/**
+ * Class for testing all Seam components
+ *
+ * @author dsakovich(a)exadel.com
+ *
+ */
+
+public class SeamAllTests {
+ public static Test suite() {
+ TestSuite suite = new TestSuite("Tests for Vpe Seam components"); // $NON-NLS-1$
+ // $JUnit-BEGIN$
+ suite.addTestSuite(SeamComponentTest.class);
+ // $JUnit-END$
+ return suite;
+
+ }
+}
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentTest.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentTest.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamComponentTest.java 2007-12-13 17:14:17 UTC (rev 5290)
@@ -0,0 +1,165 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and 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:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.seam.test;
+
+import junit.framework.TestCase;
+
+import org.eclipse.core.resources.IFile;
+import org.eclipse.core.resources.ResourcesPlugin;
+import org.eclipse.core.runtime.ILogListener;
+import org.eclipse.core.runtime.IPath;
+import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Platform;
+import org.eclipse.core.runtime.jobs.Job;
+import org.eclipse.swt.widgets.Display;
+import org.eclipse.ui.IEditorInput;
+import org.eclipse.ui.PartInitException;
+import org.eclipse.ui.PlatformUI;
+import org.eclipse.ui.part.FileEditorInput;
+
+/**
+ * Class for testing all Seam components
+ *
+ * @author dsakovich(a)exadel.com
+ *
+ */
+public class SeamComponentTest extends TestCase implements ILogListener{
+
+ private final static String EDITOR_ID = "org.jboss.tools.jst.jsp.jspeditor.JSPTextEditor"; // $NON-NLS-1$
+ private final static String TEST_PROJECT_JAR_PATH = "/seamtest.jar"; // $NON-NLS-1$
+
+ // check warning log
+ private final static boolean checkWarning = false;
+ private Throwable exception;
+
+ public SeamComponentTest(String name) {
+ super(name);
+ }
+
+ /**
+ * Perform pre-test initialization.
+ *
+ * @throws Exception
+ *
+ * @see TestCase#setUp()
+ */
+ protected void setUp() throws Exception {
+ super.setUp();
+
+ // TODO: Use TestSetup to create and remove project once for all tests
+ // not for every one
+ if(ResourcesPlugin.getWorkspace().getRoot().findMember("SeamTest")==null) {
+
+ ImportSeamComponents.importSeamPages(SeamTestPlugin
+ .getPluginResourcePath() + TEST_PROJECT_JAR_PATH);
+
+ waitForJobs();
+ waitForJobs();
+ delay(5000);
+ }
+ Platform.addLogListener(this);
+ }
+
+ /**
+ * Perform post-test cleanup.
+ *
+ * @throws Exception
+ *
+ * @see TestCase#tearDown()
+ */
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ Platform.removeLogListener(this);
+ }
+
+ /**
+ * Process UI input but do not return for the specified time interval.
+ *
+ * @param waitTimeMillis
+ * the number of milliseconds
+ */
+ private void delay(long waitTimeMillis) {
+ Display display = Display.getCurrent();
+ if (display != null) {
+ long endTimeMillis = System.currentTimeMillis() + waitTimeMillis;
+ while (System.currentTimeMillis() < endTimeMillis) {
+ if (!display.readAndDispatch())
+ display.sleep();
+ }
+ display.update();
+ }
+ // Otherwise, perform a simple sleep.
+ else {
+ try {
+ Thread.sleep(waitTimeMillis);
+ } catch (InterruptedException e) {
+ // Ignored.
+ }
+ }
+ }
+
+ /**
+ * Wait until all background tasks are complete.
+ */
+ public void waitForJobs() {
+ while (Job.getJobManager().currentJob() != null)
+ delay(5000);
+ }
+
+ public void testAllComponentsOnSinglePage() throws PartInitException, Throwable {
+ performTestForSeamComponent("seamtest.xhtml"); // $NON-NLS-1$
+ }
+
+ public void testButton() throws PartInitException, Throwable {
+ performTestForSeamComponent("button.xhtml"); // $NON-NLS-1$
+ }
+
+ public void testSpan() throws PartInitException, Throwable {
+ performTestForSeamComponent("span.xhtml"); // $NON-NLS-1$
+ }
+
+
+ private void performTestForSeamComponent(String componentPage) throws PartInitException, Throwable {
+ waitForJobs();
+
+ exception = null;
+ IPath componentPath = ImportSeamComponents.getComponentPath(componentPage);
+
+ IFile file = ResourcesPlugin.getWorkspace().getRoot().getFile(componentPath);
+ IEditorInput input = new FileEditorInput(file);
+
+ PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().openEditor(input, EDITOR_ID, true);
+
+ waitForJobs();
+ delay(3000);
+ PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().closeAllEditors(true);
+
+ if (exception != null) {
+ throw exception;
+ }
+ }
+
+ public void logging(IStatus status, String plugin) {
+ switch (status.getSeverity()) {
+ case IStatus.ERROR:
+ exception = status.getException();
+ break;
+ case IStatus.WARNING:
+ if (checkWarning)
+ exception = status.getException();
+ break;
+ default:
+ break;
+ }
+
+ }
+
+}
Added: trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamTestPlugin.java
===================================================================
--- trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamTestPlugin.java (rev 0)
+++ trunk/jsf/tests/org.jboss.tools.jsf.vpe.seam.test/src/org/jboss/tools/jsf/vpe/seam/test/SeamTestPlugin.java 2007-12-13 17:14:17 UTC (rev 5290)
@@ -0,0 +1,84 @@
+/*******************************************************************************
+ * Copyright (c) 2007 Exadel, Inc. and 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:
+ * Exadel, Inc. and Red Hat, Inc. - initial API and implementation
+ ******************************************************************************/
+package org.jboss.tools.jsf.vpe.seam.test;
+
+import java.net.URL;
+
+import org.eclipse.core.runtime.FileLocator;
+import org.eclipse.core.runtime.Platform;
+import org.jboss.tools.common.log.BaseUIPlugin;
+import org.jboss.tools.common.log.IPluginLog;
+import org.osgi.framework.Bundle;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class SeamTestPlugin extends BaseUIPlugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.jsf.vpe.seam.test";
+
+ // The shared instance
+ private static SeamTestPlugin plugin;
+
+ /**
+ * The constructor
+ */
+ public SeamTestPlugin() {
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ *
+ * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
+ */
+ public void stop(BundleContext context) throws Exception {
+ plugin = null;
+ super.stop(context);
+ }
+
+ /**
+ * Returns the shared instance
+ *
+ * @return the shared instance
+ */
+ public static SeamTestPlugin getDefault() {
+ return plugin;
+ }
+
+ public static IPluginLog getPluginLog() {
+ return getDefault();
+ }
+
+ public static String getPluginResourcePath() {
+ Bundle bundle = Platform.getBundle(PLUGIN_ID);
+ URL url = null;
+ try {
+ url = bundle == null ? null : FileLocator.resolve(bundle
+ .getEntry("/resources")); // $NON-NLS-1$
+ } catch (Exception e) {
+ url = bundle.getEntry("/resources"); // $NON-NLS-1$
+ }
+ return (url == null) ? null : url.getPath();
+ }
+
+}
17 years, 1 month
JBoss Tools SVN: r5288 - trunk/common/plugins/org.jboss.tools.common.model.ui.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2007-12-13 11:47:21 -0500 (Thu, 13 Dec 2007)
New Revision: 5288
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1110 Hyperlinking an EL expression should work in .page.xml files
This fixes the pages.xml and *.page.xml -related part of the issue.
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml 2007-12-13 16:47:14 UTC (rev 5287)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/plugin.xml 2007-12-13 16:47:21 UTC (rev 5288)
@@ -28,10 +28,15 @@
name="%editors.xml.advanced.name">
<contentTypeBinding contentTypeId="org.eclipse.jst.j2ee.webDD"/>
<contentTypeBinding contentTypeId="org.eclipse.jst.jee.ee5webDD"/>
-
+
<contentTypeBinding contentTypeId="org.jboss.tools.common.model.ui.xml"/>
<contentTypeBinding contentTypeId="org.eclipse.jst.jsf.facesconfig.facesConfigFile"/>
-
+
+ <contentTypeBinding contentTypeId="org.jboss.tools.seam.xml.ui.pages12xmlsource"/>
+ <contentTypeBinding contentTypeId="org.jboss.tools.seam.xml.ui.page12xmlsource"/>
+
+ <contentTypeBinding contentTypeId="org.jboss.tools.seam.xml.ui.pages20xmlsource"/>
+ <contentTypeBinding contentTypeId="org.jboss.tools.seam.xml.ui.page20xmlsource"/>
</editor>
</extension>
<extension point="org.jboss.tools.common.model.ui.attributeEditor">
17 years, 1 month
JBoss Tools SVN: r5287 - trunk/seam/plugins/org.jboss.tools.seam.xml.ui.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2007-12-13 11:47:14 -0500 (Thu, 13 Dec 2007)
New Revision: 5287
Modified:
trunk/seam/plugins/org.jboss.tools.seam.xml.ui/plugin.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1110 Hyperlinking an EL expression should work in .page.xml files
This fixes the pages.xml and *.page.xml -related part of the issue.
Modified: trunk/seam/plugins/org.jboss.tools.seam.xml.ui/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.xml.ui/plugin.xml 2007-12-13 16:40:30 UTC (rev 5286)
+++ trunk/seam/plugins/org.jboss.tools.seam.xml.ui/plugin.xml 2007-12-13 16:47:14 UTC (rev 5287)
@@ -35,4 +35,67 @@
class="org.jboss.tools.seam.xml.ui.editor.form.core.SeamComponentsCoreFormLayoutData"/>
</extension>
+ <extension
+ point="org.eclipse.core.runtime.contentTypes">
+ <content-type
+ base-type="org.eclipse.core.runtime.xml"
+ file-extensions="xml"
+ file-names="pages.xml"
+ id="pages12xmlsource"
+ name="Pages 1.2 XML Content-Type"
+ priority="normal">
+ <describer class="org.eclipse.core.runtime.content.XMLRootElementContentDescriber">
+ <parameter
+ name="element"
+ value="pages"/>
+ <parameter
+ name="dtd"
+ value="http://jboss.com/products/seam/pages-1.2.dtd"/>
+ </describer>
+ </content-type>
+ <content-type
+ base-type="org.eclipse.core.runtime.xml"
+ file-extensions="xml"
+ file-names=".page.xml"
+ id="page12xmlsource"
+ name="Page 1.2 XML Content-Type"
+ priority="normal">
+ <describer class="org.eclipse.core.runtime.content.XMLRootElementContentDescriber">
+ <parameter
+ name="element"
+ value="page"/>
+ <parameter
+ name="dtd"
+ value="http://jboss.com/products/seam/pages-1.2.dtd"/>
+ </describer>
+ </content-type>
+ <content-type
+ base-type="org.eclipse.core.runtime.xml"
+ file-extensions="xml"
+ file-names="pages.xml"
+ id="pages20xmlsource"
+ name="Pages 2.0 XML Content-Type"
+ priority="normal">
+ <describer class="org.eclipse.core.runtime.content.XMLRootElementContentDescriber">
+ <parameter
+ name="element"
+ value="pages"/>
+ </describer>
+ </content-type>
+ <content-type
+ base-type="org.eclipse.core.runtime.xml"
+ file-extensions="xml"
+ file-names=".page.xml"
+ id="page20xmlsource"
+ name="Page 2.0 XML Content-Type"
+ priority="normal">
+ <describer class="org.eclipse.core.runtime.content.XMLRootElementContentDescriber">
+ <parameter
+ name="element"
+ value="page"/>
+ </describer>
+ </content-type>
+ </extension>
+
+
</plugin>
17 years, 1 month
JBoss Tools SVN: r5286 - trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2007-12-13 11:40:30 -0500 (Thu, 13 Dec 2007)
New Revision: 5286
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1434 Proposal list is showed when cursor in a position right after attribute closing quotation mark
The issue is fixed
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 2007-12-13 15:46:03 UTC (rev 5285)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui/src/org/jboss/tools/seam/ui/text/java/SeamELProposalProcessor.java 2007-12-13 16:40:30 UTC (rev 5286)
@@ -313,7 +313,10 @@
if(node instanceof IDOMNode) {
IDOMNode xmlnode = (IDOMNode) node;
ITextRegion completionRegion = getCompletionRegion(offset, node);
- return DOMRegionContext.XML_TAG_ATTRIBUTE_VALUE == completionRegion.getType();
+ 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;
17 years, 1 month
JBoss Tools SVN: r5285 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors: actions and 2 other directories.
by jbosstools-commits@lists.jboss.org
Author: achabatar
Date: 2007-12-13 10:46:03 -0500 (Thu, 13 Dec 2007)
New Revision: 5285
Added:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/actions/ExportImageAction.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/icons/export.png
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/VisualEditor.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/popup/PopupMenuProvider.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1418
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/VisualEditor.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/VisualEditor.java 2007-12-13 15:45:38 UTC (rev 5284)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/VisualEditor.java 2007-12-13 15:46:03 UTC (rev 5285)
@@ -34,6 +34,7 @@
import org.hibernate.console.ConsoleConfiguration;
import org.hibernate.mapping.Column;
import org.hibernate.mapping.RootClass;
+import org.jboss.tools.hibernate.ui.veditor.editors.actions.ExportImageAction;
import org.jboss.tools.hibernate.ui.veditor.editors.actions.OpenMappingAction;
import org.jboss.tools.hibernate.ui.veditor.editors.actions.OpenSourceAction;
import org.jboss.tools.hibernate.ui.veditor.editors.model.ModelElement;
@@ -73,7 +74,11 @@
viewer.setContextMenu(provider);
getSite().registerContextMenu("FlowDiagramContextmenu", provider, viewer);
}
-
+
+ public GraphicalViewer getEditPartViewer() {
+ return getGraphicalViewer();
+ }
+
protected void createActions() {
getEditorSite().getActionBars().setGlobalActionHandler(ActionFactory.REFRESH.getId(),new WorkbenchPartAction(this){
@@ -98,6 +103,10 @@
action = new OpenSourceAction(this);
registry.registerAction(action);
+
+ action = new ExportImageAction(this);
+ registry.registerAction(action);
+
}
private TransferDropTargetListener createTransferDropTargetListener() {
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/actions/ExportImageAction.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/actions/ExportImageAction.java (rev 0)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/actions/ExportImageAction.java 2007-12-13 15:46:03 UTC (rev 5285)
@@ -0,0 +1,126 @@
+package org.jboss.tools.hibernate.ui.veditor.editors.actions;
+
+import java.io.ByteArrayOutputStream;
+import java.io.FileOutputStream;
+
+import org.eclipse.draw2d.Graphics;
+import org.eclipse.draw2d.IFigure;
+import org.eclipse.draw2d.SWTGraphics;
+import org.eclipse.draw2d.geometry.Rectangle;
+import org.eclipse.gef.LayerConstants;
+import org.eclipse.gef.editparts.ScalableFreeformRootEditPart;
+import org.eclipse.jface.action.Action;
+import org.eclipse.jface.dialogs.MessageDialog;
+import org.eclipse.jface.resource.ImageDescriptor;
+import org.eclipse.swt.SWT;
+import org.eclipse.swt.graphics.Device;
+import org.eclipse.swt.graphics.GC;
+import org.eclipse.swt.graphics.Image;
+import org.eclipse.swt.graphics.ImageData;
+import org.eclipse.swt.graphics.ImageLoader;
+import org.eclipse.swt.widgets.FileDialog;
+import org.jboss.tools.hibernate.ui.veditor.editors.VisualEditor;
+
+public class ExportImageAction extends Action {
+
+ public static final String ACTION_ID = "Export as Image";
+
+ private VisualEditor editor;
+
+ public ExportImageAction(VisualEditor editor) {
+ this.editor = editor;
+ setId(ACTION_ID);
+ setText(ACTION_ID);
+ setImageDescriptor(ImageDescriptor.createFromFile(
+ VisualEditor.class,"icons/export.png"));
+ }
+
+ public void run() {
+
+ FileDialog saveDialog = new FileDialog(
+ this.editor.getSite().getShell(), SWT.SAVE);
+ saveDialog
+ .setFilterExtensions(new String[] { "*.png", "*.jpg", "*.bmp" });
+ saveDialog.setFilterNames(new String[] { "PNG format (*.png)",
+ "JPEG format (*.jpg)", "Bitmap format (*.bmp)" });
+
+ String filePath = saveDialog.open();
+ if (filePath == null || filePath.trim().length() == 0) {
+ return;
+ }
+
+ IFigure fig = ((ScalableFreeformRootEditPart) this.editor
+ .getEditPartViewer().getRootEditPart())
+ .getLayer(LayerConstants.PRINTABLE_LAYERS);
+ try {
+ int imageType = SWT.IMAGE_BMP;
+ if (filePath.toLowerCase().endsWith(".jpg")) {
+ imageType = SWT.IMAGE_JPEG;
+ } else if (filePath.toLowerCase().endsWith(".png")) {
+ imageType = SWT.IMAGE_PNG;
+ }
+
+ byte[] imageData = createImage(fig, imageType);
+ FileOutputStream outStream = new FileOutputStream(filePath);
+ outStream.write(imageData);
+ outStream.flush();
+ outStream.close();
+ } catch (Throwable e) {
+ MessageDialog.openInformation(this.editor.getSite().getShell(),
+ "Error", "Failed to export image: " + e.getMessage());
+ return;
+ }
+ }
+
+ /***
+ * Returns the bytes of an encoded image for the specified
+ * IFigure in the specified format.
+ *
+ * @param figure the Figure to create an image for.
+ * @param format one of SWT.IMAGE_BMP, SWT.IMAGE_BMP_RLE, SWT.IMAGE_GIF
+ * SWT.IMAGE_ICO, SWT.IMAGE_JPEG, or SWT.IMAGE_PNG
+ * @return the bytes of an encoded image for the specified Figure
+ */
+ private byte[] createImage(IFigure figure, int format) throws Exception {
+
+ Device device = this.editor.getEditPartViewer().getControl()
+ .getDisplay();
+ Rectangle r = figure.getBounds();
+
+ ByteArrayOutputStream result = new ByteArrayOutputStream();
+
+ Image image = null;
+ GC gc = null;
+ Graphics g = null;
+ Exception error = null;
+ try {
+ image = new Image(device, r.width, r.height);
+ gc = new GC(image);
+ g = new SWTGraphics(gc);
+ g.translate(r.x * -1, r.y * -1);
+
+ figure.paint(g);
+
+ ImageLoader imageLoader = new ImageLoader();
+ imageLoader.data = new ImageData[] { image.getImageData() };
+ imageLoader.save(result, format);
+ } catch (Exception ex) {
+ error = ex;
+ } finally {
+ if (g != null) {
+ g.dispose();
+ }
+ if (gc != null) {
+ gc.dispose();
+ }
+ if (image != null) {
+ image.dispose();
+ }
+ }
+ if (error != null) {
+ throw error;
+ }
+ return result.toByteArray();
+ }
+
+}
Added: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/icons/export.png
===================================================================
(Binary files differ)
Property changes on: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/icons/export.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/popup/PopupMenuProvider.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/popup/PopupMenuProvider.java 2007-12-13 15:45:38 UTC (rev 5284)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/popup/PopupMenuProvider.java 2007-12-13 15:46:03 UTC (rev 5285)
@@ -13,6 +13,7 @@
import org.eclipse.swt.widgets.Menu;
import org.eclipse.swt.widgets.MenuItem;
import org.eclipse.ui.actions.ActionFactory;
+import org.jboss.tools.hibernate.ui.veditor.editors.actions.ExportImageAction;
import org.jboss.tools.hibernate.ui.veditor.editors.actions.OpenMappingAction;
import org.jboss.tools.hibernate.ui.veditor.editors.actions.OpenSourceAction;
@@ -38,6 +39,10 @@
appendToGroup(GEFActionConstants.MB_ADDITIONS, action);
createMenuItem(getMenu(), action);
+ action = getActionRegistry().getAction(ExportImageAction.ACTION_ID);
+ appendToGroup(GEFActionConstants.MB_ADDITIONS, action);
+ createMenuItem(getMenu(), action);
+
// Add actions to the menu
menu.appendToGroup(
GEFActionConstants.GROUP_UNDO, // target group id
17 years, 1 month
JBoss Tools SVN: r5284 - trunk/jbpm/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2007-12-13 10:45:38 -0500 (Thu, 13 Dec 2007)
New Revision: 5284
Modified:
trunk/jbpm/docs/reference/en/modules/guided_tour_jboss_jbpmgpd.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-143 - transitions between sections
Modified: trunk/jbpm/docs/reference/en/modules/guided_tour_jboss_jbpmgpd.xml
===================================================================
--- trunk/jbpm/docs/reference/en/modules/guided_tour_jboss_jbpmgpd.xml 2007-12-13 15:44:58 UTC (rev 5283)
+++ trunk/jbpm/docs/reference/en/modules/guided_tour_jboss_jbpmgpd.xml 2007-12-13 15:45:38 UTC (rev 5284)
@@ -10,19 +10,23 @@
</keywordset>
</chapterinfo>
<title>A Guided Tour of JBoss jBPM GPD</title>
- <para>We have included a wizard in the GPD plugin to create a jBPM project. We have opted to
- create a project containing based on a template already containing a number of advanced
- artifacts that we will ignore for this section. In the future we will elaborate this wizard
- and offer the possibility to create an empty jBPM project as well as projects based on
- templates taken from the jBPM tutorial.</para>
+ <para>In this chapter we suggest a step-by-step walk-through of creating and editing your own
+ simple process. Let’s start with organizing a new jBPM project.</para>
+ <para>A wizard for creating a jBPM project is included in the GPD plugin. We have opted to
+ create a project based on a template already containing a number of advanced artifacts that
+ we will ignore for this section. In the future we will elaborate this wizard and offer the
+ possibility to create an empty jBPM project as well as projects based on templates taken
+ from the jBPM tutorial.</para>
<section id="CreatingjBPMProject">
<?dbhtml filename="CreatingjBPMProject.html"?>
<title>Creating a jBPM Project</title>
- <para>To create a new jBPM project using the project creation wizard, we select <emphasis>
+ <para>This section will show you how to use the Creation wizard for creating a new jBPM
+ project with already included source folders.</para>
+ <para>At first you should select <emphasis>
<property>File >New Project...</property>
- </emphasis> and in the New Project dialog, we select <emphasis>
+ </emphasis> and then <emphasis>
<property>JBoss jBPM > Process Project</property>
- </emphasis>:</para>
+ </emphasis> in the New Project dialog:</para>
<figure>
<title>New Project Dialog</title>
<mediaobject>
@@ -74,8 +78,8 @@
<section id="creating_an_empty_process_definition">
<?dbhtml filename="creating_an_empty_process_definition.html"?>
<title>Creating an Empty Process Definition</title>
- <para>When the project is set up, we can use a creation wizard to create an empty process
- definition. Bring up the <emphasis>
+ <para>Now when the project is set up, we can use a Creation wizard to create an empty
+ process definition. Bring up the <emphasis>
<property>New</property>
</emphasis> wizard by clicking the <emphasis>
<property>File > New > Other...</property>
@@ -116,12 +120,13 @@
<title>The Process Definition Editor</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/guided_tour_jboss_jbpmgpd/guided_tour6.png" scale="75"/>
+ <imagedata fileref="images/guided_tour_jboss_jbpmgpd/guided_tour6.png"
+ scale="75"/>
</imageobject>
</mediaobject>
</figure>
-
-
+
+
<para>You can see in the Package Explorer that creating a process definition involves
creating a folder with the name of the process definition and populating this folder
with two .xml files : <emphasis>
@@ -135,21 +140,20 @@
</emphasis> file contains the actual process definition info without the graphical
rendering info. At present, the GPD assumes that these two files are siblings. More
sophisticated configuration will be supported later.</para>
-
+
<section id="minimal_process_definition">
<?dbhtml filename="minimal_process_definition.html"?>
<title>A Minimal Process Definition</title>
- <para>We will create a very simple process definition, consisting of a begin state, an
- intermediate state and an end state.</para>
+ <para>Now we are ready to create a very simple process definition consisting of a begin
+ state, an intermediate state and an end state.</para>
<para>To make the configuration of actions much easier it's better to use the
- jPDL perspective. It provides the tabbed
- Properties Editor which allows to configure all the relevant properties of the current
- selected item. </para>
+ jPDL perspective. It provides the tabbed Properties Editor which allows to configure
+ all the relevant properties of the current selected item. </para>
<section id="adding_the_nodes">
<?dbhtml filename="adding_the_nodes.html"?>
<title>Adding the Nodes</title>
- <para>Select respectively <emphasis>
+ <para>At first select respectively <emphasis>
<property>Start</property>
</emphasis>, <emphasis>
<property>State</property>
@@ -161,7 +165,8 @@
<title>A Simple Process With Three Nodes</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/guided_tour_jboss_jbpmgpd/guided_tour7.png" scale="75"/>
+ <imagedata fileref="images/guided_tour_jboss_jbpmgpd/guided_tour7.png"
+ scale="75"/>
</imageobject>
</mediaobject>
</figure>
@@ -169,7 +174,7 @@
<section id="adding_transitions">
<?dbhtml filename="adding_transitions.html"?>
<title>Adding Transitions</title>
- <para>We will connect the nodes with transitions. Select the <emphasis>
+ <para>Then we will connect the nodes with transitions. For that select the <emphasis>
<property>Transition</property>
</emphasis> tool in the tools palette and click on the <emphasis>
<property>Start</property>
@@ -185,27 +190,31 @@
<title>A Simple Process With Transitions</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/guided_tour_jboss_jbpmgpd/guided_tour8.png" scale="75"/>
+ <imagedata fileref="images/guided_tour_jboss_jbpmgpd/guided_tour8.png"
+ scale="75"/>
</imageobject>
</mediaobject>
</figure>
</section>
</section>
+ <para>Now the simple process is already defined and we can examine it more carefully. For
+ that JBDS provides a number of multiple editors and viewes.</para>
</section>
<section id="the_outline_view">
<?dbhtml filename="the_outline_view.html"?>
<title>The Outline View</title>
- <para>You can see an outline of the process being drawn in the JBDS outline view if it is
- visible (if not select <emphasis>
+ <para>To have a way to quickly see an outline of the process use the JBDS Outline view. If it is not
+ visible select <emphasis>
<property>Window > Show view > Outline</property>
- </emphasis>). It is presented as the classical tree view. Also you can use <emphasis>
+ </emphasis>. It is presented as the classical tree view. Also you can use <emphasis>
<property>Overview</property>
</emphasis> that comes as a scrollable thumbnail.</para>
<figure>
<title>The Outline and Overview Views</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/guided_tour_jboss_jbpmgpd/guided_tour9.png" scale="75"/>
+ <imagedata fileref="images/guided_tour_jboss_jbpmgpd/guided_tour9.png"
+ scale="75"/>
</imageobject>
</mediaobject>
</figure>
17 years, 1 month