gmfとxpandを統合しようとしています。gmfをxpandと統合する
メニューを作成し、gmfマニフェストファイルの拡張機能を使用してコマンドを作成しました。 xpandジェネレータを呼び出そうとしています。
コマンドのコードとして、私が正常にワークフローのパスを取得することができた
public class customCommand extends AbstractHandler implements IHandler {
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
// TODO Auto-generated method stub
Shell s=HandlerUtil.getActiveShell(event);
MessageBox mb=new MessageBox(s,SWT.None);
WorkflowRunner runner = new WorkflowRunner();
Bundle bundle=Platform.getBundle("MistScriptGenerator");
URL wfUrl = bundle.getEntry("src/workflow/generator.oaw");
String wfFile = "";
try {
wfFile = FileLocator.toFileURL(wfUrl).getFile();
mb.setMessage(wfFile);
mb.open();
Map<String, String> properties = new HashMap<String, String>();
//properties.put("model", $diagramFile$.getLocation().toOSString());
properties=null;
boolean isSuccess = runner.run(wfFile,new org.openarchitectureware.workflow.monitor.NullProgressMonito r(), properties, null);
}
catch (Exception e)
{
}
return null;
}
}
下に示されています。 ワークフローを呼び出すときに、gmfダイアグラムファイルをワークフローに入力する必要があります。しかし、どのようにファイルのパスを与えることができますか?
別のワークベンチを開いて私のgmf digramを実行します: しかし、今、gmfダイアグラムファイルのパスはどのように取得できますか?
私は自分のワークフローにepackageを登録しました。
プロジェクトの期限はすぐにわかりますか?
こんにちは、私は2週間前にプロジェクトを終えました。うまくいけば、それは他の人には役に立つはずです:) – Ravi