Revision 9634 trunk/frameworks/_fwAndami/src/com/iver/andami/PluginServices.java

View differences:

PluginServices.java
51 51
import java.io.File;
52 52
import java.io.IOException;
53 53
import java.lang.reflect.InvocationTargetException;
54
import java.util.ArrayList;
54 55
import java.util.HashMap;
55 56
import java.util.Iterator;
56 57

  
......
88 89
	private static String[] arguments;
89 90

  
90 91
	private static IAuthentication authentication;
91
	
92

  
92 93
	private static IExtension exclusiveUIExtension = null;
93 94

  
94 95
	private PluginClassLoader loader;
......
501 502
	 */
502 503
	public static String[] getArguments() {
503 504
		return arguments;
504
	}	
505
	
505
	}
506 506

  
507

  
507 508
	public static void setArguments(String[] arguments) {
508 509
		PluginServices.arguments = arguments;
509 510
	}
510
	
511

  
511 512
	/**
512 513
	 * Return the value of a command line named argument.
513 514
	 *<br>
......
521 522
	 * <br>
522 523
	 * ' -language=en '
523 524
	 * @return String value
524
	 */	
525
	public static String getArgumentByName(String name) {		
525
	 */
526
	public static String getArgumentByName(String name) {
526 527
        for (int i=2; i < PluginServices.arguments.length; i++)
527 528
        {
528 529
        	int index = PluginServices.arguments[i].indexOf(name +"=");
......
564 565
			return null;
565 566
		}
566 567
	}
567
	
568
	
568

  
569

  
569 570
	/**
570 571
	 * Gets the extesion that have to take the control
571 572
	 *  of the state of action controls of the UI of all extensions.
......
577 578
	 *  @see com.iver.andami.plugins.IExtension#isEnabled(IExtension extension)
578 579
	 *  @see com.iver.andami.plugins.IExtension#isVisible(IExtension extension)
579 580
	 */
580
	
581

  
581 582
	public static IExtension getExclusiveUIExtension() {
582 583
		return PluginServices.exclusiveUIExtension;
583 584
	}
584
	
585

  
585 586
	static void setExclusiveUIExtension(IExtension extension) {
586 587
		PluginServices.exclusiveUIExtension = extension;
587 588
	}
588 589

  
590
	public static void addLoaders(ArrayList classLoaders) {
591
		PluginClassLoader.addLoaders(classLoaders);
592
	}
589 593
}

Also available in: Unified diff