Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
White Collar
BAPIDE
Commits
d49da95c
Commit
d49da95c
authored
Mar 26, 2025
by
王业明
Browse files
初始化 BAPIDE 1.5.0
parent
646dac8e
Changes
706
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
706 of 706+
files are displayed.
Plain diff
Email patch
cn.com.bankit.ide.bap.component.manager/src/cn/com/bankit/ide/bap/component/manager/dialogs/command/TypeCommand.java
0 → 100644
View file @
d49da95c
/**
* Special Declaration: These technical material reserved as the technical
* secrets by Bankit TECHNOLOGY have been protected by the "Copyright Law"
* "ordinances on Protection of Computer Software" and other relevant
* administrative regulations and international treaties. Without the written
* permission of the Company, no person may use (including but not limited to
* the illegal copy, distribute, display, image, upload, and download) and
* disclose the above technical documents to any third party. Otherwise, any
* infringer shall afford the legal liability to the company.
*
* 特别声明:本技术材料受《中华人民共和国著作权法》、《计算机软件保护条例》
* 等法律、法规、行政规章以及有关国际条约的保护,浙江宇信班克信息技术有限公
* 司享有知识产权、保留一切权利并视其为技术秘密。未经本公司书面许可,任何人
* 不得擅自(包括但不限于:以非法的方式复制、传播、展示、镜像、上载、下载)使
* 用,不得向第三方泄露、透露、披露。否则,本公司将依法追究侵权者的法律责任。
* 特此声明!
*
* Copyright(C) 2013 Bankit Tech, All rights reserved.
*/
/*
* cn.com.bankit.ide.bap.component.manager.dialogs.TypeCommand.java
* Created by zkp @ 2013-5-8 下午4:55:47
*/
package
cn.com.bankit.ide.bap.component.manager.dialogs.command
;
import
cn.com.bankit.common.castor.model.component.InParameter
;
import
cn.com.bankit.common.castor.model.component.OutParameter
;
/**
* <DL>
* <DT><B> 标题. </B></DT>
* <p>
* <DD>详细介绍</DD>
* </DL>
* <p>
*
* <DL>
* <DT><B>使用范例</B></DT>
* <p>
* <DD>使用范例说明</DD>
* </DL>
* <p>
*
* @author zkp $Author$
* @author 浙江宇信班克信息技术有限公司
* @version $Id$
*/
public
class
TypeCommand
extends
ParameterCommand
{
/**
*
* @see cn.com.bankit.ide.bap.util.command.IBAPCommand#execute()
*/
@Override
public
void
execute
()
{
Object
obj
=
object
;
if
(
obj
instanceof
InParameter
)
{
InParameter
p
=
(
InParameter
)
obj
;
oldValue
=
p
.
getType
();
p
.
setType
(
newValue
);
}
else
if
(
obj
instanceof
OutParameter
)
{
OutParameter
p
=
(
OutParameter
)
obj
;
oldValue
=
p
.
getType
();
p
.
setType
(
newValue
);
}
}
/**
*
* @see cn.com.bankit.ide.bap.util.command.IBAPCommand#undo()
*/
@Override
public
void
undo
()
{
Object
obj
=
object
;
if
(
obj
instanceof
InParameter
)
{
InParameter
p
=
(
InParameter
)
obj
;
p
.
setType
(
oldValue
);
}
else
if
(
obj
instanceof
OutParameter
)
{
OutParameter
p
=
(
OutParameter
)
obj
;
p
.
setType
(
oldValue
);
}
}
}
cn.com.bankit.ide.bap.component.manager/src/cn/com/bankit/ide/bap/component/manager/dialogs/command/UpParameterCommand.java
0 → 100644
View file @
d49da95c
/**
* Special Declaration: These technical material reserved as the technical
* secrets by Bankit TECHNOLOGY have been protected by the "Copyright Law"
* "ordinances on Protection of Computer Software" and other relevant
* administrative regulations and international treaties. Without the written
* permission of the Company, no person may use (including but not limited to
* the illegal copy, distribute, display, image, upload, and download) and
* disclose the above technical documents to any third party. Otherwise, any
* infringer shall afford the legal liability to the company.
*
* 特别声明:本技术材料受《中华人民共和国著作权法》、《计算机软件保护条例》
* 等法律、法规、行政规章以及有关国际条约的保护,浙江宇信班克信息技术有限公
* 司享有知识产权、保留一切权利并视其为技术秘密。未经本公司书面许可,任何人
* 不得擅自(包括但不限于:以非法的方式复制、传播、展示、镜像、上载、下载)使
* 用,不得向第三方泄露、透露、披露。否则,本公司将依法追究侵权者的法律责任。
* 特此声明!
*
* Copyright(C) 2013 Bankit Tech, All rights reserved.
*/
/*
* cn.com.bankit.ide.bap.component.manager.dialogs.UpParameterCommand.java
* Created by zkp @ 2013-5-28 下午3:54:29
*/
package
cn.com.bankit.ide.bap.component.manager.dialogs.command
;
/**
* <DL>
* <DT><B> 标题. </B></DT>
* <p>
* <DD>详细介绍</DD>
* </DL>
* <p>
*
* <DL>
* <DT><B>使用范例</B></DT>
* <p>
* <DD>使用范例说明</DD>
* </DL>
* <p>
*
* @author zkp $Author$
* @author 浙江宇信班克信息技术有限公司
* @version $Id$
*/
public
class
UpParameterCommand
extends
DownParameterCommand
{
/**
*
* @see cn.com.bankit.ide.bap.util.command.IBAPCommand#execute()
*/
@Override
public
void
execute
()
{
for
(
int
index
=
0
;
index
<
arrays
.
length
;
index
++){
if
(
arrays
[
index
]
==
current
){
if
(
index
>
0
){
Object
pp
=
arrays
[
index
-
1
];
arrays
[
index
-
1
]
=
current
;
arrays
[
index
]
=
pp
;
swapParameter
(
index
-
1
,
index
);
break
;
}
}
}
}
/**
*
* @see cn.com.bankit.ide.bap.util.command.IBAPCommand#undo()
*/
@Override
public
void
undo
()
{
for
(
int
index
=
0
;
index
<
arrays
.
length
;
index
++){
if
(
arrays
[
index
]
==
current
){
if
(
index
<
arrays
.
length
-
1
){
Object
pp
=
arrays
[
index
+
1
];
arrays
[
index
+
1
]
=
current
;
arrays
[
index
]
=
pp
;
swapParameter
(
index
+
1
,
index
);
break
;
}
}
}
}
}
cn.com.bankit.ide.bap.component.manager/src/cn/com/bankit/ide/bap/component/manager/dialogs/command/ValueCommand.java
0 → 100644
View file @
d49da95c
/*
* cn.com.bankit.ide.bap.component.manager.dialogs.ValueParameter.java
* Created by zkp @ 2013-5-8 下午4:56:55
*/
package
cn.com.bankit.ide.bap.component.manager.dialogs.command
;
import
cn.com.bankit.common.castor.model.component.InParameter
;
import
cn.com.bankit.common.castor.model.component.OutParameter
;
import
cn.com.bankit.common.castor.model.component.Transition
;
public
class
ValueCommand
extends
ParameterCommand
{
@Override
public
void
execute
()
{
Object
obj
=
object
;
if
(
obj
instanceof
InParameter
)
{
InParameter
p
=
(
InParameter
)
obj
;
oldValue
=
p
.
getLabel
();
p
.
setLabel
(
newValue
);
}
else
if
(
obj
instanceof
OutParameter
)
{
OutParameter
p
=
(
OutParameter
)
obj
;
oldValue
=
p
.
getLabel
();
p
.
setLabel
(
newValue
);
}
else
if
(
obj
instanceof
Transition
)
{
Transition
t
=
(
Transition
)
obj
;
oldValue
=
t
.
getDescription
();
t
.
setDescription
(
newValue
);
}
}
@Override
public
void
undo
()
{
Object
obj
=
object
;
if
(
obj
instanceof
InParameter
)
{
InParameter
p
=
(
InParameter
)
obj
;
p
.
setLabel
(
oldValue
);
}
else
if
(
obj
instanceof
OutParameter
)
{
OutParameter
p
=
(
OutParameter
)
obj
;
p
.
setLabel
(
oldValue
);
}
else
if
(
obj
instanceof
Transition
)
{
Transition
t
=
(
Transition
)
obj
;
t
.
setDescription
(
oldValue
);
}
}
}
cn.com.bankit.ide.bap.component.manager/src/cn/com/bankit/ide/bap/component/manager/handler/ComponentManagerHandler.java
0 → 100644
View file @
d49da95c
/**
* Special Declaration: These technical material reserved as the technical
* secrets by Bankit TECHNOLOGY have been protected by the "Copyright Law"
* "ordinances on Protection of Computer Software" and other relevant
* administrative regulations and international treaties. Without the written
* permission of the Company, no person may use (including but not limited to
* the illegal copy, distribute, display, image, upload, and download) and
* disclose the above technical documents to any third party. Otherwise, any
* infringer shall afford the legal liability to the company.
*
* 特别声明:本技术材料受《中华人民共和国著作权法》、《计算机软件保护条例》
* 等法律、法规、行政规章以及有关国际条约的保护,浙江宇信班克信息技术有限公
* 司享有知识产权、保留一切权利并视其为技术秘密。未经本公司书面许可,任何人
* 不得擅自(包括但不限于:以非法的方式复制、传播、展示、镜像、上载、下载)使
* 用,不得向第三方泄露、透露、披露。否则,本公司将依法追究侵权者的法律责任。
* 特此声明!
*
* Copyright(C) 2012 Bankit Tech, All rights reserved.
*/
/*
* cn.com.bankit.ide.bap.product.action.ComponentManagerHandler.java
* Created by 朱克平 @ 2012-6-4 下午4:26:15
*/
package
cn.com.bankit.ide.bap.component.manager.handler
;
import
org.eclipse.core.commands.AbstractHandler
;
import
org.eclipse.core.commands.ExecutionEvent
;
import
org.eclipse.core.commands.ExecutionException
;
import
org.eclipse.ui.PartInitException
;
import
org.eclipse.ui.handlers.HandlerUtil
;
import
cn.com.bankit.ide.bap.component.manager.viewer.ComponentViewer
;
/**
* <DL>
* <DT><B> 标题. </B></DT>
* <p>
* <DD>详细介绍</DD>
* </DL>
* <p>
*
* <DL>
* <DT><B>使用范例</B></DT>
* <p>
* <DD>使用范例说明</DD>
* </DL>
* <p>
*
* @author 朱克平 $Author$
* @author 浙江宇信班克信息技术有限公司
* @version $Id$
*/
public
class
ComponentManagerHandler
extends
AbstractHandler
{
@Override
public
Object
execute
(
ExecutionEvent
event
)
throws
ExecutionException
{
try
{
HandlerUtil
.
getActiveWorkbenchWindow
(
event
).
getActivePage
().
showView
(
ComponentViewer
.
ID
);
}
catch
(
PartInitException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
return
null
;
}
}
cn.com.bankit.ide.bap.component.manager/src/cn/com/bankit/ide/bap/component/manager/handler/UpdateHandler.java
0 → 100644
View file @
d49da95c
/**
* Special Declaration: These technical material reserved as the technical
* secrets by Bankit TECHNOLOGY have been protected by the "Copyright Law"
* "ordinances on Protection of Computer Software" and other relevant
* administrative regulations and international treaties. Without the written
* permission of the Company, no person may use (including but not limited to
* the illegal copy, distribute, display, image, upload, and download) and
* disclose the above technical documents to any third party. Otherwise, any
* infringer shall afford the legal liability to the company.
*
* 特别声明:本技术材料受《中华人民共和国著作权法》、《计算机软件保护条例》
* 等法律、法规、行政规章以及有关国际条约的保护,浙江宇信班克信息技术有限公
* 司享有知识产权、保留一切权利并视其为技术秘密。未经本公司书面许可,任何人
* 不得擅自(包括但不限于:以非法的方式复制、传播、展示、镜像、上载、下载)使
* 用,不得向第三方泄露、透露、披露。否则,本公司将依法追究侵权者的法律责任。
* 特此声明!
*
* Copyright(C) 2013 Bankit Tech, All rights reserved.
*/
/*
* cn.com.bankit.ide.bap.component.manager.handler.UpdateHandler.java
* Created by zkp @ 2013-6-5 上午10:24:39
*/
package
cn.com.bankit.ide.bap.component.manager.handler
;
import
java.lang.reflect.InvocationTargetException
;
import
java.util.ArrayList
;
import
java.util.List
;
import
org.eclipse.core.commands.AbstractHandler
;
import
org.eclipse.core.commands.ExecutionEvent
;
import
org.eclipse.core.commands.ExecutionException
;
import
org.eclipse.core.resources.IContainer
;
import
org.eclipse.core.resources.IFile
;
import
org.eclipse.core.runtime.CoreException
;
import
org.eclipse.core.runtime.IProgressMonitor
;
import
org.eclipse.core.runtime.IStatus
;
import
org.eclipse.core.runtime.Status
;
import
org.eclipse.core.runtime.jobs.Job
;
import
org.eclipse.jface.dialogs.IDialogConstants
;
import
org.eclipse.jface.dialogs.MessageDialog
;
import
org.eclipse.jface.operation.IRunnableWithProgress
;
import
org.eclipse.swt.widgets.Display
;
import
org.eclipse.ui.PlatformUI
;
import
cn.com.bankit.ide.bap.component.manager.dialogs.AppSelectDialog
;
import
cn.com.bankit.ide.bap.component.manager.update.UpdateDelegator
;
import
cn.com.bankit.ide.bap.component.manager.update.UpdateModel
;
import
cn.com.bankit.ide.bap.component.manager.visitor.BapwlVisitor
;
/**
* <DL>
* <DT><B> 流程升级的入口. </B></DT>
* <p>
* <DD>详细介绍</DD>
* </DL>
* <p>
*
* <DL>
* <DT><B>使用范例</B></DT>
* <p>
* <DD>使用范例说明</DD>
* </DL>
* <p>
*
* @author zkp $Author$
* @author 浙江宇信班克信息技术有限公司
* @version $Id$
*/
public
class
UpdateHandler
extends
AbstractHandler
{
/**
* @param event
* @return
* @throws ExecutionException
* @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
*/
@Override
public
Object
execute
(
ExecutionEvent
event
)
throws
ExecutionException
{
final
List
<
IContainer
>
list
=
new
ArrayList
<
IContainer
>();
try
{
//搜索应用
PlatformUI
.
getWorkbench
().
getProgressService
()
.
busyCursorWhile
(
new
IRunnableWithProgress
()
{
@Override
public
void
run
(
IProgressMonitor
monitor
)
throws
InvocationTargetException
,
InterruptedException
{
monitor
.
beginTask
(
"正在搜索应用,请稍候......"
,
IProgressMonitor
.
UNKNOWN
);
list
.
addAll
(
UpdateDelegator
.
getSelect
());
}
});
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
//选择需要升级的应用
update
(
list
);
return
null
;
}
/**
*
* @param list
*/
protected
void
update
(
final
List
<
IContainer
>
list
)
{
AppSelectDialog
dialog
=
new
AppSelectDialog
(
Display
.
getDefault
()
.
getShells
()[
0
]);
dialog
.
setInput
(
list
);
if
(
dialog
.
open
()
==
IDialogConstants
.
OK_ID
)
{
final
List
<
IContainer
>
selectApp
=
dialog
.
getSelectApp
();
final
List
<
UpdateModel
>
models
=
dialog
.
getUpdateModels
();
Job
job
=
new
Job
(
""
)
{
@Override
protected
IStatus
run
(
IProgressMonitor
monitor
)
{
monitor
.
beginTask
(
"正在执行组件升级,请稍候......"
,
IProgressMonitor
.
UNKNOWN
);
List
<
IFile
>
selectfiles
=
new
ArrayList
<
IFile
>();
BapwlVisitor
visitor
=
new
BapwlVisitor
();
//遍历所有流程
for
(
IContainer
container
:
selectApp
)
{
try
{
container
.
accept
(
visitor
);
selectfiles
.
addAll
(
visitor
.
getFiles
());
visitor
.
getFiles
().
clear
();
}
catch
(
CoreException
e
)
{
e
.
printStackTrace
();
}
}
//升级流程
UpdateDelegator
.
update
(
selectfiles
,
models
);
Display
.
getDefault
().
asyncExec
(
new
Runnable
()
{
public
void
run
()
{
MessageDialog
.
openInformation
(
Display
.
getDefault
()
.
getShells
()[
0
],
"流程升级完毕"
,
"流程升级完毕!"
);
}
});
return
Status
.
OK_STATUS
;
}
};
job
.
setUser
(
true
);
job
.
schedule
();
}
}
}
cn.com.bankit.ide.bap.component.manager/src/cn/com/bankit/ide/bap/component/manager/handler/ValidateHandler.java
0 → 100644
View file @
d49da95c
package
cn.com.bankit.ide.bap.component.manager.handler
;
import
org.eclipse.core.commands.AbstractHandler
;
import
org.eclipse.core.commands.ExecutionEvent
;
import
org.eclipse.core.commands.ExecutionException
;
import
org.eclipse.core.runtime.jobs.Job
;
import
org.eclipse.jface.dialogs.IDialogConstants
;
import
org.eclipse.swt.widgets.Display
;
import
cn.com.bankit.ide.bap.component.manager.checker.CheckJob
;
import
cn.com.bankit.ide.bap.component.manager.dialogs.ShowAppDialog
;
/**
* Special Declaration: These technical material reserved as the technical
* secrets by Bankit TECHNOLOGY have been protected by the "Copyright Law"
* "ordinances on Protection of Computer Software" and other relevant
* administrative regulations and international treaties. Without the written
* permission of the Company, no person may use (including but not limited to
* the illegal copy, distribute, display, image, upload, and download) and
* disclose the above technical documents to any third party. Otherwise, any
* infringer shall afford the legal liability to the company.
*
* 特别声明:本技术材料受《中华人民共和国著作权法》、《计算机软件保护条例》
* 等法律、法规、行政规章以及有关国际条约的保护,浙江宇信班克信息技术有限公
* 司享有知识产权、保留一切权利并视其为技术秘密。未经本公司书面许可,任何人
* 不得擅自(包括但不限于:以非法的方式复制、传播、展示、镜像、上载、下载)使
* 用,不得向第三方泄露、透露、披露。否则,本公司将依法追究侵权者的法律责任。
* 特此声明!
*
* Copyright(C) 2013 Bankit Tech, All rights reserved.
*/
/*
* .ValidateHandler.java
* Created by zkp @ 2013-7-1 上午10:20:58
*/
/**
* <DL>
* <DT><B> 检查工作空间中的组件是否与组件定义不一致. </B></DT>
* <p>
* <DD>1.先选择应用。
* 2.验证应用中的流程是否与组件定义一致。</DD>
* </DL>
* <p>
*
* <DL>
* <DT><B>使用范例</B></DT>
* <p>
* <DD>使用范例说明</DD>
* </DL>
* <p>
*
* @author zkp $Author$
* @author 浙江宇信班克信息技术有限公司
* @version $Id$
*/
public
class
ValidateHandler
extends
AbstractHandler
{
/**
* @param event
* @return
* @throws ExecutionException
* @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
*/
@Override
public
Object
execute
(
ExecutionEvent
event
)
throws
ExecutionException
{
//选择APP
ShowAppDialog
dialog
=
new
ShowAppDialog
(
Display
.
getDefault
()
.
getShells
()[
0
]);
if
(
dialog
.
open
()
==
IDialogConstants
.
OK_ID
)
{
//检查流程
Job
checkJob
=
new
CheckJob
(
dialog
.
getApps
());
checkJob
.
setUser
(
true
);
checkJob
.
schedule
();
}
return
null
;
}
}
Prev
1
…
32
33
34
35
36
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment