本文整理汇总了Java中org.insightech.er.editor.view.dialog.element.ModelPropertiesDialog类的典型用法代码示例。如果您正苦于以下问题:Java ModelPropertiesDialog类的具体用法?Java ModelPropertiesDialog怎么用?Java ModelPropertiesDialog使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ModelPropertiesDialog类属于org.insightech.er.editor.view.dialog.element包,在下文中一共展示了ModelPropertiesDialog类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: performRequestOpen
import org.insightech.er.editor.view.dialog.element.ModelPropertiesDialog; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void performRequestOpen() {
ERDiagram diagram = this.getDiagram();
ModelProperties copyModelProperties = (ModelProperties) diagram
.getDiagramContents().getSettings().getModelProperties()
.clone();
ModelPropertiesDialog dialog = new ModelPropertiesDialog(PlatformUI
.getWorkbench().getActiveWorkbenchWindow().getShell(),
copyModelProperties);
if (dialog.open() == IDialogConstants.OK_ID) {
ChangeModelPropertiesCommand command = new ChangeModelPropertiesCommand(
diagram, copyModelProperties);
this.executeCommand(command);
}
}
示例2: performRequestOpen
import org.insightech.er.editor.view.dialog.element.ModelPropertiesDialog; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void performRequestOpen() {
final ERDiagram diagram = getDiagram();
final ModelProperties copyModelProperties = diagram.getDiagramContents().getSettings().getModelProperties().clone();
final ModelPropertiesDialog dialog = new ModelPropertiesDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), copyModelProperties);
if (dialog.open() == IDialogConstants.OK_ID) {
final ChangeModelPropertiesCommand command = new ChangeModelPropertiesCommand(diagram, copyModelProperties);
executeCommand(command);
}
}