本文整理汇总了Java中org.insightech.er.editor.view.dialog.element.table.TableDialog类的典型用法代码示例。如果您正苦于以下问题:Java TableDialog类的具体用法?Java TableDialog怎么用?Java TableDialog使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
TableDialog类属于org.insightech.er.editor.view.dialog.element.table包,在下文中一共展示了TableDialog类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: performRequest
import org.insightech.er.editor.view.dialog.element.table.TableDialog; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void performRequest(final Request request) {
final ERTable table = (ERTable) getModel();
final ERDiagram diagram = (ERDiagram) getRoot().getContents().getModel();
if (request.getType().equals(RequestConstants.REQ_OPEN)) {
final ERTable copyTable = table.copyData();
final TableDialog dialog = new TableDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), getViewer(), copyTable);
if (dialog.open() == IDialogConstants.OK_ID) {
final CompoundCommand command = ERTableEditPart.createChangeTablePropertyCommand(diagram, table, copyTable);
execute(command.unwrap());
}
}
super.performRequest(request);
}
示例2: performRequestOpen
import org.insightech.er.editor.view.dialog.element.table.TableDialog; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void performRequestOpen() {
final ERTable table = (ERTable) getModel();
final ERDiagram diagram = getDiagram();
final ERTable copyTable = table.copyData();
final TableDialog dialog = new TableDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(), getViewer(), copyTable);
if (dialog.open() == IDialogConstants.OK_ID) {
final CompoundCommand command = createChangeTablePropertyCommand(diagram, table, copyTable);
executeCommand(command.unwrap());
}
}
示例3: performRequest
import org.insightech.er.editor.view.dialog.element.table.TableDialog; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void performRequest(Request request) {
ERTable table = (ERTable) this.getModel();
ERDiagram diagram = (ERDiagram) this.getRoot().getContents().getModel();
if (request.getType().equals(RequestConstants.REQ_OPEN)) {
ERTable copyTable = table.copyData();
TableDialog dialog = new TableDialog(PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getShell(), this.getViewer(),
copyTable);
if (dialog.open() == IDialogConstants.OK_ID) {
CompoundCommand command = ERTableEditPart
.createChangeTablePropertyCommand(diagram, table,
copyTable);
this.execute(command.unwrap());
}
}
super.performRequest(request);
}
示例4: performRequestOpen
import org.insightech.er.editor.view.dialog.element.table.TableDialog; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
@Override
public void performRequestOpen() {
ERTable table = (ERTable) this.getModel();
ERDiagram diagram = this.getDiagram();
ERTable copyTable = table.copyData();
TableDialog dialog = new TableDialog(PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getShell(), this.getViewer(),
copyTable);
if (dialog.open() == IDialogConstants.OK_ID) {
CompoundCommand command = createChangeTablePropertyCommand(diagram,
table, copyTable);
this.executeCommand(command.unwrap());
}
}
示例5: AttributeTabWrapper
import org.insightech.er.editor.view.dialog.element.table.TableDialog; //导入依赖的package包/类
public AttributeTabWrapper(final TableDialog tableDialog, final TabFolder parent, final ERTable copyData) {
super(tableDialog, parent, copyData);
this.copyData = copyData;
}
示例6: ConstraintTabWrapper
import org.insightech.er.editor.view.dialog.element.table.TableDialog; //导入依赖的package包/类
public ConstraintTabWrapper(final TableDialog tableDialog, final TabFolder parent, final ERTable copyData) {
super(tableDialog, parent, "label.constraint.and.option");
this.copyData = copyData;
}
示例7: AttributeTabWrapper
import org.insightech.er.editor.view.dialog.element.table.TableDialog; //导入依赖的package包/类
public AttributeTabWrapper(TableDialog tableDialog, TabFolder parent,
ERTable copyData) {
super(tableDialog, parent, copyData);
this.copyData = copyData;
}
示例8: ConstraintTabWrapper
import org.insightech.er.editor.view.dialog.element.table.TableDialog; //导入依赖的package包/类
public ConstraintTabWrapper(TableDialog tableDialog, TabFolder parent,
ERTable copyData) {
super(tableDialog, parent, "label.constraint.and.option");
this.copyData = copyData;
}