*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
String commandLineClassName = "ClassA" + commandLineClassNameSuffix;
String manifestClassName;
if (hasUnicodeFileSystem()) {
manifestClassName = "ClassB" + unicode;
} else {
manifestClassName = "ClassB" + commandLineClassNameSuffix;
generateSource(commandLineClassName, manifestClassName);
generateSource(manifestClassName, commandLineClassName);
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
private static void compareLinesIgnoreCase(String lines1, String lines2) {
if (! (sortedLines(lines1).equalsIgnoreCase(sortedLines(lines2)))) {
fail("Sorted string contents differ");
try {
if (Windows.is()) {
environ.put("Foo","OldValue");
fooModifier.doIt(environ);
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
private static void compareLinesIgnoreCase(String lines1, String lines2) {
if (! (sortedLines(lines1).equalsIgnoreCase(sortedLines(lines2)))) {
fail("Sorted string contents differ");
try {
if (Windows.is()) {
environ.put("Foo","OldValue");
fooModifier.doIt(environ);
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
String commandLineClassName = "ClassA" + commandLineClassNameSuffix;
String manifestClassName;
if (hasUnicodeFileSystem()) {
manifestClassName = "ClassB" + unicode;
} else {
manifestClassName = "ClassB" + commandLineClassNameSuffix;
generateSource(commandLineClassName, manifestClassName);
generateSource(manifestClassName, commandLineClassName);
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
private static void compareLinesIgnoreCase(String lines1, String lines2) {
if (! (sortedLines(lines1).equalsIgnoreCase(sortedLines(lines2)))) {
fail("Sorted string contents differ");
try {
if (Windows.is()) {
environ.put("Foo","OldValue");
fooModifier.doIt(environ);
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
String commandLineClassName = "ClassA" + commandLineClassNameSuffix;
String manifestClassName;
if (hasUnicodeFileSystem()) {
manifestClassName = "ClassB" + unicode;
} else {
manifestClassName = "ClassB" + commandLineClassNameSuffix;
generateSource(commandLineClassName, manifestClassName);
generateSource(manifestClassName, commandLineClassName);
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
while ((c = r.read()) > 0)
if (c != '\r')
fail("Sorted string contents differ");
try {
if (Windows.is()) {
environ.put("Foo","OldValue");
fooModifier.doIt(environ);
String m = e.getMessage();
if (EnglishUnix.is() &&
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
fail("Sorted string contents differ");
try {
if (Windows.is()) {
environ.put("Foo","OldValue");
fooModifier.doIt(environ);
String m = e.getMessage();
if (EnglishUnix.is() &&
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
fail("Sorted string contents differ");
try {
if (Windows.is()) {
environ.put("Foo","OldValue");
fooModifier.doIt(environ);
String m = e.getMessage();
if (EnglishUnix.is() &&
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
private static void compareLinesIgnoreCase(String lines1, String lines2) {
if (! (sortedLines(lines1).equalsIgnoreCase(sortedLines(lines2)))) {
fail("Sorted string contents differ");
try {
if (Windows.is()) {
// Ignore magic environment variables added by the launcher
if (! e.getKey().equals("NLSPATH") &&
*
* This code is free software; you can redistribute it and/or modify it
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
private static void compareLinesIgnoreCase(String lines1, String lines2) {
if (! (sortedLines(lines1).equalsIgnoreCase(sortedLines(lines2)))) {
try {
if (Windows.is()) {
// Ignore magic environment variables added by the launcher
if (! e.getKey().equals("NLSPATH") &&
String m = e.getMessage();
if (EnglishUnix.is() &&
-----------------------------------------------------------------------------
This library is free software; you can redistribute it and/or modify it
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation,
import net.sf.okapi.common.filters.FilterConfigurationMapper;
import net.sf.okapi.common.filters.IFilterConfigurationEditor;
import net.sf.okapi.common.filters.IFilterConfigurationListEditor;
import net.sf.okapi.common.filterwriter.XLIFFWriter;
import net.sf.okapi.common.LocaleId;
String osName = System.getProperty("os.name");
if ( osName.startsWith("Mac OS")) {
}
if ( osName.startsWith("Windows") ) {
for ( String tmp : originalArgs ) {
if ( tmp.length() > 0 ) args.add(tmp);
-----------------------------------------------------------------------------
This library is free software; you can redistribute it and/or modify it
You should have received a copy of the GNU Lesser General Public License
along with this library; if not, write to the Free Software Foundation,
import net.sf.okapi.common.filters.FilterConfigurationMapper;
import net.sf.okapi.common.filters.IFilterConfigurationEditor;
import net.sf.okapi.common.filters.IFilterConfigurationListEditor;
import net.sf.okapi.common.filterwriter.XLIFFWriter;
import net.sf.okapi.common.LocaleId;
String osName = System.getProperty("os.name");
if ( osName.startsWith("Mac OS")) {
}
if ( osName.startsWith("Windows") ) {
for ( String tmp : originalArgs ) {
if ( tmp.length() > 0 ) args.add(tmp);
ops.add(new Option(MySeriesOptions.ACTIVE_FILTER,Option.STRING_CLASS,filter));
if (m.getExtendedState() != JFrame.ICONIFIED) {
public boolean accept(File dir, String name) {
if (name.matches("MySeriesLogs_([1-9]\\.html$|[0-9]\\.html\\.\\d+)")) {
});
if (files.length == 0) {
+ MyUsefulFunctions.listArray(null, true), true);
if (ans == JOptionPane.YES_OPTION) {
File file = files[i];
if (file.delete()) {
Desktop d = Desktop.getDesktop();
if (!Desktop.isDesktopSupported()) {
} else {
if (!d.isSupported(Desktop.Action.OPEN)) {
JTabbedPane tabs = (JTabbedPane) evt.getSource();
if (tabs.getComponentCount() == 0 || tabs.getSelectedComponent() == null) {
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* along with this program in the file lgpl21.txt
* If not, see <http://www.gnu.org/licenses/>.
// constants for system identification
// constants for file type identification (Mac only)
// system-identification statics
final String sysname = sysprop.getProperty("os.name","").toLowerCase();
if (sysname.startsWith("mac os x")) {
systemOS = systemMacOSX;
systemOS = systemMacOSC;
} else if (sysname.startsWith("windows")) {
systemOS = systemWindows;
*
* This program is free software: you can redistribute it and/or modify
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
QString arg = arguments.at(i);
if (arg.startsWith("-url=")) {
case Qz::BW_FirstAppWindow:
if (startingAfterCrash || (addTab && afterLaunch == 3)) {
if (!m_startingUrl.isEmpty()) {
if (addTab) {
{
#ifdef Q_WS_MAC
return QMainWindow::menuBar();
#endif
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
buff.append(str.charAt(i));
if (separator != null && (str.length() - i) % 2 == 0) {
if (osname.startsWith("Windows")) {
p = Runtime.getRuntime().exec(new String[] { "ipconfig", "/all"}, null);
} else if (osname.startsWith("Solaris") || osname.startsWith("SunOS")) {
"-n"});
if (hostName != null) {
if (macAddress != null) {
if (macAddress.indexOf(':') != -1) {
clockSeqAndNode |= MacAddress.parseLong(macAddress);
} else if (macAddress.startsWith("0x")) {
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License
*
* You may also distribute it and/or modify it under the terms of the
}
else if (osName.startsWith("Windows")) {
if (osName.indexOf("9") != -1) {
jvm = WINDOWS_9x;
// added the relevant parameter. Instead, regenerate the AppleEvent every time.
// There's probably a way to do this better; if any has any ideas, please let
if (!file.isFile()) {
if (FINDER_TYPE.equals(fileType.toString())) {
if (browser == null) {
*
* This program is free software: you can redistribute it and/or modify
* You should have received a copy of the European Union Public Licence
* along with this program. If not, see
{
if (workaround73229 == null)
{
/**
* Issue #102164 betrifft OOo 3.2. Es ist unklar, wann der Workaround entfernt
{
if (workaround102164 == null)
String version = getOOoVersion();
if (version != null && !version.startsWith("3.1") && !version.startsWith("2")
if (workaround102164.booleanValue())
{
/*
* Distributed as part of ScalaRA, a scientific research tool.
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110 USA
*/
new File(path);
} else if (_cwd.getAbsolutePath.startsWith(_sysCwd.getAbsolutePath)) {
/**
* Runs the given command (via the system command shell if found)
val os = System.getProperty("os.name");
if (os == "Windows 95" || os == "Windows 98" || os == "Windows ME") {
pb.command("command.exe", "/C", command);
} else if (os.startsWith("Windows")) {