Preparing for internationalization as well as responding to the tighter

Eclipse 3.0 code checks.
This commit is contained in:
Robert Greene 2004-07-04 04:20:43 +00:00
parent 1abe035cf0
commit 6c80a79824
6 changed files with 126 additions and 60 deletions

View File

@ -136,3 +136,43 @@ AddressLabel=Address:
RawBinaryCheckbox=RAW binary?
CancelButton=Cancel
OkButton=OK
# ExportWizard
ExportWizardTitle=Export Wizard
# ExportGraphicsTypePane
ExportGraphicsTypePrompt=Please choose the appropriate graphics mode:
ExportGraphicsTypeDoubleHiresBlackAndWhite=Double hires black and white (560x384)
ExportGraphicsTypeDoubleHiresColor=Double hires color (560x384)
ExportGraphicsTypeSuperHiresColor=Super hires 16 color mode (320x200 or 640x200)
ExportGraphicsTypeQuickDraw2Icon=QuickDraw II Icon (ICN)
ExportGraphicsTypeHiresBlackAndWhite=Hires black and white (280x192)
ExportGraphicsTypeSuperHires3200Color=Super hires 3200 color mode (320x200 or 640x200)
ExportGraphicsTypeHiresColor=Hires color (280x192)
ExportGraphicsFileFormatPrompt=Please choose the appropriate file format to save image as:
# ExportFileStartPane
ExportFileTypePrompt=Please choose the type of file that is being exported.
ExportFileAsRawDiskData=Raw disk data
ExportFileAsBinaryFile=Binary file
ExportFileAsHexDump=Hex Dump
ExportFileAsAsciiTextFile=ASCII text file
ExportFileAsFormattedAssemblyTextFile=Formatted Assembly text file
ExportFileAsPascalTextFile=Pascal text file
ExportFileAsApplesoftBasicFile=Applesoft BASIC file
ExportFileAsIntegerBasicFile=Integer BASIC file
ExportFileAsAppleworksWordProcessorFile=AppleWorks Word Processor file
ExportFileAsAppleworksDatabaseFile=AppleWorks Data Base file
ExportFileAsAppleworksSpreadsheetFile=AppleWorks Spread Sheet file
ExportFileAsGraphicsFile=Graphic file...
# ExportFileDestinationPane
ExportFilePrompt=Please indicate the destination for the exported files:
BrowseButton=Browse...
ExportFileDirectoryPrompt=Please choose the directory to which exported files will be written
# AppleWorksWordProcessorPane
AppleWorksWordProcessorFormatPrompt=Please choose the appropriate format:
AppleWorksWordProcessorFormatAsText=Text
AppleWorksWordProcessorFormatAsHtml=HTML
AppleWorksWordProcessorFormatAsRtf=RTF (Rich Text Format)

View File

