JBoss Tools SVN: r8583 - in trunk/seam/plugins/org.jboss.tools.seam.pages.xml: resources/help and 3 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-06-05 09:28:01 -0400 (Thu, 05 Jun 2008)
New Revision: 8583
Added:
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/DiagramAdopt.java
Removed:
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/ProcessAdopt.java
Modified:
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/plugin.xml
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/help/keys-seam-pages.properties
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/seam-pages.meta
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/FileSeamPagesImpl.java
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/PageAdopt.java
Log:
JBIDE-2282
Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/plugin.xml 2008-06-05 12:54:30 UTC (rev 8582)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/plugin.xml 2008-06-05 13:28:01 UTC (rev 8583)
@@ -61,8 +61,8 @@
class="org.jboss.tools.seam.pages.xml.model.handlers.AddRuleHandler"/>
<xclass id="org.jboss.tools.seam.pages.xml.model.handlers.AddExceptionHandler"
class="org.jboss.tools.seam.pages.xml.model.handlers.AddExceptionHandler"/>
- <xclass id="org.jboss.tools.seam.pages.xml.model.handlers.ProcessAdopt"
- class="org.jboss.tools.seam.pages.xml.model.handlers.ProcessAdopt"/>
+ <xclass id="org.jboss.tools.seam.pages.xml.model.handlers.DiagramAdopt"
+ class="org.jboss.tools.seam.pages.xml.model.handlers.DiagramAdopt"/>
<xclass id="org.jboss.tools.seam.pages.xml.model.handlers.PageAdopt"
class="org.jboss.tools.seam.pages.xml.model.handlers.PageAdopt"/>
<xclass id="org.jboss.tools.seam.pages.xml.model.handlers.DeleteOutputHandler"
Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/help/keys-seam-pages.properties
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/help/keys-seam-pages.properties 2008-06-05 12:54:30 UTC (rev 8582)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/help/keys-seam-pages.properties 2008-06-05 13:28:01 UTC (rev 8583)
@@ -1,2 +1,197 @@
FileSeamPage12.editorTitle=Seam Page Editor
-FileSeamPage20.editorTitle=Seam Page Editor
\ No newline at end of file
+FileSeamPage20.editorTitle=Seam Page Editor
+
+AddSeamPageException_Properties.Title=Add Exception
+
+FileSeamPage12_Rename.WindowTitle=Rename
+FileSeamPage12_Rename.Title=
+FileSeamPage12_Rename.Message=
+
+FileSeamPage12_Properties.Title=File Seam Page
+
+FileSeamPage20_Rename.WindowTitle=Rename
+FileSeamPage20_Rename.Title=
+FileSeamPage20_Rename.Message=
+
+FileSeamPage20_Properties.Title=File Seam Page
+
+FileSeamPages12_Rename.WindowTitle=Rename
+FileSeamPages12_Rename.Title=
+FileSeamPages12_Rename.Message=
+
+FileSeamPages12_AddPage.WindowTitle=Add Page
+FileSeamPages12_AddPage.Title=Page
+
+FileSeamPages12_AddConversation.WindowTitle=Add Conversation
+FileSeamPages12_AddConversation.Title=Conversation
+
+FileSeamPages12_AddException.WindowTitle=Add Exception
+FileSeamPages12_AddException.Title=Exception
+
+FileSeamPages12_Properties.Title=File Seam Pages
+
+FileSeamPages20_Rename.WindowTitle=Rename
+FileSeamPages20_Rename.Title=
+FileSeamPages20_Rename.Message=
+
+FileSeamPages20_AddPage.WindowTitle=Add Page
+FileSeamPages20_AddPage.Title=Page
+
+FileSeamPages20_AddConversation.WindowTitle=Add Conversation
+FileSeamPages20_AddConversation.Title=Conversation
+
+FileSeamPages20_AddException.WindowTitle=Add Exception
+FileSeamPages20_AddException.Title=Exception
+
+FileSeamPages20_Properties.Title=File Seam Pages
+
+SeamPage_AddParam.WindowTitle=Add Param
+SeamPage_AddParam.Title=Param
+
+SeamPage_AddIn.WindowTitle=Add In
+SeamPage_AddIn.Title=In
+
+SeamPage_AddAction.WindowTitle=Add Action
+SeamPage_AddAction.Title=Action
+
+SeamPage_AddNavigation.WindowTitle=Add Navigation
+SeamPage_AddNavigation.Title=Navigation
+
+SeamPage_AddRule.WindowTitle=Add Navigation Rule
+SeamPage_AddRule.Title=Rule
+
+SeamPage12_Properties.Title=Seam Page
+
+SeamPage20_Properties.Title=Seam Page
+
+SeamPageAction_Properties.Title=Action
+
+SeamPageBeginConversation_Properties.Title=Begin Conversation
+
+SeamPageBeginTask_Properties.Title=Begin Task
+
+SeamPageConversation_Properties.Title=Conversation
+
+SeamPageCreateProcess_Properties.Title=Create Process
+
+SeamPageEndConversation_Properties.Title=End Conversation
+
+SeamPageEndTask_Properties.Title=End Task
+
+SeamPageException12_Properties.Title=Exception
+
+SeamPageException20_Properties.Title=Exception
+
+SeamPageFolderConversation_AddConversation.WindowTitle=Add Conversation
+SeamPageFolderConversation_AddConversation.Title=Conversation
+
+SeamPageFolderConversation_Properties.Title=Conversations Folder
+
+SeamPageFolderException12_AddException.WindowTitle=Add Exception With Redirect
+SeamPageFolderException12_AddException.Title=Exception
+
+SeamPageFolderException12_Properties.Title=Exceptions Folder
+
+SeamPageFolderException20_AddException.WindowTitle=Add Exception With Redirect
+SeamPageFolderException20_AddException.Title=Exception
+
+SeamPageFolderException20_Properties.Title=Exceptions Folder
+
+SeamPageFolderPage12_AddPage.WindowTitle=Add Page
+SeamPageFolderPage12_AddPage.Title=Page
+
+SeamPageFolderPage12_Properties.Title=Pages Folder
+
+SeamPageFolderPage20_AddPage.WindowTitle=Add Page
+SeamPageFolderPage20_AddPage.Title=Page
+
+SeamPageFolderPage20_Properties.Title=Pages Folder
+
+SeamPageHTTPError_AddMessage.WindowTitle=Add Message
+SeamPageHTTPError_AddMessage.Title=Message
+
+SeamPageHTTPError_Properties.Title=HTTP Error
+
+SeamPageIn_Properties.Title=In
+
+SeamPageMessage_Properties.Title=Message
+
+SeamPageNavigation12_Properties.Title=Navigation
+
+SeamPageNavigation20_Properties.Title=Navigation
+
+SeamPageNavigationRule12_Properties.Title=Navigation Rule
+
+SeamPageNavigationRule20_Properties.Title=Navigation Rule
+
+SeamPageOut_Properties.Title=Out
+
+SeamPageParam12_Properties.Title=Param
+
+SeamPageParam20_Properties.Title=Param
+
+SeamPageRaiseEvent20_Properties.Title=Raise Event
+
+SeamPageRedirect12_AddMessage.WindowTitle=Add Message
+SeamPageRedirect12_AddMessage.Title=Message
+
+SeamPageRedirect12_Properties.Title=Redirect
+
+SeamPageRedirect20_AddMessage.WindowTitle=Add Message
+SeamPageRedirect20_AddMessage.Title=Message
+
+SeamPageRedirect20_Properties.Title=Redirect
+
+SeamPageRender_AddMessage.WindowTitle=Add Message
+SeamPageRender_AddMessage.Title=Message
+
+SeamPageRender_Properties.Title=Render
+
+SeamPageResumeProcess_Properties.Title=Resume Process
+
+SeamPageRule_AddOut.WindowTitle=Add Out
+SeamPageRule_AddOut.Title=Out
+
+SeamPageRule12_Properties.Title=Rule
+
+SeamPageRule20_Properties.Title=Rule
+
+SeamPageStartTask_Properties.Title=Start Task
+
+SeamPagesDiagram_AddPage.WindowTitle=New Page
+SeamPagesDiagram_AddPage.Title=Page
+
+SeamPagesDiagram_AddException.WindowTitle=New Exception
+SeamPagesDiagram_AddException.Title=Exception
+
+SeamPagesDiagram_Properties.Title=Seam Pages Diagram
+
+SeamPagesDiagram_CreateComment.WindowTitle=Add Comment
+SeamPagesDiagram_CreateComment.Title=Comment
+
+SeamPagesDiagramItem_CreateRule.WindowTitle=Add Rule
+SeamPagesDiagramItem_CreateRule.Title=Rule
+
+SeamPagesDiagramItem_CreateComment.WindowTitle=Add Comment
+SeamPagesDiagramItem_CreateComment.Title=Comment
+
+SeamPagesDiagramItem_Rename_0.WindowTitle=Rename
+SeamPagesDiagramItem_Rename_0.Title=
+SeamPagesDiagramItem_Rename_0.Message=
+
+SeamPagesDiagramItem_Properties.Title=Seam Pages Diagram Item
+
+SeamPagesDiagramItemOutput_Properties.Title=Seam Pages Diagram Item Output
+
+FileFolder_CreateFileSeamPages_0.WindowTitle=Add Seam Pages File
+FileFolder_CreateFileSeamPages_0.Title=Seam Pages File
+
+FileFolder_CreateFileSeamPage_0.WindowTitle=Add Seam Page File
+FileFolder_CreateFileSeamPage_0.Title=Seam Page File
+
+FileSystemFolder_CreateFileSeamPages_0.WindowTitle=Add Seam Pages File
+FileSystemFolder_CreateFileSeamPages_0.Title=Seam Page File
+
+FileSystemFolder_CreateFileSeamPage_0.WindowTitle=Add Seam Page File
+FileSystemFolder_CreateFileSeamPage_0.Title=Seam Page File
+
Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/seam-pages.meta
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/seam-pages.meta 2008-06-05 12:54:30 UTC (rev 8582)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/seam-pages.meta 2008-06-05 13:28:01 UTC (rev 8583)
@@ -715,16 +715,16 @@
<XActionItem kind="list">
<XActionItem displayName="New" group="1" kind="list" name="CreateActions">
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Param..." kind="action" name="AddParam">
+ PROPERTIES="validator.add=true;key=SeamPage_AddParam"
+ WizardClassName="%Default%" displayName="Param..." kind="action" name="AddParam">
<EntityData EntityName="SeamPageParam12">
<AttributeData AttributeName="name"/>
<AttributeData AttributeName="value" Mandatory="no"/>
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="In..." kind="action" name="AddIn">
+ PROPERTIES="validator.add=true;key=SeamPage_AddIn"
+ WizardClassName="%Default%" displayName="In..." kind="action" name="AddIn">
<EntityData EntityName="SeamPageIn">
<AttributeData AttributeName="name"/>
<AttributeData AttributeName="scope" Mandatory="no"/>
@@ -732,16 +732,17 @@
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Action..." kind="action" name="AddAction">
+ PROPERTIES="validator.add=true;key=SeamPage_AddAction"
+ WizardClassName="%Default%" displayName="Action..." kind="action" name="AddAction">
<EntityData EntityName="SeamPageAction">
<AttributeData AttributeName="execute"/>
<AttributeData AttributeName="if" Mandatory="no"/>
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Navigation..." kind="action" name="AddNavigation">
+ PROPERTIES="validator.add=true;key=SeamPage_AddNavigation"
+ WizardClassName="%Default%" displayName="Navigation..."
+ kind="action" name="AddNavigation">
<EntityData EntityName="SeamPageNavigation12">
<AttributeData AttributeName="from action" Mandatory="no"/>
<AttributeData AttributeName="evaluate" Mandatory="no"/>
@@ -750,7 +751,7 @@
<XActionItem
HandlerClassName="org.jboss.tools.seam.pages.xml.model.handlers.AddRuleHandler"
ICON="action.empty"
- PROPERTIES="validator.add=true;entity=SeamPageNavigationRule12;renderEntity=SeamPageRender;redirectEntity=SeamPageRedirect12"
+ PROPERTIES="validator.add=true;entity=SeamPageNavigationRule12;renderEntity=SeamPageRender;redirectEntity=SeamPageRedirect12;key=SeamPage_AddRule"
WizardClassName="%Default%" displayName="Navigation Rule..."
kind="action" name="AddRule">
<EntityData EntityName="AddSeamPageRule">
@@ -827,16 +828,16 @@
<XActionItem kind="list">
<XActionItem displayName="New" group="1" kind="list" name="CreateActions">
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Param..." kind="action" name="AddParam">
+ PROPERTIES="validator.add=true;key=SeamPage_AddParam"
+ WizardClassName="%Default%" displayName="Param..." kind="action" name="AddParam">
<EntityData EntityName="SeamPageParam20">
<AttributeData AttributeName="name"/>
<AttributeData AttributeName="value" Mandatory="no"/>
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="In..." kind="action" name="AddIn">
+ PROPERTIES="validator.add=true;key=SeamPage_AddIn"
+ WizardClassName="%Default%" displayName="In..." kind="action" name="AddIn">
<EntityData EntityName="SeamPageIn">
<AttributeData AttributeName="name"/>
<AttributeData AttributeName="scope" Mandatory="no"/>
@@ -844,16 +845,17 @@
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Action..." kind="action" name="AddAction">
+ PROPERTIES="validator.add=true;key=SeamPage_AddAction"
+ WizardClassName="%Default%" displayName="Action..." kind="action" name="AddAction">
<EntityData EntityName="SeamPageAction">
<AttributeData AttributeName="execute"/>
<AttributeData AttributeName="if" Mandatory="no"/>
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Navigation..." kind="action" name="AddNavigation">
+ PROPERTIES="validator.add=true;key=SeamPage_AddNavigation"
+ WizardClassName="%Default%" displayName="Navigation..."
+ kind="action" name="AddNavigation">
<EntityData EntityName="SeamPageNavigation20">
<AttributeData AttributeName="from action" Mandatory="no"/>
<AttributeData AttributeName="evaluate" Mandatory="no"/>
@@ -862,7 +864,7 @@
<XActionItem
HandlerClassName="org.jboss.tools.seam.pages.xml.model.handlers.AddRuleHandler"
ICON="action.empty"
- PROPERTIES="validator.add=true;entity=SeamPageNavigationRule20;renderEntity=SeamPageRender;redirectEntity=SeamPageRedirect20"
+ PROPERTIES="validator.add=true;entity=SeamPageNavigationRule20;renderEntity=SeamPageRender;redirectEntity=SeamPageRedirect20;key=SeamPage_AddRule"
WizardClassName="%Default%" displayName="Navigation Rule..."
kind="action" name="AddRule">
<EntityData EntityName="AddSeamPageRule">
@@ -1836,7 +1838,7 @@
<XActionItem
HandlerClassName="org.jboss.tools.seam.pages.xml.model.handlers.AddRuleHandler"
ICON="action.empty"
- PROPERTIES="validator.add=true;entity=SeamPageRule12;renderEntity=SeamPageRender;redirectEntity=SeamPageRedirect12"
+ PROPERTIES="validator.add=true;entity=SeamPageRule12;renderEntity=SeamPageRender;redirectEntity=SeamPageRedirect12;key=SeamPage_AddRule"
WizardClassName="%Default%" displayName="Add Rule..." kind="action" name="AddRule">
<EntityData EntityName="AddSeamPageRule">
<AttributeData AttributeName="kind" Mandatory="no"/>
@@ -1899,7 +1901,7 @@
<XActionItem
HandlerClassName="org.jboss.tools.seam.pages.xml.model.handlers.AddRuleHandler"
ICON="action.empty"
- PROPERTIES="validator.add=true;entity=SeamPageRule20;renderEntity=SeamPageRender;redirectEntity=SeamPageRedirect20"
+ PROPERTIES="validator.add=true;entity=SeamPageRule20;renderEntity=SeamPageRender;redirectEntity=SeamPageRedirect20;key=SeamPage_AddRule"
WizardClassName="%Default%" displayName="Add Rule..." kind="action" name="AddRule">
<EntityData EntityName="AddSeamPageRule">
<AttributeData AttributeName="kind" Mandatory="no"/>
@@ -1969,8 +1971,8 @@
<XActionItem kind="list">
<XActionItem kind="list" name="CreateActions">
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Add Out..." kind="action" name="AddOut">
+ PROPERTIES="validator.add=true;key=SeamPageRule_AddOut"
+ WizardClassName="%Default%" displayName="Add Out..." kind="action" name="AddOut">
<EntityData EntityName="SeamPageOut">
<AttributeData AttributeName="name"/>
<AttributeData AttributeName="scope" Mandatory="no"/>
@@ -2046,8 +2048,8 @@
<XActionItem kind="list">
<XActionItem kind="list" name="CreateActions">
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Add Out..." kind="action" name="AddOut">
+ PROPERTIES="validator.add=true;key=SeamPageRule_AddOut"
+ WizardClassName="%Default%" displayName="Add Out..." kind="action" name="AddOut">
<EntityData EntityName="SeamPageOut">
<AttributeData AttributeName="name"/>
<AttributeData AttributeName="scope" Mandatory="no"/>
@@ -2335,8 +2337,9 @@
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Add Param..." kind="action" name="AddParam">
+ PROPERTIES="validator.add=true;key=SeamPage_AddParam"
+ WizardClassName="%Default%" displayName="Add Param..."
+ kind="action" name="AddParam">
<EntityData EntityName="SeamPageParam12">
<AttributeData AttributeName="name"/>
<AttributeData AttributeName="value" Mandatory="no"/>
@@ -2417,8 +2420,9 @@
</EntityData>
</XActionItem>
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Add Param..." kind="action" name="AddParam">
+ PROPERTIES="validator.add=true;key=SeamPage_AddParam"
+ WizardClassName="%Default%" displayName="Add Param..."
+ kind="action" name="AddParam">
<EntityData EntityName="SeamPageParam20">
<AttributeData AttributeName="name"/>
<AttributeData AttributeName="value" Mandatory="no"/>
@@ -2609,8 +2613,8 @@
<XActionItem kind="list">
<XActionItem kind="list" name="CreateActions">
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Add Out..." kind="action" name="AddOut">
+ PROPERTIES="validator.add=true;key=SeamPageRule_AddOut"
+ WizardClassName="%Default%" displayName="Add Out..." kind="action" name="AddOut">
<EntityData EntityName="SeamPageOut">
<AttributeData AttributeName="name"/>
<AttributeData AttributeName="scope" Mandatory="no"/>
@@ -2685,8 +2689,8 @@
<XActionItem kind="list">
<XActionItem kind="list" name="CreateActions">
<XActionItem HandlerClassName="%Create%" ICON="action.empty"
- PROPERTIES="validator.add=true" WizardClassName="%Default%"
- displayName="Add Out..." kind="action" name="AddOut">
+ PROPERTIES="validator.add=true;key=SeamPageRule_AddOut"
+ WizardClassName="%Default%" displayName="Add Out..." kind="action" name="AddOut">
<EntityData EntityName="SeamPageOut">
<AttributeData AttributeName="name"/>
<AttributeData AttributeName="scope" Mandatory="no"/>
@@ -2782,7 +2786,7 @@
<XDependencies/>
</XModelEntity>
<XModelEntity
- AdoptManagerClass="org.jboss.tools.seam.pages.xml.model.handlers.ProcessAdopt"
+ AdoptManagerClass="org.jboss.tools.seam.pages.xml.model.handlers.DiagramAdopt"
ImplementingClass="org.jboss.tools.seam.pages.xml.model.impl.SeamPagesDiagramImpl" name="SeamPagesDiagram">
<XChildrenEntities>
<XChildEntity name="SeamPagesDiagramItem"/>
@@ -2927,7 +2931,7 @@
<XActionItem
HandlerClassName="org.jboss.tools.jsf.model.handlers.JSFItemRegirectHandler"
ICON="action.new.jsf.case"
- PROPERTIES="actionpath=CreateActions/AddNavigationRule"
+ PROPERTIES="actionpath=CreateActions/AddRule"
WizardClassName="%Default%" displayName="Rule..." kind="action" name="CreateRule"/>
<XActionItem HIDE="always"
HandlerClassName="org.jboss.tools.struts.model.handlers.CreateCommentForItemHandler"
Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/FileSeamPagesImpl.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/FileSeamPagesImpl.java 2008-06-05 12:54:30 UTC (rev 8582)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/FileSeamPagesImpl.java 2008-06-05 13:28:01 UTC (rev 8583)
@@ -30,7 +30,7 @@
}
protected String getProcessEntity() {
- return "SeamPagesProcess";
+ return SeamPagesConstants.ENT_DIAGRAM;
}
protected boolean hasDTD() {
Copied: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/DiagramAdopt.java (from rev 8568, trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/ProcessAdopt.java)
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/DiagramAdopt.java (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/DiagramAdopt.java 2008-06-05 13:28:01 UTC (rev 8583)
@@ -0,0 +1,119 @@
+/*******************************************************************************
+ * 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.seam.pages.xml.model.handlers;
+
+import java.util.*;
+import org.jboss.tools.common.meta.XAdoptManager;
+import org.jboss.tools.common.meta.action.XActionInvoker;
+import org.jboss.tools.common.meta.action.impl.handlers.DefaultCreateHandler;
+import org.jboss.tools.common.model.XModelException;
+import org.jboss.tools.common.model.XModelObject;
+import org.jboss.tools.common.model.util.XModelObjectLoaderUtil;
+import org.jboss.tools.seam.pages.xml.model.SeamPagesConstants;
+import org.jboss.tools.seam.pages.xml.model.helpers.SeamPagesDiagramHelper;
+
+public class DiagramAdopt implements XAdoptManager, SeamPagesConstants {
+
+ public void adopt(XModelObject target, XModelObject object, java.util.Properties p) throws XModelException {
+ if(isAdoptableJSP(target, object)) {
+ adoptJSP(target, object, p);
+ } else if(isAdoptableItem(target, object)) {
+ adoptItem(target, object, p);
+ }
+ }
+
+ public boolean isAdoptable(XModelObject target, XModelObject object) {
+ if(isAdoptableJSP(target, object)) return true;
+ if(isAdoptableItem(target, object)) return true;
+ return false;
+ }
+
+ static String ADOPTABLE_JSP = "." + ENT_FILEJSP + "."
+ + ENT_FILEHTML + "."
+ + ENT_FILEXHTML + "."
+ + "FileXML" + ".";
+
+ private boolean isAdoptableJSP(XModelObject target, XModelObject object) {
+ String entity = object.getModelEntity().getName();
+ if (ADOPTABLE_JSP.indexOf("." + entity + ".") >= 0) {
+ String path = XModelObjectLoaderUtil.getResourcePath(object);
+ if (target.getModelEntity().getName().startsWith(ENT_FILE_SEAM_PAGES)) {
+ target = target.getChildByPath(ELM_DIAGRAM);
+ }
+ return SeamPagesDiagramHelper.getHelper(target).getPage(path) == null;
+ }
+ return false;
+ }
+
+ private void adoptJSP(XModelObject target, XModelObject object, Properties p) throws XModelException {
+ if (target.getModelEntity().getName().startsWith(ENT_FILE_SEAM_PAGES)) {
+ target = target.getChildByPath(ELM_DIAGRAM);
+ }
+ addRuleByPageAdopt(target, object, p);
+/*
+ Properties runningProperties = new Properties();
+ runningProperties.put("preselectedObject", object);
+ if(p != null) runningProperties.putAll(p);
+ XActionInvoker.invoke("CreateActions.CreatePage", target, runningProperties);
+*/
+ }
+
+ private void addRuleByPageAdopt(XModelObject process, XModelObject page, Properties p) throws XModelException {
+ String path = XModelObjectLoaderUtil.getResourcePath(page);
+ XModelObject pageItem = SeamPagesDiagramHelper.getHelper(process).getPage(path);
+ if(pageItem != null) return;
+ boolean doNotCreateEmptyRule = false; //or read preferences, compare JSF
+ pageItem = SeamPagesDiagramHelper.getHelper(process).findOrCreateItem(path, null, TYPE_PAGE);
+ setShape(pageItem, p);
+ if(doNotCreateEmptyRule) {
+ pageItem.setAttributeValue("persistent", "true");
+ pageItem.setModified(true);
+ } else {
+ XModelObject pages = process.getParent().getChildByPath(FOLDER_PAGES);
+ String suffix = getPageSuffix(process.getParent().getModelEntity().getName());
+ XModelObject rule = pages.getModel().createModelObject(ENT_SEAM_PAGE + suffix, null);
+ rule.setAttributeValue(ATTR_VIEW_ID, path);
+ DefaultCreateHandler.addCreatedObject(pages, rule, p);
+ }
+ }
+
+ public static String getPageSuffix(String entity) {
+ if(entity.endsWith(SUFF_12)) {
+ return SUFF_12;
+ } else {
+ return SUFF_20;
+ }
+ }
+
+ public static void setShape(XModelObject group, Properties p) {
+ String x = (p == null) ? null : p.getProperty("mouse.x");
+ String y = (p == null) ? null : p.getProperty("mouse.y");
+ if(x != null && y != null) {
+ group.setAttributeValue("shape", "" + x + "," + y + ",0,0");
+ }
+ }
+
+ private boolean isAdoptableItem(XModelObject target, XModelObject object) {
+ return ENT_DIAGRAM_ITEM.equals(object.getModelEntity().getName());
+ }
+
+ private void adoptItem(XModelObject target, XModelObject object, Properties p) {
+// String path = object.getAttributeValue(ATT_PATH);
+ p.put("sample", object);
+ String type = object.getAttributeValue(ATTR_TYPE);
+ if(TYPE_PAGE.equals(type)) {
+ XActionInvoker.invoke("CreateActions.AddPage", target, p);
+ } else {
+ //TODO
+ }
+ }
+
+}
Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/PageAdopt.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/PageAdopt.java 2008-06-05 12:54:30 UTC (rev 8582)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/PageAdopt.java 2008-06-05 13:28:01 UTC (rev 8583)
@@ -96,7 +96,7 @@
String n = path;
if(n.lastIndexOf('.') > 0) n = n.substring(0, n.lastIndexOf('.'));
if(n.lastIndexOf('/') >= 0) n = n.substring(n.lastIndexOf('/') + 1);
- String suffix = ProcessAdopt.getPageSuffix(source.getModelEntity().getName());
+ String suffix = DiagramAdopt.getPageSuffix(source.getModelEntity().getName());
XModelObject cs = source.getModel().createModelObject(ENT_NAVIGATION_RULE + suffix, null);
XModelObject redirect = source.getModel().createModelObject("SeamPageRedirect" + suffix, null);
redirect.setAttributeValue(ATTR_VIEW_ID, path);
Deleted: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/ProcessAdopt.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/ProcessAdopt.java 2008-06-05 12:54:30 UTC (rev 8582)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/handlers/ProcessAdopt.java 2008-06-05 13:28:01 UTC (rev 8583)
@@ -1,119 +0,0 @@
-/*******************************************************************************
- * 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.seam.pages.xml.model.handlers;
-
-import java.util.*;
-import org.jboss.tools.common.meta.XAdoptManager;
-import org.jboss.tools.common.meta.action.XActionInvoker;
-import org.jboss.tools.common.meta.action.impl.handlers.DefaultCreateHandler;
-import org.jboss.tools.common.model.XModelException;
-import org.jboss.tools.common.model.XModelObject;
-import org.jboss.tools.common.model.util.XModelObjectLoaderUtil;
-import org.jboss.tools.seam.pages.xml.model.SeamPagesConstants;
-import org.jboss.tools.seam.pages.xml.model.helpers.SeamPagesDiagramHelper;
-
-public class ProcessAdopt implements XAdoptManager, SeamPagesConstants {
-
- public void adopt(XModelObject target, XModelObject object, java.util.Properties p) throws XModelException {
- if(isAdoptableJSP(target, object)) {
- adoptJSP(target, object, p);
- } else if(isAdoptableItem(target, object)) {
- adoptItem(target, object, p);
- }
- }
-
- public boolean isAdoptable(XModelObject target, XModelObject object) {
- if(isAdoptableJSP(target, object)) return true;
- if(isAdoptableItem(target, object)) return true;
- return false;
- }
-
- static String ADOPTABLE_JSP = "." + ENT_FILEJSP + "."
- + ENT_FILEHTML + "."
- + ENT_FILEXHTML + "."
- + "FileXML" + ".";
-
- private boolean isAdoptableJSP(XModelObject target, XModelObject object) {
- String entity = object.getModelEntity().getName();
- if (ADOPTABLE_JSP.indexOf("." + entity + ".") >= 0) {
- String path = XModelObjectLoaderUtil.getResourcePath(object);
- if (target.getModelEntity().getName().startsWith(ENT_FILE_SEAM_PAGES)) {
- target = target.getChildByPath(ELM_DIAGRAM);
- }
- return SeamPagesDiagramHelper.getHelper(target).getPage(path) == null;
- }
- return false;
- }
-
- private void adoptJSP(XModelObject target, XModelObject object, Properties p) throws XModelException {
- if (target.getModelEntity().getName().startsWith(ENT_FILE_SEAM_PAGES)) {
- target = target.getChildByPath(ELM_DIAGRAM);
- }
- addRuleByPageAdopt(target, object, p);
-/*
- Properties runningProperties = new Properties();
- runningProperties.put("preselectedObject", object);
- if(p != null) runningProperties.putAll(p);
- XActionInvoker.invoke("CreateActions.CreatePage", target, runningProperties);
-*/
- }
-
- private void addRuleByPageAdopt(XModelObject process, XModelObject page, Properties p) throws XModelException {
- String path = XModelObjectLoaderUtil.getResourcePath(page);
- XModelObject pageItem = SeamPagesDiagramHelper.getHelper(process).getPage(path);
- if(pageItem != null) return;
- boolean doNotCreateEmptyRule = false; //or read preferences, compare JSF
- pageItem = SeamPagesDiagramHelper.getHelper(process).findOrCreateItem(path, null, TYPE_PAGE);
- setShape(pageItem, p);
- if(doNotCreateEmptyRule) {
- pageItem.setAttributeValue("persistent", "true");
- pageItem.setModified(true);
- } else {
- XModelObject pages = process.getParent().getChildByPath(FOLDER_PAGES);
- String suffix = getPageSuffix(process.getParent().getModelEntity().getName());
- XModelObject rule = pages.getModel().createModelObject(ENT_SEAM_PAGE + suffix, null);
- rule.setAttributeValue(ATTR_VIEW_ID, path);
- DefaultCreateHandler.addCreatedObject(pages, rule, p);
- }
- }
-
- public static String getPageSuffix(String entity) {
- if(entity.endsWith(SUFF_12)) {
- return SUFF_12;
- } else {
- return SUFF_20;
- }
- }
-
- public static void setShape(XModelObject group, Properties p) {
- String x = (p == null) ? null : p.getProperty("mouse.x");
- String y = (p == null) ? null : p.getProperty("mouse.y");
- if(x != null && y != null) {
- group.setAttributeValue("shape", "" + x + "," + y + ",0,0");
- }
- }
-
- private boolean isAdoptableItem(XModelObject target, XModelObject object) {
- return ENT_DIAGRAM_ITEM.equals(object.getModelEntity().getName());
- }
-
- private void adoptItem(XModelObject target, XModelObject object, Properties p) {
-// String path = object.getAttributeValue(ATT_PATH);
- p.put("sample", object);
- String type = object.getAttributeValue(ATTR_TYPE);
- if(TYPE_PAGE.equals(type)) {
- XActionInvoker.invoke("CreateActions.AddPage", target, p);
- } else {
- //TODO
- }
- }
-
-}
15 years, 11 months
JBoss Tools SVN: r8582 - trunk/common/plugins/org.jboss.tools.common.meta.ui/src/org/jboss/tools/common/meta/ui/editor.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-06-05 08:54:30 -0400 (Thu, 05 Jun 2008)
New Revision: 8582
Modified:
trunk/common/plugins/org.jboss.tools.common.meta.ui/src/org/jboss/tools/common/meta/ui/editor/GenerateHelpKeysHandler.java
Log:
Common keys for titles introduced.
Modified: trunk/common/plugins/org.jboss.tools.common.meta.ui/src/org/jboss/tools/common/meta/ui/editor/GenerateHelpKeysHandler.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.meta.ui/src/org/jboss/tools/common/meta/ui/editor/GenerateHelpKeysHandler.java 2008-06-05 12:39:43 UTC (rev 8581)
+++ trunk/common/plugins/org.jboss.tools.common.meta.ui/src/org/jboss/tools/common/meta/ui/editor/GenerateHelpKeysHandler.java 2008-06-05 12:54:30 UTC (rev 8582)
@@ -95,8 +95,12 @@
String n = a.getAttributeValue("name");
String dn = a.getAttributeValue("display name");
if(dn.endsWith("...")) dn = dn.substring(0, dn.length() - 3);
- if(n.startsWith("Add")) {
- String key = pref + n;
+ if(n.startsWith("Add") || n.startsWith("Create")) {
+ Properties p = getProperties(a);
+ String key = p.getProperty("key");
+ if(key == null) {
+ key = pref + n;
+ }
String wt = dn;
if(!wt.startsWith("Add") && !wt.startsWith("New")) {
wt = "Add " + wt;
@@ -107,7 +111,7 @@
validateProperty(q, key + ".Title", on);
} else if(n.equals("Properties")) {
String key = pref + n;
- validateProperty(q, key + ".WindowTitle", "Properties");
+// validateProperty(q, key + ".WindowTitle", "Properties");
XModelObject b = a;
while(b != null && b.getModelEntity().getName().toLowerCase().indexOf("entity") < 0) {
b = b.getParent();
@@ -116,7 +120,11 @@
if(on == null) on = dn;
validateProperty(q, key + ".Title", on);
} else if(a.getAttributeValue("wizard").length() > 0) {
- String key = pref + n;
+ Properties p = getProperties(a);
+ String key = p.getProperty("key");
+ if(key == null) {
+ key = pref + n;
+ }
// validateProperty(q, key, defpath);
validateProperty(q, key + ".WindowTitle", dn);
validateProperty(q, key + ".Title", "");
@@ -169,4 +177,20 @@
return result.toString();
}
+ private Properties getProperties(XModelObject a) {
+ Properties p = new Properties();
+ String ps = a.getAttributeValue("properties");
+ if(ps == null || ps.length() == 0) return p;
+ StringTokenizer st = new StringTokenizer(ps, ";");
+ while(st.hasMoreTokens()) {
+ String t = st.nextToken();
+ int i = t.indexOf('=');
+ if(i < 0) continue;
+ String n = t.substring(0, i);
+ String v = t.substring(i + 1);
+ p.setProperty(n, v);
+ }
+ return p;
+ }
+
}
15 years, 11 months
JBoss Tools SVN: r8580 - trunk/seam/docs/reference/en/modules.
by jbosstools-commits@lists.jboss.org
Author: ochikvina
Date: 2008-06-05 08:36:42 -0400 (Thu, 05 Jun 2008)
New Revision: 8580
Modified:
trunk/seam/docs/reference/en/modules/seam_menus_and_actions.xml
Log:
http://jira.jboss.com/jira/browse/JBDS-349 - correcting inexact information
Modified: trunk/seam/docs/reference/en/modules/seam_menus_and_actions.xml
===================================================================
--- trunk/seam/docs/reference/en/modules/seam_menus_and_actions.xml 2008-06-05 12:30:40 UTC (rev 8579)
+++ trunk/seam/docs/reference/en/modules/seam_menus_and_actions.xml 2008-06-05 12:36:42 UTC (rev 8580)
@@ -12,228 +12,245 @@
</chapterinfo>
<title>Seam Menus and Actions</title>
-
+
<para>In this chapter we provide a description of Seam actions that are available from</para>
- <itemizedlist>
- <listitem><para>Menu bar</para></listitem>
- <listitem><para>Toolbar</para></listitem>
- <listitem><para>Context menus in views</para></listitem>
- </itemizedlist>
-
+ <itemizedlist>
+ <listitem>
+ <para>Menu bar</para>
+ </listitem>
+ <listitem>
+ <para>Toolbar</para>
+ </listitem>
+ <listitem>
+ <para>Context menus in views</para>
+ </listitem>
+ </itemizedlist>
+
<section id="file_menu">
<title>File Menu Actions</title>
-
- <para>In a Seam perspective, by default there are the following actions in <emphasis><property>File > New</property></emphasis> submenu</para>
-
+
+ <para>In a Seam perspective, by default there are the following actions in <emphasis>
+ <property>File > New</property>
+ </emphasis> submenu</para>
+
<table>
<title>Seam Actions in the New Submenu</title>
<tgroup cols="2">
<colspec colnum="1" colwidth="1*"/>
<colspec colnum="2" colwidth="4*"/>
-
+
<thead>
<row>
<entry align="center">
<para>Name</para>
</entry>
-
+
<entry align="center">
<para>Function</para>
</entry>
-
- </row>
+
+ </row>
</thead>
-
+
<tbody>
-
-
+
+
<row>
<entry>
- <para><property>Seam Web Project</property></para>
-
+ <para>
+ <property>Seam Web Project</property>
+ </para>
+
</entry>
-
+
<entry>
- <para>Runs <link linkend="standaloneSeam">New Seam Project</link> wizard for creating a new Seam project
- </para>
+ <para>Runs <link linkend="standaloneSeam">New Seam Project</link> wizard
+ for creating a new Seam project </para>
</entry>
-
-
+
+
</row>
-
-
+
+
<row>
<entry>
- <para><property>Seam Action</property></para>
-
+ <para>
+ <property>Seam Action</property>
+ </para>
+
</entry>
-
+
<entry>
- <para>Runs <link linkend="seam_action">New Seam Action</link> wizard for creating a new Seam action
- </para>
+ <para>Runs <link linkend="seam_action">New Seam Action</link> wizard for
+ creating a new Seam action </para>
</entry>
-
-
+
+
</row>
-
-
-
+
+
+
<row>
<entry>
- <para><property>Seam Form</property></para>
-
+ <para>
+ <property>Seam Form</property>
+ </para>
+
</entry>
-
+
<entry>
- <para>Runs <link linkend="seam_form">New Seam Form</link> wizard for creating a new Seam form
- </para>
+ <para>Runs <link linkend="seam_form">New Seam Form</link> wizard for
+ creating a new Seam form </para>
</entry>
-
-
+
+
</row>
-
-
+
+
<row>
<entry>
- <para><property>Seam Entity</property></para>
-
+ <para>
+ <property>Seam Entity</property>
+ </para>
+
</entry>
-
+
<entry>
- <para>Runs <link linkend="seam_entity">New Seam Entity</link> wizard for creating a new Seam entity
- </para>
+ <para>Runs <link linkend="seam_entity">New Seam Entity</link> wizard for
+ creating a new Seam entity </para>
</entry>
-
-
+
+
</row>
-
+
<row>
<entry>
- <para><property>Seam Conversation</property></para>
-
+ <para>
+ <property>Seam Conversation</property>
+ </para>
+
</entry>
-
+
<entry>
- <para>Runs <link linkend="seam_conversation">New Seam Conversation</link> wizard for creating a new Seam conversation
+ <para>Runs <link linkend="seam_conversation">New Seam
+ Conversation</link> wizard for creating a new Seam conversation
</para>
</entry>
-
-
-
+
+
+
</row>
-
+
<row>
<entry>
- <para><property>Seam Generate Entities</property></para>
-
+ <para>
+ <property>Seam Generate Entities</property>
+ </para>
+
</entry>
-
+
<entry>
- <para>Runs <link linkend="generate_entities">Generate Seam Entities</link> wizard</para>
+ <para>Runs <link linkend="generate_entities">Generate Seam
+ Entities</link> wizard</para>
</entry>
-
-
-
+
+
+
</row>
-
-
+
+
</tbody>
</tgroup>
</table>
-
-
+
+
</section>
-
+
<section id="navigate_menu">
<title>Navigate Menu Actions</title>
-
- <para>These Seam actions help you to easily navigate through the source code.</para>
-
+
+ <para>In the next sections we are going to describe Seam actions which can help you to
+ easily navigate through the source code.</para>
+
<section id="find_seam_ref_decl">
-
+
<title>Find Seam References/Declarations</title>
-
-
- <!-- <para><property>Find Seam References/Declarations</property> is available for EL expressions in both .java and .xhtml files.</para>
- <para>Find Seam references and declarations action works as the normal Eclipse Find References/Declarations via Ctrl+G/Ctrl+Shift+G shortcuts.
- Furthermore it can be run from the main menu <emphasis><property>Navigate > Find Seam References</property></emphasis>
- or <emphasis><property>Navigate > Find Seam Declarations</property></emphasis> and from the appropriate toolbar buttons.</para>
- <para>If you are looking for a reference to a specific class or method and it is referenced in EL or any other Seam configuration the search list will include it.
+
+ <para>To find EL expretions both in <emphasis>
+ <property>.java</property>
+ </emphasis> and <emphasis>
+ <property>.xhtml</property>
+ </emphasis> files use Find Seam References/Declarations actions. For that, in the main menu bar click on <emphasis>
+ <property>Search > Find Seam References</property>
+ </emphasis> or <emphasis><property>Find Seam Declarations</property>.</emphasis>
</para>
-
- -->
-
-
- <para>In the main menu bar, click on <emphasis><property>Navigate > Find Seam References</property></emphasis> or <emphasis><property>Find Seam Declarations</property>.</emphasis>
- These actions are also available from toolbar icons.</para>
-
- <figure>
- <title>Find Seam References and Find Seam Declarations icons</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/seam_menus_and_actions/menus_and_actions0_1.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
- <para>In the table below read a description about the actions.</para>
-
+
+ <para>Look at the description of the actions in the table below.</para>
+
<table>
<title>Find Seam References/Declarations actions</title>
<tgroup cols="3">
<colspec colnum="1" colwidth="1*"/>
<colspec colnum="2" colwidth="4*"/>
<colspec colnum="3" colwidth="2*"/>
-
-
+
+
<thead>
<row>
<entry align="center">
<para>Name</para>
</entry>
-
+
<entry align="center">
<para>Function</para>
</entry>
-
+
<entry align="center">
<para>Keyboard Shortcut</para>
</entry>
- </row>
+ </row>
</thead>
-
+
<tbody>
-
-
+
+
<row>
<entry>
- <para><property>Find Seam References</property></para>
- <para><property>Find Seam Declarations</property></para>
+ <para>
+ <property>Find Seam References</property>
+ </para>
+ <para>
+ <property>Find Seam Declarations</property>
+ </para>
</entry>
-
+
<entry>
- <para>Find all references and declarations to the selected element. It's available for EL expressions in both .java and .xhtml files.
- Differs from normal Eclipse Find References/Declarations by showing an EL or Seam references in the Search View.
- </para>
+ <para>Find all references and declarations to the selected element.
+ It's available for EL expressions in both .java and .xhtml
+ files. Differs from normal Eclipse Find References/Declarations
+ by showing an EL or Seam references in the Search View. </para>
</entry>
-
+
<entry>
<para>Ctrl+G</para>
<para>Ctrl+Shift+G</para>
<para>also Ctrl + 1 for .java files</para>
-
+
</entry>
-
+
</row>
</tbody>
</tgroup>
- </table>
-
-
- <para>You could see the screenshot example below:</para>
-
+ </table>
+
+
+ <para>On the screenshot example below you could see that the search results are listed
+ in the
+ <property>Search view</property>.
+ </para>
+
<figure>
<title>Find Seam Declaration for "Identity"</title>
<mediaobject>
@@ -242,9 +259,9 @@
</imageobject>
</mediaobject>
</figure>
-
+
<para>You can also use Ctrl + 1 in .java files to activate the actions:</para>
-
+
<figure>
<title>Find Seam References for "Identity"</title>
<mediaobject>
@@ -253,87 +270,93 @@
</imageobject>
</mediaobject>
</figure>
-
+
</section>
-
+
<section id="open_seam_component">
<title>Open Seam Component</title>
-
- <para>In the main menu bar, click on <emphasis><property>Navigate > Open Seam Component</property>.</emphasis>
- This dialog is also available from toolbar icon.</para>
-
+
+ <para>To open Seam Components click on <emphasis><property>Navigate > Open Seam
+ Component</property></emphasis> in the main menu bar. This dialog is also available from toolbar
+ icon.</para>
+
<figure>
<title>Open Seam Components icon</title>
<mediaobject>
<imageobject>
- <imagedata fileref="images/seam_menus_and_actions/menus_and_actions3_0.png"/>
+ <imagedata fileref="images/seam_menus_and_actions/menus_and_actions3_0.png"
+ />
</imageobject>
</mediaobject>
</figure>
-
+
<para>In the table below read a description about the dialog.</para>
-
- <table>
- <title>Open Seam Components Dialog</title>
- <tgroup cols="3">
- <colspec colnum="1" colwidth="1*"/>
- <colspec colnum="2" colwidth="4*"/>
- <colspec colnum="3" colwidth="2*"/>
-
-
- <thead>
- <row>
- <entry align="center">
- <para>Name</para>
- </entry>
-
- <entry align="center">
- <para>Function</para>
- </entry>
-
- <entry align="center">
- <para>Keyboard Shortcut</para>
- </entry>
- </row>
- </thead>
-
- <tbody>
-
-
- <row>
- <entry>
- <para><property>Open Seam Components</property></para>
-
- </entry>
-
- <entry>
- <para>Brings up the Open Seam Component dialog to open a component in the editor. The Open Seam Component selection dialog
- shows all Seam components existing in the workspace. You can search the components via their short, imported or full name.</para>
- </entry>
-
- <entry>
- <para>Ctrl+Shift+Z</para>
-
- </entry>
-
- </row>
- </tbody>
- </tgroup>
- </table>
-
- <para>Enter a name in the text field and see the results as it shown on screenshot: </para>
-
- <figure>
- <title>Open Seam Components Dialog</title>
- <mediaobject>
- <imageobject>
- <imagedata fileref="images/seam_menus_and_actions/menus_and_actions3.png"/>
- </imageobject>
- </mediaobject>
- </figure>
-
+
+ <table>
+ <title>Open Seam Components Dialog</title>
+ <tgroup cols="3">
+ <colspec colnum="1" colwidth="1*"/>
+ <colspec colnum="2" colwidth="4*"/>
+ <colspec colnum="3" colwidth="2*"/>
+
+
+ <thead>
+ <row>
+ <entry align="center">
+ <para>Name</para>
+ </entry>
+
+ <entry align="center">
+ <para>Function</para>
+ </entry>
+
+ <entry align="center">
+ <para>Keyboard Shortcut</para>
+ </entry>
+ </row>
+ </thead>
+
+ <tbody>
+
+
+ <row>
+ <entry>
+ <para>
+ <property>Open Seam Components</property>
+ </para>
+
+ </entry>
+
+ <entry>
+ <para>Brings up the Open Seam Component dialog to open a component
+ in the editor. The Open Seam Component selection dialog shows
+ all Seam components existing in the workspace. You can search
+ the components via their short, imported or full name.</para>
+ </entry>
+
+ <entry>
+ <para>Ctrl+Shift+Z</para>
+
+ </entry>
+
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
+
+ <para>Enter a name in the text field and see the results as it shown on screenshot: </para>
+
+ <figure>
+ <title>Open Seam Components Dialog</title>
+ <mediaobject>
+ <imageobject>
+ <imagedata fileref="images/seam_menus_and_actions/menus_and_actions3.png"/>
+ </imageobject>
+ </mediaobject>
+ </figure>
+
</section>
-
- </section>
+ </section>
+
</chapter>
15 years, 11 months
JBoss Tools SVN: r8579 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-06-05 08:30:40 -0400 (Thu, 05 Jun 2008)
New Revision: 8579
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/OneStepWizard.java
Log:
Common keys for titles introduced.
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/OneStepWizard.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/OneStepWizard.java 2008-06-05 12:30:20 UTC (rev 8578)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/wizards/OneStepWizard.java 2008-06-05 12:30:40 UTC (rev 8579)
@@ -58,6 +58,8 @@
public String getHelpKey() {
if(action == null) return null;
+ String key = action.getProperty("key");
+ if(key != null && key.length() > 0) return key;
return target.getModelEntity().getName() + "_" + action.getName().replace(' ', '_');
}
15 years, 11 months
JBoss Tools SVN: r8578 - trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-06-05 08:30:20 -0400 (Thu, 05 Jun 2008)
New Revision: 8578
Modified:
trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/SpecialWizardSupport.java
Log:
Common keys for titles introduced.
Modified: trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/SpecialWizardSupport.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/SpecialWizardSupport.java 2008-06-05 12:19:19 UTC (rev 8577)
+++ trunk/common/plugins/org.jboss.tools.common.model/src/org/jboss/tools/common/meta/action/impl/SpecialWizardSupport.java 2008-06-05 12:30:20 UTC (rev 8578)
@@ -208,6 +208,8 @@
public String getHelpKey() {
if(action == null) return null;
+ String key = action.getProperty("key");
+ if(key != null && key.length() > 0) return key;
return target.getModelEntity().getName() + "_" + action.getName() + "_" + stepId;
}
15 years, 11 months
JBoss Tools SVN: r8577 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-06-05 08:19:19 -0400 (Thu, 05 Jun 2008)
New Revision: 8577
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/MultiPageContributor.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2274 There is no any code assist in our XML Editors.
The fix will restore the CA in XML editors (web.xml, pages.xml)
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/MultiPageContributor.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/MultiPageContributor.java 2008-06-05 11:53:08 UTC (rev 8576)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/MultiPageContributor.java 2008-06-05 12:19:19 UTC (rev 8577)
@@ -17,6 +17,7 @@
import org.eclipse.ui.ide.IDEActionFactory;
import org.eclipse.ui.texteditor.ITextEditor;
import org.eclipse.ui.texteditor.ITextEditorActionConstants;
+import org.eclipse.wst.sse.ui.internal.actions.StructuredTextEditorActionConstants;
import org.jboss.tools.common.model.ui.ModelUIPlugin;
import org.jboss.tools.common.text.xml.xpl.ToggleOccurencesMarkUpAction;
@@ -61,6 +62,7 @@
actionBars.setGlobalActionHandler(ActionFactory.PRINT.getId(), getAction(editor, ITextEditorActionConstants.PRINT));
actionBars.setGlobalActionHandler(ActionFactory.REVERT.getId(), getAction(editor, ITextEditorActionConstants.REVERT));
actionBars.setGlobalActionHandler(ActionFactory.SAVE.getId(), getAction(editor, ITextEditorActionConstants.SAVE));
+ actionBars.setGlobalActionHandler(StructuredTextEditorActionConstants.ACTION_NAME_CONTENTASSIST_PROPOSALS, getAction(editor, StructuredTextEditorActionConstants.ACTION_NAME_CONTENTASSIST_PROPOSALS));
}
// re-register action on key binding service
15 years, 11 months
JBoss Tools SVN: r8576 - trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors.
by jbosstools-commits@lists.jboss.org
Author: vrubezhny
Date: 2008-06-05 07:53:08 -0400 (Thu, 05 Jun 2008)
New Revision: 8576
Modified:
trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/AbstractMultiPageContributor.java
Log:
http://jira.jboss.com/jira/browse/JBIDE-2274 There is no any code assist in our XML Editors.
The fix will restore the CA in XML editors
Modified: trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/AbstractMultiPageContributor.java
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/AbstractMultiPageContributor.java 2008-06-05 11:46:55 UTC (rev 8575)
+++ trunk/common/plugins/org.jboss.tools.common.model.ui/src/org/jboss/tools/common/model/ui/texteditors/AbstractMultiPageContributor.java 2008-06-05 11:53:08 UTC (rev 8576)
@@ -24,6 +24,7 @@
import org.eclipse.ui.part.MultiPageEditorActionBarContributor;
import org.eclipse.ui.texteditor.*;
import org.eclipse.ui.texteditor.StatusLineContributionItem;
+import org.eclipse.wst.xml.ui.internal.XMLUIMessages;
import org.eclipse.jface.action.Separator;
import org.eclipse.jface.commands.ActionHandler;
import org.eclipse.jface.text.IRegion;
@@ -103,8 +104,15 @@
}
protected void createAssistObjects() {
- fContentAssistProposal = new RetargetTextEditorAction(TextEditorMessages.getResourceBundle(), "ContentAssistProposal."); //$NON-NLS-1$
- fContentAssistProposal.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
+
+ // JBIDE-2274 There is no any code assist in our XML Editors. >>>
+ ResourceBundle resourceBundle = XMLUIMessages.getResourceBundle();
+ fContentAssistProposal = new RetargetTextEditorAction(resourceBundle, ""); //$NON-NLS-1$
+ fContentAssistProposal.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
+// fContentAssistProposal = new RetargetTextEditorAction(TextEditorMessages.getResourceBundle(), "ContentAssistProposal."); //$NON-NLS-1$
+// fContentAssistProposal.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_PROPOSALS);
+ // JBIDE-2274 There is no any code assist in our XML Editors. <<<
+
fContentAssistTip = new RetargetTextEditorAction(TextEditorMessages.getResourceBundle(), "ContentAssistTip."); //$NON-NLS-1$
fContentAssistTip.setActionDefinitionId(ITextEditorActionDefinitionIds.CONTENT_ASSIST_CONTEXT_INFORMATION);
}
15 years, 11 months
JBoss Tools SVN: r8575 - trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-06-05 07:46:55 -0400 (Thu, 05 Jun 2008)
New Revision: 8575
Modified:
trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/SeamPagesEditor.java
Log:
JBIDE-2294
Modified: trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/SeamPagesEditor.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/SeamPagesEditor.java 2008-06-05 11:46:48 UTC (rev 8574)
+++ trunk/seam/plugins/org.jboss.tools.seam.ui.pages/src/org/jboss/tools/seam/ui/pages/editor/SeamPagesEditor.java 2008-06-05 11:46:55 UTC (rev 8575)
@@ -11,12 +11,13 @@
import org.jboss.tools.common.model.ui.editor.EditorDescriptor;
import org.jboss.tools.common.model.ui.texteditors.XMLTextEditorComponent;
import org.jboss.tools.seam.pages.xml.model.SeamPagesConstants;
+import org.jboss.tools.seam.pages.xml.model.impl.SeamPagesFilteredTreeConstraint;
import org.jboss.tools.seam.ui.pages.SeamUIPagesMessages;
import org.jboss.tools.seam.ui.pages.SeamUiPagesPlugin;
public class SeamPagesEditor extends ObjectMultiPageEditor {
protected SeamPagesGuiEditor guiEditor;
-// protected FacesConfigFilteredTreeConstraint constraint = new FacesConfigFilteredTreeConstraint();
+ protected SeamPagesFilteredTreeConstraint constraint = new SeamPagesFilteredTreeConstraint();
protected Composite createPageContainer(Composite parent) {
Composite composite = super.createPageContainer(parent);
@@ -25,9 +26,8 @@
}
public SeamPagesEditor() {
-// constraint.setEditorEnvironment(true);
-// FacesConfigFilteredTreeConstraint constraint2 = new FacesConfigFilteredTreeConstraint();
-// outline.addFilter(constraint2);
+ SeamPagesFilteredTreeConstraint constraint2 = new SeamPagesFilteredTreeConstraint();
+ outline.addFilter(constraint2);
}
protected boolean isWrongEntity(String entity) {
@@ -39,7 +39,7 @@
createGuiPage();
treeFormPage = createTreeFormPage();
treeFormPage.setTitle(SeamUIPagesMessages.SEAM_PAGES_EDITOR_TITLE);
-// treeFormPage.addFilter(constraint);
+ treeFormPage.addFilter(constraint);
treeFormPage.initialize(getModelObject());
addFormPage(treeFormPage);
}
15 years, 11 months
JBoss Tools SVN: r8574 - in trunk/seam/plugins/org.jboss.tools.seam.pages.xml: resources/meta and 1 other directories.
by jbosstools-commits@lists.jboss.org
Author: scabanovich
Date: 2008-06-05 07:46:48 -0400 (Thu, 05 Jun 2008)
New Revision: 8574
Added:
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/impl/SeamPagesFilteredTreeConstraint.java
Modified:
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/plugin.xml
trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/seam-pages.meta
Log:
JBIDE-2294
Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/plugin.xml
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/plugin.xml 2008-06-05 11:33:25 UTC (rev 8573)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/plugin.xml 2008-06-05 11:46:48 UTC (rev 8574)
@@ -54,6 +54,9 @@
<xclass id="org.jboss.tools.seam.pages.xml.model.impl.ReferenceObjectImpl"
class="org.jboss.tools.seam.pages.xml.model.impl.ReferenceObjectImpl"/>
+ <xclass id="org.jboss.tools.seam.pages.xml.model.impl.SeamPagesFilteredTreeConstraint"
+ class="org.jboss.tools.seam.pages.xml.model.impl.SeamPagesFilteredTreeConstraint"/>
+
<xclass id="org.jboss.tools.seam.pages.xml.model.handlers.AddRuleHandler"
class="org.jboss.tools.seam.pages.xml.model.handlers.AddRuleHandler"/>
<xclass id="org.jboss.tools.seam.pages.xml.model.handlers.AddExceptionHandler"
Modified: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/seam-pages.meta
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/seam-pages.meta 2008-06-05 11:33:25 UTC (rev 8573)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/resources/meta/seam-pages.meta 2008-06-05 11:46:48 UTC (rev 8574)
@@ -10,7 +10,9 @@
<PAIR name="SeamPages1.2" value="FileSeamPages12"/>
<PAIR name="SeamPages2.0" value="FileSeamPages20"/>
</MAPPING>
- <MAPPING name="FilteredTreeConstraints"/>
+ <MAPPING name="FilteredTreeConstraints">
+ <PAIR name="FileSystems$144" value="org.jboss.tools.seam.pages.xml.model.impl.SeamPagesFilteredTreeConstraint"/>
+ </MAPPING>
<MAPPING name="FilteredTrees"/>
<MAPPING name="Handlers"/>
<MAPPING name="Implementations">
Added: trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/impl/SeamPagesFilteredTreeConstraint.java
===================================================================
--- trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/impl/SeamPagesFilteredTreeConstraint.java (rev 0)
+++ trunk/seam/plugins/org.jboss.tools.seam.pages.xml/src/org/jboss/tools/seam/pages/xml/model/impl/SeamPagesFilteredTreeConstraint.java 2008-06-05 11:46:48 UTC (rev 8574)
@@ -0,0 +1,43 @@
+/*******************************************************************************
+ * 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.seam.pages.xml.model.impl;
+
+import org.jboss.tools.common.model.*;
+import org.jboss.tools.seam.pages.xml.model.SeamPagesConstants;
+
+/**
+ *
+ * @author Viacheslav Kabanovich
+ *
+ */
+public class SeamPagesFilteredTreeConstraint implements XFilteredTreeConstraint, SeamPagesConstants {
+
+ public SeamPagesFilteredTreeConstraint() {}
+
+ public void update(XModel model) {
+ }
+
+ public boolean isHidingAllChildren(XModelObject object) {
+ return false;
+ }
+
+ public boolean isHidingSomeChildren(XModelObject object) {
+ String entity = object.getModelEntity().getName();
+ return entity.startsWith(ENT_FILE_SEAM_PAGE);
+ }
+
+ public boolean accepts(XModelObject object) {
+ String entity = object.getModelEntity().getName();
+ if(ENT_DIAGRAM.equals(entity)) return false;
+ return true;
+ }
+
+}
15 years, 11 months