package com.gucio.launcher6; import com.ptc.cipjava.jxthrowable; import com.ptc.pfc.pfcCommand.UICommand; import com.ptc.pfc.pfcCommand.UICommandActionListener; import com.ptc.pfc.pfcGlobal.pfcGlobal; import com.ptc.pfc.pfcSession.Session; public class Launcher { public static String MSG_FILE = "messages.txt"; public static void start() throws jxthrowable { Session activeSession = pfcGlobal.GetProESession(); activeSession.UIShowMessageDialog("session started", null); UICommand uiCommand = activeSession.UICreateCommand("uiCommand", new UICommandActionListener() { @Override public long getptr() { // TODO Auto-generated method stub return 0; } @Override public void xdelete() throws jxthrowable { // TODO Auto-generated method stub } @Override public void OnCommand() throws jxthrowable { activeSession.UIShowMessageDialog("clicked", null); } }); // uiCommand.SetIcon("G:\\Pro_kurs\\J-Link\\eclipse\\Creo7\\creo\\gucio_small.gif"); uiCommand.Designate(MSG_FILE, "-L.launcher6.label", null, null); } public static void stop() throws jxthrowable { /* EMPTY */ } }