package org.tizen.emulator.manager.resources;
+import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.GC;
import org.eclipse.swt.graphics.Image;
import org.eclipse.swt.widgets.Display;
Image image = new Image(Display.getCurrent(), width, height);
GC gc = new GC(image);
+ gc.setInterpolation(SWT.NONE);
gc.fillRectangle(0, 0, width, height);
gc.drawImage(left, 0, 0);
int height = left.getImageData().height;
Image image = new Image(Display.getCurrent(), width, height);
-
+
GC gc = new GC(image);
+ gc.setInterpolation(SWT.NONE);
gc.fillRectangle(0, 0, width, height);
gc.drawImage(left, 0, 0);
Image image = new Image(Display.getCurrent(), width, height);
GC gc = new GC(image);
+ gc.setInterpolation(SWT.NONE);
gc.fillRectangle(0, 0, width, height);
gc.drawImage(left, 0, 0);
int height = middle.getImageData().height;
Image image = new Image(Display.getCurrent(), width, height);
GC gc = new GC(image);
+ gc.setInterpolation(SWT.NONE);
gc.fillRectangle(0, 0, width, height);
// left
middle.getImageData().width, middle.getImageData().height,
left.getImageData().width, 0,
width - left.getImageData().width * 2, height);
-
+
// right
gc.drawImage(ImageResources.CATEGORYBOX_RIGHT.getImage(),
width - left.getImageData().width, 0);
-
+
gc.dispose();
return image;
}
Image image = new Image(Display.getCurrent(), width, height);
GC gc = new GC(image);
+ gc.setInterpolation(SWT.NONE);
gc.fillRectangle(0, 0, width, height);
// left
middle.getImageData().width, middle.getImageData().height,
left.getImageData().width, 0,
width - left.getImageData().width * 2, height);
-
+
// right
gc.drawImage(ImageResources.INPUTBOX_ON_RIGHT.getImage(),
width - left.getImageData().width, 0);
Image image = new Image(Display.getCurrent(), width, height);
GC gc = new GC(image);
+ gc.setInterpolation(SWT.NONE);
gc.fillRectangle(0, 0, width, height);
// left
Image image = new Image(Display.getCurrent(), width, height);
GC gc = new GC(image);
+ gc.setInterpolation(SWT.NONE);
gc.fillRectangle(0, 0, width, height);
// left
Image left = ImageResources.TAB_SELECTED_LEFT.getImage();
gc.drawImage(left, 0, 0);
-
+
// middle
Image middle = ImageResources.TAB_SELECTED_MIDDLE.getImage();
gc.drawImage(middle, 0, 0,
Image image = new Image(Display.getCurrent(),
width + leftWidth + rightWidth, height);
-
+
GC gc = new GC(image);
+ gc.setInterpolation(SWT.NONE);
gc.fillRectangle(0, 0, image.getImageData().width, image.getImageData().height);
gc.drawImage(left, 0, 0);
middle.getImageData().width, middle.getImageData().height,
leftWidth, 0,
width - (leftWidth + rightWidth), height);
-
+
// right
gc.drawImage(right, width - leftWidth , 0);
int rightWidth = right.getImageData().width;
Image image = new Image(Display.getCurrent(), width, height);
-
+
GC gc = new GC(image);
+ gc.setInterpolation(SWT.NONE);
gc.fillRectangle(0, 0, image.getImageData().width, image.getImageData().height);
gc.drawImage(left, 0, 0);
Image image = new Image(Display.getCurrent(),
middle.getImageData().width,
middle.getImageData().height * count);
-
+
GC gc = new GC(image);
+ gc.setInterpolation(SWT.NONE);
gc.fillRectangle(0, 0, image.getImageData().width, image.getImageData().height);
for (int i = 0; i < (count); i++) {
middle.getImageData().width,
middle.getImageData().height * (count-1)
+ bottom.getImageData().height);
-
+
GC gc = new GC(image);
+ gc.setInterpolation(SWT.NONE);
gc.fillRectangle(0, 0, image.getImageData().width, image.getImageData().height);
for (int i = 0; i < (count-1); i++) {
public static Image getScrollbarBackground(int width, int height) {
Image image = new Image(Display.getCurrent(), width, height);
GC gc = new GC(image);
+ gc.setInterpolation(SWT.NONE);
gc.fillRectangle(0, 0, width, height);
Image temp = ImageResources.SCROLLBAR_BACK.getImage();
gc.drawImage(temp, 0, 0, temp.getImageData().width, temp.getImageData().height,
import java.util.Properties;
import java.util.logging.Level;
+import org.eclipse.swt.SWT;
import org.tizen.emulator.manager.logging.EMLogger;
import org.tizen.emulator.manager.resources.FilePathResources;
import org.tizen.emulator.manager.resources.StringResources;
contents = String.format("%-12s : %s\n%-12s : %s\n%-12s : %s\n%-12s : %s",
"Version", about_version, "Build time" ,(time + " (GMT)"),
"Git version", gitVersion, "Workspace path", workspace);
- EMLogger.getLogger().info(contents);
+ printSystemInformation();
+ }
+
+ private void printSystemInformation() {
+ String systemInfo = "";
+ systemInfo += "JAVA HOME: " + System.getProperty("java.home") + StringResources.NEW_LINE;
+ systemInfo += "JAVA VENDOR: " + System.getProperty("java.vendor") + StringResources.NEW_LINE;
+ systemInfo += "JAVA VERSION: " + System.getProperty("java.version") + StringResources.NEW_LINE;
+ systemInfo += "OS ARCH: " + System.getProperty("os.arch") + StringResources.NEW_LINE;
+ systemInfo += "OS NAME: " + System.getProperty("os.name") + StringResources.NEW_LINE;
+ systemInfo += "OS VERSION: " + System.getProperty("os.version") + StringResources.NEW_LINE;
+ systemInfo += "SWT PLATFROM: " + SWT.getPlatform() + StringResources.NEW_LINE;
+ systemInfo += "SWT VERSION: " + SWT.getVersion();
+ EMLogger.getLogger().info("System Information"
+ + StringResources.NEW_LINE + systemInfo);
+ EMLogger.getLogger().info("EmulatorManager Information"
+ + StringResources.NEW_LINE + contents);
}
public String getContents() {