@ -28,6 +28,7 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import com.webcodepro.applecommander.storage.filters.AppleWorksWordProcessorFileFilter;
import com.webcodepro.applecommander.ui.TextBundle;
import com.webcodepro.applecommander.ui.swt.wizard.WizardPane;
/**
@ -37,6 +38,7 @@ import com.webcodepro.applecommander.ui.swt.wizard.WizardPane;
* @author Rob Greene
*/
public class AppleWorksWordProcessorPane extends WizardPane {
private TextBundle textBundle = TextBundle.getInstance();
private Composite parent;
private Object layoutData;
private Composite control;
@ -52,14 +54,14 @@ public class AppleWorksWordProcessorPane extends WizardPane {
}
/**
* Get the next WizardPane.
* @see com.webcodepro.applecommander.gui.WizardPane#getNextPane()
* @see com.webcodepro.applecommander.ui.swt.wizard.WizardPane#getNextPane()
*/
public WizardPane getNextPane() {
return new ExportFileDestinationPane(parent, wizard, layoutData);
}
/**
* Create and display the wizard pane.
* @see com.webcodepro.applecommander.gui.WizardPane#open()
* @see com.webcodepro.applecommander.ui.swt.wizard.WizardPane#open()
*/
public void open() {
wizard.enableFinishButton(false);
@ -75,12 +77,12 @@ public class AppleWorksWordProcessorPane extends WizardPane {
layout.spacing = 3;
control.setLayout(layout);
Label label = new Label(control, SWT.WRAP);
label.setText("Please choose the appropriate format:");
label.setText(textBundle.get("AppleWorksWordProcessorFormatPrompt")); //$NON-NLS-1$
RowLayout subpanelLayout = new RowLayout(SWT.VERTICAL);
subpanelLayout.justify = true;
subpanelLayout.spacing = 3;
Button button = new Button(control, SWT.RADIO);
button.setText("Text");
button.setText(textBundle.get("AppleWorksWordProcessorFormatAsText")); //$NON-NLS-1$
button.setSelection(getFilter().isTextRendering());
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
@ -88,7 +90,7 @@ public class AppleWorksWordProcessorPane extends WizardPane {
}
});
button = new Button(control, SWT.RADIO);
button.setText("HTML");
button.setText(textBundle.get("AppleWorksWordProcessorFormatAsHtml")); //$NON-NLS-1$
button.setSelection(getFilter().isHtmlRendering());
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
@ -96,7 +98,7 @@ public class AppleWorksWordProcessorPane extends WizardPane {
}
});
button = new Button(control, SWT.RADIO);
button.setText("RTF (Rich Text Format)");
button.setText(textBundle.get("AppleWorksWordProcessorFormatAsRtf")); //$NON-NLS-1$
button.setSelection(getFilter().isRtfRendering());
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
@ -106,7 +108,7 @@ public class AppleWorksWordProcessorPane extends WizardPane {
}
/**
* Dispose of any resources.
* @see com.webcodepro.applecommander.gui.WizardPane#dispose()
* @see com.webcodepro.applecommander.ui.swt.wizard.WizardPane#dispose()
*/
public void dispose() {
control.dispose();

View File

@ -31,8 +31,10 @@ import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.DirectoryDialog;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.Text;
import com.webcodepro.applecommander.ui.TextBundle;
import com.webcodepro.applecommander.ui.swt.wizard.WizardPane;
/**
@ -42,6 +44,7 @@ import com.webcodepro.applecommander.ui.swt.wizard.WizardPane;
* @author Rob Greene
*/
public class ExportFileDestinationPane extends WizardPane {
private TextBundle textBundle = TextBundle.getInstance();
private Composite parent;
private Object layoutData;
private Composite control;
@ -59,14 +62,14 @@ public class ExportFileDestinationPane extends WizardPane {
/**
* This is the last pane in the wizard, so a null is returned to indicate no
* more pages.
* @see com.webcodepro.applecommander.gui.WizardPane#getNextPane()
* @see com.webcodepro.applecommander.ui.swt.wizard.WizardPane#getNextPane()
*/
public WizardPane getNextPane() {
return null;
}
/**
* Create and display the wizard pane.
* @see com.webcodepro.applecommander.gui.WizardPane#open()
* @see com.webcodepro.applecommander.ui.swt.wizard.WizardPane#open()
*/
public void open() {
control = new Composite(parent, SWT.NULL);
@ -82,7 +85,7 @@ public class ExportFileDestinationPane extends WizardPane {
layout.spacing = 3;
control.setLayout(layout);
Label label = new Label(control, SWT.WRAP);
label.setText("Please indicate the destination for the exported files:");
label.setText(textBundle.get("ExportFilePrompt")); //$NON-NLS-1$
directoryText = new Text(control, SWT.WRAP | SWT.BORDER);
if (wizard.getDirectory() != null) directoryText.setText(wizard.getDirectory());
@ -92,32 +95,44 @@ public class ExportFileDestinationPane extends WizardPane {
directoryText.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent event) {
Text text = (Text) event.getSource();
wizard.setDirectory(text.getText());
getWizard().setDirectory(text.getText());
}
});
Button button = new Button(control, SWT.PUSH);
button.setText("Browse...");
button.setText(textBundle.get("BrowseButton")); //$NON-NLS-1$
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
DirectoryDialog directoryDialog = new DirectoryDialog(control.getShell());
directoryDialog.setFilterPath(directoryText.getText());
DirectoryDialog directoryDialog = new DirectoryDialog(getShell());
directoryDialog.setFilterPath(getDirectoryText().getText());
directoryDialog.setMessage(
"Please choose the directory to which exported files will be written");
TextBundle.getInstance().get("ExportFileDirectoryPrompt")); //$NON-NLS-1$
String directory = directoryDialog.open();
if (directory != null) {
directoryText.setText(directory);
getDirectoryText().setText(directory);
}
}
});
}
/**
* Dispose of any resources.
* @see com.webcodepro.applecommander.gui.WizardPane#dispose()
* @see com.webcodepro.applecommander.ui.swt.wizard.WizardPane#dispose()
*/
public void dispose() {
directoryText.dispose();
control.dispose();
control = null;
}
protected ExportWizard getWizard() {
return wizard;
}
protected Shell getShell() {
return control.getShell();
}
protected Text getDirectoryText() {
return directoryText;
}
}

View File

@ -38,6 +38,7 @@ import com.webcodepro.applecommander.storage.filters.HexDumpFileFilter;
import com.webcodepro.applecommander.storage.filters.IntegerBasicFileFilter;
import com.webcodepro.applecommander.storage.filters.PascalTextFileFilter;
import com.webcodepro.applecommander.storage.filters.TextFileFilter;
import com.webcodepro.applecommander.ui.TextBundle;
import com.webcodepro.applecommander.ui.swt.wizard.WizardPane;
/**
@ -47,11 +48,11 @@ import com.webcodepro.applecommander.ui.swt.wizard.WizardPane;
* @author Rob Greene
*/
public class ExportFileStartPane extends WizardPane {
private TextBundle textBundle = TextBundle.getInstance();
private Composite parent;
private Object layoutData;
private Composite control;
private ExportWizard wizard;
private GraphicsFileFilter graphicsFileFilter = new GraphicsFileFilter();
/**
* Constructor for ExportFileStartPane.
*/
@ -78,113 +79,113 @@ public class ExportFileStartPane extends WizardPane {
layout.spacing = 3;
control.setLayout(layout);
Label label = new Label(control, SWT.WRAP);
label.setText("Please choose the type of file that is being exported.");
label.setText(textBundle.get("ExportFileTypePrompt")); //$NON-NLS-1$
RowLayout subpanelLayout = new RowLayout(SWT.VERTICAL);
subpanelLayout.justify = true;
subpanelLayout.spacing = 3;
Composite buttonSubpanel = new Composite(control, SWT.NULL);
buttonSubpanel.setLayout(subpanelLayout);
Button button = new Button(buttonSubpanel, SWT.RADIO);
button.setText("Raw disk data");
button.setText(textBundle.get("ExportFileAsRawDiskData")); //$NON-NLS-1$
button.setSelection(wizard.getFileFilter() == null);
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
wizard.setFileFilter(null);
getWizard().setFileFilter(null);
}
});
button = new Button(buttonSubpanel, SWT.RADIO);
button.setText("Binary file");
button.setText(textBundle.get("ExportFileAsBinaryFile")); //$NON-NLS-1$
button.setSelection(wizard.getFileFilter() instanceof BinaryFileFilter);
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
wizard.setFileFilter(new BinaryFileFilter());
getWizard().setFileFilter(new BinaryFileFilter());
}
});
button = new Button(buttonSubpanel, SWT.RADIO);
button.setText("Hex Dump");
button.setText(textBundle.get("ExportFileAsHexDump")); //$NON-NLS-1$
button.setSelection(wizard.getFileFilter() instanceof HexDumpFileFilter);
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
wizard.setFileFilter(new HexDumpFileFilter());
getWizard().setFileFilter(new HexDumpFileFilter());
}
});
button = new Button(buttonSubpanel, SWT.RADIO);
button.setText("ASCII text file");
button.setText(textBundle.get("ExportFileAsAsciiTextFile")); //$NON-NLS-1$
button.setSelection(wizard.getFileFilter() instanceof TextFileFilter);
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
wizard.setFileFilter(new TextFileFilter());
getWizard().setFileFilter(new TextFileFilter());
}
});
button = new Button(buttonSubpanel, SWT.RADIO);
button.setText("Formatted Assembly text file");
button.setText(textBundle.get("ExportFileAsFormattedAssemblyTextFile")); //$NON-NLS-1$
button.setSelection(wizard.getFileFilter() instanceof AssemblySourceFileFilter);
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
wizard.setFileFilter(new AssemblySourceFileFilter());
getWizard().setFileFilter(new AssemblySourceFileFilter());
}
});
button = new Button(buttonSubpanel, SWT.RADIO);
button.setText("Pascal text file");
button.setText(textBundle.get("ExportFileAsPascalTextFile")); //$NON-NLS-1$
button.setSelection(wizard.getFileFilter() instanceof PascalTextFileFilter);
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
wizard.setFileFilter(new PascalTextFileFilter());
getWizard().setFileFilter(new PascalTextFileFilter());
}
});
button = new Button(buttonSubpanel, SWT.RADIO);
button.setText("Applesoft BASIC file");
button.setText(textBundle.get("ExportFileAsApplesoftBasicFile")); //$NON-NLS-1$
button.setSelection(wizard.getFileFilter() instanceof ApplesoftFileFilter);
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
wizard.setFileFilter(new ApplesoftFileFilter());
getWizard().setFileFilter(new ApplesoftFileFilter());
}
});
button = new Button(buttonSubpanel, SWT.RADIO);
button.setText("Integer BASIC file");
button.setText(textBundle.get("ExportFileAsIntegerBasicFile")); //$NON-NLS-1$
button.setSelection(wizard.getFileFilter() instanceof IntegerBasicFileFilter);
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
wizard.setFileFilter(new IntegerBasicFileFilter());
getWizard().setFileFilter(new IntegerBasicFileFilter());
}
});
button = new Button(buttonSubpanel, SWT.RADIO);
button.setText("AppleWorks Word Processor file");
button.setText(textBundle.get("ExportFileAsAppleworksWordProcessorFile")); //$NON-NLS-1$
button.setSelection(wizard.getFileFilter() instanceof AppleWorksWordProcessorFileFilter);
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
wizard.setFileFilter(new AppleWorksWordProcessorFileFilter());
getWizard().setFileFilter(new AppleWorksWordProcessorFileFilter());
}
});
button = new Button(buttonSubpanel, SWT.RADIO);
button.setText("AppleWorks Data Base file");
button.setText(textBundle.get("ExportFileAsAppleworksDatabaseFile")); //$NON-NLS-1$
button.setSelection(wizard.getFileFilter() instanceof AppleWorksDataBaseFileFilter);
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
wizard.setFileFilter(new AppleWorksDataBaseFileFilter());
getWizard().setFileFilter(new AppleWorksDataBaseFileFilter());
}
});
button = new Button(buttonSubpanel, SWT.RADIO);
button.setText("AppleWorks Spread Sheet file");
button.setText(textBundle.get("ExportFileAsAppleworksSpreadsheetFile")); //$NON-NLS-1$
button.setSelection(wizard.getFileFilter() instanceof AppleWorksSpreadSheetFileFilter);
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
wizard.setFileFilter(new AppleWorksSpreadSheetFileFilter());
getWizard().setFileFilter(new AppleWorksSpreadSheetFileFilter());
}
});
button = new Button(buttonSubpanel, SWT.RADIO);
button.setText("Graphic file...");
button.setEnabled(graphicsFileFilter.isCodecAvailable());
button.setText(textBundle.get("ExportFileAsGraphicsFile")); //$NON-NLS-1$
button.setEnabled(GraphicsFileFilter.isCodecAvailable());
button.setSelection(wizard.getFileFilter() instanceof GraphicsFileFilter);
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
wizard.setFileFilter(graphicsFileFilter);
getWizard().setFileFilter(new GraphicsFileFilter());
}
});
}
/**
* Get the next pane. A null return indicates the end of the wizard.
* @see com.webcodepro.applecommander.gui.WizardPane#getNextPane()
* @see com.webcodepro.applecommander.ui.swt.wizard.WizardPane#getNextPane()
*/
public WizardPane getNextPane() {
if (wizard.getFileFilter() instanceof GraphicsFileFilter) {
@ -196,10 +197,14 @@ public class ExportFileStartPane extends WizardPane {
}
/**
* Dispose of resources.
* @see com.webcodepro.applecommander.gui.WizardPane#dispose()
* @see com.webcodepro.applecommander.ui.swt.wizard.WizardPane#dispose()
*/
public void dispose() {
control.dispose();
control = null;
}
protected ExportWizard getWizard() {
return wizard;
}
}

View File

@ -28,6 +28,7 @@ import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Label;
import com.webcodepro.applecommander.storage.filters.GraphicsFileFilter;
import com.webcodepro.applecommander.ui.TextBundle;
import com.webcodepro.applecommander.ui.swt.wizard.WizardPane;
/**
@ -37,6 +38,7 @@ import com.webcodepro.applecommander.ui.swt.wizard.WizardPane;
* @author Rob Greene
*/
public class ExportGraphicsTypePane extends WizardPane {
private TextBundle textBundle = TextBundle.getInstance();
private Composite parent;
private Object layoutData;
private Composite control;
@ -52,14 +54,14 @@ public class ExportGraphicsTypePane extends WizardPane {
}
/**
* Determine the next wizard pane and return an instance.
* @see com.webcodepro.applecommander.gui.WizardPane#getNextPane()
* @see com.webcodepro.applecommander.ui.swt.wizard.WizardPane#getNextPane()
*/
public WizardPane getNextPane() {
return new ExportFileDestinationPane(parent, wizard, layoutData);
}
/**
* Open up and configure the wizard pane.
* @see com.webcodepro.applecommander.gui.WizardPane#open()
* @see com.webcodepro.applecommander.ui.swt.wizard.WizardPane#open()
*/
public void open() {
wizard.enableFinishButton(false);
@ -75,14 +77,14 @@ public class ExportGraphicsTypePane extends WizardPane {
layout.spacing = 3;
control.setLayout(layout);
Label label = new Label(control, SWT.WRAP);
label.setText("Please choose the appropriate graphics mode:");
label.setText(textBundle.get("ExportGraphicsTypePrompt")); //$NON-NLS-1$
RowLayout subpanelLayout = new RowLayout(SWT.VERTICAL);
subpanelLayout.justify = true;
subpanelLayout.spacing = 3;
Composite graphicsModeGroup = new Composite(control, SWT.NULL);
graphicsModeGroup.setLayout(subpanelLayout);
Button button = new Button(graphicsModeGroup, SWT.RADIO);
button.setText("Hires black and white (280x192)");
button.setText(textBundle.get("ExportGraphicsTypeHiresBlackAndWhite")); //$NON-NLS-1$
button.setSelection(getGraphicsFilter().isHiresBlackAndWhiteMode());
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
@ -90,7 +92,7 @@ public class ExportGraphicsTypePane extends WizardPane {
}
});
button = new Button(graphicsModeGroup, SWT.RADIO);
button.setText("Hires color (280x192)");
button.setText(textBundle.get("ExportGraphicsTypeHiresColor")); //$NON-NLS-1$
button.setSelection(getGraphicsFilter().isHiresColorMode());
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
@ -98,7 +100,7 @@ public class ExportGraphicsTypePane extends WizardPane {
}
});
button = new Button(graphicsModeGroup, SWT.RADIO);
button.setText("Double hires black and white (560x384)");
button.setText(textBundle.get("ExportGraphicsTypeDoubleHiresBlackAndWhite")); //$NON-NLS-1$
button.setSelection(getGraphicsFilter().isDoubleHiresBlackAndWhiteMode());
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
@ -106,7 +108,7 @@ public class ExportGraphicsTypePane extends WizardPane {
}
});
button = new Button(graphicsModeGroup, SWT.RADIO);
button.setText("Double hires color (560x384)");
button.setText(textBundle.get("ExportGraphicsTypeDoubleHiresColor")); //$NON-NLS-1$
button.setSelection(getGraphicsFilter().isDoubleHiresColorMode());
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
@ -114,7 +116,7 @@ public class ExportGraphicsTypePane extends WizardPane {
}
});
button = new Button(graphicsModeGroup, SWT.RADIO);
button.setText("Super hires 16 color mode (320x200 or 640x200)");
button.setText(textBundle.get("ExportGraphicsTypeSuperHiresColor")); //$NON-NLS-1$
button.setSelection(getGraphicsFilter().isSuperHires16Mode());
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
@ -122,7 +124,7 @@ public class ExportGraphicsTypePane extends WizardPane {
}
});
button = new Button(graphicsModeGroup, SWT.RADIO);
button.setText("Super hires 3200 color mode (320x200 or 640x200)");
button.setText(textBundle.get("ExportGraphicsTypeSuperHires3200Color")); //$NON-NLS-1$
button.setSelection(getGraphicsFilter().isSuperHires3200Mode());
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
@ -130,7 +132,7 @@ public class ExportGraphicsTypePane extends WizardPane {
}
});
button = new Button(graphicsModeGroup, SWT.RADIO);
button.setText("QuickDraw II Icon (ICN)");
button.setText(textBundle.get("ExportGraphicsTypeQuickDraw2Icon")); //$NON-NLS-1$
button.setSelection(getGraphicsFilter().isQuickDraw2Icon());
button.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
@ -138,7 +140,7 @@ public class ExportGraphicsTypePane extends WizardPane {
}
});
label = new Label(control, SWT.WRAP);
label.setText("Please choose the appropriate file format to save image as:");
label.setText(textBundle.get("ExportGraphicsFileFormatPrompt")); //$NON-NLS-1$
Composite graphicsFormatGroup = new Composite(control, SWT.NULL);
graphicsFormatGroup.setLayout(subpanelLayout);
String[] formats = getGraphicsFilter().getFileExtensions();
@ -156,7 +158,7 @@ public class ExportGraphicsTypePane extends WizardPane {
}
/**
* Dispose of widgets.
* @see com.webcodepro.applecommander.gui.WizardPane#dispose()
* @see com.webcodepro.applecommander.ui.swt.wizard.WizardPane#dispose()
*/
public void dispose() {
control.dispose();

View File

@ -23,6 +23,7 @@ import org.eclipse.swt.widgets.Shell;
import com.webcodepro.applecommander.storage.FileFilter;
import com.webcodepro.applecommander.storage.FormattedDisk;
import com.webcodepro.applecommander.ui.TextBundle;
import com.webcodepro.applecommander.ui.swt.util.ImageManager;
import com.webcodepro.applecommander.ui.swt.wizard.Wizard;
import com.webcodepro.applecommander.ui.swt.wizard.WizardPane;
@ -41,7 +42,8 @@ public class ExportWizard extends Wizard {
* Constructor for ExportWizard.
*/
public ExportWizard(Shell parent, ImageManager imageManager, FormattedDisk disk) {
super(parent, imageManager.get(ImageManager.LOGO_EXPORT_WIZARD), "Export Wizard");
super(parent, imageManager.get(ImageManager.LOGO_EXPORT_WIZARD),
TextBundle.getInstance().get("ExportWizardTitle")); //$NON-NLS-1$
this.disk = disk;
}
/**
@ -78,7 +80,7 @@ public class ExportWizard extends Wizard {
}
/**
* Create the initial display used in the wizard.
* @see com.webcodepro.applecommander.ui.swt.Wizard#createInitialWizardPane()
* @see com.webcodepro.applecommander.ui.swt.wizard.Wizard#createInitialWizardPane()
*/
public WizardPane createInitialWizardPane() {
return new ExportFileStartPane(getContentPane(), this, null);