< prev index next >
application/org.openjdk.jmc.ui/src/main/java/org/openjdk/jmc/ui/wizards/OnePageWizardDialog.java
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The contents of this file are subject to the terms of either the Universal Permissive License
* v 1.0 as shown at http://oss.oracle.com/licenses/upl
--- 1,8 ----
/*
! * Copyright (c) 2018, 2019, Oracle and/or its affiliates. All rights reserved.
! * Copyright (c) 2019, Red Hat Inc. All rights reserved.
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* The contents of this file are subject to the terms of either the Universal Permissive License
* v 1.0 as shown at http://oss.oracle.com/licenses/upl
*** 148,153 ****
--- 149,162 ----
OnePageWizardDialog d = new OnePageWizardDialog(Display.getCurrent().getActiveShell(), wp);
d.setWidthConstraint(width, width);
d.setHeightConstraint(height, height);
return d.open();
}
+
+ public static int openAndHideCancelButton(IWizardPage wp, int width, int height) {
+ OnePageWizardDialog d = new OnePageWizardDialog(Display.getCurrent().getActiveShell(), wp);
+ d.setHideCancelButton(true);
+ d.setWidthConstraint(width, width);
+ d.setHeightConstraint(height, height);
+ return d.open();
+ }
}
< prev index next >