rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
if (!findListener(appServer, name)) haveNewNodes = true;
AppServerDesc desc = (AppServerDesc)nodeToAppServer.get(name); if (desc != null && desc.hostName.equals(appServerDesc.hostName) && desc.remotePort == appServerDesc.remotePort) continue; else if (!findListener(appServer, name)) haveNewNodes = true;
private boolean updateNodeToAppServerMapping() { System.out.println("Updating app servers"); boolean haveNewNodes = false; // get process descriptions from all known app servers // and store info in a new hashtable Hashtable newNodeToAppServer = new Hashtable(); for (int i = 0; i < appServers.size()...
doc.setBufferSize(viewSize);
if (viewSize != -2) doc.setBufferSize(viewSize);
private void setViewSize_actionPerformed() { ConsoleStyledDocument doc = (ConsoleStyledDocument)consoleTextPane.getStyledDocument(); int viewSize = CSMARTConsole.displayViewSizeDialog(doc.getBufferSize()); doc.setBufferSize(viewSize); }
oout = new RMIObjectOutputStream(dout); }
throw new IOException("no ObjectOutputStream for sending more objects"); }
ObjectOutputStream getObjectOutputStream() throws IOException { if (oout == null) { oout = new RMIObjectOutputStream(dout); } return (oout);}
name.replace(start, name.lastIndexOf("OrgRT"), "Org"); className.replace(className.indexOf("OrgRT"), className.lastIndexOf("OrgRT"), "org");
name.delete(start, start+2); start = className.indexOf("RT"); className.delete(start, start+2);
protected void addPlugins() { ContainerBase container = new ContainerBase("Plugins"); container.initProperties(); addChild(container); ComponentDescription[] desc = ComponentConnector.parseFile(filename); if (desc == null) { if (log.isWarnEnabled()) { log.warn("No data found in file " + file...
if(_classPath.indexOf("Classes/classes.jar") < 0) { String systemRoot = "/System/Library/Frameworks/JavaVM.framework/Classes/"; _classPath += ":" + systemRoot + "classes.jar"; _classPath += ":" + systemRoot + "ui.jar"; }
public void initialize() { if(WOApplication.application().isCachingEnabled()) { log.info("I assume this is deployment mode, rapid-turnaround mode is disabled"); _filesToWatch = new NSMutableDictionary(); return; } if(!ERXUtilities.booleanValueWithDefault(System.getProp...
ModuleDescriptor md = ivy.resolve(
ResolveReport report = ivy.resolve(
public static void main(String[] args) throws Exception { Options options = getOptions(); CommandLineParser parser = new GnuParser(); try { // parse the command line arguments CommandLine line = parser.parse( options, args ); if (line.hasOpti...
validate).getModuleDescriptor();
validate); ModuleDescriptor md = report.getModuleDescriptor();
public static void main(String[] args) throws Exception { Options options = getOptions(); CommandLineParser parser = new GnuParser(); try { // parse the command line arguments CommandLine line = parser.parse( options, args ); if (line.hasOpti...
log = CSMART.createLogger(this.getClass().getName());
log = (Logger)NullLoggingServiceImpl.getNullLoggingServiceImpl();
public CommunityProviderServlet(SimpleServletSupport support) { super(); this.support = support; log = CSMART.createLogger(this.getClass().getName()); if ( ! ( "/CSMART_CommunityProviderServlet".equals(support.getPath()) ) ) { System.out.println("Error in servlet path: " + support.getPath()); } ...
substitutions.put(":stop_date:", sqlQuote(r.getStopTime()));
substitutions.put(":end_date:", sqlQuote(r.getStopTime()));
private void populateAgent(ComponentData data, boolean isAdded) throws SQLException { AgentAssetData assetData = data.getAgentAssetData(); if (assetData == null) return; substitutions.put(":component_lib_id:", getComponentLibId(data)); substitutions.put(":agent_org_prototype:", sqlQuote(...
organizer.selectExperimentFromDatabase();
organizer.selectRecipeFromDatabase();
public void actionPerformed(ActionEvent e) { organizer.selectExperimentFromDatabase(); }
organizer.newExperiment();
organizer.newRecipe();
public void actionPerformed(ActionEvent e) { organizer.newExperiment(); }
newExperimentMenu = new JMenu(ActionUtil.NEW_EXPERIMENT_ACTION); for (int i = 0; i < newExperimentActions.length; i++) newExperimentMenu.add(newExperimentActions[i]); fileMenu.add(newExperimentMenu);
newExperimentMenuItem = new JMenuItem(ActionUtil.NEW_EXPERIMENT_ACTION); newExperimentMenuItem.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { organizer.selectExperimentFromDatabase(); } }); fileMenu.add(newExperimentMenuItem);
public CSMART() { setTitle("CSMART"); createLog(); // Write initial CSMART info to the log file if (log.isFatalEnabled()) { log.fatal(writeDebug()); } resultDir = initResultDir(); JMenuBar menuBar = new JMenuBar(); getRootPane().setJMenuBar(menuBar); // set-up file menu which includes ...
organizer.duplicate();
organizer.delete();
public void actionPerformed(ActionEvent e) { organizer.duplicate(); }
organizer.delete();
organizer.deleteExperimentFromDatabase();
public void actionPerformed(ActionEvent e) { organizer.delete(); }
organizer.deleteRecipeFromDatabase();
organizer.rename();
public void actionPerformed(ActionEvent e) { organizer.deleteRecipeFromDatabase(); }
organizer.rename();
organizer.saveComponent();
public void actionPerformed(ActionEvent e) { organizer.rename(); }
organizer.selectRecipeFromDatabase();
organizer.selectExperimentFromDatabase();
public void actionPerformed(ActionEvent e) { organizer.selectRecipeFromDatabase(); }
organizer.newRecipe();
organizer.newSociety();
public void actionPerformed(ActionEvent e) { organizer.newRecipe(); }
organizer.newSociety();
organizer.newFolder();
public void actionPerformed(ActionEvent e) { organizer.newSociety(); }
organizer.newFolder();
organizer.startBuilder();
public void actionPerformed(ActionEvent e) { organizer.newFolder(); }
organizer.startBuilder();
organizer.startExperimentBuilder();
public void actionPerformed(ActionEvent e) { organizer.startBuilder(); }
Thread.sleep(100);
Thread.sleep(50);
public static void main(String args[]) throws InterruptedException { Thread_Alive ta = new Thread_Alive(); Thread t = new Thread(ta); System.out.println(t.isAlive()); t.start(); System.out.println(t.isAlive()); Thread.sleep(100); synchronized (ta) { ta.notifyAll(); } t.join(); ...
String cachedRevision = null;
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDate = null; String cachedRevision = null; ModuleRevisionId mrid = ...
cachedRevision = rmr.getDescriptor().getResolvedModuleRevisionId().getRevision();
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDate = null; String cachedRevision = null; ModuleRevisionId mrid = ...
!ivyRef.getRevision().equals(md.getModuleRevisionId().getRevision())) {
!ModuleRevisionId.acceptRevision(ivyRef.getRevision(), md.getModuleRevisionId().getRevision())) {
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDate = null; String cachedRevision = null; ModuleRevisionId mrid = ...
} if (cachedRevision != null) { if (!cachedRevision.equals(md.getResolvedModuleRevisionId().getRevision())) { Message.verbose("revision "+dd+" has changed: deleting old artifacts"); deleteOldArtifacts = true; } else { Message.debug("revision "+dd+" has not changed: keeping old artifacts"); }
public ResolvedModuleRevision getDependency(DependencyDescriptor dd, ResolveData data) throws ParseException { clearIvyAttempts(); boolean downloaded = false; boolean searched = false; Date cachedPublicationDate = null; String cachedRevision = null; ModuleRevisionId mrid = ...
sqle.printStackTrace();
if(log.isErrorEnabled()) { log.error("Exception", sqle); }
public ComponentData modifyComponentData(ComponentData data, PopulateDb pdb) { try { Set targets = pdb.executeQuery(propTargetComponentQuery.getValue().toString()); modifyComponentData(data, pdb, targets); } catch (SQLException sqle) { sqle.printStackTrace(); } return data; }
public Object newInstance(Class source, Class target, boolean useConverter);
public Object newInstance(String source, String target, boolean useConverter);
public Object newInstance(Class source, Class target, boolean useConverter);
Object key = KEY_FACTORY.newInstance(source, target, useConverter);
Object key = KEY_FACTORY.newInstance(source.getName(), target.getName(), useConverter);
public BeanCopier create() { Object key = KEY_FACTORY.newInstance(source, target, useConverter); return (BeanCopier)super.create(key); }
ERXArrayUtilities.sortedArraySortedWithKey(aSortedArray, _localSortKey());
ERXArrayUtilities.sortArrayWithKey(aSortedArray, _localSortKey());
public NSArray theList() { NSMutableArray aSortedArray; NSArray anUnsortedArray; if (_privateList()==null ) { EODataSource aDataSource = _localDataSource(); // Need to make sure that the eos are in the right editingContext. // ak: We get a dictionary as object if we us...
if(context != null && context instanceof ERXMutableUserInfoHolderInterface && _formName != null) {
if(context != null && context instanceof ERXMutableUserInfoHolderInterface) {
public void appendAttributesToResponse(WOResponse response, WOContext context) { if(context != null && context instanceof ERXMutableUserInfoHolderInterface && _formName != null) { NSMutableDictionary ui = ((ERXMutableUserInfoHolderInterface)context).mutableUserInfo(); String formName = ...
String formName = (String)_formName.valueInComponent(context.component()); if(formName != null) { ui.setObjectForKey(formName, "formName"); response._appendTagAttributeAndValue("name", formName, false);
if(_formName != null) { String formName = (String)_formName.valueInComponent(context.component()); if(formName != null) { ui.setObjectForKey(formName, "formName"); response._appendTagAttributeAndValue("name", formName, false); }
public void appendAttributesToResponse(WOResponse response, WOContext context) { if(context != null && context instanceof ERXMutableUserInfoHolderInterface && _formName != null) { NSMutableDictionary ui = ((ERXMutableUserInfoHolderInterface)context).mutableUserInfo(); String formName = ...
String enctype = (String)_enctype.valueInComponent(context.component()); if(enctype != null) { ui.setObjectForKey(enctype.toLowerCase(), "enctype"); response._appendTagAttributeAndValue("enctype", enctype, false);
if(_enctype != null) { String enctype = (String)_enctype.valueInComponent(context.component()); if(enctype != null) { ui.setObjectForKey(enctype.toLowerCase(), "enctype"); response._appendTagAttributeAndValue("enctype", enctype, false); }
public void appendAttributesToResponse(WOResponse response, WOContext context) { if(context != null && context instanceof ERXMutableUserInfoHolderInterface && _formName != null) { NSMutableDictionary ui = ((ERXMutableUserInfoHolderInterface)context).mutableUserInfo(); String formName = ...
if(propertyStopClass == null || (propertyStopClass.isAssignableFrom(methodClass) && !propertyStopClass.equals(methodClass))) { if(name.startsWith("is")
if(isReachable(propertyStopClass, methodClass)) { if(Modifier.isStatic(method.getModifiers())) { otherMethods.addElement(method); } else if(name.startsWith("is")
public void addMethod(Method method) { if(Modifier.isPublic(method.getModifiers()) && !Modifier.isStatic(method.getModifiers())) { String name = ClassHelper.getTruncatedName(method.getName()); Class retType = method.getReturnType(); Class[] params = method.getParameterTypes(); boolean isVoid = retType.equal...
if(eventStopClass == null || (eventStopClass.isAssignableFrom(methodClass) && !eventStopClass.equals(methodClass))) {
if(isReachable(eventStopClass, methodClass)) {
public void addMethod(Method method) { if(Modifier.isPublic(method.getModifiers()) && !Modifier.isStatic(method.getModifiers())) { String name = ClassHelper.getTruncatedName(method.getName()); Class retType = method.getReturnType(); Class[] params = method.getParameterTypes(); boolean isVoid = retType.equal...
if(methodStopClass == null || (methodStopClass.isAssignableFrom(methodClass) && !methodStopClass.equals(methodClass))) {
if(isReachable(methodStopClass, methodClass)) {
public void addMethod(Method method) { if(Modifier.isPublic(method.getModifiers()) && !Modifier.isStatic(method.getModifiers())) { String name = ClassHelper.getTruncatedName(method.getName()); Class retType = method.getReturnType(); Class[] params = method.getParameterTypes(); boolean isVoid = retType.equal...
filter.SetImageIO( dicomIO.GetPointer() );
reader.SetImageIO( dicomIO.GetPointer() );
public static void main( String argv[] ) { System.out.println("DicomSliceRead Example"); itkImageFileReaderUS2_Pointer reader = itkImageFileReaderUS2.itkImageFileReaderUS2_New(); itkImageFileWriterUC2_Pointer writer = itkImageFileWriterUC2.itkImageFileWriterUC2_New(); itkRescaleIntensityImageFilterUS2UC2...
e.printStackTrace();
if(log.isErrorEnabled()) { log.error("Exception", e); }
public int addElement(Transferable t, DefaultMutableTreeNode target, DefaultMutableTreeNode before) { DataFlavor[] flavors = t.getTransferDataFlavors(); int action = isDroppable(flavors, target); if (action != DnDConstants.ACTION_NONE) { ...
if (nc.childCount() == 0) { return; }
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) configFile...
writer.print("Node.AgentManager.Binder = ");
writer.print("Node.AgentManager.Binder");
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) configFile...
writer.print("Node.AgentManager.Agent.PluginManager.Binder = ");
writer.print("Node.AgentManager.Agent.PluginManager.Binder");
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) configFile...
writer.print(children[i].getType() + " = ");
writer.print(children[i].getType());
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) configFile...
if(ComponentDescription.parsePriority(children[i].getPriority()) != ComponentDescription.PRIORITY_COMPONENT) { writer.print("(" + children[i].getPriority() + ")"); } writer.print(" = ");
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) configFile...
System.out.println("Copyright 1999, 2002 Free Software Foundation");
System.out.println("Copyright (C) 2002 Free Software Foundation");
static void version () { System.out.println("jv-convert (GNU " + System.getProperty("java.vm.name") + ") " + System.getProperty("java.vm.version")); System.out.println(); System.out.println("Copyright 1999, 2002 Free Software Foundation"); System.out.println("This is free software...
log.error("Bug 1304: Null RelationshipBase at child spot # " + i);
log.error("Please report seeing Bug 1304: Null RelationshipBase at child spot # " + i + " out of " + container.getChildCount() + " for Asset " + assetData.getUnitName() + " and agent " + agentName + " in assembly " + assemblyID, new Throwable());
public ComponentData addComponentData(ComponentData data) { AgentAssetData assetData = new AgentAssetData((AgentComponentData)data); // assetData.setType(((Integer)propAssetType.getValue()).intValue()); assetData.setAssetClass((String)propAssetClass.getValue()); assetData.setUniqueID((String)propUnique...
log.error("Bug 1304: Null Relationship type for relationship at child spot #" + i);
log.error("Please report seeing Bug 1304: Null Relationship type for relationship at child spot #" + i + " out of " + container.getChildCount() + " for Asset " + assetData.getUnitName() + " and agent " + agentName + " in assembly " + assemblyID, new Throwable());
public ComponentData addComponentData(ComponentData data) { AgentAssetData assetData = new AgentAssetData((AgentComponentData)data); // assetData.setType(((Integer)propAssetType.getValue()).intValue()); assetData.setAssetClass((String)propAssetClass.getValue()); assetData.setUniqueID((String)propUnique...
rData.setType((String)rel.getProperty(RelationshipBase.PROP_TYPE).getValue());
public ComponentData addComponentData(ComponentData data) { AgentAssetData assetData = new AgentAssetData((AgentComponentData)data); // assetData.setType(((Integer)propAssetType.getValue()).intValue()); assetData.setAssetClass((String)propAssetClass.getValue()); assetData.setUniqueID((String)propUnique...
log = CSMART.createLogger("org.cougaar.tools.csmart.runtime.binder");
createLogger();
public SlowMessageTransportServiceProxy( MessageTransportService mt, Object requestor, MessageReleaseScheduler mrs) { log = CSMART.createLogger("org.cougaar.tools.csmart.runtime.binder"); this.mt = mt; this.mtc = ((requestor instanceof MessageTransportClient) ? ((MessageTransportC...
ERXEC erxc = (ERXEC)ec; key = key + "_" + erxc.locale().getLanguage(); if(!allPropertyKeys().contains(key)) { key = null; } return key;
if(ec instanceof ERXEC) { ERXEC erxc = (ERXEC)ec; key = key + "_" + erxc.locale().getLanguage(); if(!allPropertyKeys().contains(key)) { key = null; } } else { key = null; } return key;
public String localizedKey(EOEditingContext ec, String key) { ERXEC erxc = (ERXEC)ec; key = key + "_" + erxc.locale().getLanguage(); if(!allPropertyKeys().contains(key)) { key = null; } return key; }
_goingVertically=ERXUtilities.booleanValue(valueForBinding("goingVertically")) ?
_goingVertically=ERXValueUtilities.booleanValue(valueForBinding("goingVertically")) ?
public boolean goingVertically() { if (_goingVertically == null) { _goingVertically=ERXUtilities.booleanValue(valueForBinding("goingVertically")) ? Boolean.TRUE : Boolean.FALSE; } return _goingVertically.booleanValue(); }
_showIndex=ERXUtilities.booleanValue(valueForBinding("showIndex")) ?
_showIndex=ERXValueUtilities.booleanValue(valueForBinding("showIndex")) ?
public boolean showIndex() { if (_showIndex == null) { _showIndex=ERXUtilities.booleanValue(valueForBinding("showIndex")) ? Boolean.TRUE : Boolean.FALSE; } return _showIndex.booleanValue(); }
return hasCustomImageNameForCurrentState() ? (hasBinding("frameworkName") ? (String)valueForBinding("frameworkName") : null) : "WOExtensions";
return hasCustomImageNameForCurrentState() ? (hasBinding("frameworkName") ? (String)valueForBinding("frameworkName") : null) : "JavaWOExtensions";
public String frameworkName() { return hasCustomImageNameForCurrentState() ? (hasBinding("frameworkName") ? (String)valueForBinding("frameworkName") : null) : "WOExtensions"; }
public ERXWOTextField(String s, NSDictionary nsdictionary, WOElement woelement) {
public ERXWOTextField(String tagname, NSDictionary nsdictionary, WOElement woelement) {
public ERXWOTextField(String s, NSDictionary nsdictionary, WOElement woelement) { super("input", nsdictionary, woelement); if(_value == null || !_value.isValueSettable()) throw new WODynamicElementCreationException("<" + getClass().getName() + "> 'value' attribute not present or is a constant"); _formatter = (W...
woresponse.appendContentString("</input>");
protected void _appendCloseTagToResponse(WOResponse woresponse, WOContext wocontext) { woresponse.appendContentString("</input>"); }
protected String type() {
public String type() {
protected String type() { return "text"; }
Property hisProp = result.getProperty(name);
String s = name.toString(); ComponentName hisPropName = new ComponentName(result, s.substring(societyName.length())); Property hisProp = result.getProperty(hisPropName);
public SocietyComponent copy(Organizer organizer, Object context) { String societyName = organizer.generateSocietyName(getSocietyName()); ScalabilityXSociety result = new ScalabilityXSociety(societyName); result.initProperties(); Property propLevelCount = result.getProperty(PROP_LEVELCOUNT); propLevelC...
public void addToBothSidesOfComponent(er.bugtracker.Component object) {
public void addToBothSidesOfComponent(Component object) {
public void addToBothSidesOfComponent(er.bugtracker.Component object) { addObjectToBothSidesOfRelationshipWithKey(object, "component"); }
public void addToBothSidesOfState(er.bugtracker.TestItemState object) {
public void addToBothSidesOfState(TestItemState object) {
public void addToBothSidesOfState(er.bugtracker.TestItemState object) { addObjectToBothSidesOfRelationshipWithKey(object, "state"); }
public er.bugtracker.Component component() { return (er.bugtracker.Component)storedValueForKey("component");
public Component component() { return (Component)storedValueForKey("component");
public er.bugtracker.Component component() { return (er.bugtracker.Component)storedValueForKey("component"); }
public void removeFromBothSidesOfComponent(er.bugtracker.Component object) {
public void removeFromBothSidesOfComponent(Component object) {
public void removeFromBothSidesOfComponent(er.bugtracker.Component object) { removeObjectFromBothSidesOfRelationshipWithKey(object, "component"); }
public void removeFromBothSidesOfState(er.bugtracker.TestItemState object) {
public void removeFromBothSidesOfState(TestItemState object) {
public void removeFromBothSidesOfState(er.bugtracker.TestItemState object) { removeObjectFromBothSidesOfRelationshipWithKey(object, "state"); }
public void setComponent(er.bugtracker.Component aValue) {
public void setComponent(Component aValue) {
public void setComponent(er.bugtracker.Component aValue) { takeStoredValueForKey(aValue, "component"); }
public void setState(er.bugtracker.TestItemState aValue) {
public void setState(TestItemState aValue) {
public void setState(er.bugtracker.TestItemState aValue) { takeStoredValueForKey(aValue, "state"); }
public er.bugtracker.TestItemState state() { return (er.bugtracker.TestItemState)storedValueForKey("state");
public TestItemState state() { return (TestItemState)storedValueForKey("state");
public er.bugtracker.TestItemState state() { return (er.bugtracker.TestItemState)storedValueForKey("state"); }
final public static float normalize_latitude (float lat) {
public static final float normalize_latitude (float lat) {
final public static float normalize_latitude (float lat) { if (lat > NORTH_POLE) { lat = NORTH_POLE; } if (lat < SOUTH_POLE) { lat = SOUTH_POLE; } return lat; }
final public static float wrap_longitude (float lon) {
public static final float wrap_longitude (float lon) {
final public static float wrap_longitude (float lon) { if ((lon < -DATELINE) || (lon > DATELINE)) { //System.out.print("LatLonPoint: wrapping longitude " + lon); lon += DATELINE; lon = lon%LON_RANGE; lon = (lon < 0) ? DATELINE + lon : -DATELINE + lon; //...
substitutions.put(":assembly_id:", sqlQuote(assemblyId));
substitutions.put(":assembly_id:", assemblyId);
private String addAssembly(String idType) throws SQLException { String assemblyId; String assemblyIdPrefix = idType + "-"; substitutions.put(":assembly_id_pattern:", assemblyIdPrefix + "____"); substitutions.put(":assembly_type:", idType); assemblyId = getNextId("queryMaxAssemblyId", assemblyIdPref...
substitutions.put(":pg_name:", pgName); substitutions.put(":attribute_name:", propName);
substitutions.put(":pg_name:", sqlQuote(pgName)); substitutions.put(":attribute_name:", sqlQuote(propName));
private void setPropertyInfo(String pgName, String propName, String propType, String propSubtype) throws SQLException { if(log.isDebugEnabled()) { log.debug("setPropertyInfo("+pgName+", "+propName+", "+ propType+", "+propSubtype+")"); } Statement stmt = dbCon...
substitutions.put(":attribute_type:", (propSubtype == null) ? "Fixme" : propSubtype);
substitutions.put(":attribute_type:", sqlQuote((propSubtype == null) ? "String" : propSubtype));
private void setPropertyInfo(String pgName, String propName, String propType, String propSubtype) throws SQLException { if(log.isDebugEnabled()) { log.debug("setPropertyInfo("+pgName+", "+propName+", "+ propType+", "+propSubtype+")"); } Statement stmt = dbCon...
substitutions.put(":aggregate_type:", "COLLECTION");
substitutions.put(":aggregate_type:", sqlQuote("COLLECTION"));
private void setPropertyInfo(String pgName, String propName, String propType, String propSubtype) throws SQLException { if(log.isDebugEnabled()) { log.debug("setPropertyInfo("+pgName+", "+propName+", "+ propType+", "+propSubtype+")"); } Statement stmt = dbCon...
substitutions.put(":aggregate_type:", "SINGLE");
substitutions.put(":aggregate_type:", sqlQuote("SINGLE"));
private void setPropertyInfo(String pgName, String propName, String propType, String propSubtype) throws SQLException { if(log.isDebugEnabled()) { log.debug("setPropertyInfo("+pgName+", "+propName+", "+ propType+", "+propSubtype+")"); } Statement stmt = dbCon...
log.debug("att_lib: " + substitutions.get(":attribute_lib_id:")); log.debug("pg_name: " + substitutions.get(":pg_name:")); log.debug("att_name: " + substitutions.get(":attribute_name:")); log.debug("att_type: " + substitutions.get(":attribute_type:")); log.debug("agg_type: " + substitutions.get(":aggregate_type:"));
private void setPropertyInfo(String pgName, String propName, String propType, String propSubtype) throws SQLException { if(log.isDebugEnabled()) { log.debug("setPropertyInfo("+pgName+", "+propName+", "+ propType+", "+propSubtype+")"); } Statement stmt = dbCon...
setAllowedValues(allComponents);
public ComponentTypeProperty (ConfigurableComponent c, String name, Object value){ // super(c, name, new StringRange((String)value)); super(c, name, value); // Build up the set from the known values in ComponentData allComponents = new HashSet(); allComponents.add(new StringRange(ComponentData....
super.addNotify ();
public void addNotify () { if (peer == null) peer = getToolkit ().createScrollbar (this); }
GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());
GLCanvas canvas = new GLCanvas();
public static void main(String[] args) { boolean vboEnabled = true; if (args.length > 1) { usage(); } if (args.length == 1) { if (args[0].equals("-slow")) { vboEnabled = false; } else { usage(); } } GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new...
assert("Test isInRange()", ir.isInRange(new Integer(8))); assert("Test isInRange()", ir.isInRange(new Integer(1))); assert("Test isInRange()", !ir.isInRange(new Float(5.2))); assert("Test isInRange()", !ir.isInRange(new Float(10.1))); assert("Test isInRange()", !ir.isInRange(new String("Hello")));
assertTrue("Test isInRange()", ir.isInRange(new Integer(8))); assertTrue("Test isInRange()", ir.isInRange(new Integer(1))); assertTrue("Test isInRange()", !ir.isInRange(new Float(5.2))); assertTrue("Test isInRange()", !ir.isInRange(new Float(10.1))); assertTrue("Test isInRange()", !ir.isInRange(new String("Hello")));
public void testIsInRange() { assert("Test isInRange()", ir.isInRange(new Integer(8))); assert("Test isInRange()", ir.isInRange(new Integer(1))); assert("Test isInRange()", !ir.isInRange(new Float(5.2))); assert("Test isInRange()", !ir.isInRange(new Float(10.1))); assert("Test isInRange()", !ir.isInRan...
public void testToString() { String expect = new String(minimum + ":" + maximum); assertEquals("Test toString()", expect, ir.toString()); }
public void testIsInRange() { assert("Test isInRange()", ir.isInRange(new Integer(8))); assert("Test isInRange()", ir.isInRange(new Integer(1))); assert("Test isInRange()", !ir.isInRange(new Float(5.2))); assert("Test isInRange()", !ir.isInRange(new Float(10.1))); assert("Test isInRange()", !ir.isInRan...
Utilities.addForrestPluginProperty(strPath + "\\" + strName
if (pluginPage.getSelectedPlugins() != null ) { Utilities.addForrestPluginProperty(strPath + "\\" + strName
private void finishPage(IProgressMonitor monitor) throws InterruptedException, CoreException { if (monitor == null) { monitor = new NullProgressMonitor(); } int exitValue = -1; try { String strName = page.getProjectName(); monitor.beginTask("Creating " + strName + " Forrest Project", 3); IProject project...
}
private void finishPage(IProgressMonitor monitor) throws InterruptedException, CoreException { if (monitor == null) { monitor = new NullProgressMonitor(); } int exitValue = -1; try { String strName = page.getProjectName(); monitor.beginTask("Creating " + strName + " Forrest Project", 3); IProject project...
String key = (String)e.nextElement(); componentLevelKeys.setObjectForKey(componentLevelValuesForKey(key), key);
Object o = (Object)e.nextElement(); if(o instanceof NSArray) { for(Enumeration e1 = ((NSArray)o).objectEnumerator(); e1.hasMoreElements(); ) { String key = (String)e1.nextElement(); componentLevelKeys.setObjectForKey(componentLevelValuesForKey(key), key); } } else { String key = (String)o; componentLevelKeys.setObjectF...
public NSDictionary dictionary() { if(_dictionary == null) { _dictionary = new NSMutableDictionary(); addPageLevelValues(); NSArray displayPropertyKeys = (NSArray)_context.valueForKey("displayPropertyKeys"); if(displayPropertyKeys != null && displayPropertyKeys.cou...
NSLog.setDebug(new ERXNSLogLog4jBridge(ERXNSLogLog4jBridge.DEBUG));
public void finishedLaunchingApp(NSNotification n) { ERXProperties.populateSystemProperties(); ERXConfigurationManager.defaultManager().configureRapidTurnAround(); // initialize compiler proxy ERXCompilerProxy.defaultProxy().initialize(); ERXLocalizer.initi...
ERXNSLogLog4jBridge debugLogger = new ERXNSLogLog4jBridge(ERXNSLogLog4jBridge.DEBUG); debugLogger.setAllowedDebugLevel(NSLog.debug.allowedDebugLevel()); NSLog.setDebug(debugLogger);
public void finishedLaunchingApp(NSNotification n) { ERXProperties.populateSystemProperties(); ERXConfigurationManager.defaultManager().configureRapidTurnAround(); // initialize compiler proxy ERXCompilerProxy.defaultProxy().initialize(); ERXLocalizer.initi...
if (ERXProperties.webObjectsVersionAsDouble() < 5.2) { ERXCompilerProxy.defaultProxy().setClassForName(ERXWOFileUpload.class, "WOFileUpload"); }
public void installPatches() { if(contextClassName().equals("WOContext")) setContextClassName("er.extensions.ERXWOContext"); ERXCompilerProxy.defaultProxy().setClassForName(ERXWOForm.class, "WOForm"); //the next line commented out for WO 5.2, which has a correct warning instead of a ...
jif.getContentPane().add(new GLSClient(getOPlanAgentURL(glsAgent)));
glsClient = new GLSClient(getOPlanAgentURL(glsAgent)); jif.getContentPane().add(glsClient);
private void runTrial() { setTrialValues(); runStart = new Date(); nodeCreationInfoList = new ArrayList(); prepareToCreateNodes(); stopNodeCreation = false; startTimers(); nodeCreator = new Thread("CreateNodes") { public void run() { createNodes(); starting = false; // r...
jif.getContentPane().add(new GLSClient(getOPlanAgentURL(glsAgent)));
glsClient = new GLSClient(getOPlanAgentURL(glsAgent)); jif.getContentPane().add(glsClient);
public void run() { createNodes(); starting = false; // reset controls if no nodes started successfully boolean reset = false; synchronized (runningNodesLock) { if (runningNodes.isEmpty()) reset = true; } // end synchronized if (reset) { ...
jif.getContentPane().add(new GLSClient(getOPlanAgentURL(glsAgent)));
glsClient = new GLSClient(getOPlanAgentURL(glsAgent)); jif.getContentPane().add(glsClient);
public void run() { JInternalFrame jif = new JInternalFrame("GLS", true, false, true, true); jif.getContentPane().add(new GLSClient(getOPlanAgentURL(glsAgent))); jif.setSize(350, 350); jif.setLocation(0, 0); ...
if (glsClient != null) glsClient.stop();
private void stopAllNodes() { // if there's a thread still creating nodes, stop it stopNodeCreation = true; // wait for the creating thread to stop if (nodeCreator != null) { try { nodeCreator.join(); } catch (InterruptedException ie) { if(log.isErrorEnabled()) { log.error...
fileStream = new InputStreamReader(ConfigFinder.getInstance().open(filename));
File tryfile = new File(filename); if (! tryfile.exists()) { fileStream = new InputStreamReader(ConfigFinder.getInstance().open(filename)); } else { fileStream = new FileReader(tryfile); }
public AgentAssetData parsePrototypeFile(String cId) { clusterId = cId; String dataItem = ""; int newVal; String filename = getFileName(); BufferedReader input = null; Reader fileStream = null; AgentAssetData aad = new AgentAssetData(null); if(log.isDebugEnabled()) { log.debug("Setting IN...
ModuleRevisionId mrid1 = ModuleRevisionId.newInstance("org", "md1", "rev1"); ModuleRevisionId mrid2 = ModuleRevisionId.newInstance("org", "md2", "rev2"); ModuleRevisionId mrid3 = ModuleRevisionId.newInstance("org", "md3", "rev3"); DefaultModuleDescriptor[] md = new DefaultModuleDescriptor[] { new DefaultModuleDescripto...
ModuleRevisionId mrid1 = ModuleRevisionId.newInstance("org", "md1", "rev1"); ModuleRevisionId mrid2 = ModuleRevisionId.newInstance("org", "md2", "rev2"); ModuleRevisionId mrid3 = ModuleRevisionId.newInstance("org", "md3", "rev3"); ModuleRevisionId mrid4 = ModuleRevisionId.newInstance("org", "md4", "rev4"); DefaultModul...
public void testSort() { ModuleRevisionId mrid1 = ModuleRevisionId.newInstance("org", "md1", "rev1"); ModuleRevisionId mrid2 = ModuleRevisionId.newInstance("org", "md2", "rev2"); ModuleRevisionId mrid3 = ModuleRevisionId.newInstance("org", "md3", "rev3"); DefaultModuleDescriptor[] md = new DefaultModul...
toSort = new ArrayList(Arrays.asList(new Object[] {md[0], md[1], md[2]}));
toSort = new ArrayList(Arrays.asList(new Object[] {md[0], md[1], md[2], md[3]}));
public void testSort() { ModuleRevisionId mrid1 = ModuleRevisionId.newInstance("org", "md1", "rev1"); ModuleRevisionId mrid2 = ModuleRevisionId.newInstance("org", "md2", "rev2"); ModuleRevisionId mrid3 = ModuleRevisionId.newInstance("org", "md3", "rev3"); DefaultModuleDescriptor[] md = new DefaultModul...
toSort = new ArrayList(Arrays.asList(new Object[] {md[1], md[0], md[2]}));
toSort = new ArrayList(Arrays.asList(new Object[] {md[1], md[0], md[2], md[3]}));
public void testSort() { ModuleRevisionId mrid1 = ModuleRevisionId.newInstance("org", "md1", "rev1"); ModuleRevisionId mrid2 = ModuleRevisionId.newInstance("org", "md2", "rev2"); ModuleRevisionId mrid3 = ModuleRevisionId.newInstance("org", "md3", "rev3"); DefaultModuleDescriptor[] md = new DefaultModul...
toSort = new ArrayList(Arrays.asList(new Object[] {md[1], md[2], md[0]}));
toSort = new ArrayList(Arrays.asList(new Object[] {md[1], md[2], md[0], md[3]}));
public void testSort() { ModuleRevisionId mrid1 = ModuleRevisionId.newInstance("org", "md1", "rev1"); ModuleRevisionId mrid2 = ModuleRevisionId.newInstance("org", "md2", "rev2"); ModuleRevisionId mrid3 = ModuleRevisionId.newInstance("org", "md3", "rev3"); DefaultModuleDescriptor[] md = new DefaultModul...
toSort = new ArrayList(Arrays.asList(new Object[] {md[2], md[1], md[0]}));
toSort = new ArrayList(Arrays.asList(new Object[] {md[2], md[1], md[0], md[3]}));
public void testSort() { ModuleRevisionId mrid1 = ModuleRevisionId.newInstance("org", "md1", "rev1"); ModuleRevisionId mrid2 = ModuleRevisionId.newInstance("org", "md2", "rev2"); ModuleRevisionId mrid3 = ModuleRevisionId.newInstance("org", "md3", "rev3"); DefaultModuleDescriptor[] md = new DefaultModul...
toSort = new ArrayList(Arrays.asList(new Object[] {md[2], md[0], md[1]}));
toSort = new ArrayList(Arrays.asList(new Object[] {md[2], md[0], md[1], md[3]}));
public void testSort() { ModuleRevisionId mrid1 = ModuleRevisionId.newInstance("org", "md1", "rev1"); ModuleRevisionId mrid2 = ModuleRevisionId.newInstance("org", "md2", "rev2"); ModuleRevisionId mrid3 = ModuleRevisionId.newInstance("org", "md3", "rev3"); DefaultModuleDescriptor[] md = new DefaultModul...
}
toSort = new ArrayList(Arrays.asList(new Object[] {md[1], md[3], md[2], md[0]})); assertSorted(md, Ivy.sortModuleDescriptors(toSort)); }
public void testSort() { ModuleRevisionId mrid1 = ModuleRevisionId.newInstance("org", "md1", "rev1"); ModuleRevisionId mrid2 = ModuleRevisionId.newInstance("org", "md2", "rev2"); ModuleRevisionId mrid3 = ModuleRevisionId.newInstance("org", "md3", "rev3"); DefaultModuleDescriptor[] md = new DefaultModul...
cd.addChild((ComponentData)ac);
cd.addChild(cc.addComponentData(ac));
public ComponentData getComponentData() { ComponentData cd = new GenericComponentData(); cd.setType(ComponentData.RECIPE); cd.setClassName(RECIPE_CLASS); cd.setName(getRecipeName()); cd.setOwner(null); cd.setParent(null); for(int i=0; i < getChildCount(); i++) { ConfigurableComponent cc = (C...
if (!getId().isExactRevision()) {
if (!getId().isExactRevision()) { if (!_module.getId().isExactRevision()) { Message.error("impossible to resolve latest revision for "+getId()+": check your configuration and make sure revision is part of your pattern"); _problem = new RuntimeException("impossible to resolve latest revision"); _data.getReport().addDep...
public boolean loadData(String conf) { boolean loaded = _md != null; if (!isEvicted(_rootModuleConf) && hasConfigurationsToLoad() && !hasProblem()) { if (_md == null) { DependencyResolver resolver = _data.getIvy().getResolver(getModuleId()); try { ...
ERXPatcher.setClassForName(ERXWOFileUpload.class, "WOFileUpload");
public void installPatches() { EOModelGroup.setClassDelegate(this); ERXPatcher.installPatches(); if(contextClassName().equals("WOContext")) setContextClassName("er.extensions.ERXWOContext"); if(contextClassName().equals("WOServletContext") || contextClassName().equal...
protected void begin_constructor(java.lang.reflect.Constructor constructor) {
protected void begin_constructor(Constructor constructor) {
protected void begin_constructor(java.lang.reflect.Constructor constructor) { begin_constructor(constructor.getParameterTypes()); }
OutputStream out = new FileOutputStream(debugLocation + name + ".cglib");
OutputStream out = new FileOutputStream(new File(new File(debugLocation), name + ".cglib"));
public Class define() { try { try { generate(); String name = cg.getClassName(); byte[] bytes = cg.getJavaClass().getBytes(); if (debugLocation != null) { OutputStream out = new FileOutputStream(debugLocation + name + "...