public class JavaConfig extends VirtualComponentAdapter
ICON_CRITICAL, ICON_INFORMATION, ICON_NOICON, ICON_QUERY, ICON_QUESTION, ICON_WARNING, MB_ABORTRETRYIGNORE, MB_CANCEL, MB_ENTER, MB_ENTERCANCEL, MB_OK, MB_OKCANCEL, MB_RETRYCANCEL, MB_YESNO, MB_YESNOCANCEL, MBID_CANCEL, MBID_DEFAULT, MBID_ENTER, MBID_IGNORE, MBID_NO, MBID_OK, MBID_RETRY, MBID_YES
Modifier and Type | Method and Description |
---|---|
static String |
addMaxStackSize(String params,
int ver)
Adds "-Xss1m" if none is specified for Java 16 or better to
workaround for bug in Java 16-17.0.2 (or perhaps higher).
|
static String |
getDefaultURL(String doc)
Find the default URL depending on the ports in the server to launch
the current application (app_current.html) in a browser.
|
static PhantomRuntime |
getEditorParallelRuntime(ClientSession cs)
Called when the client session attempts to connect to the Editor with a Parallel Run session.
|
static int |
getJVMDebuggingPort()
Gets the JVM debugging port.
|
static int |
getTargetServerJavaVersion()
Gets the configured target Java version of the Server.
|
static void |
initJavaCombo(VirtualPanel vp,
int ver)
Fills the "JAVA" combobox with versions MIN to MAX.
|
void |
onAction(VirtualPanel vp,
String controlID)
Push buttons and menu items generates this event when selected.
|
void |
onCheckedChange(VirtualPanel vp,
VirtualControl control,
String controlID,
int state)
Checkbox changes.
|
static String |
onEclipseLaunchClient(EclipseProject project,
String mode)
Eclipse will launch the client in Parallel Run and this method is called
to begin loading the application.
|
void |
onPanelCreate(VirtualPanel vp)
Upon panel creation, the INI file initializes the dialog box.
|
static String |
saveBuildBeforeRun(boolean doSignClientJarFiles,
Consumer<String> callback)
Eclipse will launch the client in Parallel Run and this method is called
to begin loading the application.
|
static String |
validateJavaDirectory(String dir)
Validates a Java 8/9/...
|
onAction, onAction, onContentChanged, onContentChanged, onControlEvent, onFocusGained, onFocusLost, onMenuAction, onPropertyChange, onSelectionChanged
onModalPanelCreate, onModalPanelProcessing, onPageActivated, onPanelClose, onPanelClosing, onPanelDestroy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
onPageActivated, onPanelClose, onPanelClosing, onPanelDestroy
public static String addMaxStackSize(String params, int ver)
params
- The parameters.ver
- The version.public static String onEclipseLaunchClient(EclipseProject project, String mode)
public static String saveBuildBeforeRun(boolean doSignClientJarFiles, Consumer<String> callback)
public static PhantomRuntime getEditorParallelRuntime(ClientSession cs)
public static String getDefaultURL(String doc)
public static void initJavaCombo(VirtualPanel vp, int ver)
public void onPanelCreate(VirtualPanel vp)
onPanelCreate
in interface VirtualPanelListener
onPanelCreate
in class VirtualPanelAdapter
vp
- The panel issuing the event.public void onCheckedChange(VirtualPanel vp, VirtualControl control, String controlID, int state)
onCheckedChange
in interface VirtualComponentListener
onCheckedChange
in class VirtualComponentAdapter
vp
- The panel issuing the event, parent of the control.control
- The control issuing the event.controlID
- The control ID issuing the event.state
- State (0=unchecked, 1=checked and 2=third state [only for check boxes]).public void onAction(VirtualPanel vp, String controlID)
onAction
in class VirtualComponentAdapter
vp
- The panel issuing the event, parent of the control.controlID
- The control ID issuing the event.public static int getJVMDebuggingPort()
public static int getTargetServerJavaVersion()
{@link Plaf#MIN_JAVA_VERSION}
or the smallest number of {@link Plaf#MAX_JAVA_VERSION}
and
the current Java version in {@link Plaf.javaVer}
.Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.