Minor correction to access static variable from the Class instead of an

instance.
This commit is contained in:
Robert Greene 2003-04-14 01:29:49 +00:00
parent ef63c17482
commit af96dbef60
2 changed files with 3 additions and 2 deletions

View File

@ -20,6 +20,7 @@
package com.webcodepro.applecommander.test;
import com.webcodepro.applecommander.storage.DirectoryEntry;
import com.webcodepro.applecommander.storage.Disk;
import com.webcodepro.applecommander.storage.DiskFullException;
import com.webcodepro.applecommander.storage.DosFormatDisk;
import com.webcodepro.applecommander.storage.FileEntry;
@ -223,7 +224,7 @@ public class DiskWriterTest extends TestCase {
writeFile(disk,
"This is a test text file create from the DiskWriterTest".getBytes(),
textType, testText);
if (disk.getPhysicalSize() > disk.APPLE_140KB_DISK) {
if (disk.getPhysicalSize() > Disk.APPLE_140KB_DISK) {
// create a few big files
writeFile(disk, 150000, binaryType, true);
writeFile(disk, 300000, binaryType, true);

View File

@ -84,7 +84,7 @@ public class SwtAppleCommander {
*/
private Shell open(Display display) {
this.display = display;
display.setAppName("AppleCommander");
Display.setAppName("AppleCommander");
shell = new Shell(display, SWT.BORDER | SWT.CLOSE | SWT.MIN | SWT.TITLE);
shell.setText("AppleCommander");
shell.setImage(imageManager.getDiskIcon());