mirror of
https://github.com/AppleCommander/AppleCommander.git
synced 2025-01-03 10:29:19 +00:00
Minor correction to access static variable from the Class instead of an
instance.
This commit is contained in:
parent
ef63c17482
commit
af96dbef60
@ -20,6 +20,7 @@
|
|||||||
package com.webcodepro.applecommander.test;
|
package com.webcodepro.applecommander.test;
|
||||||
|
|
||||||
import com.webcodepro.applecommander.storage.DirectoryEntry;
|
import com.webcodepro.applecommander.storage.DirectoryEntry;
|
||||||
|
import com.webcodepro.applecommander.storage.Disk;
|
||||||
import com.webcodepro.applecommander.storage.DiskFullException;
|
import com.webcodepro.applecommander.storage.DiskFullException;
|
||||||
import com.webcodepro.applecommander.storage.DosFormatDisk;
|
import com.webcodepro.applecommander.storage.DosFormatDisk;
|
||||||
import com.webcodepro.applecommander.storage.FileEntry;
|
import com.webcodepro.applecommander.storage.FileEntry;
|
||||||
@ -223,7 +224,7 @@ public class DiskWriterTest extends TestCase {
|
|||||||
writeFile(disk,
|
writeFile(disk,
|
||||||
"This is a test text file create from the DiskWriterTest".getBytes(),
|
"This is a test text file create from the DiskWriterTest".getBytes(),
|
||||||
textType, testText);
|
textType, testText);
|
||||||
if (disk.getPhysicalSize() > disk.APPLE_140KB_DISK) {
|
if (disk.getPhysicalSize() > Disk.APPLE_140KB_DISK) {
|
||||||
// create a few big files
|
// create a few big files
|
||||||
writeFile(disk, 150000, binaryType, true);
|
writeFile(disk, 150000, binaryType, true);
|
||||||
writeFile(disk, 300000, binaryType, true);
|
writeFile(disk, 300000, binaryType, true);
|
||||||
|
@ -84,7 +84,7 @@ public class SwtAppleCommander {
|
|||||||
*/
|
*/
|
||||||
private Shell open(Display display) {
|
private Shell open(Display display) {
|
||||||
this.display = display;
|
this.display = display;
|
||||||
display.setAppName("AppleCommander");
|
Display.setAppName("AppleCommander");
|
||||||
shell = new Shell(display, SWT.BORDER | SWT.CLOSE | SWT.MIN | SWT.TITLE);
|
shell = new Shell(display, SWT.BORDER | SWT.CLOSE | SWT.MIN | SWT.TITLE);
|
||||||
shell.setText("AppleCommander");
|
shell.setText("AppleCommander");
|
||||||
shell.setImage(imageManager.getDiskIcon());
|
shell.setImage(imageManager.getDiskIcon());
|
||||||
|
Loading…
Reference in New Issue
Block a user