msgErrURLConversion=The LocationURI can not be converted to the URL.
msgErrInvalidSimulator=The specified external simulator is invalid.
msgErrLaunchFailed=Google Chrome could not be found (%s). \n\nPlease install Google Chrome and specify the Google Chrome program location in Window->Preferences under "Tizen SDK/Web/Simulator".
+msgErrSimulatorFailed=Tizen Web Simulator could not be found (%s). \n\nPlease install Tizen Web Simulator and specify the program location in Window->Preferences under "Tizen SDK/Web/Simulator".
msgErrProfileWritableDirectory=Profile data location should be an existing writable directory.
msgErrProfileLengthExceeded=Profile data location should be shorter than %d characters.
msgPreferencePageDescription=General settings for the Tizen Web Simulator:
public static String msgErrFileMissing2;
public static String msgErrInvalidSimulator;
public static String msgErrLaunchFailed;
+ public static String msgErrSimulatorFailed;
public static String MsgErrProfileInvalid;
public static String msgErrProfileWritableDirectory;
public static String msgErrProfileLengthExceeded;
commandArgs.add(simulatorURL.toString());
commandArgs.add(userdataDir.toString());
+ File f = new File(store.getString(Settings.SIMULATOR_PATH));
+ if (!f.exists()) {
+ DialogUtil.openErrorDialog(getShell(), "Error", String.format(Messages.msgErrSimulatorFailed, store.getString(Settings.SIMULATOR_PATH)));
+ return null;
+ }
+
try {
return Runtime.getRuntime().exec(commandArgs.toArray(new String[commandArgs.size()]));
} catch (Exception e) {
msgErrURLConversion=The LocationURI can not be converted to the URL.
msgErrInvalidSimulator=The specified external simulator is invalid.
msgErrLaunchFailed=Google Chrome could not be found (%s). \n\nPlease install Google Chrome and specify the Google Chrome program location in Window->Preferences under "Tizen SDK/Web/Simulator".
+msgErrSimulatorFailed=Tizen Web Simulator could not be found (%s). \n\nPlease install Tizen Web Simulator and specify the program location in Window->Preferences under "Tizen SDK/Web/Simulator".
msgErrProfileWritableDirectory=Profile data location should be an existing writable directory.
msgErrProfileLengthExceeded=Profile data location should be shorter than %d characters.
msgPreferencePageDescription=General settings for the Tizen Web Simulator:
grpSimulator.setLayoutData( new GridData(GridData.FILL_HORIZONTAL));
grpSimulator.setLayout(new GridLayout());
grpSimulator.setText(Messages.Simulator_Settings);
- RadioGroupFieldEditor feUseInternal = new RadioGroupFieldEditor(Settings.USE_INTERNAL_SIMULATOR,Messages.Simulator_to_use, 1,
- new String[][]{ { Messages.Internal, Settings.TRUE },
- { Messages.User_specified, Settings.FALSE } }, new FieldEditorComposite(grpSimulator));
- addField(feUseInternal);
final Composite cpSimulatorDir = new FieldEditorComposite(grpSimulator);
final FieldEditor feSimulatorDir = new FileFieldEditor(Settings.SIMULATOR_PATH, Messages.EightSpacesIndent, cpSimulatorDir);
addField(feSimulatorDir);
initialize();
- feUseInternal.setPropertyChangeListener( new IPropertyChangeListener () {
- @Override
- public void propertyChange(PropertyChangeEvent event) {
- feSimulatorDir.setEnabled(Settings.FALSE.equals(event.getNewValue()), cpSimulatorDir);
- }});
feSimulatorDir.setEnabled(Settings.FALSE.equals(getPreferenceStore().getString(Settings.USE_INTERNAL_SIMULATOR)), cpSimulatorDir);
checkState();