private String quotePath(String path) { if (Util.isLinux() || Util.isMac()) { // Quote for usage inside "", man sh, topic QUOTING: path = path.replaceAll("[\"$`]", "\\\\$0"); //$NON-NLS-1$ //$NON-NLS-2$ } // Windows: Can't quote, since explorer.exe has a very special command line parsing strategy. return path; }
if (count > MAX_RESOURCES_TO_TRANSFER) { String message = "Transfer aborted, too many resources: " + count + "."; //$NON-NLS-1$ //$NON-NLS-2$ if (Util.isLinux()) { message += "\nIf you are running in x11vnc environment please consider to switch to vncserver " + //$NON-NLS-1$ "+ vncviewer or to run x11vnc without clipboard support " + //$NON-NLS-1$
/** * Called after executed find action to update the history. */ private void updateFindHistory() { if (okToUse(fFindField)) { fFindField.removeModifyListener(fFindModifyListener); // XXX: Workaround for Combo bug on Linux (see bug 404202 and bug 410603) if (Util.isLinux()) fFindModifyListener.ignoreNextEvent(); updateHistory(fFindField, fFindHistory); fFindField.addModifyListener(fFindModifyListener); } }
/** * Called after executed find action to update the history. */ private void updateFindHistory() { if (okToUse(fFindField)) { fFindField.removeModifyListener(fFindModifyListener); // XXX: Workaround for Combo bug on Linux (see bug 404202 and bug 410603) if (Util.isLinux()) fFindModifyListener.ignoreNextEvent(); updateHistory(fFindField, fFindHistory); fFindField.addModifyListener(fFindModifyListener); } }
checkBox.setFont(JFaceResources.getDialogFont()); gd= new GridData(GridData.FILL, GridData.CENTER, false, false); int offset= Util.isMac() ? -4 : Util.isLinux() ? -2 : /* Windows et al. */ 3; gd.widthHint= checkBox.computeSize(SWT.DEFAULT, SWT.DEFAULT).x + offset; checkBox.setLayoutData(gd);
checkBox.setFont(JFaceResources.getDialogFont()); gd= new GridData(GridData.FILL, GridData.CENTER, false, false); int offset= Util.isMac() ? -4 : Util.isLinux() ? -2 : /* Windows et al. */ 3; gd.widthHint= checkBox.computeSize(SWT.DEFAULT, SWT.DEFAULT).x + offset; checkBox.setLayoutData(gd);
if (Util.isLinux() || Util.isMac()) { p = Runtime.getRuntime().exec(new String[] { "/bin/sh", "-c", launchCmd }, null, dir); //$NON-NLS-1$ //$NON-NLS-2$ } else {