From 88dbf84bb70907208b4ae0a93a72e0534acb999a Mon Sep 17 00:00:00 2001 From: donghee yang Date: Wed, 7 Nov 2012 16:25:09 +0900 Subject: [PATCH] [Title] Removed password preference page and move password input to "Platform" page --- org.tizen.nativeplatform/plugin.xml | 9 - .../preferences/ui/PasswdConfDialog.java | 75 +++++++ .../preferences/ui/PlatformPreferencePage.java | 78 +++++++- .../preferences/ui/PlatformUIMessages.properties | 6 + .../ui/git/GitConfigurationPreferencePage.java | 2 +- .../ui/password/ModifyPasswdDialog.java | 15 -- .../preferences/ui/password/PasswdConfDialog.java | 106 ---------- .../ui/password/PasswdConfUIMessages.properties | 18 -- .../ui/password/PasswdPreferencePage.java | 215 --------------------- 9 files changed, 155 insertions(+), 369 deletions(-) create mode 100644 org.tizen.nativeplatform/src/org/tizen/nativeplatform/preferences/ui/PasswdConfDialog.java create mode 100644 org.tizen.nativeplatform/src/org/tizen/nativeplatform/preferences/ui/PlatformUIMessages.properties delete mode 100644 org.tizen.nativeplatform/src/org/tizen/nativeplatform/preferences/ui/password/ModifyPasswdDialog.java delete mode 100644 org.tizen.nativeplatform/src/org/tizen/nativeplatform/preferences/ui/password/PasswdConfDialog.java delete mode 100644 org.tizen.nativeplatform/src/org/tizen/nativeplatform/preferences/ui/password/PasswdConfUIMessages.properties delete mode 100644 org.tizen.nativeplatform/src/org/tizen/nativeplatform/preferences/ui/password/PasswdPreferencePage.java diff --git a/org.tizen.nativeplatform/plugin.xml b/org.tizen.nativeplatform/plugin.xml index 3316845..42f37b8 100644 --- a/org.tizen.nativeplatform/plugin.xml +++ b/org.tizen.nativeplatform/plugin.xml @@ -584,15 +584,6 @@ - - - - datas = new ArrayList(); - - datas.add(resources.getString("ConfPref.Text.Password") + "::" + password); - passwdTable.setInput(datas); - } - - private void updateData() { - password = PreferencesManager.getPassword(); - /* - if (proxy.isEmpty() && port.isEmpty()) { - setDefaultProxy(); - } - */ - } - - private void createGitButtonComposite(Composite parent) { - Composite composite = new Composite(parent, SWT.NONE); - GridLayout gridLayout = new GridLayout(1, false); - gridLayout.marginHeight = 0; - gridLayout.marginWidth = 0; - - composite.setLayout(gridLayout); - composite.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END | GridData.VERTICAL_ALIGN_BEGINNING)); - - Button modifyBt = new Button(composite, SWT.PUSH); - modifyBt.setText(resources.getString("ConfPref.Button.Modify")); - - modifyBt.addMouseListener(new MouseListener(){ - - @Override - public void mouseDoubleClick(MouseEvent e) { - } - - @Override - public void mouseDown(MouseEvent e) { - ModifyPasswdDialog dialog = new ModifyPasswdDialog(getShell(), password); - if (dialog.open() == ModifyPasswdDialog.OK) { - updateData(); - setTableData(); - } - - } - - @Override - public void mouseUp(MouseEvent e) { - } - }); - - } - - @Override - public boolean performOk() { - return super.performOk(); - } - - private class TableViewerProvider extends LabelProvider implements ITableLabelProvider - { - @Override - public Image getColumnImage(Object element, int columnIndex) { - return null; - } - - @Override - public String getColumnText(Object element, int columnIndex) { - String[] splitValues = ((String)element).split("::"); - switch(columnIndex) { - case 0: - return splitValues[0]; - case 1: - if (splitValues.length == 2) { - return splitValues[1]; - } else { - return ""; - } - } - return null; - } - } - - private void setDefaultProxy() { - /* - String[] values = HttpProxyUtil.getProxyEnv(); - - if (values == null) { - return; - } - - if (values.length == 2) { - proxy = values[0]; - port = values[1]; - } else if (values.length == 1) { - proxy = values[0]; - } - - return; - */ - } -} -- 2.7.4