Commit 35d6e74a authored by balaskoa's avatar balaskoa
Browse files

Revival toolbar items Xsd2ttcn and Generate Test Port Skeleton


Signed-off-by: default avatarbalaskoa <jeno.balasko@ericsson.com>
parent b9a569b1
......@@ -257,27 +257,11 @@
<command commandId="org.eclipse.titan.designer.actions.ConvertXSD2TTCN"
icon="icons/xsd2ttcn.gif" disabledIcon="icons/xsd2ttcn_d.gif"
label="Convert XSD files to TTCN-3" tooltip="Convert XSD files to TTCN-3">
<visibleWhen>
<not>
<or>
<systemTest property="os.name" value="Windows 7" />
<systemTest property="os.name" value="Windows Vista" />
</or>
</not>
</visibleWhen>
</command>
<command
commandId="org.eclipse.titan.designer.actions.GenerateTestPortSkeleton"
icon="icons/generate_testport.gif" disabledIcon="icons/generate_testport_d.gif"
label="Generate Test Port skeleton" tooltip="Generate Test Port skeleton">
<visibleWhen>
<not>
<or>
<systemTest property="os.name" value="Windows 7" />
<systemTest property="os.name" value="Windows Vista" />
</or>
</not>
</visibleWhen>
</command>
<command commandId="org.eclipse.titan.designer.actions.CheckVersion"
icon="icons/check_version.gif" disabledIcon="icons/check_version_d.gif"
......
......@@ -21,6 +21,7 @@ import org.eclipse.jface.action.IAction;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.DirectoryDialog;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.titan.common.logging.ErrorReporter;
import org.eclipse.titan.common.path.PathConverter;
import org.eclipse.titan.designer.consoles.TITANDebugConsole;
......@@ -96,7 +97,7 @@ public final class ConvertXSD2TTCN extends ExternalTitanAction {
Display.getDefault().syncExec(new Runnable() {
@Override
public void run() {
DirectoryDialog dialog = new DirectoryDialog(null, SWT.SAVE);
DirectoryDialog dialog = new DirectoryDialog(new Shell(Display.getDefault()), SWT.SAVE|SWT.PRIMARY_MODAL|SWT.FOCUSED|SWT.ON_TOP);
dialog.setFilterPath(project.getLocation().toOSString());
String outFolder = dialog.open();
if (outFolder != null) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment