Skip to content

Commit 648f0b9

Browse files
committed
Use new PlatformUI.setHelp(..) to avoid error popup in E4 apps
1 parent 312651a commit 648f0b9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

team/bundles/org.eclipse.ui.net/src/org/eclipse/ui/internal/net/auth/UserValidationDialog.java

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,12 @@
1919
import org.eclipse.swt.SWT;
2020
import org.eclipse.swt.layout.GridData;
2121
import org.eclipse.swt.layout.GridLayout;
22-
import org.eclipse.swt.widgets.*;
22+
import org.eclipse.swt.widgets.Composite;
23+
import org.eclipse.swt.widgets.Control;
24+
import org.eclipse.swt.widgets.Display;
25+
import org.eclipse.swt.widgets.Label;
26+
import org.eclipse.swt.widgets.Shell;
27+
import org.eclipse.swt.widgets.Text;
2328
import org.eclipse.ui.PlatformUI;
2429
import org.eclipse.ui.internal.net.NetUIMessages;
2530

@@ -128,8 +133,7 @@ protected Control createDialogArea(Composite parent) {
128133

129134
createUsernameFields(main);
130135
createPasswordFields(main);
131-
PlatformUI.getWorkbench().getHelpSystem().setHelp(main,
132-
"org.eclipse.update.ui.UserValidationDialog"); //$NON-NLS-1$
136+
PlatformUI.setHelp(main, "org.eclipse.update.ui.UserValidationDialog"); //$NON-NLS-1$
133137
return main;
134138
}
135139

0 commit comments

Comments
 (0)