* support "filebot --mode rename <file>" usage
This commit is contained in:
parent
a634abdb85
commit
2782a93a86
|
@ -57,6 +57,7 @@ import net.filebot.mac.MacAppUtilities;
|
||||||
import net.filebot.ui.MainFrame;
|
import net.filebot.ui.MainFrame;
|
||||||
import net.filebot.ui.PanelBuilder;
|
import net.filebot.ui.PanelBuilder;
|
||||||
import net.filebot.ui.SinglePanelFrame;
|
import net.filebot.ui.SinglePanelFrame;
|
||||||
|
import net.filebot.ui.transfer.FileTransferable;
|
||||||
import net.filebot.util.ByteBufferInputStream;
|
import net.filebot.util.ByteBufferInputStream;
|
||||||
import net.filebot.util.PreferencesMap.PreferencesEntry;
|
import net.filebot.util.PreferencesMap.PreferencesEntry;
|
||||||
import net.filebot.util.TeePrintStream;
|
import net.filebot.util.TeePrintStream;
|
||||||
|
@ -252,7 +253,7 @@ public class Main {
|
||||||
// single panel frame
|
// single panel frame
|
||||||
for (PanelBuilder it : MainFrame.createPanelBuilders()) {
|
for (PanelBuilder it : MainFrame.createPanelBuilders()) {
|
||||||
if (args.mode.equalsIgnoreCase(it.getName())) {
|
if (args.mode.equalsIgnoreCase(it.getName())) {
|
||||||
frame = new SinglePanelFrame(it);
|
frame = new SinglePanelFrame(it).publish(new FileTransferable(args.getFiles(true)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (frame == null) {
|
if (frame == null) {
|
||||||
|
|
|
@ -305,6 +305,7 @@ public class RenamePanel extends JComponent {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
this.putClientProperty("transferablePolicy", transferablePolicy);
|
||||||
|
|
||||||
// make buttons larger
|
// make buttons larger
|
||||||
matchButton.setMargin(new Insets(3, 14, 2, 14));
|
matchButton.setMargin(new Insets(3, 14, 2, 14));
|
||||||
|
|
Loading…
Reference in New Issue