當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。