当前位置: 首页>>代码示例>>Java>>正文


Java TableDialog类代码示例

本文整理汇总了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);
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:23,代码来源:TableOutlineEditPart.java

示例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());
    }
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:19,代码来源:ERTableEditPart.java

示例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);
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:27,代码来源:TableOutlineEditPart.java

示例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());
	}
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:22,代码来源:ERTableEditPart.java

示例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;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:6,代码来源:AttributeTabWrapper.java

示例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;
}
 
开发者ID:roundrop,项目名称:ermasterr,代码行数:6,代码来源:ConstraintTabWrapper.java

示例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;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:7,代码来源:AttributeTabWrapper.java

示例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;
}
 
开发者ID:kozake,项目名称:ermaster-k,代码行数:7,代码来源:ConstraintTabWrapper.java


注:本文中的org.insightech.er.editor.view.dialog.element.table.TableDialog类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。