[overlord-commits] Overlord SVN: r847 - in bpm-console/trunk: gui/war/src/main/java/org/jboss/bpm/console/client and 6 other directories.
overlord-commits at lists.jboss.org
overlord-commits at lists.jboss.org
Wed Oct 21 15:59:18 EDT 2009
Author: heiko.braun at jboss.com
Date: 2009-10-21 15:59:17 -0400 (Wed, 21 Oct 2009)
New Revision: 847
Added:
bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/PreferencesView.java
bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/common/HeaderLabel.java
bpm-console/trunk/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Preferences.java
Modified:
bpm-console/trunk/BPMC.iws
bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/LoginView.java
bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/MainLayout.java
bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditor.java
bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditorNavigation.java
bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/common/IFrameWindowPanel.java
bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditor.java
bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java
bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditorNavigation.java
bpm-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml
bpm-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css
bpm-console/trunk/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Editor.java
bpm-console/trunk/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Workspace.java
Log:
Fix BPMC-26: Provide preference panel
Modified: bpm-console/trunk/BPMC.iws
===================================================================
--- bpm-console/trunk/BPMC.iws 2009-10-21 19:57:19 UTC (rev 846)
+++ bpm-console/trunk/BPMC.iws 2009-10-21 19:59:17 UTC (rev 847)
@@ -216,7 +216,35 @@
</component>
<component name="FileColors" enabled="false" enabledForTabs="false" />
<component name="FileEditorManager">
- <leaf />
+ <leaf>
+ <file leaf-file-name="TaskEditorNavigation.java" pinned="false" current="true" current-in-tab="true">
+ <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditorNavigation.java">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="54" column="59" selection-start="2153" selection-end="2153" vertical-scroll-proportion="0.76555026">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="TaskEditor.java" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="158" column="26" selection-start="5244" selection-end="5244" vertical-scroll-proportion="0.79585326">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ <file leaf-file-name="SettingsEditor.java" pinned="false" current="false" current-in-tab="false">
+ <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditor.java">
+ <provider selected="true" editor-type-id="text-editor">
+ <state line="33" column="13" selection-start="1391" selection-end="1391" vertical-scroll-proportion="0.025518341">
+ <folding />
+ </state>
+ </provider>
+ </entry>
+ </file>
+ </leaf>
</component>
<component name="FindManager">
<FindUsagesManager>
@@ -309,6 +337,10 @@
<option name="myItemId" value="BPMC.ipr" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="workspace-api" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+ </PATH_ELEMENT>
</PATH>
<PATH>
<PATH_ELEMENT>
@@ -316,6 +348,94 @@
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
+ <option name="myItemId" value="workspace-api" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/workspace/workspace-api" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="BPMC.ipr" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="workspace-api" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/workspace/workspace-api" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/workspace/workspace-api/src" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/workspace/workspace-api/src/main" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="BPMC.ipr" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="workspace-api" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/workspace/workspace-api" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/workspace/workspace-api/src" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/workspace/workspace-api/src/main" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/workspace/workspace-api/src/main/java" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/workspace/workspace-api/src/main/java/org" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/workspace/workspace-api/src/main/java/org/jboss" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/workspace/workspace-api/src/main/java/org/jboss/bpm" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/workspace/workspace-api/src/main/java/org/jboss/bpm/console" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="BPMC.ipr" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="BPMC.ipr" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
<option name="myItemId" value="server-war" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
</PATH_ELEMENT>
@@ -406,6 +526,120 @@
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
<PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src/main/resources" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="BPMC.ipr" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="gui-war" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src/main" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src/main/resources" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src/main/resources/org" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src/main/resources/org/jboss" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src/main/resources/org/jboss/bpm" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src/main/resources/org/jboss/bpm/console" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="BPMC.ipr" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="gui-war" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src/main" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src/main/resources" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src/main/resources/org" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src/main/resources/org/jboss" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src/main/resources/org/jboss/bpm" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src/main/resources/org/jboss/bpm/console" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src/main/resources/org/jboss/bpm/console/public" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ </PATH>
+ <PATH>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="BPMC.ipr" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="gui-war" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
+ <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src/main" />
+ <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+ </PATH_ELEMENT>
+ <PATH_ELEMENT>
<option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/gui/war/src/main/java" />
<option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
</PATH_ELEMENT>
@@ -869,16 +1103,16 @@
</todo-panel>
</component>
<component name="ToolWindowManager">
- <frame x="351" y="49" width="1279" height="908" extended-state="0" />
- <editor active="false" />
+ <frame x="0" y="22" width="1280" height="774" extended-state="6" />
+ <editor active="true" />
<layout>
<window_info id="UI Designer" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="3" />
<window_info id="CVS" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="8" />
<window_info id="IDEtalk" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="3" />
<window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="7" />
- <window_info id="Project" active="true" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.3203252" order="0" />
- <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39334154" order="1" />
- <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.2761982" order="1" />
+ <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.320065" order="0" />
+ <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39290988" order="1" />
+ <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.27538586" order="1" />
<window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32992035" order="8" />
<window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" order="6" />
<window_info id="Module Dependencies" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="3" />
@@ -888,9 +1122,9 @@
<window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="8" />
<window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="2" />
<window_info id="Maven" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="8" />
- <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.24937028" order="2" />
+ <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.24878049" order="2" />
<window_info id="File View" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="3" />
- <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39438203" order="4" />
+ <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39290988" order="4" />
<window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" order="0" />
<window_info id="IDEtalk Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="8" />
<window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32873562" order="8" />
@@ -985,112 +1219,111 @@
<option name="myLastEditedConfigurable" />
</component>
<component name="editorHistoryManager">
- <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/ws/EmbeddedWSView.java">
+ <entry file="jar:///System/Library/Frameworks/JavaVM.framework/Versions/1.5.0-leopard/Home/src.jar!/src/java/lang/Enum.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="108" column="69" selection-start="3516" selection-end="3516" vertical-scroll-proportion="0.72380954">
+ <state line="19" column="22" selection-start="416" selection-end="416" vertical-scroll-proportion="-1.046252">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/gui/profiles/riftsaw/src/main/resources/org/jboss/bpm/console/workspace.cfg">
+ <entry file="file://$PROJECT_DIR$/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Preferences.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="5" column="0" selection-start="247" selection-end="247" vertical-scroll-proportion="0.0952381">
- <folding />
+ <state line="34" column="2" selection-start="1338" selection-end="1338" vertical-scroll-proportion="0.35725677">
+ <folding>
+ <element signature="imports" expanded="true" />
+ </folding>
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/process/DefinitionListView.java">
+ <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/jmaki/xhp/HttpClient.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="229" column="56" selection-start="7239" selection-end="7239" vertical-scroll-proportion="0.79622644">
+ <state line="88" column="32" selection-start="2436" selection-end="2436" vertical-scroll-proportion="0.21078432">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/common/PropertyGrid.java">
+ <entry file="file://$PROJECT_DIR$/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/ConsoleConfig.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="86" column="14" selection-start="2406" selection-end="2406" vertical-scroll-proportion="1.2213837">
+ <state line="118" column="25" selection-start="3341" selection-end="3341" vertical-scroll-proportion="0.62091506">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/server/war/src/main/java/org/jboss/bpm/console/server/ProcessMgmtFacade.java">
+ <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/PreferencesView.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="89" column="62" selection-start="3201" selection-end="3201" vertical-scroll-proportion="0.08050314">
- <folding />
+ <state line="38" column="13" selection-start="1583" selection-end="1583" vertical-scroll-proportion="-0.35947713">
+ <folding>
+ <element signature="imports" expanded="true" />
+ </folding>
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css">
+ <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/MainLayout.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="293" column="22" selection-start="4390" selection-end="4410" vertical-scroll-proportion="1.4047306">
+ <state line="95" column="31" selection-start="3374" selection-end="3374" vertical-scroll-proportion="0.41830066">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/server/war/src/main/java/org/jboss/bpm/console/server/FormProcessingFacade.java">
+ <entry file="file://$PROJECT_DIR$/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Menu.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="51" column="29" selection-start="2236" selection-end="2236" vertical-scroll-proportion="0.08579089">
+ <state line="72" column="14" selection-start="2453" selection-end="2453" vertical-scroll-proportion="0.5917065">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/process/InstanceDataView.java">
+ <entry file="file://$PROJECT_DIR$/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Workspace.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="41" column="13" selection-start="1695" selection-end="1695" vertical-scroll-proportion="-0.050938338">
+ <state line="86" column="17" selection-start="2639" selection-end="2639" vertical-scroll-proportion="0.61403507">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/process/InstanceDetailView.java">
+ <entry file="file://$PROJECT_DIR$/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Editor.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="228" column="37" selection-start="7478" selection-end="7478" vertical-scroll-proportion="0.45576409">
+ <state line="79" column="14" selection-start="2771" selection-end="2771" vertical-scroll-proportion="0.47549018">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/process/InstanceListView.java">
+ <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/engine/EngineEditor.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="185" column="55" selection-start="6355" selection-end="6355" vertical-scroll-proportion="-0.27882037">
- <folding>
- <element signature="class#4476:4952" expanded="false" />
- <element signature="class#5195:5484" expanded="false" />
- </folding>
+ <state line="156" column="14" selection-start="5059" selection-end="5059" vertical-scroll-proportion="0.63398695">
+ <folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/common/IFrameWindowPanel.java">
+ <entry file="file://$PROJECT_DIR$/gui/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml">
<provider selected="true" editor-type-id="text-editor">
- <state line="156" column="28" selection-start="4994" selection-end="4994" vertical-scroll-proportion="0.73994637">
+ <state line="30" column="82" selection-start="1532" selection-end="1532" vertical-scroll-proportion="0.76555026">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Editor.java">
+ <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditor.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="84" column="25" selection-start="2920" selection-end="2920" vertical-scroll-proportion="0.67828417">
+ <state line="157" column="66" selection-start="5192" selection-end="5192" vertical-scroll-proportion="0.66013074">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/LazyPanel.java">
+ <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditor.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="33" column="7" selection-start="1251" selection-end="1251" vertical-scroll-proportion="0.27332458">
+ <state line="33" column="13" selection-start="1391" selection-end="1391" vertical-scroll-proportion="0.025518341">
<folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditor.java">
+ <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="78" column="35" selection-start="2972" selection-end="2972" vertical-scroll-proportion="0.41823056">
- <folding>
- <element signature="imports" expanded="true" />
- </folding>
+ <state line="158" column="26" selection-start="5244" selection-end="5244" vertical-scroll-proportion="0.79585326">
+ <folding />
</state>
</provider>
</entry>
- <entry file="file://$PROJECT_DIR$/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Workspace.java">
+ <entry file="file://$PROJECT_DIR$/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditorNavigation.java">
<provider selected="true" editor-type-id="text-editor">
- <state line="72" column="14" selection-start="2258" selection-end="2258" vertical-scroll-proportion="0.3324573">
+ <state line="54" column="59" selection-start="2153" selection-end="2153" vertical-scroll-proportion="0.76555026">
<folding />
</state>
</provider>
Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/LoginView.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/LoginView.java 2009-10-21 19:57:19 UTC (rev 846)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/LoginView.java 2009-10-21 19:59:17 UTC (rev 847)
@@ -33,6 +33,7 @@
import org.gwt.mosaic.ui.client.LayoutPopupPanel;
import org.gwt.mosaic.ui.client.layout.*;
import org.jboss.bpm.console.client.util.ConsoleLog;
+import org.jboss.bpm.console.client.common.HeaderLabel;
/**
* @author Heiko.Braun <heiko.braun at jboss.com>
@@ -277,8 +278,7 @@
private Widget createForm()
{
LayoutPanel p = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
- Label label = new Label("Login");
- label.setStyleName("bpm-label-header");
+ HeaderLabel label = new HeaderLabel("Login", true);
p.add(label, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
usernameInput = new TextBox();
Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/MainLayout.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/MainLayout.java 2009-10-21 19:57:19 UTC (rev 846)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/MainLayout.java 2009-10-21 19:59:17 UTC (rev 847)
@@ -90,7 +90,8 @@
{
public void execute()
{
- String defaultEditorID = config.getDefaultEditor();
+ String defaultEditorID = Preferences.has(Preferences.BPM_DEFAULT_TOOL) ?
+ Preferences.get(Preferences.BPM_DEFAULT_TOOL) : config.getDefaultEditor();
if(workspace.hasEditor(defaultEditorID))
workspace.showEditor(defaultEditorID);
}
Added: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/PreferencesView.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/PreferencesView.java (rev 0)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/PreferencesView.java 2009-10-21 19:59:17 UTC (rev 847)
@@ -0,0 +1,101 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.console.client;
+
+import com.google.gwt.user.client.ui.ClickListener;
+import com.google.gwt.user.client.ui.HTML;
+import com.google.gwt.user.client.ui.ListBox;
+import com.google.gwt.user.client.ui.Widget;
+import com.mvc4g.client.Controller;
+import com.mvc4g.client.ViewInterface;
+import org.gwt.mosaic.ui.client.layout.BoxLayout;
+import org.gwt.mosaic.ui.client.layout.LayoutPanel;
+import org.jboss.bpm.console.client.common.HeaderLabel;
+
+import java.util.List;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class PreferencesView extends LayoutPanel implements ViewInterface
+{
+
+ public final static String ID = PreferencesView.class.getName();
+
+ private Controller controller;
+
+ private ApplicationContext appContext;
+
+ public void setController(Controller controller)
+ {
+ this.controller = controller;
+ }
+
+ public PreferencesView()
+ {
+ super(new BoxLayout(BoxLayout.Orientation.VERTICAL));
+
+ this.appContext = Registry.get(ApplicationContext.class);
+ this.add(new HeaderLabel("User Preferences"));
+
+ LayoutPanel defaultToolPanel = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.HORIZONTAL));
+ defaultToolPanel.setPadding(10);
+ defaultToolPanel.add(
+ new HTML("<b>Default Tool</b><br>" +
+ "Select the tool that should be loaded upon login.")
+ );
+
+ final List<Workspace.EditorRef> editors = appContext.getWorkpace().getEditors();
+ final ListBox multiBox = new ListBox();
+ multiBox.setVisibleItemCount(5);
+ defaultToolPanel.add(multiBox);
+
+ // init
+ String prefEditor = Preferences.get(Preferences.BPM_DEFAULT_TOOL);
+ for(Workspace.EditorRef ref : editors)
+ {
+ multiBox.addItem(ref.title);
+ if(ref.id.equals(prefEditor))
+ multiBox.setItemSelected(multiBox.getItemCount()-1, true);
+ }
+
+ multiBox.addClickListener(
+ new ClickListener()
+ {
+ public void onClick(Widget widget)
+ {
+ String title = multiBox.getItemText(multiBox.getSelectedIndex());
+ for(Workspace.EditorRef ref : editors)
+ {
+ if(ref.title.equals(title))
+ {
+ Preferences.set(Preferences.BPM_DEFAULT_TOOL, ref.id);
+ }
+ }
+ }
+ }
+ );
+
+ // parent
+ this.add(defaultToolPanel);
+ }
+}
Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditor.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditor.java 2009-10-21 19:57:19 UTC (rev 846)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditor.java 2009-10-21 19:59:17 UTC (rev 847)
@@ -24,10 +24,7 @@
import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.ui.Grid;
import com.mvc4g.client.Event;
-import org.gwt.mosaic.ui.client.DecoratedTabLayoutPanel;
-import org.gwt.mosaic.ui.client.Label;
-import org.gwt.mosaic.ui.client.ScrollLayoutPanel;
-import org.gwt.mosaic.ui.client.TabLayoutPanel;
+import org.gwt.mosaic.ui.client.*;
import org.gwt.mosaic.ui.client.layout.*;
import org.jboss.bpm.console.client.icons.ConsoleIconBundle;
@@ -41,6 +38,8 @@
private TabLayoutPanel tabPanel;
+ private DeckLayoutPanel deck;
+
public SettingsEditor(ApplicationContext appContext)
{
super(appContext);
@@ -54,66 +53,101 @@
tabPanel = new DecoratedTabLayoutPanel();
tabPanel.setPadding(5);
- final ScrollLayoutPanel layoutPanel = new ScrollLayoutPanel(
- new BoxLayout(BoxLayout.Orientation.VERTICAL)
- );
- layoutPanel.setPadding(5);
+ deck = new DeckLayoutPanel();
- // console info
- Label console = new Label("Console Info");
- console.setStyleName("bpm-label-header");
- layoutPanel.add(console, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+ deck.add( createSystemPanel());
+ deck.add( createPrefPanel());
- Grid g1 = new Grid(1,2);
- g1.setWidget(0,0, new Label("Version:"));
- g1.setWidget(0,1, new Label(Version.VERSION));
- g1.getColumnFormatter().setWidth(0, "20%");
+ tabPanel.add(deck, "Settings");
- layoutPanel.add(g1, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+ this.add(tabPanel, new BorderLayoutData(BorderLayout.Region.CENTER));
- // server info
- Label server = new Label("Server Info");
- server.setStyleName("bpm-label-header");
- layoutPanel.add(server, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+ // load server status
+ super.controller.handleEvent(
+ new Event(BootstrapAction.ID, null)
+ );
- ServerStatusView serverStatus = new ServerStatusView(appContext);
- serverStatus.initialize();
+ appContext.refreshView();
- Grid g2 = new Grid(1,2);
- g2.setWidget(0,0, new Label("Host:"));
- g2.setWidget(0,1, new Label(appContext.getConfig().getConsoleServerUrl()));
+ isInitialized = true;
+ }
- g2.getColumnFormatter().setWidth(0, "20%");
+ }
- layoutPanel.add(g2, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+ public void showView(String viewId)
+ {
+ if(viewId==null || viewId.equals("system"))
+ deck.showWidget(0);
+ else if(viewId.equals("preferences"))
+ deck.showWidget(1);
+ else
+ throw new IllegalArgumentException("Unknown viewId: "+viewId);
- LayoutPanel pluginPanel = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
- Label label = new Label("Plugins:");
- label.setStyleName("bpm-label-header");
+ layout();
+ }
- pluginPanel.add(label);
- pluginPanel.add(serverStatus);
+ private LayoutPanel createPrefPanel()
+ {
+ final ScrollLayoutPanel layoutPanel = new ScrollLayoutPanel(
+ new BoxLayout(BoxLayout.Orientation.VERTICAL)
+ );
+ layoutPanel.setPadding(5);
- layoutPanel.add(pluginPanel, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+ PreferencesView prefView = new PreferencesView();
+ layoutPanel.add(prefView);
+ controller.addView(PreferencesView.ID, prefView);
+
+ return layoutPanel;
+ }
- tabPanel.add(layoutPanel, "System Overview");
+ private LayoutPanel createSystemPanel()
+ {
+ final ScrollLayoutPanel layoutPanel = new ScrollLayoutPanel(
+ new BoxLayout(BoxLayout.Orientation.VERTICAL)
+ );
+ layoutPanel.setPadding(10);
- this.add(tabPanel, new BorderLayoutData(BorderLayout.Region.CENTER));
+ // console info
+ Label console = new Label("Console Info");
+ console.setStyleName("bpm-label-header");
+ layoutPanel.add(console, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
- // view and actions
- super.controller.addView(ServerStatusView.ID, serverStatus);
-
- // load server status
- super.controller.handleEvent(
- new Event(BootstrapAction.ID, null)
- );
+ Grid g1 = new Grid(1,2);
+ g1.setWidget(0,0, new Label("Version:"));
+ g1.setWidget(0,1, new Label(Version.VERSION));
+ g1.getColumnFormatter().setWidth(0, "20%");
- // repaint
- appContext.refreshView();
-
- isInitialized = true;
- }
+ layoutPanel.add(g1, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+ // server info
+ Label server = new Label("Server Info");
+ server.setStyleName("bpm-label-header");
+ layoutPanel.add(server, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+
+ ServerStatusView serverStatus = new ServerStatusView(appContext);
+ serverStatus.initialize();
+
+ Grid g2 = new Grid(1,2);
+ g2.setWidget(0,0, new Label("Host:"));
+ g2.setWidget(0,1, new Label(appContext.getConfig().getConsoleServerUrl()));
+
+ g2.getColumnFormatter().setWidth(0, "20%");
+
+ layoutPanel.add(g2, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+
+ LayoutPanel pluginPanel = new LayoutPanel(new BoxLayout(BoxLayout.Orientation.VERTICAL));
+ Label label = new Label("Plugins:");
+ label.setStyleName("bpm-label-header");
+
+ pluginPanel.add(label);
+ pluginPanel.add(serverStatus);
+
+ layoutPanel.add(pluginPanel, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
+
+ // view and actions
+ super.controller.addView(ServerStatusView.ID, serverStatus);
+
+ return layoutPanel;
}
public String getEditorId()
Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditorNavigation.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditorNavigation.java 2009-10-21 19:57:19 UTC (rev 846)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/SettingsEditorNavigation.java 2009-10-21 19:59:17 UTC (rev 847)
@@ -35,19 +35,25 @@
{
super.setTitle("Settings");
- TreeItem root = addItem("System");
- root.addItem("Overview");
+ TreeItem prefs = addItem("Preferences");
+ TreeItem root = addItem("System");
+
addTreeListener(
new TreeListener()
{
public void onTreeItemSelected(TreeItem treeItem)
{
- if("Overview".equals(treeItem.getText()))
+ if("System".equals(treeItem.getText()))
{
Workspace workspace = appContext.getWorkpace();
- workspace.showEditor(SettingsEditor.ID);
+ workspace.showEditor(SettingsEditor.ID, "system");
}
+ else if("Preferences".equals(treeItem.getText()))
+ {
+ Workspace workspace = appContext.getWorkpace();
+ workspace.showEditor(SettingsEditor.ID, "preferences");
+ }
}
public void onTreeItemStateChanged(TreeItem treeItem)
Added: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/common/HeaderLabel.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/common/HeaderLabel.java (rev 0)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/common/HeaderLabel.java 2009-10-21 19:59:17 UTC (rev 847)
@@ -0,0 +1,61 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.console.client.common;
+
+import org.gwt.mosaic.ui.client.Label;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class HeaderLabel extends Label
+{
+
+ public HeaderLabel()
+ {
+ applyStyle(false);
+ }
+
+ public HeaderLabel(String string)
+ {
+ super(string);
+ applyStyle(false);
+ }
+
+ public HeaderLabel(boolean invert)
+ {
+
+ }
+
+ public HeaderLabel(String string, boolean invert)
+ {
+ super(string);
+ applyStyle(invert);
+ }
+
+ private void applyStyle(boolean invert)
+ {
+ if(invert)
+ setStyleName("bpm-label-header-invert");
+ else
+ setStyleName("bpm-label-header");
+ }
+}
Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/common/IFrameWindowPanel.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/common/IFrameWindowPanel.java 2009-10-21 19:57:19 UTC (rev 846)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/common/IFrameWindowPanel.java 2009-10-21 19:59:17 UTC (rev 847)
@@ -80,8 +80,8 @@
layout.setStyleName("bpm-window-layout");
layout.setPadding(5);
// info
- Label header = new Label(title);
- header.setStyleName("bpm-label-header");
+ HeaderLabel header = new HeaderLabel(title, true);
+
layout.add(header, new BoxLayoutData(BoxLayoutData.FillStyle.HORIZONTAL));
windowPanel.addWindowCloseListener(new WindowCloseListener() {
Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditor.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditor.java 2009-10-21 19:57:19 UTC (rev 846)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/process/ProcessEditor.java 2009-10-21 19:59:17 UTC (rev 847)
@@ -155,7 +155,7 @@
ConsoleIconBundle icons = GWT.create(ConsoleIconBundle.class);
return new MenuSection(
- "Processes",
+ getTitle(),
icons.processIcon(),
new ProcessEditorNavigation(appContext)
);
Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java 2009-10-21 19:57:19 UTC (rev 846)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditor.java 2009-10-21 19:59:17 UTC (rev 847)
@@ -137,7 +137,7 @@
public String getTitle()
{
- return "Task Management";
+ return "Tasks";
}
public MenuSection provideMenuSection()
@@ -145,9 +145,21 @@
ConsoleIconBundle icons = GWT.create(ConsoleIconBundle.class);
return new MenuSection(
- "Tasks",
+ getTitle(),
icons.taskIcon(),
new TaskEditorNavigation(appContext)
);
}
+
+ public void showView(String viewId)
+ {
+ if(viewId==null || viewId.equals("group"))
+ tabPanel.selectTab(0);
+ else if(viewId.equals("personal"))
+ tabPanel.selectTab(1);
+ else
+ throw new IllegalArgumentException("Unknown viewId: "+viewId);
+
+ layout();
+ }
}
Modified: bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditorNavigation.java
===================================================================
--- bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditorNavigation.java 2009-10-21 19:57:19 UTC (rev 846)
+++ bpm-console/trunk/gui/war/src/main/java/org/jboss/bpm/console/client/task/TaskEditorNavigation.java 2009-10-21 19:59:17 UTC (rev 847)
@@ -36,19 +36,24 @@
{
super.setTitle("Tasks");
- TreeItem root = addItem("Task Management");
- TreeItem definitions = root.addItem("Task Lists");
+ TreeItem group = addItem("Group Tasks");
+ TreeItem personal = addItem("Personal Tasks");
addTreeListener(
new TreeListener()
{
public void onTreeItemSelected(TreeItem treeItem)
{
- if("Task Lists".equals(treeItem.getText()))
+ if("Group Tasks".equals(treeItem.getText()))
{
Workspace workspace = appContext.getWorkpace();
- workspace.showEditor(TaskEditor.ID);
+ workspace.showEditor(TaskEditor.ID, "group");
}
+ else if("Personal Tasks".equals(treeItem.getText()))
+ {
+ Workspace workspace = appContext.getWorkpace();
+ workspace.showEditor(TaskEditor.ID, "personal");
+ }
}
public void onTreeItemStateChanged(TreeItem treeItem)
Modified: bpm-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml
===================================================================
--- bpm-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml 2009-10-21 19:57:19 UTC (rev 846)
+++ bpm-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/Application.gwt.xml 2009-10-21 19:59:17 UTC (rev 847)
@@ -8,7 +8,7 @@
<inherits name="com.google.gwt.xml.XML" />
<!-- Add gwt-log support, default level `DEBUG` -->
- <inherits name="com.allen_sauer.gwt.log.gwt-log-DEBUG" />
+ <inherits name="com.allen_sauer.gwt.log.gwt-log-INFO" />
<!-- Inherit Mosaic Web Toolkit stuff. -->
<inherits name='org.gwt.mosaic.Mosaic' />
Modified: bpm-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css
===================================================================
--- bpm-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css 2009-10-21 19:57:19 UTC (rev 846)
+++ bpm-console/trunk/gui/war/src/main/resources/org/jboss/bpm/console/public/console.css 2009-10-21 19:59:17 UTC (rev 847)
@@ -23,12 +23,23 @@
.bpm-label-header {
background-color:#F8F8F8;
font-weight:BOLD;
+ font-size:18px;
+ color:#989898;
padding-bottom:2px;
padding-left:5px;
margin-bottom:5px;
}
-.bpm-headline {
+.bpm-label-header-invert {
+ background-color:#F8F8F8;
+ font-weight:bold;
+ font-size:18px;
+ padding-bottom:2px;
+ padding-left:5px;
+ margin-bottom:10px;
+}
+
+.bpm-headline {
font-weight:BOLD;
font-size:14px;
padding:10px;
Modified: bpm-console/trunk/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Editor.java
===================================================================
--- bpm-console/trunk/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Editor.java 2009-10-21 19:57:19 UTC (rev 846)
+++ bpm-console/trunk/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Editor.java 2009-10-21 19:59:17 UTC (rev 847)
@@ -79,7 +79,8 @@
*/
public void showView(String viewId)
{
- throw new IllegalArgumentException("Illegal call. This method should be overridden.");
+ if(viewId!=null)
+ throw new IllegalArgumentException("Illegal call. This method should be overridden.");
}
public abstract void initialize();
Added: bpm-console/trunk/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Preferences.java
===================================================================
--- bpm-console/trunk/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Preferences.java (rev 0)
+++ bpm-console/trunk/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Preferences.java 2009-10-21 19:59:17 UTC (rev 847)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.bpm.console.client;
+
+import com.google.gwt.user.client.Cookies;
+
+import java.util.Date;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class Preferences
+{
+ // Editor that should be launched at startup
+ public static final String BPM_DEFAULT_TOOL = "bpm.default.tool";
+
+ public static boolean has(String key)
+ {
+ return Preferences.get(key)!=null;
+ }
+
+ public static String get(String key)
+ {
+ return Cookies.getCookie(key);
+ }
+
+ public static void set(String key, String value)
+ {
+ Date twoWeeks = new Date(System.currentTimeMillis()+(2*604800*1000));
+ Cookies.setCookie(key, value, twoWeeks);
+ }
+
+ public static void clear(String key)
+ {
+ Cookies.removeCookie(key);
+ }
+}
Modified: bpm-console/trunk/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Workspace.java
===================================================================
--- bpm-console/trunk/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Workspace.java 2009-10-21 19:57:19 UTC (rev 846)
+++ bpm-console/trunk/workspace/workspace-api/src/main/java/org/jboss/bpm/console/client/Workspace.java 2009-10-21 19:59:17 UTC (rev 847)
@@ -21,13 +21,14 @@
*/
package org.jboss.bpm.console.client;
+import com.google.gwt.user.client.Command;
+import com.google.gwt.user.client.DeferredCommand;
import org.gwt.mosaic.ui.client.DeckLayoutPanel;
import org.gwt.mosaic.ui.client.layout.LayoutPanel;
-import com.google.gwt.user.client.Timer;
-import com.google.gwt.user.client.DeferredCommand;
-import com.google.gwt.user.client.Command;
-import com.google.gwt.user.client.DOM;
+import java.util.List;
+import java.util.ArrayList;
+
/**
* Maintains {@link Editor}'s
*
@@ -79,7 +80,7 @@
// display editor
this.showWidget(deck.index);
deck.editor.initialize();
- if(viewId!=null) deck.editor.showView(viewId);
+ deck.editor.showView(viewId);
DeferredCommand.addCommand(new Command() {
public void execute() {
@@ -112,6 +113,19 @@
return match;
}
+ public List<EditorRef> getEditors()
+ {
+ List<EditorRef> result = new ArrayList<EditorRef>(this.getWidgetCount());
+ for(int i=0; i<this.getWidgetCount(); i++)
+ {
+ EditorDeck deck = (EditorDeck) this.getWidget(i);
+ Editor editor = deck.editor;
+ result.add(new EditorRef(editor.getTitle(), editor.getEditorId()));
+ }
+
+ return result;
+ }
+
private class EditorDeck extends LayoutPanel
{
Editor editor;
@@ -122,6 +136,17 @@
super();
this.editor = editor;
}
+ }
+ public final class EditorRef
+ {
+ String title;
+ String id;
+
+ public EditorRef(String title, String id)
+ {
+ this.title = title;
+ this.id = id;
+ }
}
}
More information about the overlord-commits
mailing list