*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* 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 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
String osName = System.getProperty("os.name");
if (osName.startsWith("Windows")) {
isWindows = true;
if (osName.startsWith("Windows 9") ||
osName.startsWith("Windows Me"))
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* 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
* questions.
String osName = System.getProperty("os.name");
if (osName.startsWith("Windows")) {
isWindows = true;
if (osName.startsWith("Windows 9") ||
osName.startsWith("Windows Me"))
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
Runtime runtime = Runtime.getRuntime();
if (osName.startsWith("Windows 9")) {
process = runtime.exec("command.com /c echo %windir%");
} catch (SecurityException e) {
// should continue if this fails
}
String osName = System.getProperty("os.name");
if (windir == null) {
try {
} catch (IOException e) {
// should continue if this fails
}
/*
* OperatingSystem.java - Abstracts away OS-specific stuff
* :tabSize=8:indentSize=8:noTabs=false:
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
String osName = System.getProperty("os.name");
if(osName.startsWith("Windows 9")
|| osName.equals("Windows ME"))
os = new Windows9x();
else if(osName.startsWith("Windows"))
os = new WindowsNT();
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
Runtime runtime = Runtime.getRuntime();
if (osName.startsWith("Windows 9")) {
process = runtime.exec("command.com /c echo %windir%");
} catch (SecurityException e) {
// should continue if this fails
}
String osName = System.getProperty("os.name");
if (windir == null) {
try {
} catch (IOException e) {
// should continue if this fails
}
/*
* OperatingSystem.java - Abstracts away OS-specific stuff
* Copyright (C) 2001 Slava Pestov
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
String osName = System.getProperty("os.name");
if(osName.startsWith("Windows 9")
|| osName.equals("Windows ME"))
os = new Windows9x();
else if(osName.startsWith("Windows"))
os = new WindowsNT();
/*
* OperatingSystem.java - Abstracts away OS-specific stuff
* Copyright (C) 2001 Slava Pestov
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
String osName = System.getProperty("os.name");
if(osName.startsWith("Windows 9"))
os = new Windows9x();
else if(osName.startsWith("Windows"))
os = new WindowsNT();
String[] extensionsToTry;
if(commandName.indexOf('.') == -1)
extensionsToTry = getExtensionsToTry();
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* 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.
String os = System.getProperty("os.name");
if (os.startsWith("Windows 9") || os.equals("Windows Me")) {
throw new RuntimeException(
// ensure that process status helper is loaded (psapi.dll)
if (!isProcessStatusHelperInitialized) {
synchronized (WindowsAttachProvider.class) {
// indicates if psapi.dll has been initialized
private static volatile boolean isProcessStatusHelperInitialized;
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* 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
* questions.
String os = System.getProperty("os.name");
if (os.startsWith("Windows 9") || os.equals("Windows Me")) {
throw new RuntimeException(
// For those processes that have loaded a library named "jvm.dll"
// then we attempt to attach. If we succeed then we have a 6.0+ VM.
int processes[] = new int[1024];
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
Runtime runtime = Runtime.getRuntime();
if (osName.startsWith("Windows 9")) {
process = runtime.exec("command.com /c echo %windir%");
} catch (SecurityException e) {
// should continue if this fails
}
String osName = System.getProperty("os.name");
if (windir == null) {
try {
} catch (IOException e) {
// should continue if this fails
}
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
Runtime runtime = Runtime.getRuntime();
if (osName.startsWith("Windows 9")) {
process = runtime.exec("command.com /c echo %windir%");
} catch (SecurityException e) {
// should continue if this fails
}
String osName = System.getProperty("os.name");
if (windir == null) {
try {
} catch (IOException e) {
// should continue if this fails
}
def pbar_pulse():
if(not self.should_pulse):
return False
return self.should_pulse
if(label is not None):
self.label.set_markup(label)
if(title is not None):
self.window.set_title(title)
answer = dialog.run()
if answer==gtk.RESPONSE_YES:
return_value = True
latlongsplit = coordinates.find('-', 1)
if latlongsplit == -1:
latlongsplit = coordinates.find('+', 1)
if latlongsplit != -1:
self.latitude = coordinates[:latlongsplit]
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
import java.lang.reflect.Constructor;
import java.lang.reflect.Modifier;
import java.util.Locale;
assertEquals(1, cons.length);
assertEquals(true, Modifier.isPublic(cons[0].getModifiers()));
assertEquals(true, Modifier.isPublic(SystemUtils.class.getModifiers()));
assertEquals(false, Modifier.isFinal(SystemUtils.class.getModifiers()));
}
String javaVersion = System.getProperty("java.version");
if (javaVersion == null) {
assertEquals(false, SystemUtils.IS_JAVA_1_1);
assertEquals(false, SystemUtils.IS_OS_MAC_OSX);
} else if (osName.startsWith("Windows")) {
assertEquals(false, SystemUtils.IS_OS_UNIX);
private static boolean isMac, isWin, isJava2, isJava14, isJava15, isJava16, isJava17, isLinux, isVista, is64Bit;
private static boolean controlDown, altDown, spaceDown, shiftDown;
private static boolean macroRunning;
osname = System.getProperty("os.name");
isWin = osname.startsWith("Windows");
isMac = !isWin && osname.startsWith("Mac");
String version = System.getProperty("java.version").substring(0,3);
if (version.compareTo("2.9")<=0) { // JVM on Sharp Zaurus PDA claims to be "3.1"!
isJava2 = version.compareTo("1.1")>0;
/** Runs the macro contained in the string <code>macro</code>.
Returns any string value returned by the macro, null if the macro
does not return a value, or "[aborted]" if the macro was aborted
due to an error. The equivalent macro function is eval(). */
called macro using the getArgument() macro function.
Returns any string value returned by the macro, null if the macro
does not return a value, or "[aborted]" if the macro was aborted
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
if ( timezone != null ){
if ( e instanceof AccessControlException ){
public static final boolean isFreeBSD = OSName.equalsIgnoreCase("FreeBSD");
public static final boolean isWindowsXP = OSName.equalsIgnoreCase("Windows XP");
public static final boolean isWindows95 = OSName.equalsIgnoreCase("Windows 95");
width = 64;
} else if (p == QLatin1String("darwin9")) {
width = 32;
{
if (!ToolChain::fromMap(data))
return false;
ProjectExplorer::Abi abi(a);
if (!abi.isValid())
continue;
tcs.append(autoDetectToolchains(QLatin1String("g++-4.2"), Abi::hostAbi()));
#endif
tcs.append(autoDetectToolchains(QLatin1String("g++"), Abi::hostAbi()));
LinuxIccToolChain *tc = new LinuxIccToolChain(false);
if (tc->fromMap(data))
return tc;
**
** If you have questions regarding the use of this file, please contact
** Nokia at info@qt.nokia.com.
{
#ifdef Q_OS_WIN
const bool is64bit = Utils::winIs64BitSystem();
const bool is64bit = false;
#endif
const QString link = is64bit ? QLatin1String(dgbToolsDownloadLink64C) : QLatin1String(dgbToolsDownloadLink32C);
return tr(
"<html><body><p>Specify the path to the "
"<a href=\"%1\">Windows Console Debugger executable</a>"
foreach (const QString &dirName, programDirs) {
if (dirName.isEmpty())
continue;
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>
///////////////////////////////////////
// Fix MIOS/BC naming
if (titleid == "0000000100000101")
return "MIOS";
else if (titleid == "0000000100000100")
return "BC";
{
XmlNodeList XMLSpecificNodeTypeList = xDoc.GetElementsByTagName(XMLNodeTypes[i]);
for (int x = 0; x < XMLSpecificNodeTypeList.Count; x++) // FOR EACH ITEM IN THE LIST OF A NODE TYPE
{
*
* OpenXLS is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* You should have received a copy of the GNU Lesser General Public
* License along with OpenXLS. If not, see
* <http://www.gnu.org/licenses/>.
import com.extentech.formats.XLS.BiffRec;
import com.extentech.formats.XLS.CellNotFoundException;
// TODO: need a list of osversions to compare to! have know idea for mac, linux ...
if (n.startsWith("Windows")) {
double v= new Double(osversion);
// TODO: linux? ****************
if (System.getProperty("os.name").indexOf("Windows")>=0)
return new PtgStr("pcdos");
if (userAgent.indexOf("Windows Phone") != -1) {
deviceWindowsPhoneCount.incrementAndGet();
if (userAgent.startsWith("Windows", 13)) {
isWindows = true;
if (userAgent.indexOf("Windows Phone") != -1) {
deviceWindowsPhoneCount.incrementAndGet();
osWindowsXPCount.incrementAndGet();
} else if (userAgent.startsWith("Windows NT 5.0", 35)) {
osWindows2000Count.incrementAndGet();
osWindowsXPCount.incrementAndGet();
} else if (userAgent.startsWith("Windows XP", 34)) {
osWindowsXPCount.incrementAndGet();