JBoss Tools SVN: r5374 - in trunk/jst/plugins/org.jboss.tools.jst.web: src/org/jboss/tools/jst/web/context and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2007-12-19 11:09:04 -0500 (Wed, 19 Dec 2007)
New Revision: 5374
Modified:
trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/web.meta
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/IImportWebProjectContext.java
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebDirProjectContext.java
trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebProjectContext.java
Log:
JBIDE-1223
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/web.meta
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/web.meta 2007-12-19 15:50:21 UTC (rev 5373)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/resources/meta/web.meta 2007-12-19 16:09:04 UTC (rev 5374)
@@ -705,6 +705,13 @@
</Constraint>
<Editor name="FileChooser"/>
</XModelAttribute>
+ <XModelAttribute default="true" name="link">
+ <Constraint loader="List">
+ <value name="true"/>
+ <value name="false"/>
+ </Constraint>
+ <Editor name="CheckBox"/>
+ </XModelAttribute>
</XModelAttributes>
<XActionItem kind="list"/>
<XDependencies/>
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/IImportWebProjectContext.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/IImportWebProjectContext.java 2007-12-19 15:50:21 UTC (rev 5373)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/IImportWebProjectContext.java 2007-12-19 16:09:04 UTC (rev 5374)
@@ -36,4 +36,5 @@
public String SERVLET_VERSION_WARNING = WebUIMessages.SERVLET_VERSION_WARNING;
public boolean isServletVersionConsistentToWebXML();
public void convertWebXML(boolean backup);
+ public boolean isLinkingToProjectOutsideWorkspace();
}
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebDirProjectContext.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebDirProjectContext.java 2007-12-19 15:50:21 UTC (rev 5373)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebDirProjectContext.java 2007-12-19 16:09:04 UTC (rev 5374)
@@ -31,6 +31,7 @@
public static final String ATTR_NAME = "name"; //$NON-NLS-1$
public static final String ATTR_LOCATON = "web.xml location"; //$NON-NLS-1$
+ public static final String ATTR_LINK = "link"; //$NON-NLS-1$
public static final String ATTR_CLASSES = "classes"; //$NON-NLS-1$
public static final String ATTR_LIB = "lib"; //$NON-NLS-1$
Modified: trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebProjectContext.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebProjectContext.java 2007-12-19 15:50:21 UTC (rev 5373)
+++ trunk/jst/plugins/org.jboss.tools.jst.web/src/org/jboss/tools/jst/web/context/ImportWebProjectContext.java 2007-12-19 16:09:04 UTC (rev 5374)
@@ -47,6 +47,7 @@
protected boolean addLibraries = false;
protected String servletVersion = null;
protected String templateVersion = null;
+ protected boolean isLinkingToProjectOutsideWorkspace = true;
public ImportWebProjectContext() {}
@@ -108,30 +109,30 @@
public String getApplicationName() {
return registry.getApplicationName();
}
-
+
public void setApplicationName(String value) {
registry.setApplicationName(value);
}
-
+
public String getClassesLocation() {
return classesLocation;
}
-
+
public void setClassesLocation(String value) {
classesLocation = value;
}
-
+
public String getLibLocation() {
if((libLocation == null || libLocation.trim().length() == 0) && addLibraries) {
return getDefaultLibLocation();
}
return libLocation;
}
-
+
public void setLibLocation(String value) {
libLocation = value;
}
-
+
/**
* Called if libLocation is not set, but addLibraries flag is true.
* @return
@@ -139,19 +140,19 @@
public String getDefaultLibLocation() {
return webInfLocation == null ? "" : webInfLocation + "/lib";
}
-
+
public String getBuildXmlLocation() {
return buildXmlLocation;
}
-
+
public void setBuildXmlLocation(String value) {
buildXmlLocation = value;
}
-
+
public String getWebInfLocation() {
return webInfLocation;
}
-
+
public String getWebRootPath() {
String result = null;
for (int i = 0; i < modules.length && result == null; i++)
@@ -159,7 +160,7 @@
result = modules[i].getAttributeValue("root"); //$NON-NLS-1$
return result;
}
-
+
public String[] getJavaSources() {
ArrayList<String> list = new ArrayList<String>();
String path = null;
@@ -169,16 +170,16 @@
}
return list.toArray(new String[list.size()]);
}
-
+
private String getModuleName(XModelObject module) {
String n = module.getAttributeValue("name"); //$NON-NLS-1$
return (n.length() == 0) ? "<default>" : n; //$NON-NLS-1$
}
-
+
private String getJavaSource(XModelObject module) {
return module.getAttributeValue("java src"); //$NON-NLS-1$
}
-
+
public String[] getExistingSources() {
return existingSources;
}
@@ -186,28 +187,36 @@
public void setAddLibraries(boolean b) {
addLibraries = b;
}
-
+
public boolean getAddLibraries() {
return addLibraries;
}
-
+
public void setServletVersion(String version) {
this.servletVersion = version;
registry.setServletVersion(version);
}
-
+
public String getServletVersion() {
return servletVersion;
}
-
+
public void setTemplateVersion(String version) {
this.templateVersion = version;
}
-
+
public String getTemplateVersion() {
return templateVersion;
}
-
+
+ public boolean isLinkingToProjectOutsideWorkspace() {
+ return isLinkingToProjectOutsideWorkspace;
+ }
+
+ public void setLinkingToProjectOutsideWorkspace(boolean b) {
+ isLinkingToProjectOutsideWorkspace = b;
+ }
+
protected boolean isWebXMLUpToDate(String location) {
if(location == null) return webXmlLocation == null;
if(!location.equals(webXmlLocation)) return false;
@@ -219,7 +228,7 @@
return webXMLTimeStamp == -1;
}
}
-
+
protected void loadWebXML(String body, String location) throws Exception {
String entity = getTarget().getModel().getEntityRecognizer().getEntityName("xml", body); //$NON-NLS-1$
if(entity == null || !entity.startsWith("FileWebApp")) { //$NON-NLS-1$
@@ -242,9 +251,9 @@
throw new Exception(webXMLErrorMessage);
}
}
-
+
public abstract String getNatureID();
-
+
public boolean isServletVersionConsistentToWebXML() {
if(webxml == null) return true;
String entity = webxml.getModelEntity().getName();
@@ -253,7 +262,7 @@
if("2.5".equals(servletVersion) && !entity.equals("FileWebApp25")) return false; //$NON-NLS-1$ //$NON-NLS-2$
return true;
}
-
+
public void convertWebXML(boolean backup) {
if(webxml == null) return;
String entity = webxml.getModelEntity().getName();
@@ -273,7 +282,7 @@
public String getWebXMLVersion() {
return WebAppHelper.getServletVersion(webxml);
}
-
+
private void convertWebXML(String entity, boolean backup) {
if(backup) backUp();
XModelObject newweb = XModelObjectLoaderUtil.createValidObject(webxml.getModel(), entity);
@@ -317,7 +326,7 @@
String text = ((FileAnyImpl)newweb).getAsText();
FileUtil.writeFile(new File(webXmlLocation), text);
}
-
+
private void backUp() {
if(webXmlLocation == null) return;
File source = new File(webXmlLocation);
17 years
JBoss Tools SVN: r5373 - trunk/seam/plugins/org.jboss.tools.seam.core/META-INF.
by jbosstools-commits@lists.jboss.org
Author: dazarov
Date: 2007-12-19 10:50:21 -0500 (Wed, 19 Dec 2007)
New Revision: 5373
Modified:
trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF
Log:
http://jira.jboss.com/jira/browse/JBIDE-1489
Modified: trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF 2007-12-19 15:27:47 UTC (rev 5372)
+++ trunk/seam/plugins/org.jboss.tools.seam.core/META-INF/MANIFEST.MF 2007-12-19 15:50:21 UTC (rev 5373)
@@ -39,7 +39,8 @@
org.eclipse.core.filesystem,
org.eclipse.jst.j2ee.ejb,
org.eclipse.jst.jsf.ui,
- org.jboss.tools.jst.web
+ org.jboss.tools.jst.web,
+ org.eclipse.ui.editors
Provide-Package: org.jboss.tools.seam.core,
org.jboss.tools.seam.internal.core,
org.jboss.tools.seam.internal.core.scanner,
17 years
JBoss Tools SVN: r5372 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/jst/web/tld.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2007-12-19 10:27:47 -0500 (Wed, 19 Dec 2007)
New Revision: 5372
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/jst/web/tld/VpeTaglibManager.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1457 http://jira.jboss.com/jira/browse/JBIDE-788
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/jst/web/tld/VpeTaglibManager.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/jst/web/tld/VpeTaglibManager.java 2007-12-19 15:27:42 UTC (rev 5371)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/jst/web/tld/VpeTaglibManager.java 2007-12-19 15:27:47 UTC (rev 5372)
@@ -11,6 +11,7 @@
package org.jboss.tools.jst.web.tld;
import java.util.List;
+import java.util.Map;
/**
@@ -35,4 +36,18 @@
* @return
*/
public List<TaglibData> getTagLibs();
+
+ /**
+ * Return template taglib prefix using prefix as a key.
+ * @return
+ */
+ public String getTemplateTaglibPrefix(String sourceTaglibPrefix);
+
+ /**
+ * This is a way to use templateTaglibs from
+ * org.jboss.tools.vpe.editor.template.VpeTemplateManager;
+ * this is just reference to VpeTemplateManager.templateTaglibs
+ * getter is prohibited here
+ **/
+ public void setTemplateTaglibs(Map<String,String> templateTaglibs);
}
\ No newline at end of file
17 years
JBoss Tools SVN: r5371 - in trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor: context and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2007-12-19 10:27:42 -0500 (Wed, 19 Dec 2007)
New Revision: 5371
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeSourceDomBuilder.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/context/VpePageContext.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/VpeDomMapping.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/VpeElementMapping.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaPreview.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1457 http://jira.jboss.com/jira/browse/JBIDE-788
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2007-12-19 15:27:33 UTC (rev 5370)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeController.java 2007-12-19 15:27:42 UTC (rev 5371)
@@ -211,8 +211,8 @@
domMapping = new VpeDomMapping(pageContext);
sourceBuilder = new VpeSourceDomBuilder(domMapping, this, sourceEditor, pageContext);
visualBuilder = new VpeVisualDomBuilder(domMapping, this, visualEditor, pageContext);
- pageContext.setSourceDomBuilder(sourceBuilder);
- pageContext.setVisualDomBuilder(visualBuilder);
+ pageContext.setSourceBuilder(sourceBuilder);
+ pageContext.setVisualBuilder(visualBuilder);
IDOMModel sourceModel = (IDOMModel)getModel();
if (sourceModel == null) {
return;
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java 2007-12-19 15:27:33 UTC (rev 5370)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java 2007-12-19 15:27:42 UTC (rev 5371)
@@ -356,6 +356,7 @@
if (null != previewContent) {
if (flagPC) {
getWB();
+ getWB().rebuildDom();
}
previewContent.setVisible(flagPC);
}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java 2007-12-19 15:27:33 UTC (rev 5370)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpePreviewDomBuilder.java 2007-12-19 15:27:42 UTC (rev 5371)
@@ -66,7 +66,11 @@
boolean registerFlag = isCurrentMainDocument();
switch (sourceNode.getNodeType()) {
case Node.ELEMENT_NODE:
+ /**/
+ // vitali TODO: this is wrong temporary way - get rid of it
+ //-
Map xmlnsMap = createXmlns((Element)sourceNode);
+ /**/
Set ifDependencySet = new HashSet();
getPageContext().setCurrentVisualNode(visualOldContainer);
VpeTemplateManager templateManager = VpeTemplateManager.getInstance();
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeSourceDomBuilder.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeSourceDomBuilder.java 2007-12-19 15:27:33 UTC (rev 5370)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeSourceDomBuilder.java 2007-12-19 15:27:42 UTC (rev 5371)
@@ -386,7 +386,7 @@
return structuredTextViewer;
}
- Document getSourceDocument() {
+ public Document getSourceDocument() {
return sourceDocument;
}
}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-12-19 15:27:33 UTC (rev 5370)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeVisualDomBuilder.java 2007-12-19 15:27:42 UTC (rev 5371)
@@ -185,8 +185,7 @@
if (input instanceof IFileEditorInput) {
IFile file = ((IFileEditorInput) input).getFile();
if (file != null) {
- includeStack.add(new VpeIncludeInfo(null, file, visualEditor.getController()
- .getSourceBuilder().getSourceDocument()));
+ includeStack.add(new VpeIncludeInfo(null, file, visualEditor.getSourceDocument()));
}
}
pageContext.installIncludeElements();
@@ -360,7 +359,11 @@
boolean registerFlag = isCurrentMainDocument();
switch (sourceNode.getNodeType()) {
case Node.ELEMENT_NODE:
+ /**/
+ // vitali TODO: this is wrong temporary way - get rid of it
+ //-
Map<?, ?> xmlnsMap = createXmlns((Element) sourceNode);
+ /**/
Set<Node> ifDependencySet = new HashSet<Node>();
pageContext.setCurrentVisualNode(visualOldContainer);
VpeTemplateManager templateManager = VpeTemplateManager.getInstance();
@@ -395,7 +398,11 @@
VpeElementMapping elementMapping = new VpeElementMapping(
(Element) sourceNode, visualNewElement, border,
template, ifDependencySet, creationData.getData());
+ /**/
+ // vitali TODO: this is wrong temporary way - get rid of it
+ //-
elementMapping.setXmlnsMap(xmlnsMap);
+ /**/
registerNodes(elementMapping);
}
if (template.isChildren()) {
@@ -900,7 +907,11 @@
updateElement(sourceElement);
}
}
+ /**/
+ // vitali TODO: this is wrong temporary way - get rid of it
+ //-
setXmlnsAttribute(elementMapping, name, value);
+ /**/
template.setAttribute(pageContext, sourceElement,
visualDocument, visualElement, elementMapping
.getData(), name, value);
@@ -1006,7 +1017,11 @@
name, null)) {
updateElement(sourceElement);
} else {
+ /**/
+ // vitali TODO: this is wrong temporary way - get rid of it
+ //-
removeXmlnsAttribute(elementMapping, name);
+ /**/
template.removeAttribute(pageContext, sourceElement,
visualDocument, (nsIDOMElement) elementMapping
.getVisualNode(), elementMapping.getData(),
@@ -1872,6 +1887,9 @@
pageContext.dispose();
}
+ /**/
+ // vitali TODO: this is wrong temporary way - get rid of it
+ //-
protected Map createXmlns(Element sourceNode) {
NamedNodeMap attrs = ((Element) sourceNode).getAttributes();
if (attrs != null) {
@@ -1886,7 +1904,11 @@
}
return null;
}
+ /**/
+ /**/
+ // vitali TODO: this is wrong temporary way - get rid of it
+ //-
private void setXmlnsAttribute(VpeElementMapping elementMapping,
String name, String value) {
Element sourceElement = (Element) elementMapping.getSourceNode();
@@ -1898,7 +1920,11 @@
elementMapping.setXmlnsMap(xmlnsMap.size() > 0 ? xmlnsMap : null);
}
}
+ /**/
+ /**/
+ // vitali TODO: this is wrong temporary way - get rid of it
+ //-
private void removeXmlnsAttribute(VpeElementMapping elementMapping,
String name) {
Element sourceElement = (Element) elementMapping.getSourceNode();
@@ -1915,16 +1941,22 @@
}
}
}
+ /**/
+ /**/
+ // vitali TODO: this is wrong temporary way - get rid of it
+ //-
private void addTaglib(Element sourceElement, Map xmlnsMap,
String attrName, boolean ns) {
Attr attr = sourceElement.getAttributeNode(attrName);
if (ATTR_XMLNS.equals(attr.getPrefix())) {
- xmlnsMap.put(attr.getNodeName(), Integer.valueOf(attr.hashCode()));
+ //vitali
+ //xmlnsMap.put(attr.getNodeName(), Integer.valueOf(attr.hashCode()));
pageContext.setTaglib(attr.hashCode(), attr.getNodeValue(), attr
.getLocalName(), ns);
}
}
+ /**/
/**
* @return the dnd
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/context/VpePageContext.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/context/VpePageContext.java 2007-12-19 15:27:33 UTC (rev 5370)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/context/VpePageContext.java 2007-12-19 15:27:42 UTC (rev 5371)
@@ -82,6 +82,7 @@
IVisualContext visualContext;
public void setVisualContext(IVisualContext visualContext) {
this.visualContext = visualContext;
+ VpeTemplateManager.getInstance().initVisualContext(visualContext);
}
public IVisualContext getVisualContext() {
return visualContext;
@@ -107,26 +108,21 @@
this.editPart = editPart;
}
- //public VpeSourceDomBuilder getSourceBuilder(){
- // return sourceBuilder;
- //}
-
- // vitali: delete this function with the class
- public void setSourceDomBuilder(VpeSourceDomBuilder sourceBuilder) {
+ //+
+ public void setSourceBuilder(VpeSourceDomBuilder sourceBuilder) {
this.sourceBuilder = sourceBuilder;
- //refreshConnector();
}
+ //+
public VpeSourceDomBuilder getSourceBuilder() {
return sourceBuilder;
}
- // vitali: delete this function with the class - use VpeController
+ //+
public VpeVisualDomBuilder getVisualBuilder(){
return visualBuilder;
}
-
- // vitali: delete this function with the class - delete from MozillaPreview
- public void setVisualDomBuilder(VpeVisualDomBuilder visualBuilder) {
+ //+
+ public void setVisualBuilder(VpeVisualDomBuilder visualBuilder) {
this.visualBuilder = visualBuilder;
}
@@ -150,6 +146,7 @@
}
// vitali: delete this function with the class - from all places
+ //-
public void setTaglib(int id, String newUri, String newPrefix, boolean ns) {
for (int i = 0; i < taglibs.size(); i++) {
TaglibData taglib = (TaglibData)taglibs.get(i);
@@ -171,13 +168,19 @@
rebuildTaglibMap();
}
}
-
- // vitali: put taglibMap to VpeTemplateManager
+
+ //+
public String getTemplateTaglibPrefix(String sourceTaglibPrefix) {
+ // vitali TODO: this is wrong temporary way - get rid of it
return (String) taglibMap.get(sourceTaglibPrefix);
+ // vitali TODO: this is right way to use - for refactoring
+ //return getVisualContext().getTemplateTaglibPrefix(sourceTaglibPrefix);
}
+ //-
private void rebuildTaglibMap() {
+ /**/
+ // vitali TODO: this is wrong temporary way - get rid of it
taglibMap.clear();
VpeTemplateManager templateManager = VpeTemplateManager.getInstance();
Set prefixSet = new HashSet();
@@ -193,7 +196,6 @@
}
}
taglibChanged = true;
-
/** /
try {
registerTaglibs(connector, this, getSourceBuilder().getStructuredTextViewer().getDocument());
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/VpeDomMapping.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/VpeDomMapping.java 2007-12-19 15:27:33 UTC (rev 5370)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/VpeDomMapping.java 2007-12-19 15:27:42 UTC (rev 5371)
@@ -281,6 +281,9 @@
}
if (nodeMapping.getType() == VpeNodeMapping.ELEMENT_MAPPING) {
VpeElementMapping elementMapping = (VpeElementMapping)nodeMapping;
+ /**/
+ // vitali TODO: this is wrong temporary way - get rid of it
+ //-
Map xmlnsMap = elementMapping.getXmlnsMap();
if (xmlnsMap != null) {
for (Iterator iter = xmlnsMap.values().iterator(); iter.hasNext();) {
@@ -288,6 +291,7 @@
}
elementMapping.setXmlnsMap(null);
}
+ /**/
if (elementMapping.getBorder() != null) {
visualMap.remove(elementMapping.getBorder());
}
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/VpeElementMapping.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/VpeElementMapping.java 2007-12-19 15:27:33 UTC (rev 5370)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mapping/VpeElementMapping.java 2007-12-19 15:27:42 UTC (rev 5371)
@@ -22,7 +22,11 @@
public class VpeElementMapping extends VpeNodeMapping {
private VpeTemplate template;
private Set ifDependencySet;
+ /**/
+ //vitali
+ //-
private Map xmlnsMap;
+ /**/
private Object data;
private nsIDOMElement border;
@@ -44,13 +48,19 @@
return template;
}
+ /**/
+ // vitali TODO: this is wrong temporary way - get rid of it
+ //-
public Map getXmlnsMap() {
return xmlnsMap;
}
+ // vitali TODO: this is wrong temporary way - get rid of it
+ //-
public void setXmlnsMap(Map xmlnsMap) {
this.xmlnsMap = xmlnsMap;
}
+ /**/
public Object getData() {
return data;
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java 2007-12-19 15:27:33 UTC (rev 5370)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaEditor.java 2007-12-19 15:27:42 UTC (rev 5371)
@@ -43,6 +43,7 @@
import org.eclipse.ui.browser.IWorkbenchBrowserSupport;
import org.eclipse.ui.editors.text.ILocationProvider;
import org.eclipse.ui.part.EditorPart;
+import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
import org.jboss.tools.vpe.VpePlugin;
import org.jboss.tools.vpe.editor.VpeController;
import org.jboss.tools.vpe.editor.css.VpeResourcesDialog;
@@ -63,6 +64,7 @@
import org.mozilla.interfaces.nsIDOMNodeList;
import org.mozilla.interfaces.nsISelection;
import org.mozilla.interfaces.nsISelectionPrivate;
+import org.w3c.dom.Document;
public class MozillaEditor extends EditorPart implements IReusableEditor {
protected static final String INIT_URL = "file://" + (new File(VpePlugin.getDefault().getResourcePath("ve"), "init.html")).getAbsolutePath();
@@ -559,6 +561,20 @@
return controller;
}
+ public IDOMDocument getSourceDocument() {
+ if (null == getController()) {
+ return null;
+ }
+ if (null == getController().getSourceBuilder()) {
+ return null;
+ }
+ Document doc = getController().getSourceBuilder().getSourceDocument();
+ if (doc instanceof IDOMDocument) {
+ return (IDOMDocument)doc;
+ }
+ return null;
+ }
+
/**
* @return the link
*/
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaPreview.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaPreview.java 2007-12-19 15:27:33 UTC (rev 5370)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/mozilla/MozillaPreview.java 2007-12-19 15:27:42 UTC (rev 5371)
@@ -27,6 +27,8 @@
import org.eclipse.wst.sse.ui.StructuredTextEditor;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMModel;
+import org.jboss.tools.jst.jsp.editor.IJSPTextEditor;
+import org.jboss.tools.jst.jsp.editor.IVisualContext;
import org.jboss.tools.vpe.VpePlugin;
import org.jboss.tools.vpe.editor.VpeEditorPart;
import org.jboss.tools.vpe.editor.VpePreviewDomBuilder;
@@ -151,9 +153,8 @@
//TODO Max Areshkau logic error (we should first call buildDom and only then we can call rebuildDom)
public void rebuildDom() {
- if(getPageContext()!=null&&getPageContext().getVisualBuilder()!=null&&getSourceDocument()!=null) {
-
- getPageContext().getVisualBuilder().rebuildDom(getSourceDocument());
+ if (null != pageContext && null != pageContext.getVisualBuilder() && null != getSourceDocument()) {
+ pageContext.getVisualBuilder().rebuildDom(getSourceDocument());
}
}
@@ -162,13 +163,15 @@
BundleMap bundle = new BundleMap();
bundle.init(getSourceEditor());
- setPageContext(new VpePageContext(bundle, getEditPart()));
+ pageContext = new VpePageContext(bundle, getEditPart());
- VpeDomMapping domMapping = new VpeDomMapping(getPageContext());
- VpeSourceDomBuilder sourceBuilder = new VpeSourceDomBuilder(domMapping, null, getSourceEditor(), getPageContext());
- VpeVisualDomBuilder visualBuilder = new VpePreviewDomBuilder(domMapping, null, this, getPageContext());
- getPageContext().setSourceDomBuilder(sourceBuilder);
- getPageContext().setVisualDomBuilder(visualBuilder);
+ // vitali - temp solution
+ pageContext.setVisualContext(getPageContext());
+ VpeDomMapping domMapping = new VpeDomMapping(pageContext);
+ VpeSourceDomBuilder sourceBuilder = new VpeSourceDomBuilder(domMapping, null, getSourceEditor(), pageContext);
+ VpeVisualDomBuilder visualBuilder = new VpePreviewDomBuilder(domMapping, null, this, pageContext);
+ pageContext.setSourceBuilder(sourceBuilder);
+ pageContext.setVisualBuilder(visualBuilder);
IDOMModel sourceModel = (IDOMModel)getSourceEditor().getModel();
setSourceDocument(sourceModel.getDocument());
@@ -179,7 +182,7 @@
/**
* @return the sourceDocument
*/
- protected IDOMDocument getSourceDocument() {
+ public IDOMDocument getSourceDocument() {
return sourceDocument;
}
@@ -190,27 +193,15 @@
this.sourceDocument = sourceDocument;
}
-
-
- /**
- * @return the pageContext
- */
- private VpePageContext getPageContext() {
- return pageContext;
+ public IVisualContext getPageContext() {
+ IVisualContext visualContext = null;
+ if (sourceEditor instanceof IJSPTextEditor) {
+ visualContext = ((IJSPTextEditor)sourceEditor).getPageContext();
+ }
+ return visualContext;
}
-
-
/**
- * @param pageContext the pageContext to set
- */
- private void setPageContext(VpePageContext pageContext) {
- this.pageContext = pageContext;
- }
-
-
-
- /**
* @return the editPart
*/
private VpeEditorPart getEditPart() {
@@ -218,7 +209,6 @@
}
-
/**
* @param editPart the editPart to set
*/
@@ -233,8 +223,6 @@
return sourceEditor;
}
-
-
/**
* @param sourceEditor the sourceEditor to set
*/
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java
===================================================================
--- trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java 2007-12-19 15:27:33 UTC (rev 5370)
+++ trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/template/VpeTemplateManager.java 2007-12-19 15:27:42 UTC (rev 5371)
@@ -32,6 +32,7 @@
import org.w3c.dom.NodeList;
import org.jboss.tools.common.xml.XMLUtilities;
+import org.jboss.tools.jst.jsp.editor.IVisualContext;
import org.jboss.tools.vpe.VpePlugin;
import org.jboss.tools.vpe.editor.context.VpePageContext;
@@ -793,4 +794,8 @@
defTemplate.init(createDefTemplateElement(), true);
return defTemplate;
}
+
+ public void initVisualContext(IVisualContext visualContext) {
+ visualContext.setTemplateTaglibs(templateTaglibs);
+ }
}
17 years
JBoss Tools SVN: r5370 - trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2007-12-19 10:27:33 -0500 (Wed, 19 Dec 2007)
New Revision: 5370
Modified:
trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditorPageContext.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1457 http://jira.jboss.com/jira/browse/JBIDE-788
Modified: trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditorPageContext.java
===================================================================
--- trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditorPageContext.java 2007-12-19 13:52:51 UTC (rev 5369)
+++ trunk/jst/plugins/org.jboss.tools.jst.jsp/src/org/jboss/tools/jst/jsp/jspeditor/JSPTextEditorPageContext.java 2007-12-19 15:27:33 UTC (rev 5370)
@@ -13,9 +13,11 @@
import java.util.ArrayList;
import java.util.HashMap;
+import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
+import java.util.Set;
import org.eclipse.jface.text.IDocument;
import org.eclipse.wst.xml.core.internal.provisional.document.IDOMDocument;
@@ -39,6 +41,9 @@
public class JSPTextEditorPageContext implements IVisualContext {
protected ArrayList<TaglibData> taglibs = new ArrayList<TaglibData>();
+ protected Map<String, String> taglibMap = new HashMap<String, String>();
+ // this is just reference to VpeTemplateManager.templateTaglibs
+ private Map<String,String> templateTaglibs = null;
protected WtpKbConnector connector = null;
//protected IDocument document = null;
protected IDOMDocument document = null;
@@ -47,12 +52,27 @@
protected ArrayList<VpeTaglibListener> taglibListeners = new ArrayList<VpeTaglibListener>();
public JSPTextEditorPageContext() {
+ // simple tests
//addTaglib(123, "vitaliNewUri", "vitaliNewPrefix", true);
//addTaglib(123, "http://java.sun.com/jsf/facelets", "1xmlns:ui11", true);
//addTaglib(234, "http://java.sun.com/jsf/html", "2xmlns:ui22", true);
//addTaglib(345, "http://richfaces.org/rich", "3xmlns:ui33", true);
}
+ public void clearAll() {
+ taglibs.clear();
+ taglibMap.clear();
+ templateTaglibs = null;
+ }
+
+ public void dispose() {
+ clearAll();
+ connector = null;
+ document = null;
+ referenceNode = null;
+ taglibListeners = null;
+ }
+
public void setReferenceNode(Node refNode) {
if (referenceNode == refNode) {
return;
@@ -162,8 +182,48 @@
for (Iterator<VpeTaglibListener> it = taglibListeners.iterator(); it.hasNext(); ) {
it.next().taglibPrefixChanged(null);
}
+ rebuildTaglibMap();
}
+ private boolean rebuildTaglibMap() {
+ taglibMap.clear();
+ if (null == templateTaglibs) {
+ return false;
+ }
+ Set<String> prefixSet = new HashSet<String>();
+ for (int i = 0; i < taglibs.size(); i++) {
+ TaglibData taglib = (TaglibData)taglibs.get(i);
+ String prefix = taglib.getPrefix();
+ if (!prefixSet.contains(prefix)) {
+ String templatePrefix = templateTaglibs.get(taglib.getUri());
+ if (templatePrefix != null) {
+ taglibMap.put(prefix, templatePrefix);
+ }
+ prefixSet.add(prefix);
+ }
+ }
+ return true;
+ }
+
+ /**
+ * This is a way to use templateTaglibs from
+ * org.jboss.tools.vpe.editor.template.VpeTemplateManager;
+ * this is just reference to VpeTemplateManager.templateTaglibs
+ * getter is prohibited here
+ **/
+ public void setTemplateTaglibs(Map<String,String> templateTaglibs) {
+ this.templateTaglibs = templateTaglibs;
+ rebuildTaglibMap();
+ }
+
+ /**
+ * Return template taglib prefix using prefix as a key.
+ * @return
+ */
+ public String getTemplateTaglibPrefix(String sourceTaglibPrefix) {
+ return taglibMap.get(sourceTaglibPrefix);
+ }
+
// adds new tag library
// removes tag library with id - if newUri or newPrefix is null
public void addTaglib(int id, String newUri, String newPrefix, boolean ns, boolean bScopePrefix) {
17 years
JBoss Tools SVN: r5369 - trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions.
by jbosstools-commits@lists.jboss.org
Author: dgeraskov
Date: 2007-12-19 08:52:51 -0500 (Wed, 19 Dec 2007)
New Revision: 5369
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenFileActionUtils.java
trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenMappingAction.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-1412
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenFileActionUtils.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenFileActionUtils.java 2007-12-19 13:07:03 UTC (rev 5368)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenFileActionUtils.java 2007-12-19 13:52:51 UTC (rev 5369)
@@ -53,7 +53,7 @@
}
- public static boolean rootClassHasAnnotations(ConsoleConfiguration consoleConfiguration, java.io.File configXMLFile, RootClass rootClass) {
+ public static boolean rootClassHasAnnotations(ConsoleConfiguration consoleConfiguration, java.io.File configXMLFile, PersistentClass rootClass) {
if (configXMLFile == null) return true;
Document doc = getDocument(consoleConfiguration, configXMLFile);
return getElements(doc, HIBERNATE_TAG_MAPPING, HIBERNATE_TAG_CLASS, getPersistentClassName(rootClass)).hasNext();
Modified: trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenMappingAction.java
===================================================================
--- trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenMappingAction.java 2007-12-19 13:07:03 UTC (rev 5368)
+++ trunk/hibernatetools/plugins/org.hibernate.eclipse.console/src/org/hibernate/eclipse/console/actions/OpenMappingAction.java 2007-12-19 13:52:51 UTC (rev 5369)
@@ -72,15 +72,42 @@
*/
public static void run(Object selection, ConsoleConfiguration consoleConfiguration) {
IEditorPart editorPart = null;
+ IJavaProject proj = ProjectUtils.findJavaProject(consoleConfiguration);
+ java.io.File configXMLFile = consoleConfiguration.getPreferences().getConfigXMLFile();
+ IResource resource = null;
if (selection instanceof Property){
Property p = (Property)selection;
if (p.getPersistentClass() == null) return;
//use PersistentClass to open editor
- editorPart = openMapping(p.getPersistentClass(), consoleConfiguration);
+ resource = OpenFileActionUtils.getResource(consoleConfiguration, proj, configXMLFile, p.getPersistentClass());
+ //editorPart = openMapping(p.getPersistentClass(), consoleConfiguration);
} else {
- editorPart = openMapping(selection, consoleConfiguration);
+ resource = OpenFileActionUtils.getResource(consoleConfiguration, proj, configXMLFile, selection);
+ //editorPart = openMapping(selection, consoleConfiguration);
}
- applySelectionToEditor(selection, editorPart);
+ if (resource != null){
+ editorPart = openMapping(resource);
+ if (editorPart != null){
+ applySelectionToEditor(selection, editorPart);
+ }
+ return;
+ }
+
+ //try to find hibernate-annotations
+ PersistentClass rootClass = null;
+ if (selection instanceof PersistentClass) {
+ rootClass = (PersistentClass)selection;
+ } else if (selection instanceof Property) {
+ Property p = (Property)selection;
+ if (p.getPersistentClass() == null) return;
+ rootClass = (PersistentClass)p.getPersistentClass();
+ }
+ if (rootClass != null){
+ if (OpenFileActionUtils.rootClassHasAnnotations(consoleConfiguration, configXMLFile, rootClass)) {
+ String fullyQualifiedName = OpenFileActionUtils.getPersistentClassName(rootClass);
+ new OpenSourceAction().run(selection, proj, fullyQualifiedName);
+ }
+ }
}
/**
@@ -90,7 +117,11 @@
*/
public static void run(Property compositeProperty, Property parentProperty, ConsoleConfiguration consoleConfiguration) {
if (parentProperty.getPersistentClass() == null) return;
- IEditorPart editorPart = openMapping(parentProperty.getPersistentClass(), consoleConfiguration);
+ IJavaProject proj = ProjectUtils.findJavaProject(consoleConfiguration);
+ java.io.File configXMLFile = consoleConfiguration.getPreferences().getConfigXMLFile();
+ IResource resource = OpenFileActionUtils.getResource(consoleConfiguration, proj, configXMLFile, parentProperty.getPersistentClass());
+
+ IEditorPart editorPart = openMapping(resource);
ITextEditor textEditor = getTextEditor(editorPart);
if (textEditor == null) return;
textEditor.selectAndReveal(0, 0);
@@ -112,7 +143,6 @@
* @param editorPart
*/
static public void applySelectionToEditor(Object selection, IEditorPart editorPart) {
- Assert.isNotNull(editorPart);
ITextEditor textEditor = getTextEditor(editorPart);
if (textEditor == null) return;
textEditor.selectAndReveal(0, 0);
@@ -141,8 +171,21 @@
FindReplaceDocumentAdapter findAdapter = new FindReplaceDocumentAdapter(document);
return findAdapter;
}
+
+ static public IEditorPart openMapping(IResource resource) {
+ if (resource != null && resource instanceof IFile){
+ try {
+ return OpenFileActionUtils.openEditor(HibernateConsolePlugin.getDefault().getActiveWorkbenchWindow().getActivePage(), (IFile) resource);
+ } catch (PartInitException e) {
+ HibernateConsolePlugin.getDefault().logErrorMessage("Can't open mapping or source file.", e);
+ }
+ } else {
+ HibernateConsolePlugin.getDefault().log("Can't open mapping file " + resource);
+ }
+ return null;
+ }
- static public IEditorPart openMapping(Object selElement,
+ /*static public IEditorPart openMapping(Object selElement,
ConsoleConfiguration consoleConfiguration) {
IJavaProject proj = ProjectUtils.findJavaProject(consoleConfiguration);
java.io.File configXMLFile = consoleConfiguration.getPreferences().getConfigXMLFile();
@@ -158,7 +201,7 @@
HibernateConsolePlugin.getDefault().log("Can't open mapping file for " + selElement);
}
return null;
- }
+ }*/
public static IRegion findSelection(Property property, FindReplaceDocumentAdapter findAdapter) {
Assert.isNotNull(property.getPersistentClass());
17 years
JBoss Tools SVN: r5368 - trunk/jbpm/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2007-12-19 08:07:03 -0500 (Wed, 19 Dec 2007)
New Revision: 5368
Modified:
trunk/jbpm/docs/reference/en/modules/Introduction.xml
trunk/jbpm/docs/reference/en/modules/guided_tour_jboss_jbpmgpd.xml
trunk/jbpm/docs/reference/en/modules/jboss_jbpm_runtime_installation.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-233 -updating according to the Svetlana Mukhina remarks
Modified: trunk/jbpm/docs/reference/en/modules/Introduction.xml
===================================================================
--- trunk/jbpm/docs/reference/en/modules/Introduction.xml 2007-12-19 13:06:05 UTC (rev 5367)
+++ trunk/jbpm/docs/reference/en/modules/Introduction.xml 2007-12-19 13:07:03 UTC (rev 5368)
@@ -1,40 +1,58 @@
<?xml version="1.0" encoding="UTF-8"?>
<chapter id="Introduction" xreflabel="Introduction">
<?dbhtml filename="TargetAudience.html"?>
- <chapterinfo>
- <keywordset>
- <keyword>jBPM</keyword>
- <keyword>Target</keyword>
- <keyword>developers</keyword>
- <keyword>Audience</keyword>
- </keywordset>
- </chapterinfo>
+ <chapterinfo>
+ <keywordset>
+ <keyword>jBPM</keyword>
+ <keyword>Target</keyword>
+ <keyword>developers</keyword>
+ <keyword>Audience</keyword>
+ </keywordset>
+ </chapterinfo>
<title>Introduction</title>
- <para>All developers and process analysts who are beginning to use JBoss jBPM should read this Getting Started guide. It will give them a jumpstart showing how to create a process definition.</para>
- <section id="Preface">
-<?dbhtml filename="Preface.html"?>
-<title>Preface</title>
-<para>This document introduces the use of the JBoss jBPM Graphical Process Designer (GPD) to create workflow processes. It will help first time users with the following tasks :</para>
-<itemizedlist>
-<listitem><para>Install the JBoss jBPM GPD Eclipse plugin available from the JBoss jBPM download area</para></listitem>
-<listitem><para>Set up a Java project in Eclipse and prepare it to do test driven process development</para></listitem>
-<listitem><para>Using the creation wizard to create an empty process definition</para></listitem>
-<listitem><para>Use the designer palette to draw the first processdefinition</para></listitem>
-<listitem><para>Show how the xml processdefinition can be inspected as an xml file</para></listitem>
-<listitem><para>Set up a Java project in Eclipse and prepare it to do test driven process development</para></listitem>
-<listitem><para>Write an example process test case</para></listitem>
-</itemizedlist>
-<para>If you have questions, please feel free to contact Koen Aers or Tom Baeyens for more information.</para>
- </section>
-
+ <para>All developers and process analysts who are beginning to use JBoss jBPM should read this
+ Getting Started guide. It will give them a jumpstart showing how to create a process definition.</para>
+ <section id="Preface">
+ <?dbhtml filename="Preface.html"?>
+ <title>Preface</title>
+ <para>This document introduces the use of the JBoss jBPM Graphical Process Designer (GPD) to
+ create workflow processes. It will help first time users with the following tasks :</para>
+ <itemizedlist>
+ <listitem>
+ <para>Install the JBoss jBPM GPD Eclipse plugin available from the JBoss jBPM download
+ area</para>
+ </listitem>
+ <listitem>
+ <para>Set up a Java project in Eclipse and prepare it to do test driven process
+ development</para>
+ </listitem>
+ <listitem>
+ <para>Using the creation wizard to create an empty process definition</para>
+ </listitem>
+ <listitem>
+ <para>Use the designer palette to draw the first processdefinition</para>
+ </listitem>
+ <listitem>
+ <para>Show how the xml processdefinition can be inspected as an xml file</para>
+ </listitem>
+ <listitem>
+ <para>Set up a Java project in Eclipse and prepare it to do test driven process
+ development</para>
+ </listitem>
+ <listitem>
+ <para>Write an example process test case</para>
+ </listitem>
+ </itemizedlist>
+ <para>If you have questions, please feel free to contact Koen Aers (koen.aers(a)jboss.com) or Tom Baeyens (tom.baeyens(a)jboss.com) for more
+ information.</para>
+ </section>
+
<section id="feature_list">
-
+
<title>Feature list</title>
-
-
-
- <para> JBoss jBPM is a workflow that enables creating and automatization business processes. Look at the list of features below.
- </para>
+
+ <para> JBoss jBPM is a workflow that enables creating and automatization business processes. Look
+ at the list of features below to understand its main functionality.</para>
<table>
<title>Key Functionality for JBoss jBPM</title>
<tgroup cols="2">
@@ -45,52 +63,69 @@
</row>
</thead>
<tbody>
-
+
<row>
- <entry><link linkend="minimal_process_definition">jBDL support</link></entry>
- <entry>Enables managing workflow processes as well as human tasks and interactions between them.
- jBDL combines the best both Java and declarative process techniques.</entry>
+ <entry>
+ <link linkend="minimal_process_definition">jBDL support</link>
+ </entry>
+ <entry>Enables managing workflow processes as well as human tasks and interactions between
+ them. jBDL combines the best both Java and declarative process techniques.</entry>
</row>
-
+
<row>
- <entry><link linkend="GuidedTourJBossjBPMGPD">Support of Graphical Process Designer (GPD)</link></entry>
- <entry>For simplifying declarative process development and visualizations of all actions.</entry>
+ <entry>
+ <link linkend="GuidedTourJBossjBPMGPD">Support of Graphical Process Designer (GPD)</link>
+ </entry>
+ <entry>Is used for simplifying declarative process development and visualizations of all
+ actions.</entry>
</row>
-
+
<row>
- <entry><link linkend="CreatingjBPMProject">Project Creation wizard</link></entry>
- <entry>Allows to create a new jBPM template project that already includes all advanced artifacts and core jBPM libraries.</entry>
+ <entry>
+ <link linkend="CreatingjBPMProject">Project Creation wizard</link>
+ </entry>
+ <entry>Allows to create a new jBPM template project that already includes all advanced
+ artifacts and core jBPM libraries.</entry>
</row>
-
+
<row>
- <entry><link linkend="minimal_process_definition">Rich palette of pre-build process nodes</link></entry>
- <entry>Provides process-building functionality and gives opportunity even non-programmers to develop processes.</entry>
+ <entry>
+ <link linkend="minimal_process_definition">Rich palette of pre-build process nodes</link>
+ </entry>
+ <entry>Provides process-building functionality and gives opportunity even non-programmers to
+ develop processes.</entry>
</row>
-
+
<row>
- <entry><link linkend="the_source_view">Support of XML code view</link></entry>
- <entry>Corresponding XML is generated automatically in the Source view of the process definition editor when developing the process.</entry>
+ <entry>
+ <link linkend="the_source_view">Support of XML code view</link>
+ </entry>
+ <entry>Shows the corresponding XML that's generated automatically in the Source view of the process
+ definition editor when developing the process.</entry>
</row>
-
+
<row>
- <entry><link linkend="the_properties_view">Properties view</link></entry>
+ <entry>
+ <link linkend="the_properties_view">Properties view</link>
+ </entry>
<entry>Facilitates configuring and editing of all nodes properties.</entry>
</row>
-
+
<row>
- <entry>Interaction with all of the J2EE based integration technologies including Web Services, Java Messaging,
- J2EE Connectors, JBDC, EJBs.</entry>
+ <entry>Interaction with all of the J2EE based integration technologies including Web Services,
+ Java Messaging, J2EE Connectors, JBDC, EJBs.</entry>
<entry>Enables implementation, provides better functionality and flexibility.</entry>
</row>
-
+
<row>
<entry>Integration with jBoss Seam</entry>
- <entry>Allows to write applications with complex workflows and provides easier interactions between them.</entry>
+ <entry>Allows to write applications with complex workflows and provides easier interactions
+ between them.</entry>
</row>
-
+
</tbody>
</tgroup>
</table>
</section>
-
+
</chapter>
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-19 13:06:05 UTC (rev 5367)
+++ trunk/jbpm/docs/reference/en/modules/guided_tour_jboss_jbpmgpd.xml 2007-12-19 13:07:03 UTC (rev 5368)
@@ -10,8 +10,8 @@
</keywordset>
</chapterinfo>
<title>A Guided Tour of JBoss jBPM GPD</title>
- <para>In this chapter we suggest a step-by-step walk-through of creating and configuring your own
- simple process. Let's start with organizing a new jBPM project.</para>
+ <para>In this chapter we suggest a step-by-step walk-through of creating and configuring your
+ own simple process. Let's try to organize 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
@@ -37,10 +37,10 @@
</figure>
<para> Clicking <emphasis>
<property>Next</property>
- </emphasis> brings us to the wizard page where we have to specify the name and location
- for the project. We choose for example <emphasis>
- <property>Hello jBPM</property>
- </emphasis> as the name and accept the default location.</para>
+ </emphasis> brings us to the wizard page where it's necessary to specify the
+ name and location for the project. We choose, for example, <emphasis>
+ <property>HellojBPM</property>
+ </emphasis> as the name and accept the default location. </para>
<figure>
<title>Process Name and Location</title>
<mediaobject>
@@ -49,9 +49,24 @@
</imageobject>
</mediaobject>
</figure>
+ <para>Thus, our project will be
+ created in the workspace root directory by default. If you want to change the directory
+ for your future project, deselect <emphasis>
+ <property>Use default location</property>
+ </emphasis> and click <emphasis>
+ <property>Browse...</property></emphasis> button to set needed location or simply type it.</para>
+ <para>On the next screen you'll be prompted to select the core jBPM location that we have defined in the previous chapter.</para>
+ <figure>
+ <title>Process Name and Location</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/guided_tour_jboss_jbpmgpd/guided_tour2_b.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
<para>Clicking on <emphasis>
<property>Finish</property>
- </emphasis> results in the project being created. The wizard creates four source
+ </emphasis> results in the project being generated. The wizard creates four source
folders: one for the processes (<emphasis>
<property>src/main/jpdl</property>
</emphasis>), one for the java sources (<emphasis>
@@ -197,8 +212,8 @@
</figure>
</section>
</section>
- <para>As the simple process is already defined, we can examine it more carefully. For
- that JBDS provides a number of multiple editors and viewes.</para>
+ <para>As the simple process is already defined, we can examine it more carefully. For that
+ JBDS provides a number of multiple editors and viewes.</para>
</section>
-
+
</chapter>
Modified: trunk/jbpm/docs/reference/en/modules/jboss_jbpm_runtime_installation.xml
===================================================================
--- trunk/jbpm/docs/reference/en/modules/jboss_jbpm_runtime_installation.xml 2007-12-19 13:06:05 UTC (rev 5367)
+++ trunk/jbpm/docs/reference/en/modules/jboss_jbpm_runtime_installation.xml 2007-12-19 13:07:03 UTC (rev 5368)
@@ -12,11 +12,12 @@
</chapterinfo>
<title>JBoss jBPM Runtime Installation</title>
<para>The main purpose of this chapter is to let you know how to launch the <property>JBoss
- jBPM</property>.</para>
- <para>The jBPM plugin (jBPM Designer) is already included in JBDS. To make it work, you should only
- download the jBPM runtime (jbpm-jpdl-3.2.2 currently) from <ulink
- url="http://labs.jboss.com/jbossjbpm/downloads/">here</ulink> and specify the directory where you
- extracted the runtime either when you create a jBPM project or by using the jBPM preference pages.</para>
+ jBPM</property> (business process management).</para>
+ <para>The jBPM plugin (jBPM Designer) is already included in the <property>JBoss Developer
+ Studio</property>. To make it work, you should only download the jBPM runtime (jbpm-jpdl-3.2.2
+ currently) from <ulink url="http://labs.jboss.com/jbossjbpm/downloads/">here</ulink> and specify
+ the directory where you extracted the runtime either when you create a jBPM project or by using
+ the jBPM preference pages.</para>
<para>Navigate to <emphasis>
<property>Window > Preferences > JBoss jBPM > Runtime Locations</property>
</emphasis>. Here you can add, edit and remove JBoss jBPM installation locations. Click <emphasis>
@@ -36,4 +37,5 @@
</imageobject>
</mediaobject>
</figure>
+ <para>Now, when you have a runtime installed, we are going to demonstrate some powerful features of the jBPM.</para>
</chapter>
17 years
JBoss Tools SVN: r5367 - trunk/jbpm/docs/reference/en/images/guided_tour_jboss_jbpmgpd.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2007-12-19 08:06:05 -0500 (Wed, 19 Dec 2007)
New Revision: 5367
Added:
trunk/jbpm/docs/reference/en/images/guided_tour_jboss_jbpmgpd/guided_tour2_b.png
Log:
http://jira.jboss.com/jira/browse/JBDS-233 - inserting the screen
Added: trunk/jbpm/docs/reference/en/images/guided_tour_jboss_jbpmgpd/guided_tour2_b.png
===================================================================
(Binary files differ)
Property changes on: trunk/jbpm/docs/reference/en/images/guided_tour_jboss_jbpmgpd/guided_tour2_b.png
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
17 years
JBoss Tools SVN: r5366 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/templates.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2007-12-19 05:29:07 -0500 (Wed, 19 Dec 2007)
New Revision: 5366
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/templates/vpe-templates-seam.xml
Log:
http://jira.jboss.com/jira/browse/JBIDE-1456
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/templates/vpe-templates-seam.xml
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/templates/vpe-templates-seam.xml 2007-12-19 09:38:11 UTC (rev 5365)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.seam/templates/vpe-templates-seam.xml 2007-12-19 10:29:07 UTC (rev 5366)
@@ -228,5 +228,46 @@
</span>
</vpe:template>
</vpe:tag>
-
+
+ <vpe:tag name="s:fileUpload" case-sensitive="yes">
+ <vpe:template children="no" modify="no">
+ <div class="{@styleClass}" onclick="{@onclick}"
+ rendered="{@rendered}" title="{tagstring()}">
+ <vpe:value expr="{jsfvalue(@value)}" />
+ <input type="file" style="{@style}" />
+ </div>
+ <vpe:dnd>
+ <vpe:drag start-enable="yes" />
+ <vpe:drop container="no" />
+ </vpe:dnd>
+ <vpe:resize>
+ <vpe:width width-attr="style.width" />
+ <vpe:height height-attr="style.height" />
+ </vpe:resize>
+ <vpe:textFormating>
+ <vpe:format type="UnderlineFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BoldFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ItalicFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontNameFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="FontSizeFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="BackgroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ <vpe:format type="ForegroundColorFormat">
+ <vpe:formatAttribute type="style" />
+ </vpe:format>
+ </vpe:textFormating>
+ </vpe:template>
+ </vpe:tag>
+
</vpe:templates>
17 years
JBoss Tools SVN: r5365 - trunk/documentation/guides/userguide/GettingStartedGuide/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2007-12-19 04:38:11 -0500 (Wed, 19 Dec 2007)
New Revision: 5365
Modified:
trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml
trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/rad_jsf_application.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-143 - adding transition sentences
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml
===================================================================
--- trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml 2007-12-19 08:22:53 UTC (rev 5364)
+++ trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/first_seam.xml 2007-12-19 09:38:11 UTC (rev 5365)
@@ -201,7 +201,8 @@
<section>
<title>Build and Deploy the Seam Application</title>
-
+
+ <para>Here, we will show you how to deploy our web project to the server and then view the application as a web site from a URL.</para>
<para>Once the application is generated, you can use the "Run on server" menu
to build and deploy it into the JBoss AS runtime associated with the project. All you need is
to start JBoss AS in the server manager, and load the browser at URL
Modified: trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/rad_jsf_application.xml
===================================================================
--- trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/rad_jsf_application.xml 2007-12-19 08:22:53 UTC (rev 5364)
+++ trunk/documentation/guides/userguide/GettingStartedGuide/en/modules/rad_jsf_application.xml 2007-12-19 09:38:11 UTC (rev 5365)
@@ -533,7 +533,7 @@
<section id="EditingTheJSPViewFiles2">
<?dbhtml filename="EditingTheJSPViewFiles2.html"?>
<title>Editing the JSP View Files</title>
- <para>Now we will finish editing the JSP files for our two "views" using
+ <para>Now, we will finish editing the JSP files for our two "views" using
Visual Page Editor.</para>
<section id="EditingInputjsp">
<?dbhtml filename="EditingInputjsp.html"?>
17 years