Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
开发团队
Flowable Engine
提交
01fe5fb7
F
Flowable Engine
项目概览
开发团队
/
Flowable Engine
通知
9
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Flowable Engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
01fe5fb7
编写于
3月 28, 2011
作者:
J
jbarrez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ACT-696: removed Constants
上级
833faeb6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
92 deletion
+4
-92
modules/activiti-webapp-explorer2/src/main/java/org/activiti/explorer/Constants.java
...lorer2/src/main/java/org/activiti/explorer/Constants.java
+0
-88
modules/activiti-webapp-explorer2/src/main/java/org/activiti/explorer/ui/management/job/JobDetailPanel.java
...g/activiti/explorer/ui/management/job/JobDetailPanel.java
+4
-4
未找到文件。
modules/activiti-webapp-explorer2/src/main/java/org/activiti/explorer/Constants.java
已删除
100644 → 0
浏览文件 @
833faeb6
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package
org.activiti.explorer
;
import
java.text.DateFormat
;
import
java.text.SimpleDateFormat
;
/**
* @author Joram Barrez
*/
public
class
Constants
{
public
static
final
String
THEME
=
"activiti"
;
public
static
final
String
LOGIN_LAYOUT
=
"login"
;
// Locations in the general layout
public
static
final
String
LOCATION_LOGIN
=
"login-content"
;
public
static
final
String
LOCATION_CONTENT
=
"content"
;
public
static
final
String
LOCATION_SEARCH
=
"search"
;
public
static
final
String
LOCATION_MAIN_MENU
=
"main-menu"
;
public
static
final
String
LOCATION_HIDDEN
=
"hidden"
;
// Css styles
public
static
final
String
STYLE_LOGIN_PAGE
=
"login-general"
;
public
static
final
String
STYLE_SMALL_TEXTFIELD
=
"small"
;
public
static
final
String
STYLE_SEARCHBOX
=
"searchBox"
;
public
static
final
String
STYLE_LOGOUT_BUTTON
=
"logout"
;
public
static
final
String
STYLE_USER_LABEL
=
"user"
;
public
static
final
String
STYLE_MENUBAR
=
"menubar"
;
public
static
final
String
STYLE_MENUBAR_BUTTON
=
"menu-button"
;
public
static
final
String
STYLE_ACTION_BAR
=
"action-bar"
;
public
static
final
String
STYLE_PROFILE_LAYOUT
=
"profile-layout"
;
public
static
final
String
STYLE_PROFILE_HEADER
=
"profile-header"
;
public
static
final
String
STYLE_PROFILE_FIELD
=
"profile-field"
;
public
static
final
String
STYLE_PROFILE_PICTURE
=
"profile-picture"
;
public
static
final
String
STYLE_LABEL_BOLD
=
"bold"
;
public
static
final
String
STYLE_TASK_LIST
=
"task-list"
;
public
static
final
String
STYLE_TASK_DETAILS
=
"task-details"
;
public
static
final
String
STYLE_TASK_DETAILS_HEADER
=
"task-details-header"
;
public
static
final
String
STYLE_TASK_COMMENT
=
"task-comment"
;
public
static
final
String
STYLE_TASK_COMMENT_AUTHOR
=
"task-comment-author"
;
public
static
final
String
STYLE_TASK_COMMENT_TIME
=
"task-comment-time"
;
public
static
final
String
STYLE_TASK_COMMENT_PICTURE
=
"task-comment-picture"
;
public
static
final
String
STYLE_PROCESS_DEFINITION_LIST
=
"proc-def-list"
;
public
static
final
String
STYLE_PROCESS_DEFINITION_DETAILS_HEADER
=
"proc-def-details-header"
;
public
static
final
String
STYLE_DATABASE_DETAILS
=
"database-details"
;
public
static
final
String
STYLE_DATABASE_TABLE_ROW
=
"database-table-row"
;
public
static
final
String
STYLE_DEPLOYMENT_DETAILS_HEADER
=
"deployment-details-header"
;
public
static
final
String
STYLE_DEPLOYMENT_UPLOAD_DESCRIPTION
=
"upload-description"
;
public
static
final
String
STYLE_DEPLOYMENT_UPLOAD_BUTTON
=
"upload-button"
;
public
static
final
String
STYLE_JOB_DETAILS_HEADER
=
"job-details-header"
;
public
static
final
String
STYLE_JOB_EXCEPTION_MESSAGE
=
"job-exception-message"
;
public
static
final
String
STYLE_JOB_EXCEPTION_TRACE
=
"job-exception-trace"
;
public
static
final
String
STYLE_FORMPROPERTY_READONLY
=
"formprop-readonly"
;
public
static
final
String
STYLE_FORMPROPERTY_LABEL
=
"formprop-label"
;
// Date formatting
public
static
final
DateFormat
DEFAULT_DATE_FORMATTER
=
new
SimpleDateFormat
(
"dd MMM yyyy - hh:mm"
);
// Default diagram image extension, when name cannot be deducted from resource name
public
static
final
String
DEFAULT_DIAGRAM_IMAGE_EXTENSION
=
"png"
;
}
modules/activiti-webapp-explorer2/src/main/java/org/activiti/explorer/ui/management/job/JobDetailPanel.java
浏览文件 @
01fe5fb7
...
...
@@ -18,9 +18,9 @@ import org.activiti.engine.ProcessEngines;
import
org.activiti.engine.impl.runtime.MessageEntity
;
import
org.activiti.engine.impl.runtime.TimerEntity
;
import
org.activiti.engine.runtime.Job
;
import
org.activiti.explorer.Constants
;
import
org.activiti.explorer.ExplorerApplication
;
import
org.activiti.explorer.Images
;
import
org.activiti.explorer.ui.ExplorerLayout
;
import
com.ocpsoft.pretty.time.PrettyTime
;
import
com.vaadin.ui.Alignment
;
...
...
@@ -139,7 +139,7 @@ public class JobDetailPanel extends Panel {
protected
void
addJobState
()
{
Label
processDefinitionHeader
=
new
Label
(
"Job Execution"
);
processDefinitionHeader
.
addStyleName
(
Constants
.
STYLE_JOB_DETAILS_HEADER
);
processDefinitionHeader
.
addStyleName
(
ExplorerLayout
.
STYLE_JOB_DETAILS_HEADER
);
processDefinitionHeader
.
setWidth
(
"95%"
);
addComponent
(
processDefinitionHeader
);
...
...
@@ -156,7 +156,7 @@ public class JobDetailPanel extends Panel {
// Exceptions
if
(
job
.
getExceptionMessage
()
!=
null
)
{
Label
exceptionMessageLabel
=
new
Label
(
"Error during last execution: "
+
job
.
getExceptionMessage
());
exceptionMessageLabel
.
addStyleName
(
Constants
.
STYLE_JOB_EXCEPTION_MESSAGE
);
exceptionMessageLabel
.
addStyleName
(
ExplorerLayout
.
STYLE_JOB_EXCEPTION_MESSAGE
);
layout
.
addComponent
(
exceptionMessageLabel
);
// Add Exception stacktrace
...
...
@@ -164,7 +164,7 @@ public class JobDetailPanel extends Panel {
Label
stackTraceLabel
=
new
Label
(
stack
);
stackTraceLabel
.
setContentMode
(
Label
.
CONTENT_PREFORMATTED
);
stackTraceLabel
.
addStyleName
(
Constants
.
STYLE_JOB_EXCEPTION_TRACE
);
stackTraceLabel
.
addStyleName
(
ExplorerLayout
.
STYLE_JOB_EXCEPTION_TRACE
);
stackTraceLabel
.
setSizeFull
();
Panel
stackPanel
=
new
Panel
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录