Author: taton Date: Sun Jan 13 01:12:25 2008 New Revision: 611553 URL: http://svn.apache.org/viewvc?rev=611553&view=rev Log: HADOOP-2583. Fixes a bug in the Eclipse plug-in UI to edit locations. Plug-in version is now synchronized with Hadoop version.
Removed: lucene/hadoop/trunk/src/contrib/eclipse-plugin/resources/Old/ lucene/hadoop/trunk/src/contrib/eclipse-plugin/todo.txt Modified: lucene/hadoop/trunk/CHANGES.txt lucene/hadoop/trunk/src/contrib/eclipse-plugin/META-INF/MANIFEST.MF lucene/hadoop/trunk/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/servers/HadoopLocationWizard.java Modified: lucene/hadoop/trunk/CHANGES.txt URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?rev=611553&r1=611552&r2=611553&view=diff ============================================================================== --- lucene/hadoop/trunk/CHANGES.txt (original) +++ lucene/hadoop/trunk/CHANGES.txt Sun Jan 13 01:12:25 2008 @@ -240,6 +240,9 @@ BUG FIXES + HADOOP-2583. Fixes a bug in the Eclipse plug-in UI to edit locations. + Plug-in version is now synchronized with Hadoop version. + HADOOP-2100. Remove faulty check for existence of $HADOOP_PID_DIR and let 'mkdir -p' check & create it. (Michael Bieniosek via acmurthy) Modified: lucene/hadoop/trunk/src/contrib/eclipse-plugin/META-INF/MANIFEST.MF URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/eclipse-plugin/META-INF/MANIFEST.MF?rev=611553&r1=611552&r2=611553&view=diff ============================================================================== --- lucene/hadoop/trunk/src/contrib/eclipse-plugin/META-INF/MANIFEST.MF (original) +++ lucene/hadoop/trunk/src/contrib/eclipse-plugin/META-INF/MANIFEST.MF Sun Jan 13 01:12:25 2008 @@ -2,7 +2,7 @@ Bundle-ManifestVersion: 2 Bundle-Name: MapReduce Tools for Eclipse Bundle-SymbolicName: org.apache.hadoop.eclipse;singleton:=true -Bundle-Version: 1.1 +Bundle-Version: 0.16 Bundle-Activator: org.apache.hadoop.eclipse.Activator Bundle-Localization: plugin Require-Bundle: org.eclipse.ui, Modified: lucene/hadoop/trunk/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/servers/HadoopLocationWizard.java URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/servers/HadoopLocationWizard.java?rev=611553&r1=611552&r2=611553&view=diff ============================================================================== --- lucene/hadoop/trunk/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/servers/HadoopLocationWizard.java (original) +++ lucene/hadoop/trunk/src/contrib/eclipse-plugin/src/java/org/apache/hadoop/eclipse/servers/HadoopLocationWizard.java Sun Jan 13 01:12:25 2008 @@ -242,9 +242,11 @@ } this.setControl(panel /* mediator.folder */); { - final Button validate = new Button(panel, SWT.NONE); - validate.setText("&Load from file"); - validate.addListener(SWT.Selection, new Listener() { + final Button btn = new Button(panel, SWT.NONE); + btn.setText("&Load from file"); + btn.setEnabled(false); + btn.setToolTipText("Not yet implemented"); + btn.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { // TODO } @@ -253,6 +255,8 @@ { final Button validate = new Button(panel, SWT.NONE); validate.setText("&Validate location"); + validate.setEnabled(false); + validate.setToolTipText("Not yet implemented"); validate.addListener(SWT.Selection, new Listener() { public void handleEvent(Event e) { testLocation(); @@ -311,7 +315,7 @@ return; location.setConfProp(prop, propValue); - Display.getDefault().asyncExec(new Runnable() { + Display.getDefault().syncExec(new Runnable() { public void run() { getContainer().updateButtons(); } @@ -347,7 +351,7 @@ final String socksProxyPort = location.getConfProp(ConfProp.PI_SOCKS_PROXY_PORT); - Display.getDefault().asyncExec(new Runnable() { + Display.getDefault().syncExec(new Runnable() { public void run() { switch (prop) { case PI_JOB_TRACKER_HOST: { @@ -856,7 +860,7 @@ public void modifyText(ModifyEvent e) { final Text text = (Text) e.widget; final ConfProp prop = (ConfProp) text.getData("hProp"); - Display.getDefault().asyncExec(new Runnable() { + Display.getDefault().syncExec(new Runnable() { public void run() { mediator.notifyChange(TabMain.this, prop, text.getText()); } @@ -873,7 +877,7 @@ final Button button = (Button) e.widget; final ConfProp prop = (ConfProp) button.getData("hProp"); - Display.getDefault().asyncExec(new Runnable() { + Display.getDefault().syncExec(new Runnable() { public void run() { // We want to receive the update also! mediator.notifyChange(null, prop, button.getSelection() ? "yes" @@ -953,7 +957,7 @@ final String propName = (hPropName != null) ? (String) hPropName : null; - Display.getDefault().asyncExec(new Runnable() { + Display.getDefault().syncExec(new Runnable() { public void run() { if (prop != null) mediator.notifyChange(TabAdvanced.this, prop, text.getText());