|
推定所要時間
|
||
|---|---|---|
|
Creo Elements/Direct Model Manager のアクションメニューには、項目を追加できます。
このレッスンでは、Creo Elements/Direct Model Manager のアクションメニューを作成する方法について学習します。
|
説明:
|
5 分
|
|
演習:
|
15 分
|
|
|
セクション
|
#
|
アクションの例
|
|---|---|---|
|
アクション
|
1.0
|
ロード、BOM のスキャン、ファイルのエクスポート
|
|
プロパティ
|
2.0
|
DB プロパティ、テーブル編集、状態変更
|
|
編集
|
3.0
|
切り取り、コピー、貼り付け
|
|
パーミッション
|
4.0
|
専有、専有解除
|
|
関連追加
|
5.0
|
新規追加 (パーツ、サムネイル、変更記事)
|
|
初期値
|
6.0
|
比較、変更通知設定
|
package com.acme.action;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import com.osm.action.*;
import com.osm.datamgmt.ui.*;
public class AcmeAction extends WMAbstractAction {
/** Creates a new instance of AcmeAction */
public AcmeAction() {
super ("Acme Action");
}
public boolean isEnabled() {
return true;
}
public void actionPerformed(ActionEvent e) {
// Display a dialog that says hello world
String msg = "Hello World";
Component parentComp = WindowManager.getInstance().getActiveWindow();
JOptionPane.showMessageDialog(parentComp, msg);
}
}
<Class extends="DMModel, DMReleaseProcess">
<Name catalog="awm_stda" msg_num="258">MODEL_3D</Name>
<ActionMenuSection>1.0
<Action>com.acme.action.AcmeAction</Action>
</ActionMenuSection>
<ActionMenuSection>1.5
<Action>com.acme.action.AcmeAction_1</Action>
<Action>com.acme.action.AcmeAction_2</Action>
</ActionMenuSection>
</Class>
<Class extends="DTModel, DTReleaseProcess">
<Name catalog="awm_stda" msg_num="10">me_model</Name>
<ActionMenuSection>1.0
<Action>com.acme.action.AcmeAction</Action>
</ActionMenuSection>
<ActionMenuSection>1.5
<Action>com.acme.action.AcmeAction_1</Action>
<Action>com.acme.action.AcmeAction_2</Action>
</ActionMenuSection>
</Class>


