rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
public Object[] parse (String sourceStr) throws ParseException
public Object[] parse (String sourceStr, ParsePosition pos)
public Object[] parse (String sourceStr) throws ParseException { ParsePosition pp = new ParsePosition (0); Object[] r = parse (sourceStr, pp); if (r == null) throw new ParseException ("couldn't parse string", pp.getErrorIndex()); return r; }
ParsePosition pp = new ParsePosition (0); Object[] r = parse (sourceStr, pp); if (r == null) throw new ParseException ("couldn't parse string", pp.getErrorIndex());
int index = pos.getIndex(); if (! sourceStr.startsWith(leader, index)) { pos.setErrorIndex(index); return null; } index += leader.length(); Vector results = new Vector (elements.length, 1); for (int i = 0; i < elements.length; ++i) { Format formatter = null; if (elements[i].setFormat != null) formatter = elements[i]....
public Object[] parse (String sourceStr) throws ParseException { ParsePosition pp = new ParsePosition (0); Object[] r = parse (sourceStr, pp); if (r == null) throw new ParseException ("couldn't parse string", pp.getErrorIndex()); return r; }
ClickatellException(String theMsg, int theErrId)
private ClickatellException()
ClickatellException(String theMsg, int theErrId) { super(theMsg); myErrId = theErrId; }
super(theMsg); myErrId = theErrId;
super();
ClickatellException(String theMsg, int theErrId) { super(theMsg); myErrId = theErrId; }
EOEditingContext peer = ERXExtensions.newEditingContext();
EOEditingContext peer = ERXEC.newEditingContext();
public WOComponent createGroup() { // This will be a peer of the session's default editingContext. EOEditingContext peer = ERXExtensions.newEditingContext(); EditPageInterface epi = (EditPageInterface)D2W.factory().pageForConfigurationNamed("EditGroup", session()); epi.setObject(ERXUtili...
EOEditingContext peer = ERXExtensions.newEditingContext();
EOEditingContext peer = ERXEC.newEditingContext();
public WOComponent createUser() { // This will be a peer of the session's default editingContext. EOEditingContext peer = ERXExtensions.newEditingContext(); EditPageInterface epi = (EditPageInterface)D2W.factory().pageForConfigurationNamed("EditUser", session()); epi.setObject(ERXUtiliti...
EOEditingContext peer = ERXExtensions.newEditingContext();
EOEditingContext peer = ERXEC.newEditingContext();
public WOComponent editMyInformation() { // This will be a peer of the session's default editingContext. EOEditingContext peer = ERXExtensions.newEditingContext(); EditPageInterface epi = (EditPageInterface)D2W.factory().pageForConfigurationNamed("EditUser", session()); epi.setObject(ERX...
if (check[i] != callbackTypes[i]) {
if (!check[i].equals(callbackTypes[i])) {
private void validate(boolean transforming) { if (transforming && filter != null && !(filter instanceof CallbackFilter2)) { throw new IllegalStateException("CallbackFilter2 must be used when transforming"); } if ((classOnly || transforming) ^ (callbacks == null)) { if (cla...
public Source(String name, boolean useCache) {
public Source(String name) {
public Source(String name, boolean useCache) { this.name = name; }
public static KeyFactory create(Class keyInterface, Customizer customizer) { Generator gen = new Generator(); gen.setInterface(keyInterface); gen.setCustomizer(customizer); return gen.create();
public static KeyFactory create(Class keyInterface) { return create(keyInterface, null);
public static KeyFactory create(Class keyInterface, Customizer customizer) { Generator gen = new Generator(); gen.setInterface(keyInterface); gen.setCustomizer(customizer); return gen.create(); }
public static Signature parseConstructor(String sig) { return parseSignature("void <init>(" + sig + ")");
public static Signature parseConstructor(Type[] types) { StringBuffer sb = new StringBuffer(); sb.append("("); for (int i = 0; i < types.length; i++) { sb.append(types[i].getDescriptor()); } sb.append(")"); sb.append("V"); return new Signature(Constants.CONSTRUCTOR_NAME, sb.toString());
public static Signature parseConstructor(String sig) { return parseSignature("void <init>(" + sig + ")"); // TODO }
int mark = lparen + 1;
public static Signature parseSignature(String s) { int space = s.indexOf(' '); int lparen = s.indexOf('(', space); int rparen = s.indexOf(')', lparen); String returnType = s.substring(0, space); String methodName = s.substring(space + 1, lparen); StringBuffer sb = new Strin...
public static Object newInstance(Class type, Class[] parameterTypes, Object[] args) { return newInstance(getConstructor(type, parameterTypes), args);
public static Object newInstance(Class type) { return newInstance(type, Constants.EMPTY_CLASS_ARRAY, null);
public static Object newInstance(Class type, Class[] parameterTypes, Object[] args) { return newInstance(getConstructor(type, parameterTypes), args); }
CodeEmitter e = new CodeEmitter(this, v, access, sig, exceptions); if (useHook && sig.equals(Constants.SIG_STATIC) && !TypeUtils.isInterface(access)) { seenStatic = true; e.invoke_static_this(STATIC_HOOK);
if (sig.equals(STATIC_HOOK)) { hook = new CodeEmitter(this, v, access, sig, exceptions) { public boolean isStaticHook() { return true; } public void visitMaxs(int maxStack, int maxLocals) { if (ended) { super.visitMaxs(maxStack, maxLocals); } } public void visitInsn(int insn) { if (insn != Constants.RETURN || ended) { ...
public CodeEmitter begin_method(int access, Signature sig, Type[] exceptions) { CodeVisitor v = cv.visitMethod(access, sig.getName(), sig.getDescriptor(), TypeUtils.toInternalNames(exceptions)); ...
return e;
public CodeEmitter begin_method(int access, Signature sig, Type[] exceptions) { CodeVisitor v = cv.visitMethod(access, sig.getName(), sig.getDescriptor(), TypeUtils.toInternalNames(exceptions)); ...
public void store_local(Local local) { store_local(local.getType(), local.getIndex());
private void store_local(Type t, int pos) { cv.visitVarInsn(t.getOpcode(Constants.ISTORE), pos);
public void store_local(Local local) { store_local(local.getType(), local.getIndex()); }
public void load_local(Local local) { load_local(local.getType(), local.getIndex());
private void load_local(Type t, int pos) { cv.visitVarInsn(t.getOpcode(Constants.ILOAD), pos);
public void load_local(Local local) { load_local(local.getType(), local.getIndex()); }
public void super_invoke_constructor(Signature sig) { invoke_constructor(ce.getSuperType(), sig);
public void super_invoke_constructor() { invoke_constructor(ce.getSuperType());
public void super_invoke_constructor(Signature sig) { invoke_constructor(ce.getSuperType(), sig); }
public void newarray(Type type) { if (TypeUtils.isPrimitive(type)) { cv.visitIntInsn(Constants.NEWARRAY, TypeUtils.NEWARRAY(type)); } else { emit_type(Constants.ANEWARRAY, type); }
public void newarray() { newarray(Constants.TYPE_OBJECT);
public void newarray(Type type) { if (TypeUtils.isPrimitive(type)) { cv.visitIntInsn(Constants.NEWARRAY, TypeUtils.NEWARRAY(type)); } else { emit_type(Constants.ANEWARRAY, type); } }
if (!useHook || TypeUtils.isInterface(access)) { throw new IllegalStateException("static hook is invalid for this class"); } if (hook == null) { hook = rec.begin_method(Constants.ACC_STATIC, STATIC_HOOK, null); hook.setStaticHook(true); } return hook;
if (TypeUtils.isInterface(access)) { throw new IllegalStateException("static hook is invalid for this class"); } if (hook == null) { ClassEmitter oe = new ClassEmitter(outer); oe.declare_field(Constants.PRIVATE_FINAL_STATIC, STATIC_HOOK_FLAG, Type.BOOLEAN_TYPE, null); CodeEmitter e = oe.begin_method(Constants.ACC_STATI...
public CodeEmitter getStaticHook() { if (!useHook || TypeUtils.isInterface(access)) { throw new IllegalStateException("static hook is invalid for this class"); } if (hook == null) { hook = rec.begin_method(Constants.ACC_STATIC, STATIC_HOOK, null); hook.setStati...
public void invoke_constructor(Type type, Signature sig) { emit_invoke(Constants.INVOKESPECIAL, type, sig);
public void invoke_constructor(Type type) { invoke_constructor(type, CSTRUCT_NULL);
public void invoke_constructor(Type type, Signature sig) { emit_invoke(Constants.INVOKESPECIAL, type, sig); }
setTarget(cv);
setTarget(cv, this);
public ClassEmitter(ClassVisitor cv) { super(null); setTarget(cv); }
if (useHook && !TypeUtils.isInterface(access)) { if (hook != null && !seenStatic) { CodeEmitter e = begin_static(); e.return_value(); e.end_method();
if (seenStatic && hook == null) { getStaticHook(); } if (hook != null) { if (!seenStatic) { CodeVisitor v = outer.visitMethod(Constants.ACC_STATIC, Constants.SIG_STATIC.getName(), Constants.SIG_STATIC.getDescriptor(), null); v.visitInsn(Constants.RETURN); v.visitMaxs(0, 0);
public void end_class() { if (useHook && !TypeUtils.isInterface(access)) { if (hook != null && !seenStatic) { CodeEmitter e = begin_static(); e.return_value(); e.end_method(); } if (seenStatic) { getStaticHook(); // ...
if (seenStatic) { getStaticHook(); hook.return_value(); hook.end_method(); ((ClassRecorder)rec.cv).generateMethod(STATIC_HOOK, raw); }
ended = true; hook.return_value(); hook.end_method();
public void end_class() { if (useHook && !TypeUtils.isInterface(access)) { if (hook != null && !seenStatic) { CodeEmitter e = begin_static(); e.return_value(); e.end_method(); } if (seenStatic) { getStaticHook(); // ...
raw.visitEnd(); cv = raw = null;
cv.visitEnd();
public void end_class() { if (useHook && !TypeUtils.isInterface(access)) { if (hook != null && !seenStatic) { CodeEmitter e = begin_static(); e.return_value(); e.end_method(); } if (seenStatic) { getStaticHook(); // ...
private void addAssetData() {
protected void addAssetData() {
private void addAssetData() { BaseComponent asset = (BaseComponent)new AssetFileComponent(filename, getShortName()); asset.initProperties(); addChild(asset); }
private void addPlugins() {
protected void addPlugins() {
private void addPlugins() { ContainerBase container = new ContainerBase("Plugins"); container.initProperties(); addChild(container); if(log.isDebugEnabled()) { log.debug("Parse: " + filename); } ComponentDescription[] desc = ComponentConnector.parseFile(filename); for (int i=0; i < des...
public AgentBase(String name) { this(name, AgentBase.DEFAULT_CLASS);
public AgentBase(String name, String classname) { super(name); this.name = name; this.classname = classname; createLogger(); if(log.isDebugEnabled()) { log.debug("Creating Agent: " + name); } installListeners();
public AgentBase(String name) { this(name, AgentBase.DEFAULT_CLASS); }
String containerInsertionPoint = "";
public static ComponentDescription[] parseFile(String filename) { ComponentDescription[] desc = null; String containerInsertionPoint = ""; Logger log = CSMART.createLogger("org.cougaar.tools.csmart.core.cdata.ComponentConnector"); if(!filename.endsWith(".ini")) { filename = filename + ".ini"; ...
desc = INIParser.parse(in, containerInsertionPoint);
desc = INIParser.parse(in);
public static ComponentDescription[] parseFile(String filename) { ComponentDescription[] desc = null; String containerInsertionPoint = ""; Logger log = CSMART.createLogger("org.cougaar.tools.csmart.core.cdata.ComponentConnector"); if(!filename.endsWith(".ini")) { filename = filename + ".ini"; ...
public BinderBase(String name, String classname) {
public BinderBase(String name) {
public BinderBase(String name, String classname) { super(name); this.classname = classname; createLogger(); }
this.classname = classname;
public BinderBase(String name, String classname) { super(name); this.classname = classname; createLogger(); }
public Property addParameter(String param) { return addProperty(PROP_PARAM + nParameters++, param);
public Property addParameter(int param) { return addProperty(PROP_PARAM + nParameters++, new Integer(param));
public Property addParameter(String param) { return addProperty(PROP_PARAM + nParameters++, param); }
canceled = new HashSet ();
public SelectorImpl (SelectorProvider provider) { super (provider); keys = new HashSet (); selected = new HashSet (); canceled = new HashSet (); }
protected void implCloseSelector ()
protected final void implCloseSelector() throws IOException
protected void implCloseSelector () { closed = true; }
closed = true;
wakeup();
protected void implCloseSelector () { closed = true; }
public Set keys ()
public final Set keys()
public Set keys () { return keys; }
return keys;
return Collections.unmodifiableSet (keys);
public Set keys () { return keys; }
if (!isValid()) throw new CancelledKeyException();
public int interestOps () { return interestOps; }
if (!isValid()) throw new CancelledKeyException();
public int readyOps () { return readyOps; }
append_string_helper(e, type, delims, customizer, this); e.push(delims.inside);
append_string_helper(e, type, d, customizer, this); e.push(d.inside);
public static void append_string(final CodeEmitter e, Type type, final ArrayDelimiters delims, final Customizer customizer) { final ArrayDelimiters d = (delims != null) ? delims : DEFAULT_DELIMITERS; ...
append_string_helper(e, type, delims, customizer, callback);
append_string_helper(e, type, d, customizer, callback);
public static void append_string(final CodeEmitter e, Type type, final ArrayDelimiters delims, final Customizer customizer) { final ArrayDelimiters d = (delims != null) ? delims : DEFAULT_DELIMITERS; ...
append_string_helper(e, type, delims, customizer, this); e.push(delims.inside);
append_string_helper(e, type, d, customizer, this); e.push(d.inside);
public void processElement(Type type) { append_string_helper(e, type, delims, customizer, this); e.push(delims.inside); e.invoke_virtual(Constants.TYPE_STRING_BUFFER, APPEND_STRING); }
runExit();
quit = true;
public void init(GLDrawable drawable) { GL gl = drawable.getGL(); GLU glu = drawable.getGLU(); float cc = 0.0f; gl.glClearColor(cc, cc, cc, 1); gl.glColor3f(1,1,1); gl.glEnable(GL.GL_DEPTH_TEST); gl.glDisable(GL.GL_CULL_FACE); try { initExtension(gl, "GL_ARB_vertex_pro...
throw new RuntimeException("OpenGL extension \"" + glExtensionName + "\" not available");
final String message = "OpenGL extension \"" + glExtensionName + "\" not available"; new Thread(new Runnable() { public void run() { JOptionPane.showMessageDialog(null, message, "Unavailable extension", JOptionPane.ERROR_MESSAGE); runExit(); } }).start(); throw new RuntimeException(message);
private void initExtension(GL gl, String glExtensionName) { if (!gl.isExtensionAvailable(glExtensionName)) { throw new RuntimeException("OpenGL extension \"" + glExtensionName + "\" not available"); } }
animator.stop(); System.exit(0); }
JOptionPane.showMessageDialog(null, message, "Unavailable extension", JOptionPane.ERROR_MESSAGE); runExit(); }
public void run() { animator.stop(); System.exit(0); }
String lineRead = null; Process seedProc = Runtime.getRuntime().exec(cmdString); BufferedReader reader = new BufferedReader(new InputStreamReader(seedProc.getInputStream())); while((lineRead = reader.readLine()) != null) { if (logger.isDebugEnabled()) { logger.debug("finishPage(IProgressMonitor)" + lineRead);
String lineRead = null; Process seedProc = Runtime.getRuntime().exec(cmdString); BufferedReader reader = new BufferedReader( new InputStreamReader(seedProc.getInputStream())); while ((lineRead = reader.readLine()) != null) { if (logger.isDebugEnabled()) { logger.debug("finishPage(IProgressMonitor)" + lineRead); }
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...
} exitValue = seedProc.exitValue();
exitValue = seedProc.exitValue();
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...
Utilities.addForrestPluginProperty(strPath + "\\" + strName + "\\forrest.properties", pluginPage.getSelectedPlugins());
Utilities.addForrestPluginProperty(strPath + "\\" + strName + "\\forrest.properties", pluginPage.getSelectedPlugins()); updateConfig(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...
System.out.println("Sent cluster urls");
System.out.println("Sent agent urls");
public void execute( HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { //this.out = response.getWriter(); this.out = response.getOutputStream(); // create a URL parameter visitor ServletUtil.ParamVisitor vis = new ServletUt...
if (action.equals(BUILD_COMMUNITY_ACTION)) return true;
private static boolean isActionAllowedOnExperiment(String action, Organizer organizer, Experiment experiment) { if (action.equals(DUPLICATE_ACTION)) return true; if (action.equals(SAVE_ACTION) && experim...
List sorted = new LinkedList(); List from = new ArrayList(moduleDescriptors); for (int i=from.size()-1; i>=0; i--) { ModuleDescriptor md = (ModuleDescriptor)from.get(i); List after = new LinkedList(); List between = new LinkedList(); int place = 0; for (ListIterator it2 = sorted.listIterator(); it2.hasNext(...
return ModuleDescriptorSorter.sortModuleDescriptors(moduleDescriptors);
public static List sortModuleDescriptors(Collection moduleDescriptors) { // Note that classical Comparator do not work here, because // one to one comparison is not suffisant since we only use // direct dependencies and not transitive one List sorted = new LinkedList(); //...
Map dependenciesMap = new LinkedHashMap(); List nulls = new ArrayList(); for (Iterator iter = nodes.iterator(); iter.hasNext();) { IvyNode node = (IvyNode)iter.next(); if (node.getDescriptor() == null) { nulls.add(node); } else { List n = (List)dependenciesMap.get(node.getDescriptor()); if (n == null) { n = new ArrayLi...
return ModuleDescriptorSorter.sortNodes(nodes);
public static List sortNodes(Collection nodes) { /* here we want to use the sort algorithm which work on module descriptors : * so we first put dependencies on a map from descriptors to dependency, then we * sort the keySet (i.e. a collection of descriptors), then we replace * in the...
public LatestConflictManager(String name, LatestStrategy strategy) { setName(name); _strategy = strategy;
public LatestConflictManager() {
public LatestConflictManager(String name, LatestStrategy strategy) { setName(name); _strategy = strategy; }
if (_impl != null) { _impl.progress();
MessageImpl messageImpl = IvyContext.getContext().getMessageImpl(); if (messageImpl != null) { messageImpl.progress();
public static void progress() { if (_showProgress) { if (_impl != null) { _impl.progress(); } else { System.out.println("."); } } }
public static void endProgress(String msg) { if (_showProgress) { if (_impl != null) { _impl.endProgress(msg); } }
public static void endProgress() { endProgress("");
public static void endProgress(String msg) { if (_showProgress) { if (_impl != null) { _impl.endProgress(msg); } } }
if (_impl != null) { _impl.log(msg, MSG_INFO);
MessageImpl messageImpl = IvyContext.getContext().getMessageImpl(); if (messageImpl != null) { messageImpl.log(msg, MSG_INFO);
public static void info(String msg) { if (_impl != null) { _impl.log(msg, MSG_INFO); } else { System.err.println(msg); } }
public ResolveData(Ivy ivy, File cache, Date date, ConfigurationResolveReport report, boolean validate) { this(ivy, cache, date, report, validate, new HashMap());
public ResolveData(ResolveData data, boolean validate) { this(data._ivy, data._cache, data._date, data._report, validate, data._nodes);
public ResolveData(Ivy ivy, File cache, Date date, ConfigurationResolveReport report, boolean validate) { this(ivy, cache, date, report, validate, new HashMap()); }
if (_impl != null) { _impl.log(msg, MSG_VERBOSE);
MessageImpl messageImpl = IvyContext.getContext().getMessageImpl(); if (messageImpl != null) { messageImpl.log(msg, MSG_VERBOSE);
public static void verbose(String msg) { if (_impl != null) { _impl.log(msg, MSG_VERBOSE); } else { System.err.println(msg); } }
if (_impl != null) {
MessageImpl messageImpl = IvyContext.getContext().getMessageImpl(); if (messageImpl != null) {
public static void error(String msg) { if (_impl != null) { // log in verbose mode because message is appended as a problem, and will be // logged at the end at error level _impl.log("ERROR: "+msg, MSG_VERBOSE); } else { System.err.println(msg); } ...
_impl.log("ERROR: "+msg, MSG_VERBOSE);
messageImpl.log("ERROR: "+msg, MSG_VERBOSE);
public static void error(String msg) { if (_impl != null) { // log in verbose mode because message is appended as a problem, and will be // logged at the end at error level _impl.log("ERROR: "+msg, MSG_VERBOSE); } else { System.err.println(msg); } ...
public Collection getDependencies(String conf, boolean traverse) {
public Collection getDependencies(String[] confs) {
public Collection getDependencies(String conf, boolean traverse) { if (_md == null) { throw new IllegalStateException("impossible to get dependencies when data has not been loaded"); } DependencyDescriptor[] dds = _md.getDependencies(); Collection dependencies = new LinkedHash...
DependencyDescriptor[] dds = _md.getDependencies(); Collection dependencies = new LinkedHashSet(); for (int i = 0; i < dds.length; i++) { DependencyDescriptor dd = dds[i]; String[] dependencyConfigurations = dd.getDependencyConfigurations(conf); if (dependencyConfigurations.length == 0) { continue; } IvyNode depNode ...
if (Arrays.asList(confs).contains("*")) { confs = _md.getConfigurationsNames();
public Collection getDependencies(String conf, boolean traverse) { if (_md == null) { throw new IllegalStateException("impossible to get dependencies when data has not been loaded"); } DependencyDescriptor[] dds = _md.getDependencies(); Collection dependencies = new LinkedHash...
return dependencies;
Collection deps = new HashSet(); for (int i = 0; i < confs.length; i++) { deps.addAll(getDependencies(confs[i], false)); } return deps;
public Collection getDependencies(String conf, boolean traverse) { if (_md == null) { throw new IllegalStateException("impossible to get dependencies when data has not been loaded"); } DependencyDescriptor[] dds = _md.getDependencies(); Collection dependencies = new LinkedHash...
return !_revision.startsWith("latest.") && !_revision.endsWith("+");
return isExactRevision(_revision);
public boolean isExactRevision() { return !_revision.startsWith("latest.") && !_revision.endsWith("+"); }
public IvyNode(ResolveData data, ModuleDescriptor md, String conf) { this(data, md, conf, false);
public IvyNode(ResolveData data, DependencyDescriptor dd) { _id = dd.getDependencyRevisionId(); _dd = dd; init(data, true);
public IvyNode(ResolveData data, ModuleDescriptor md, String conf) { this(data, md, conf, false); }
_selected.put(new ModuleIdConf(_id.getModuleId(), rootModuleConf), Collections.singleton(this));
_selectedDeps.put(new ModuleIdConf(_id.getModuleId(), rootModuleConf), Collections.singleton(this));
public void setRootModuleConf(String rootModuleConf) { if (_rootModuleConf != null && !_rootModuleConf.equals(rootModuleConf)) { _confsToFetch.clear(); // we change of root module conf => we discard all confs to fetch } if (rootModuleConf != null && rootModuleConf.equals(_rootModuleC...
public final InputStream openStream() throws IOException
public InputStream openStream() throws IOException
public final InputStream openStream() throws IOException { return openConnection().getInputStream(); }
if (_warns.size() > 0) {
MessageImpl messageImpl = IvyContext.getContext().getMessageImpl(); if (_warns.size() > 0) {
public static void sumupProblems() { if (_problems.size() > 0) { info("\n:: problems summary ::"); if (_warns.size() > 0) { info(":::: WARNINGS"); for (Iterator iter = _warns.iterator(); iter.hasNext();) { String msg = (String) iter.next(); ...
if (_impl != null) { _impl.log("\t"+msg+"\n", MSG_WARN);
if (messageImpl != null) { messageImpl.log("\t"+msg+"\n", MSG_WARN);
public static void sumupProblems() { if (_problems.size() > 0) { info("\n:: problems summary ::"); if (_warns.size() > 0) { info(":::: WARNINGS"); for (Iterator iter = _warns.iterator(); iter.hasNext();) { String msg = (String) iter.next(); ...
if (_impl != null) { _impl.log("\t"+msg+"\n", MSG_ERR);
if (messageImpl != null) { messageImpl.log("\t"+msg+"\n", MSG_ERR);
public static void sumupProblems() { if (_problems.size() > 0) { info("\n:: problems summary ::"); if (_warns.size() > 0) { info(":::: WARNINGS"); for (Iterator iter = _warns.iterator(); iter.hasNext();) { String msg = (String) iter.next(); ...
Collection resolved = (Collection)_selected.get(new ModuleIdConf(mid, rootModuleConf));
Collection resolved = (Collection)_selectedDeps.get(new ModuleIdConf(mid, rootModuleConf));
public Collection getResolvedRevisions(ModuleId mid, String rootModuleConf) { Collection resolved = (Collection)_selected.get(new ModuleIdConf(mid, rootModuleConf)); if (resolved == null) { return new HashSet(); } else { Collection ret = new HashSet(); for (Iter...
Collection resolved = (Collection)_selected.get(new ModuleIdConf(mid, rootModuleConf));
Collection resolved = (Collection)_selectedDeps.get(new ModuleIdConf(mid, rootModuleConf));
public Collection getResolvedNodes(ModuleId mid, String rootModuleConf) { Collection resolved = (Collection)_selected.get(new ModuleIdConf(mid, rootModuleConf)); Set ret = new HashSet(); if (resolved != null) { for (Iterator iter = resolved.iterator(); iter.hasNext();) { ...
_selected.put(new ModuleIdConf(moduleId, rootModuleConf), new HashSet(resolved));
_selectedDeps.put(new ModuleIdConf(moduleId, rootModuleConf), new HashSet(resolved));
public void setResolvedNodes(ModuleId moduleId, String rootModuleConf, Collection resolved) { _selected.put(new ModuleIdConf(moduleId, rootModuleConf), new HashSet(resolved)); }
propetyBuilder.log.debug("Saved society " + configComponent.getShortName());
propertyBuilder.log.debug("Saved society " + configComponent.getShortName());
private void saveToDatabase(boolean silently) { if (experiment != null) { saveExperiment(); return; } if (configComponent instanceof SocietyComponent) { if (((SocietyComponent)configComponent).isModified()) { final PropertyBuilder propertyBuilder = this; GUIUtils.timeConsumingTaskStart(this); ...
propetyBuilder.log.debug("Saved society " + configComponent.getShortName());
propertyBuilder.log.debug("Saved society " + configComponent.getShortName());
public void run() { boolean success = ((SocietyComponent)configComponent).saveToDatabase(); GUIUtils.timeConsumingTaskEnd(propertyBuilder); GUIUtils.timeConsumingTaskEnd(csmart); if (!success && propertyBuilder.log.isWarnEnabled()) { propertyBuilder.log.warn("Failed to save society " + con...
log.error("StripChart: " + e);
log.error("StripChart: ", e);
public void init(ChartDataModel data) { // Create data source // data = new StripChartSource(chart); // Add chart as a data source listener getDataView(0).setDataSource(data); // for customizing, when debugging only // setTrigger(0, new EventTrigger(Event.META_MASK, EventTrigger.CUSTOMIZE)); ...
if( i<= 5 ){
if( i < 0 ){ return new LDC( cp.addInteger(i) ); }else if( i<= 5 ){
static Instruction getIntConst( int i, ConstantPoolGen cp){ if( i<= 5 ){ return ( new ICONST( i ) ); }else if ( i < Byte.MAX_VALUE){ return ( new BIPUSH((byte)i ) ); }else if ( i < Short.MAX_VALUE ) { return ( n...
ERXCompilerProxy.defaultProxy().setClassForName(ERXWOText.class, "WOText");
public void installPatches() { if(contextClassName().equals("WOContext")) setContextClassName("er.extensions.ERXWOContext"); ERXCompilerProxy.defaultProxy().setClassForName(ERXWOForm.class, "WOForm"); ERXCompilerProxy.defaultProxy().setClassForName(ERXWOText.class, "WOText"); ...
System.out.println("ERX: eomodelgroup id = "+System.identityHashCode(eomodelgroup));
public static EOModelGroup modelGroupForLoadedBundles() { EOModelGroup eomodelgroup = new ERXModelGroup(); NSArray nsarray = NSBundle.frameworkBundles(); int i = nsarray.count() + 1; if (log.isDebugEnabled()) log.debug("Loading bundles" + nsarray.valueForKey("name")); NSMutableArr...
if (numberOfObjectsPerBatch() == 0) { return 0; } if (_objectList.size() == 0) { return 1; } return (_objectList.size() - 1) / numberOfObjectsPerBatch() + 1; }
if (numberOfObjectsPerBatch() == 0) { return 0; } int size = size(); if (size == 0) { return 1; } return (size - 1) / numberOfObjectsPerBatch() + 1; }
public int batchCount() { if (numberOfObjectsPerBatch() == 0) { return 0; } if (_objectList.size() == 0) { return 1; } return (_objectList.size() - 1) / numberOfObjectsPerBatch() + 1; }
NSMutableArray displayedObjects = new NSMutableArray(numberOfObjectsPerBatch()); if (_displayedObjects == null) { int numberOfObjectsPerBatch = numberOfObjectsPerBatch(); int startIndex = (currentBatchIndex() - 1) * numberOfObjectsPerBatch; int size = (_objectList == null) ? 0 : _objectList.size(); int endIndex = Math....
NSMutableArray displayedObjects = new NSMutableArray(numberOfObjectsPerBatch()); if (_displayedObjects == null) { int numberOfObjectsPerBatch = numberOfObjectsPerBatch(); int startIndex = (currentBatchIndex() - 1) * numberOfObjectsPerBatch; int size = (_objectList == null) ? 0 : size(); int endIndex = Math.min(startInd...
public NSArray displayedObjects() { NSMutableArray displayedObjects = new NSMutableArray(numberOfObjectsPerBatch()); if (_displayedObjects == null) { int numberOfObjectsPerBatch = numberOfObjectsPerBatch(); int startIndex = (currentBatchIndex() - 1) * numberOfObjectsPerBatch; int size = (_objectL...
if (!super.contains(key)) return null;
if (!super.containsKey(key)) return null;
public Object remove(Object key) { if (isReadOnly(key)) return null; if (!super.contains(key)) return null; // no change // System.out.println("Removing: " + key); fireChange(); return super.remove(key); }
myRunning = true;
public IMConnectionTester(IInstantMessenger _watcher, IInstantMessenger _watched, long _pingPongFrequencyMillis, long _timeoutMillis) { myPingPongMessageLock = new Object(); myWatcher = _watcher; myWatched = _watched; myPingPongFrequencyMillis = _pingPongFrequencyMillis; myTimeoutMillis = _timeoutMilli...
while (true) {
while (myRunning) {
public void run() { while (true) { try { Thread.sleep(myPingPongFrequencyMillis); } catch (InterruptedException e) { // who cares } //System.out.println("IMConnectionTester.run: Testing " + myWatched.getScreenName()); try { testConnection(); } catch (Thr...
try { testConnection(); } catch (Throwable t) { t.printStackTrace();
if (myRunning) { try { testConnection(); } catch (Throwable t) { t.printStackTrace(); }
public void run() { while (true) { try { Thread.sleep(myPingPongFrequencyMillis); } catch (InterruptedException e) { // who cares } //System.out.println("IMConnectionTester.run: Testing " + myWatched.getScreenName()); try { testConnection(); } catch (Thr...
if (!myWatched.isConnected()) {
if (myRunning && !myWatched.isConnected()) {
protected void testConnection() throws IMConnectionException { if (!myWatched.isConnected()) { myWatched.connect(); myFailureCount = 0; } if (!myWatcher.isConnected()) { myWatcher.connect(); myFailureCount = 0; } synchronized (myPingPongMessageLock) { try { //System.out....
if (!myWatcher.isConnected()) {
if (myRunning && !myWatcher.isConnected()) {
protected void testConnection() throws IMConnectionException { if (!myWatched.isConnected()) { myWatched.connect(); myFailureCount = 0; } if (!myWatcher.isConnected()) { myWatcher.connect(); myFailureCount = 0; } synchronized (myPingPongMessageLock) { try { //System.out....
if (myFailureCount > 5) {
if (myRunning && myFailureCount > 5) {
protected void testConnection() throws IMConnectionException { if (!myWatched.isConnected()) { myWatched.connect(); myFailureCount = 0; } if (!myWatcher.isConnected()) { myWatcher.connect(); myFailureCount = 0; } synchronized (myPingPongMessageLock) { try { //System.out....
jellyContext.setVariable( "context",
jellyContext.setVariable( "blissed_context",
public void perform(ProcessContext context) throws ActivityException { JellyContext jellyContext = new JellyContext(); jellyContext.setVariable( "context", context ); try { XMLOutput output = XMLOutput.createXMLOutput( System.err, ...
return editFunctionName() + "()";
String editFunctionCall = null; if (!disabled()) { editFunctionCall = editFunctionName() + "()"; } return editFunctionCall;
public String editFunctionCall() { return editFunctionName() + "()"; }
boolean disabled = false; if (hasBinding("disabled")) { disabled = ((Boolean)valueForBinding("disabled")).booleanValue(); } return !disabled && _editing;
return !disabled() && _editing;
public boolean editing() { if (hasBinding("editing")) { Boolean editingBoolean = (Boolean)valueForBinding("editing"); _editing = editingBoolean.booleanValue(); } boolean disabled = false; if (hasBinding("disabled")) { disabled = ((Boolean)valueForBinding("disabled")).booleanValue(); } return !dis...
public int childCount();
int childCount();
public int childCount();
public ConfigurableComponent getOwner();
ConfigurableComponent getOwner();
public ConfigurableComponent getOwner();
public void setParameter(int index, Object param);
void setParameter(int index, Object param);
public void setParameter(int index, Object param);
CollationElementIterator (String text)
CollationElementIterator (String text, RuleBasedCollator collator)
CollationElementIterator (String text) { this.text = text; this.index = 0; this.lookahead_set = false; this.lookahead = 0; }
this.collator = collator;
CollationElementIterator (String text) { this.text = text; this.index = 0; this.lookahead_set = false; this.lookahead = 0; }
return RuleBasedCollator.ceiNext(this);
return collator.ceiNext(this);
public int next () { if (index == text.length()) return NULLORDER; return RuleBasedCollator.ceiNext(this); }
sm.checkDelete (getName());
sm.checkDelete (getPath());
public void deleteOnExit() { // Check the SecurityManager SecurityManager sm = System.getSecurityManager(); if (sm != null) sm.checkDelete (getName()); DeleteFileHelper.add(this); }
public ScalabilityXSociety(String name) { super(name);
public ScalabilityXSociety() { this("Scalability");
public ScalabilityXSociety(String name) { super(name); }