rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
String fileName = ivy.substitute(attributes.getValue("file"));
String fileName = substitute(ivy, attributes.getValue("file"));
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qNa...
String urlStr = ivy.substitute(attributes.getValue("url"));
String urlStr = substitute(ivy, attributes.getValue("url"));
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qNa...
String defaultconf = attributes.getValue("defaultconfmapping");
String defaultconf = substitute(ivy, attributes.getValue("defaultconfmapping"));
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qNa...
out.print(" "+attributes.getQName(i)+"=\""+attributes.getValue(i)+"\"");
out.print(" "+attributes.getQName(i)+"=\""+substitute(ivy, attributes.getValue(i))+"\"");
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qNa...
String org = attributes.getValue("org");
String org = substitute(ivy, attributes.getValue("org"));
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qNa...
ModuleId mid = new ModuleId(org, attributes.getValue("name"));
ModuleId mid = new ModuleId(org, substitute(ivy, attributes.getValue("name")));
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qNa...
out.print(" rev=\""+attributes.getValue("rev")+"\"");
out.print(" rev=\""+substitute(ivy, attributes.getValue("rev"))+"\"");
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qNa...
out.print(" "+attName+"=\""+attributes.getValue(attName)+"\"");
out.print(" "+attName+"=\""+substitute(ivy, attributes.getValue(attName))+"\"");
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if (_justOpen != null) { out.print(">"); } if ("info".equals(qNa...
String defaultconf = attributes.getValue("defaultconfmapping");
String defaultconf = substitute(ivy, attributes.getValue("defaultconfmapping"));
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if ("configurations".equals(qName)) { ...
out.print(" "+attributes.getQName(i)+"=\""+attributes.getValue(i)+"\"");
out.print(" "+attributes.getQName(i)+"=\""+substitute(ivy, attributes.getValue(i))+"\"");
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { if ("configurations".equals(qName)) { ...
if (line.length() == 0 || line.charAt(0) == '#' || line.charAt(0) == '!') continue;
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
if (pos == line.length())
if (line.length() == 0 || line.charAt(0) == '#' || line.charAt(0) == '!')
public void load(InputStream inStream) throws IOException { // The spec says that the file must be encoded using ISO-8859-1. BufferedReader reader = new BufferedReader(new InputStreamReader(inStream, "ISO-8859-1")); String line; while ((line = reader.readLine()) != null) { char c = 0; ...
return (Class)AccessController.doPrivileged
result = (Class)AccessController.doPrivileged
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; int max = urlinfos.size(); Resource resource = null; for (int i = 0; i < max && resource == null...
return defineClass(className, classData, 0, classData.length, source);
result = defineClass(className, classData, 0, classData.length, source); super.setSigners(result, resource.getCertificates()); return result;
protected Class findClass(final String className) throws ClassNotFoundException { // Just try to find the resource by the (almost) same name String resourceName = className.replace('.', '/') + ".class"; int max = urlinfos.size(); Resource resource = null; for (int i = 0; i < max && resource == null...
private synchronized static void clearSingleton() {
private static synchronized void clearSingleton() {
private synchronized static void clearSingleton() { singleton = null; }
if (log.isInfoEnabled()) { log.info(writeDebug());
if (log.isFatalEnabled()) { log.fatal(writeDebug());
public CSMART() { setTitle("CSMART"); createLog(); // Write initial CSMART info to the log file if (log.isInfoEnabled()) { log.info(writeDebug()); } resultDir = initResultDir(); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); // set-up file menu which includes en...
} else if (s.equals(VERSION_ITEM)) { String txt = writeDebug(); if (txt != null) Browser.setPage(txt);
public void actionPerformed(ActionEvent e) { String s = ((AbstractButton)e.getSource()).getActionCommand(); if (s.equals(NEW_MENU_ITEM)) { newWorkspace(); } else if (s.equals(NEW_RESULTS_MENU_ITEM)) { setResultDir(); } else if (s.equals(EXIT_MENU_ITEM)) { exit(); } else if (s.equals(HELP...
return "This is CSMART";
StringBuffer result = new StringBuffer(); String version = null; long buildtime = 0; try { Class vc = Class.forName("org.cougaar.Version"); Field vf = vc.getField("version"); Field bf = vc.getField("buildTime"); version = (String) vf.get(null); buildtime = bf.getLong(null); } catch (Exception e) {} result.append("CSMA...
public String writeDebug() { // Cougaar version, build info return "This is CSMART"; // Some properties valus: OS, install.path, config.path, // dbMode, isMySQL // What tools are open // whats loaded in the workspace // results directory setting // but probably not the cougaar.rc contents }
return result.toString();
public String writeDebug() { // Cougaar version, build info return "This is CSMART"; // Some properties valus: OS, install.path, config.path, // dbMode, isMySQL // What tools are open // whats loaded in the workspace // results directory setting // but probably not the cougaar.rc contents }
return super.getToolkit();
return Toolkit.getDefaultToolkit ();
public Toolkit getToolkit() { // FIXME: why different from Component.getToolkit() ? return super.getToolkit(); }
treeModel().setDelegate(valueForBinding("delegate")); if (hasBinding("allExpanded")) { treeModel().setAllExpanded(AjaxUtils.booleanValueForBinding("allExpanded", false, _keyAssociations, parent())); } if (hasBinding("rootExpanded") || hasBinding("showRoot")) { treeModel().setRootExpanded(AjaxUtils.booleanValueForBindin...
public void appendToResponse(WOResponse aResponse, WOContext aContext) { resetTree(); treeModel().setDelegate(valueForBinding("delegate")); if (hasBinding("allExpanded")) { treeModel().setAllExpanded(AjaxUtils.booleanValueForBinding("allExpanded", false, _keyAssociations, parent())); } if (hasBinding("rootExpan...
treeModel().setDelegate(valueForBinding("delegate")); if (hasBinding("allExpanded")) { treeModel().setAllExpanded(AjaxUtils.booleanValueForBinding("allExpanded", false, _keyAssociations, parent())); } if (hasBinding("rootExpanded") || hasBinding("showRoot")) { treeModel().setRootExpanded(AjaxUtils.booleanValueForBindin...
protected void resetTree() { _level = 0; _closeCount = 0; _lastParent = null; _item = null; }
public boolean add(Object element) { addObject(element); return true;
public void add(int index, Object element) { insertObjectAtIndex(element, index);
public boolean add(Object element) { addObject(element); return true; }
public AjaxTreeModel(ITreeNode rootTreeNode) { _rootTreeNode = rootTreeNode;
public AjaxTreeModel() {
public AjaxTreeModel(ITreeNode rootTreeNode) { _rootTreeNode = rootTreeNode; _expandedTreeNodes = new NSMutableSet(); }
_collapsedImage = "collapsed.gif"; _collapsedImageFramework = "Ajax"; _expandedImage = "expanded.gif"; _expandedImageFramework = "Ajax"; _leafImage = "leaf.gif"; _leafImageFramework = "Ajax"; _treeNodeRenderer = AjaxSimpleTreeNodeRenderer.class.getName();
public AjaxTreeModel(ITreeNode rootTreeNode) { _rootTreeNode = rootTreeNode; _expandedTreeNodes = new NSMutableSet(); }
protected WOComponent pageForConfigurationNamed(String pageConfiguration, WOSession session) {
protected WOComponent pageForConfigurationNamed(String pageConfiguration) {
protected WOComponent pageForConfigurationNamed(String pageConfiguration, WOSession session) { D2WModel.defaultModel().checkRules(); d2wContext().setDynamicPage(pageConfiguration); if (d2wContext().entity() == null || d2wContext().task() == null) throw new Illegal...
WOComponent wocomponent = WOApplication.application().pageWithName(d2wContext().pageName(), returnPage().context());
WOComponent wocomponent = WOApplication.application().pageWithName(d2wContext().pageName(), session().context());
protected WOComponent pageForConfigurationNamed(String pageConfiguration, WOSession session) { D2WModel.defaultModel().checkRules(); d2wContext().setDynamicPage(pageConfiguration); if (d2wContext().entity() == null || d2wContext().task() == null) throw new Illegal...
protected WOComponent pageWithContextTaskEntity(String task, String entityName, WOSession session) {
protected WOComponent pageWithContextTaskEntity(String task, String entityName) {
protected WOComponent pageWithContextTaskEntity(String task, String entityName, WOSession session) { D2WModel.defaultModel().checkRules(); EOEntity eoentity = (entityName == null ? null : EOModelGroup.defaultGroup().entityNamed(entityName)); if (eoentity == null && entityName !=...
WOComponent wocomponent = WOApplication.application().pageWithName(d2wContext().pageName(), session.context());
WOComponent wocomponent = WOApplication.application().pageWithName(d2wContext().pageName(), session().context());
protected WOComponent pageWithContextTaskEntity(String task, String entityName, WOSession session) { D2WModel.defaultModel().checkRules(); EOEntity eoentity = (entityName == null ? null : EOModelGroup.defaultGroup().entityNamed(entityName)); if (eoentity == null && entityName !=...
WOComponent page = pageForConfigurationNamed(value, session());
WOComponent page = pageForConfigurationNamed(value);
public WOComponent runWithPageConfiguration(String value) { WOComponent page = pageForConfigurationNamed(value, session()); page.takeValueForKey(this, "nextPageDelegate"); return page; }
QueryPageInterface qpi = (QueryPageInterface)pageForConfigurationNamed(pageConfiguration, returnPage().session());
QueryPageInterface qpi = (QueryPageInterface)pageForConfigurationNamed(pageConfiguration);
public WOComponent firstPage(String pageConfiguration) { QueryPageInterface qpi = (QueryPageInterface)pageForConfigurationNamed(pageConfiguration, returnPage().session()); qpi.setNextPageDelegate(this); return (WOComponent) qpi; }
listpageinterface = (ListPageInterface)pageForConfigurationNamed(listConfigurationName, currentPage.session());
listpageinterface = (ListPageInterface)pageForConfigurationNamed(listConfigurationName);
public WOComponent searchAction(WOComponent currentPage) { D2WContext d2wContext = ((D2WComponent)currentPage.parent()).d2wContext(); EODataSource ds = ((QueryPageInterface)currentPage.parent()).queryDataSource(); this.log.info("searchAction: " + ds); ListPageInterfac...
c.d2wContext().setDynamicPage((String)d2wContext.valueForKey("pageConfiguration"));
protected ERD2WController controllerInstanceWithContext(D2WContext d2wContext) { ERD2WController c = (ERD2WController)d2wContext.valueForKey("controller"); try { String controllerClassName = (String)d2wContext.valueForKey("controllerClassName"); if(controllerClassName != null) ...
init();
public void myCheckRules() { boolean checkRules = !WOApplication.application().isCachingEnabled(); if (checkRules) { ERD2WModel.erDefaultModel().checkRules(); } }
if (results == null || results.isEmpty() && log.isDebugEnabled()) log.debug("doQuery got no results for " + query);
private static ArrayList doQuery(String query, Map substitutions) { Logger log = CSMART.createLogger("org.cougaar.tools.csmart.ui.community.CommunityDBUtils"); ArrayList results = new ArrayList(); try { Connection conn = DBUtils.getConnection(); try { Statement stmt = conn.createStatement();...
canvas = GLDrawableFactory.getFactory().createGLCanvas(caps, chooser, null, null);
canvas = new GLCanvas(caps, chooser, null, null);
public void run(String[] args) { GLCapabilities caps = new GLCapabilities(); GLCapabilitiesChooser chooser = new MultisampleChooser(); caps.setSampleBuffers(true); caps.setNumSamples(4); canvas = GLDrawableFactory.getFactory().createGLCanvas(caps, chooser, null, null); canvas.addGLEventListener(new ...
canvas = GLDrawableFactory.getFactory().createGLCanvas(caps);
canvas = new GLCanvas(caps);
public void run(String[] args) { GLCapabilities caps = new GLCapabilities(); GLCapabilitiesChooser chooser = new MultisampleChooser(); caps.setSampleBuffers(true); caps.setNumSamples(4); canvas = GLDrawableFactory.getFactory().createGLCanvas(caps, chooser, null, null); canvas.addGLEventListener(new ...
if (_organisation == null && context.endsWith("groupId")) {
if (context.equals("project/groupId")) {
public void characters(char[] ch, int start, int length) throws SAXException { String txt = IvyPatternHelper.substituteVariables(new String(ch, start, length).trim(), _properties); String context = getContext(); if (context.startsWith("project/parent")) { return; ...
} else if (_organisation == null && context.endsWith("groupId")) { _organisation = txt;
public void characters(char[] ch, int start, int length) throws SAXException { String txt = IvyPatternHelper.substituteVariables(new String(ch, start, length).trim(), _properties); String context = getContext(); if (context.startsWith("project/parent")) { return; ...
e.push(types[i].getClassName());
e.push(TypeUtils.emulateClassGetName(types[i]));
private static void member_helper_type(final CodeEmitter e, List members, final ObjectSwitchCallback callback, final ParameterTyper typer, final Lab...
return typer.getParameterTypes((MethodInfo)value)[j].getClassName();
return TypeUtils.emulateClassGetName(typer.getParameterTypes((MethodInfo)value)[j]);
private static void member_helper_type(final CodeEmitter e, List members, final ObjectSwitchCallback callback, final ParameterTyper typer, final Lab...
return typer.getParameterTypes((MethodInfo)value)[j].getClassName();
return TypeUtils.emulateClassGetName(typer.getParameterTypes((MethodInfo)value)[j]);
public Object transform(Object value) { return typer.getParameterTypes((MethodInfo)value)[j].getClassName(); }
final int BUFSIZ = 1024; byte[] data = new byte[BUFSIZ]; int total = 0, c = 0, x = 0; while ((c = in.read(data, total, x)) != -1) { total += c; x -= c; if (x == 0) { byte[] tmp = new byte[total + BUFSIZ]; System.arraycopy(data, 0, tmp, 0, total); data = tmp; x = BUFSIZ; }
ByteArrayOutputStream bout = new ByteArrayOutputStream(); int read = -1; byte[] buf = new byte[1024 * 50]; while ((read = in.read(buf)) != -1) { bout.write(buf, 0, read);
public static byte[] bytesFromInputStream(InputStream in) throws IOException { if (in == null) throw new IllegalArgumentException("null input stream"); final int BUFSIZ = 1024; byte[] data = new byte[BUFSIZ]; int total = 0, c = 0, x = 0; while ((c = in.read(data, total, x)) != -1)...
return data;
return bout.toByteArray();
public static byte[] bytesFromInputStream(InputStream in) throws IOException { if (in == null) throw new IllegalArgumentException("null input stream"); final int BUFSIZ = 1024; byte[] data = new byte[BUFSIZ]; int total = 0, c = 0, x = 0; while ((c = in.read(data, total, x)) != -1)...
File f = File.createTempFile("", "");
File f = File.createTempFile("WonderTempDir", "");
public static final File createTempDir() throws IOException { File f = File.createTempFile("", ""); f.delete(); f.delete(); f.mkdirs(); return f; }
ComponentDescription[] agents = initializerService.getComponentDescriptions(nodeData.name, AGENT_INSERTION_POINT); assertEquals("Wrong number of agents", nodeData.agentData.length, agents.length); for (int i = 0; i < agents.length; i++) { String agentName = agents[i].getName(); String className = agents[i].getClassname...
for (int k = 0; k < nodeData.length; k++) { ComponentDescription[] agents = initializerService.getComponentDescriptions(nodeData[k].name, AGENT_INSERTION_POINT); assertEquals("Wrong number of agents", nodeData[k].agentData.length, agents.length); for (int i = 0; i < agents.length; i++) { String agentName = agents[i].ge...
private void checkCMT() throws SQLException, IOException, InitializerServiceException { ComponentDescription[] agents = initializerService.getComponentDescriptions(nodeData.name, AGENT_INSERTION_POINT); assertEquals("Wrong number of agents", nodeData.agentData.length, agents.length); ...
dbp = DBProperties.readQueryFile(DATABASE, QUERY_FILE);
dbp = getDBProperties();
public void cleanAll(String cleanType) throws SQLException, IOException, ClassNotFoundException { dbp = DBProperties.readQueryFile(DATABASE, QUERY_FILE); Connection dbConnection = openConnection(); try { removeAll(dbConnection, cleanType); dbConnection.commit(); } f...
String query = dbp.getQuery(queryName, null);
String query = dbp.getQuery(queryName, substitutions);
private String getNextId(Connection dbConnection, String queryName, MessageFormat format) { String id = format.format(new Object[] {new Integer(1)}); // Default try { Statement stmt = dbConnection.createStatement(); try { String query = dbp.getQuery(queryName, null...
System.out.println("maxId=" + maxId);
private String getNextId(Connection dbConnection, String queryName, MessageFormat format) { String id = format.format(new Object[] {new Integer(1)}); // Default try { Statement stmt = dbConnection.createStatement(); try { String query = dbp.getQuery(queryName, null...
System.out.println("Using default id: " + id);
e.printStackTrace();
private String getNextId(Connection dbConnection, String queryName, MessageFormat format) { String id = format.format(new Object[] {new Integer(1)}); // Default try { Statement stmt = dbConnection.createStatement(); try { String query = dbp.getQuery(queryName, null...
MessageFormat assemblyIdFormat = new MessageFormat(type + "_" + "{0,number,0000}");
MessageFormat assemblyIdFormat = new MessageFormat(type + "-" + "{0,number,0000}"); substitutions.put(":assembly_type", CMT_TYPE);
private String insertAssembly(Connection dbConnection, String type) throws SQLException { MessageFormat assemblyIdFormat = new MessageFormat(type + "_" + "{0,number,0000}"); String assemblyId = getNextId(dbConnection, QUERY_MAX_ASSEMBLY, assemblyIdFormat); substitutions.put(":assembly_id", asse...
Statement stmt = dbConnection.createStatement();
private String insertAssembly(Connection dbConnection, String type) throws SQLException { MessageFormat assemblyIdFormat = new MessageFormat(type + "_" + "{0,number,0000}"); String assemblyId = getNextId(dbConnection, QUERY_MAX_ASSEMBLY, assemblyIdFormat); substitutions.put(":assembly_id", asse...
insertLibComponent(dbConnection, NODE_TYPE + "|" + nodeData.name, NODE_TYPE, nodeData.className, NODE_INSERTION_POINT); for (int i = 0; i < nodeData.agentData.length; i++) { AgentData agentData = nodeData.agentData[i];
for (int k = 0; k < nodeData.length; k++) {
private void insertLib(Connection dbConnection) throws SQLException { insertLibComponent(dbConnection, NODE_TYPE + "|" + nodeData.name, NODE_TYPE, nodeData.className, NODE_INSERTION_POINT); for (int...
agentData.name, AGENT_TYPE, agentData.className, AGENT_INSERTION_POINT); for (int j = 0; j < agentData.pluginData.length; j++) { PluginData pluginData = agentData.pluginData[j];
nodeData[k].name, NODE_TYPE, nodeData[k].className, NODE_INSERTION_POINT); for (int i = 0; i < nodeData[k].agentData.length; i++) { AgentData agentData = nodeData[k].agentData[i];
private void insertLib(Connection dbConnection) throws SQLException { insertLibComponent(dbConnection, NODE_TYPE + "|" + nodeData.name, NODE_TYPE, nodeData.className, NODE_INSERTION_POINT); for (int...
"plugin|" + pluginData.className, PLUGIN_TYPE, pluginData.className, PLUGIN_INSERTION_POINT);
agentData.name, AGENT_TYPE, agentData.className, AGENT_INSERTION_POINT); for (int j = 0; j < agentData.pluginData.length; j++) { PluginData pluginData = agentData.pluginData[j]; insertLibComponent(dbConnection, "plugin|" + pluginData.className, PLUGIN_TYPE, pluginData.className, PLUGIN_INSERTION_POINT); }
private void insertLib(Connection dbConnection) throws SQLException { insertLibComponent(dbConnection, NODE_TYPE + "|" + nodeData.name, NODE_TYPE, nodeData.className, NODE_INSERTION_POINT); for (int...
pdb = new PopulateDb(CMT_TYPE, CMT_TYPE, CMT_TYPE, "REGRESSION Experiment", exptId, trialId, true); pdb.setDebug(true); AgentData[] agentData = nodeData.agentData;
pdb = new PopulateDb("", CMT_TYPE, CMT_TYPE, "REGRESSION Experiment " + exptId, exptId, trialId, false); for (int i = 0; i < nodeData.length; i++) { ComponentData node = new GenericComponentData(); node.setType(ComponentData.NODE); node.setName(nodeData[i].name); node.setClassName(nodeData[i].className); AgentData[] a...
private void populateCMT() throws SQLException, IOException { pdb = new PopulateDb(CMT_TYPE, CMT_TYPE, CMT_TYPE, "REGRESSION Experiment", exptId, trialId, true); pdb.setDebug(true); AgentData[] agentData = nodeData.agentData; for (int j = 0; j ...
agent.setParent(node); node.addChild(agent);
private void populateCMT() throws SQLException, IOException { pdb = new PopulateDb(CMT_TYPE, CMT_TYPE, CMT_TYPE, "REGRESSION Experiment", exptId, trialId, true); pdb.setDebug(true); AgentData[] agentData = nodeData.agentData; for (int j = 0; j ...
}
private void populateCMT() throws SQLException, IOException { pdb = new PopulateDb(CMT_TYPE, CMT_TYPE, CMT_TYPE, "REGRESSION Experiment", exptId, trialId, true); pdb.setDebug(true); AgentData[] agentData = nodeData.agentData; for (int j = 0; j ...
dbp = DBProperties.readQueryFile(DATABASE, QUERY_FILE); dbp.setDebug(true);
dbp = getDBProperties();
public void setUp() throws SQLException, IOException, ClassNotFoundException { Map substitutions = new HashMap(); dbp = DBProperties.readQueryFile(DATABASE, QUERY_FILE); dbp.setDebug(true); Connection dbConnection = openConnection(); try { insertLib(dbConnection); ...
System.out.println("trialId=" + trialId);
public void setUp() throws SQLException, IOException, ClassNotFoundException { Map substitutions = new HashMap(); dbp = DBProperties.readQueryFile(DATABASE, QUERY_FILE); dbp.setDebug(true); Connection dbConnection = openConnection(); try { insertLib(dbConnection); ...
populateCMT(); checkCMT(); { ComponentData node = new GenericComponentData(); node.setType(ComponentData.NODE); node.setName(nodeData.name); node.setClassName(nodeData.className); } { }
public void test() throws SQLException, IOException, InitializerServiceException { populateCMT(); checkCMT(); { ComponentData node = new GenericComponentData(); node.setType(ComponentData.NODE); node.setName(nodeData.name); node.setClassName(nodeData....
public boolean doesNotHaveForm() { return !ERXUtilities.booleanValue(d2wContext().valueForKey("hasForm")); }
public boolean doesNotHaveForm() { return !ERXValueUtilities.booleanValue(d2wContext().valueForKey("hasForm")); }
public boolean doesNotHaveForm() { return !ERXUtilities.booleanValue(d2wContext().valueForKey("hasForm")); }
public boolean shouldCollectValidationExceptions() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldCollectValidationExceptions")); }
public boolean shouldCollectValidationExceptions() { return ERXValueUtilities.booleanValue(d2wContext().valueForKey("shouldCollectValidationExceptions")); }
public boolean shouldCollectValidationExceptions() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldCollectValidationExceptions")); }
public boolean shouldRenderBorder() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldRenderBorder")); }
public boolean shouldRenderBorder() { return ERXValueUtilities.booleanValue(d2wContext().valueForKey("shouldRenderBorder")); }
public boolean shouldRenderBorder() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldRenderBorder")); }
public boolean shouldRevertChanges() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldRevertChanges")); }
public boolean shouldRevertChanges() { return ERXValueUtilities.booleanValue(d2wContext().valueForKey("shouldRevertChanges")); }
public boolean shouldRevertChanges() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldRevertChanges")); }
public boolean shouldSaveChanges() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldSaveChanges")); }
public boolean shouldSaveChanges() { return ERXValueUtilities.booleanValue(d2wContext().valueForKey("shouldSaveChanges")); }
public boolean shouldSaveChanges() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldSaveChanges")); }
public boolean shouldShowActionButtons() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldShowActionButtons")); }
public boolean shouldShowActionButtons() { return ERXValueUtilities.booleanValue(d2wContext().valueForKey("shouldShowActionButtons")); }
public boolean shouldShowActionButtons() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldShowActionButtons")); }
public boolean shouldShowCancelButton() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldShowCancelButton")); }
public boolean shouldShowCancelButton() { return ERXValueUtilities.booleanValue(d2wContext().valueForKey("shouldShowCancelButton")); }
public boolean shouldShowCancelButton() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldShowCancelButton")); }
public boolean shouldShowSubmitButton() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldShowSubmitButton")); }
public boolean shouldShowSubmitButton() { return ERXValueUtilities.booleanValue(d2wContext().valueForKey("shouldShowSubmitButton")); }
public boolean shouldShowSubmitButton() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldShowSubmitButton")); }
public boolean shouldValidateBeforeSave() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldValidateBeforeSave")); }
public boolean shouldValidateBeforeSave() { return ERXValueUtilities.booleanValue(d2wContext().valueForKey("shouldValidateBeforeSave")); }
public boolean shouldValidateBeforeSave() { return ERXUtilities.booleanValue(d2wContext().valueForKey("shouldValidateBeforeSave")); }
protected InvalidMotionException()
protected InvalidMotionException(String msg)
protected InvalidMotionException() { }
super( msg );
protected InvalidMotionException() { }
if(aa.getName().equals("org.cougaar.tools.csmart.plugin.MetricsInitializerPlugin")) {
if(aa.getName().equals("org.cougaar.tools.csmart.runtime.plugin.MetricsInitializerPlugin")) {
private void writeNodeFile(File configDir, ComponentData nc) throws IOException { if (nc.childCount() == 0) { // node has no agents or binders. skip it return; } Object[] parameters = nc.getParameters(); String configFileName = nc.getName() + ".ini"; if (parameters.length > 0) configFileName...
public Object newInstance(Class target, String[] getters, String[] setters, Class[] types);
public Object newInstance(String target, String[] getters, String[] setters, String[] types);
public Object newInstance(Class target, String[] getters, String[] setters, Class[] types);
Object key = KEY_FACTORY.newInstance(target, getters, setters, types);
String targetClassName = target.getName(); String[] typeClassNames = ReflectUtils.getNames(types); Object key = KEY_FACTORY.newInstance(targetClassName, getters, setters, typeClassNames);
public BulkBean create() { setNamePrefix(target.getName()); Object key = KEY_FACTORY.newInstance(target, getters, setters, types); return (BulkBean)super.create(key); }
public PipedOutputStream () { closed = false; }
PipedOutputStream() { ; }
public PipedOutputStream () { closed = false; }
public void close () throws IOException { closed = true; destination.receive(-1); }
close() throws IOException { closed = true; snk.close(); notifyAll(); }
public void close () throws IOException { closed = true; // Notify PipedInputStream that there is no more data to be had. destination.receive(-1); }
public synchronized void flush () throws IOException { }
flush() throws IOException { return; }
public synchronized void flush () throws IOException { // There doesn't seem to be anything to do here. // TBD: Should this maybe do a notifyAll as a way for the user // to wake up the input stream to check for bytes to read? Shouldn't // be necessary but if there aren't any bytes, other threads will ju...
public void write (int oneByte) throws IOException { if (closed) throw new IOException (); destination.receive(oneByte); }
write(int b) throws IOException { byte[] buf = new byte[1]; buf[0] = (byte)(b & 0xFF); snk.write(buf, 0, buf.length); }
public void write (int oneByte) throws IOException { if (closed) throw new IOException (); destination.receive(oneByte); }
return (AdjustmentListener) AWTEventMulticaster.getListeners (AdjustmentListener.class);
return (AdjustmentListener[]) AWTEventMulticaster.getListeners (adjustmentListener, AdjustmentListener.class);
public AdjustmentListener[] getAdjustmentListeners () { return (AdjustmentListener) AWTEventMulticaster.getListeners (AdjustmentListener.class); }
JLabel message = pane.msg != null ? new JLabel((String)pane.msg) : null;
JLabel message = pane.getMessage() != null ? new JLabel((String)pane.getMessage()) : null;
public void installUI(JComponent c) { super.installUI(c); pane = (JOptionPane)c; System.out.println(" -------------: " + pane); JLabel message = pane.msg != null ? new JLabel((String)pane.msg) : null; JButton ok_button = new JButton("Ok"); ok_button.addActionListener(new ActionListener() { public vo...
if (pane.args != null)
if (pane.getOptions() != null)
public void installUI(JComponent c) { super.installUI(c); pane = (JOptionPane)c; System.out.println(" -------------: " + pane); JLabel message = pane.msg != null ? new JLabel((String)pane.msg) : null; JButton ok_button = new JButton("Ok"); ok_button.addActionListener(new ActionListener() { public vo...
for (int i=0; i<pane.args.length; i++)
for (int i=0; i<pane.getOptions().length; i++)
public void installUI(JComponent c) { super.installUI(c); pane = (JOptionPane)c; System.out.println(" -------------: " + pane); JLabel message = pane.msg != null ? new JLabel((String)pane.msg) : null; JButton ok_button = new JButton("Ok"); ok_button.addActionListener(new ActionListener() { public vo...
Object o = pane.args[i];
Object o = pane.getOptions()[i];
public void installUI(JComponent c) { super.installUI(c); pane = (JOptionPane)c; System.out.println(" -------------: " + pane); JLabel message = pane.msg != null ? new JLabel((String)pane.msg) : null; JButton ok_button = new JButton("Ok"); ok_button.addActionListener(new ActionListener() { public vo...
return getClass().getName() + "[" + id + "]";
return getClass().getName() + "[" + paramString() + "] on " + source;
public String toString () { return getClass().getName() + "[" + id + "]"; }
Enumeration enum = fileTable.keys();
Enumeration enumList = fileTable.keys();
public void run(String[] args) { // Use a try/catch block for parser exceptions try { // create a new symbol table SymbolTable symbolTable = SymbolTable.getSymbolTable(); // if we have at least one command-line argument if (args.length > 0) { ...
while (enum.hasMoreElements()) {
while (enumList.hasMoreElements()) {
public void run(String[] args) { // Use a try/catch block for parser exceptions try { // create a new symbol table SymbolTable symbolTable = SymbolTable.getSymbolTable(); // if we have at least one command-line argument if (args.length > 0) { ...
File f = (File) enum.nextElement();
File f = (File) enumList.nextElement();
public void run(String[] args) { // Use a try/catch block for parser exceptions try { // create a new symbol table SymbolTable symbolTable = SymbolTable.getSymbolTable(); // if we have at least one command-line argument if (args.length > 0) { ...
System.err.println("exception: " + e); e.printStackTrace(System.err); System.exit(1); } }
public void run(String[] args) { // Use a try/catch block for parser exceptions try { // create a new symbol table SymbolTable symbolTable = SymbolTable.getSymbolTable(); // if we have at least one command-line argument if (args.length > 0) { ...
selections = fakeRelationshipForKey(sourceObject(), relationshipKey(), destinationEntityName(), delimiter());
selections = ERXFakeRelationship.fakeRelationshipForKey(sourceObject(), relationshipKey(), destinationEntityName(), delimiter());
public NSArray selections() { if(selections == null) { selections = fakeRelationshipForKey(sourceObject(), relationshipKey(), destinationEntityName(), delimiter()); } return selections; }
public static setFakeRelationshipForKey(EOEnterpriseObject sourceObject, NSArray objects, String relationshipKey, String destinationEntityName, String delimiter) {
public static void setFakeRelationshipForKey(EOEnterpriseObject sourceObject, NSArray objects, String relationshipKey, String destinationEntityName, String delimiter) {
public static setFakeRelationshipForKey(EOEnterpriseObject sourceObject, NSArray objects, String relationshipKey, String destinationEntityName, String delimiter) { if(objects.count() > 0) { EOEntityClassDescription cd = (EOEntityClassDescription)EOClassDescription.classDescriptionForEntityName(destinationEntity...
setFakeRelationshipForKey(sourceObject(), aValue, relationshipKey(), destinationEntityName(), delimiter());
ERXFakeRelationship.setFakeRelationshipForKey(sourceObject(), aValue, relationshipKey(), destinationEntityName(), delimiter());
public void setSelections(NSArray aValue) { setFakeRelationshipForKey(sourceObject(), aValue, relationshipKey(), destinationEntityName(), delimiter()); selections = aValue; }
log = CSMART.createLogger("org.cougaar.tools.csmart.log.binder");
createLogger();
public SlowMessageTransportServiceFilter() { log = CSMART.createLogger("org.cougaar.tools.csmart.log.binder"); if(log.isDebugEnabled()) { log.info("\n\n SlowMT created\n\n"); } }
this.type = type;
this.adjType = type;
public AdjustmentEvent (Adjustable source, int id, int type, int value) { super (source, id); this.type = type; this.value = value; }
Enumeration enum = projects.elements();
Enumeration enumList = projects.elements();
private VizProject getProject(String dir, String file) { Enumeration enum = projects.elements(); while (enum.hasMoreElements()) { VizProject project = (VizProject) enum.nextElement(); if (dir.equals(project.getDir()) && file.equals(project.getFile())) ...
while (enum.hasMoreElements()) {
while (enumList.hasMoreElements()) {
private VizProject getProject(String dir, String file) { Enumeration enum = projects.elements(); while (enum.hasMoreElements()) { VizProject project = (VizProject) enum.nextElement(); if (dir.equals(project.getDir()) && file.equals(project.getFile())) ...
VizProject project = (VizProject) enum.nextElement();
VizProject project = (VizProject) enumList.nextElement();
private VizProject getProject(String dir, String file) { Enumeration enum = projects.elements(); while (enum.hasMoreElements()) { VizProject project = (VizProject) enum.nextElement(); if (dir.equals(project.getDir()) && file.equals(project.getFile())) ...
VizProject project = new VizProject(); project.setDir(dir); project.setFile(file); projects.addElement(project); return project; }
private VizProject getProject(String dir, String file) { Enumeration enum = projects.elements(); while (enum.hasMoreElements()) { VizProject project = (VizProject) enum.nextElement(); if (dir.equals(project.getDir()) && file.equals(project.getFile())) ...
if (types[i].equals(output.getClass())) found = true;
if (types[i].isInstance(output)) found = true;
public void setOutput(Object output) { if (output != null) { // Check if its a valid output object. boolean found = false; Class[] types = null; if (originatingProvider != null) types = originatingProvider.getOutputTypes(); if (types != null) for (int i = types.length - 1; i >= 0; --i) if (types[i]....
getProject().setProperty("ivy.deps.changed", String.valueOf(report.hasChanged())); ivy.setVariable("ivy.deps.changed", String.valueOf(report.hasChanged()));
public void execute() throws BuildException { Ivy ivy = getIvyInstance(); try { if (_file == null) { _file = new File(getProject().getBaseDir(), getProperty(ivy, "ivy.dep.file")); } _conf = getProperty(_conf, ivy, "ivy.configurations"); _revis...