sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.wizards/src/com/nokia/carbide/cpp/internal/pi/wizards/ui/NewPIWizardPageCustomTask.java
equal
deleted
inserted
replaced
17 |
17 |
18 package com.nokia.carbide.cpp.internal.pi.wizards.ui; |
18 package com.nokia.carbide.cpp.internal.pi.wizards.ui; |
19 |
19 |
20 import java.io.File; |
20 import java.io.File; |
21 |
21 |
|
22 import org.eclipse.jface.wizard.WizardDialog; |
22 import org.eclipse.swt.SWT; |
23 import org.eclipse.swt.SWT; |
23 import org.eclipse.swt.events.ModifyEvent; |
24 import org.eclipse.swt.events.ModifyEvent; |
24 import org.eclipse.swt.events.ModifyListener; |
25 import org.eclipse.swt.events.ModifyListener; |
25 import org.eclipse.swt.events.SelectionAdapter; |
26 import org.eclipse.swt.events.SelectionAdapter; |
26 import org.eclipse.swt.events.SelectionEvent; |
27 import org.eclipse.swt.events.SelectionEvent; |
168 validatePage(); |
169 validatePage(); |
169 setControl(container); |
170 setControl(container); |
170 PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), CarbidePiWizardHelpIds.PI_IMPORT_WIZARD_CUSTOM); |
171 PlatformUI.getWorkbench().getHelpSystem().setHelp(getControl(), CarbidePiWizardHelpIds.PI_IMPORT_WIZARD_CUSTOM); |
171 } |
172 } |
172 |
173 |
|
174 /* (non-Javadoc) |
|
175 * @see org.eclipse.jface.dialogs.DialogPage#performHelp() |
|
176 */ |
|
177 @Override |
|
178 public void performHelp() { |
|
179 WizardDialog wizardDialog = (WizardDialog)getContainer(); |
|
180 if(wizardDialog.buttonBar != null){ |
|
181 PlatformUI.getWorkbench().getHelpSystem().setHelp(wizardDialog.buttonBar, |
|
182 CarbidePiWizardHelpIds.PI_IMPORT_WIZARD_CUSTOM); |
|
183 } |
|
184 |
|
185 } |
|
186 |
173 public void validatePage() { |
187 public void validatePage() { |
174 if (sampleFileText.getText().length() == 0) { |
188 if (sampleFileText.getText().length() == 0) { |
175 updateStatus(Messages.getString("NewPIWizardCustomTask.dat.file.name.must.be.specified")); //$NON-NLS-1$ |
189 updateStatus(Messages.getString("NewPIWizardCustomTask.dat.file.name.must.be.specified")); //$NON-NLS-1$ |
176 return; |
190 return; |
177 } |
191 } |