protected JSFunctionExec jsFunctionExec;
+ private boolean noCalculation, noMenuBar, noStatus;
+
+ public boolean getStartCalculations()
+ {
+ return !noCalculation;
+ }
+
+ public boolean getAllowMenuBar()
+ {
+ return !noMenuBar;
+ }
+
+ public boolean getShowStatus()
+ {
+ return !noStatus;
+ }
+
+
public static AlignFrame getCurrentAlignFrame()
{
return getInstance().currentAlignFrame;
getInstance().doMain(args);
}
- /**
- * Allow an outside entity to initiate the second half of argument parsing
- * (only).
- *
- * @param args
- * @return null is good
- */
- @Override
- public Object parseArguments(String[] args)
- {
-
- try
- {
- ArgsParser aparser = new ArgsParser(args);
- return parseArguments(aparser, false);
- } catch (Throwable t)
- {
- return t;
- }
- }
private static void logClass(String name)
{
parseArguments(aparser, true);
}
+ /**
+ * Allow an outside entity to initiate the second half of argument parsing
+ * (only).
+ *
+ * @param args
+ * @return null is good
+ */
+ @Override
+ public Object parseArguments(String[] args)
+ {
+
+ try
+ {
+ ArgsParser aparser = new ArgsParser(args);
+ return parseArguments(aparser, false);
+ } catch (Throwable t)
+ {
+ return t;
+ }
+ }
+
+ /**
+ *
+ * @param aparser
+ * @param isStartup
+ * @return
+ */
private Object parseArguments(ArgsParser aparser, boolean isStartup)
{
boolean isJS = Platform.isJS();
String fileFormat = (isJavaAppletTag
? aparser.getAppletValue("format", null)
: null);
-
FileFormatI format = null;
DataSourceType protocol = null;
}
}
+ String data;
+
if (file != null)
{
+
if (!headless)
{
desktop.setProgressBar(
// TODO ?
}
+ if (aparser.contains(ArgsParser.SHOWOVERVIEW))
+ {
+ jalview.bin.Cache.setPropertyNoSave(Preferences.SHOW_OVERVIEW,
+ "true");
+
+ System.out.println("CMD [showoverview] executed successfully!");
+ }
+
+ if (aparser.contains(ArgsParser.NOMENUBAR))
+ {
+ noMenuBar = true;
+ System.out.println("CMD [nomenu] executed successfully!");
+ }
+
+ if (aparser.contains(ArgsParser.NOSTATUS))
+ {
+ noStatus = true;
+ System.out.println("CMD [nostatus] executed successfully!");
+ }
+
+ if (aparser.contains(ArgsParser.NOCALCULATION))
+ {
+ noCalculation = true;
+ System.out.println("CMD [nocalculation] executed successfully!");
+ }
+
AlignFrame af = new FileLoader(!headless).loadFileWaitTillLoaded(file,
protocol, format);
if (af == null)
// TODO: file2 How to implement file2 for the applet spit screen?
- String data = aparser.getValue(ArgsParser.COLOUR, true);
+ data = aparser.getValue(ArgsParser.COLOUR, true);
if (data != null)
{
data.replaceAll("%20", " ");
}
+
}