private static String daBuildIDInfo = CommonConstants.EMPTY;
private static String daVersionInfo = CommonConstants.EMPTY;
+ final private int WIDTH = 430;
+ final private int HEIGHT = 330;
+
final static String daAboutFilePath = PathManager.getWorkbenchPluginPath() + File.separator + "about.mappings";
final static String daVersionFilePath = PathManager.DA_INSTALL_PATH + File.separator + "version";
if (opened) {
return false;
}
- shell.setSize(430, 330);
+
+ int dialogLocationX = shell.getParent().getLocation().x + (shell.getParent().getSize().x - WIDTH)/2;
+ int dialogLocationY = shell.getParent().getLocation().y + (shell.getParent().getSize().y - HEIGHT)/2;
+ shell.setLocation(dialogLocationX, dialogLocationY);
+ shell.setSize(WIDTH, HEIGHT);
shell.setLayout(new FormLayout());
shell.setText(AnalyzerLabels.ABOUT_DIALOG_TITLE);
shell.addDisposeListener(new DisposeListener() {
import org.tizen.dynamicanalyzer.widgets.da.base.DAMessageBox;
public class ProcessExplorerDialog extends DAMessageBox {
+ final private int WIDTH = 446;
+ final private int HEIGHT = 600;
+
private ProcessExplorer explorer = null;
private DACustomButton okButton = null;
private DACustomButton cancelButton = null;
public ProcessExplorerDialog(Shell parentShell) {
super(parentShell);
+ int dialogLocationX = shell.getParent().getLocation().x + (shell.getParent().getSize().x - WIDTH)/2;
+ int dialogLocationY = shell.getParent().getLocation().y + (shell.getParent().getSize().y - HEIGHT)/2;
+ shell.setLocation(dialogLocationX, dialogLocationY);
+
shell.setLayout(new FormLayout());
- shell.setSize(446, 600);
+ shell.setSize(WIDTH, HEIGHT);
shell.setBackground(ColorResources.DIALOG_BG_UPPER);
shell.setText(AnalyzerLabels.SELECT_PROCESS);
import org.tizen.dynamicanalyzer.widgets.helper.ImageResources;
public class RemoteDeviceDialog extends DAMessageBox {
+ private final int WIDTH = 430;
+ private final int HEIGHT = 190;
private final int EDITBOX_TOP_MARGIN = 18;
private final int EDITBOX_INTERVAL = 10;
super(parentShell);
self = this;
-
+ int dialogLocationX = shell.getParent().getLocation().x + (shell.getParent().getSize().x - WIDTH)/2;
+ int dialogLocationY = shell.getParent().getLocation().y + (shell.getParent().getSize().y - HEIGHT)/2;
+ shell.setLocation(dialogLocationX, dialogLocationY);
shell.setLayout(new FormLayout());
- shell.setSize(430, 190);
+ shell.setSize(WIDTH, HEIGHT);
shell.setBackground(ColorResources.DIALOG_CONTENT_BACKGROUND);
shell.setText(AnalyzerLabels.REMOTE_DEVICE);
import org.tizen.dynamicanalyzer.widgets.da.base.DATextBox;
public class SaveAsDialog extends DAMessageBox {
+ private final int WIDTH = 446;
+ private final int HEIGHT = 145 + 22;
+
private DATextBox textBox = null;
private String saveFileName = null;
private DAButton okButton = null;
}
protected boolean run() {
+ int dialogLocationX = shell.getParent().getLocation().x + (shell.getParent().getSize().x - WIDTH)/2;
+ int dialogLocationY = shell.getParent().getLocation().y + (shell.getParent().getSize().y - HEIGHT)/2;
+ shell.setLocation(dialogLocationX, dialogLocationY);
+
+ shell.setSize(WIDTH, HEIGHT);
shell.setLayout(new FormLayout());
- shell.setSize(446, 145 + 22);
+ shell.setSize(WIDTH, HEIGHT);
shell.setText(AnalyzerLabels.SAVE_TRACE_TITLE);
shell.setBackground(ColorResources.DIALOG_BG_UPPER);
return false;
}
+ int dialogLocationX = shell.getParent().getLocation().x + (shell.getParent().getSize().x - DIALOG_WIDTH)/2;
+ int dialogLocationY = shell.getParent().getLocation().y + (shell.getParent().getSize().y - DIALOG_HEIGT)/2;
+ shell.setLocation(dialogLocationX, dialogLocationY);
shell.setSize(DIALOG_WIDTH, DIALOG_HEIGT);
shell.setLayout(new FormLayout());
shell.setText(PreferencesDialogLabels.TITLE);
}
};
-}
\ No newline at end of file
+}