code
stringlengths
10
174k
nl
stringlengths
3
129k
private void prepareVoucherdetails(final String[] ids,final Map<String,String[]> parameters,final List<CChartOfAccounts> glcodeList,final List<PaymentBean> billList){ if (LOGGER.isDebugEnabled()) LOGGER.debug("Starting prepareVoucherdetails..."); EgBillregister egBillregister=null; CGeneralLedger gl=null; CGe...
Partial payment is not allowed for netpayable subledger practically all bills will have single entity in netpayable Cbill is not allowed to make partial payment
protected static final boolean classEquals(Class first,Class second){ return first.equals(second) || first.getName().equals(second.getName()); }
Tests to see if two class objects, or their names are equal.
@ApiOperation(value="Update password",notes="Update current password") @ApiResponses({@ApiResponse(code=204,message="OK"),@ApiResponse(code=404,message="Not Found"),@ApiResponse(code=403,message="Invalid password"),@ApiResponse(code=500,message="Internal Server Error")}) @POST @Path("/password") @GenerateLink(rel=LINK_...
Updates current user password.
public void assertProjectControlsVisible(boolean expectsProject){ boolean chkEnableFindBugsVisible=getChkEnableFindBugs() != null; boolean chkEnableProjectVisible=getEnableProjectCheck() != null; boolean hasProject=getProject() != null; Assert.assertTrue(expectsProject == hasProject); Assert.assertTrue(expect...
Some widgets of the properties page are only created if it is opened for a project and not for the workspace. This is a custom assertion that verifies this behaviour.
public Counter(String id){ name=id; }
Initializes a new counter starting at 0, with the given id.
private void returnData(Object ret){ if (myHost != null) { myHost.returnData(ret); } }
Used to communicate a return object from a plugin tool to the main Whitebox user-interface.
protected String extractClassName(File base,File target){ int len=base.getAbsolutePath().length(); String path=target.getAbsolutePath(); String name=path.substring(len + 1,path.length() - ".java".length()); name=name.replaceAll("/","."); if (name.contains("\\")) { name=name.replaceAll("\\\\","."); } r...
Example: </br> base = /some/where/in/file/system </br> target = /some/where/in/file/system/com/name/of/a/package/AClass.java </br> </br> We want "com.name.of.a.package.AClass" as a result
@Override protected void determineCoverageGoals(){ List<MethodTraceCoverageTestFitness> goals=new MethodTraceCoverageFactory().getCoverageGoals(); for ( MethodTraceCoverageTestFitness goal : goals) { methodCoverageMap.put(goal.getClassName() + "." + goal.getMethod(),goal); if (Properties.TEST_ARCHIVE) ...
Initialize the set of known coverage goals
public ByteList ConstantUtf8Info(String text){ if (show_bytecode) { cpool_out.write("\n ConstantUtf8Info " + text); } if (utfConstants.containsKey(text)) { return utfConstants.get(text); } byte[] utf8Bytes; try { utf8Bytes=text.getBytes("UTF8"); } catch ( IOException ex) { ex.printS...
Make a CONSTANT_Utf8_info
public JSONObject put(String key,Map<?,?> value) throws JSONException { this.put(key,new JSONObject(value)); return this; }
Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map.
@DSComment("OutputStreamWrite class") @DSSafe(DSCat.SAFE_OTHERS) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:56:40.585 -0500",hash_original_method="348EDF61477AE4A3DCAC4870D899F874",hash_generated_method="5D0388D5AAD5F0793DE2F1E9322C0CED") @Override public void close() throws IO...
Closes this writer. This implementation flushes the buffer as well as the target stream. The target stream is then closed and the resources for the buffer and converter are released. <p>Only the first invocation of this method has any effect. Subsequent calls do nothing.
public static boolean isSameType(final Object array1,final Object array2){ if (array1 == null || array2 == null) { throw new IllegalArgumentException("The Array must not be null"); } return array1.getClass().getName().equals(array2.getClass().getName()); }
<p>Checks whether two arrays are the same type taking into account multi-dimensional arrays.</p>
@Override protected void installDefaults(){ dateRenderer=installRendererIfPossible(Date.class,null); numberRenderer=installRendererIfPossible(Number.class,null); doubleRender=installRendererIfPossible(Double.class,null); floatRenderer=installRendererIfPossible(Float.class,null); iconRenderer=installRendererIf...
Initializes JTable properties, such as font, foreground, and background. The font, foreground, and background properties are only set if their current value is either null or a UIResource, other properties are set if the current value is null.
public void putNotification(Map<String,Object> notification) throws ResourceNotificationException { synchronized (notifications) { try { notifications.put(notification); } catch ( InterruptedException i) { throw new ResourceNotificationException("Interrupted while trying to put notification of t...
Put a notification on the appropriate queue
public JsonArrayRequest(String url,Listener<JSONArray> listener,ErrorListener errorListener){ super(Method.GET,url,null,listener,errorListener); }
Creates a new request.
public String generatePublishOffer(String participantId) throws RoomException { log.debug("Request [GET_PUBLISH_SDP_OFFER] ({})",participantId); Participant participant=getParticipant(participantId); String name=participant.getName(); Room room=participant.getRoom(); participant.createPublishingEndpoint(); ...
Represents a client's request to initiate the media connection from the server-side (generate the SDP offer and send it back to the client) and must be followed by processing the SDP answer from the client in order to establish the streaming.
void writeEntry(int position,int offset,int value) throws ArrayIndexOutOfBoundsException { { if (offset >= slotsize) throw new ArrayIndexOutOfBoundsException(XMLMessages.createXMLMessage(XMLErrorResources.ER_OFFSET_BIGGER_THAN_SLOT,null)); position*=slotsize; int chunkpos=position >> lowbits; int sl...
Overwrite the integer found at a specific record and column. Used to back-patch existing records, most often changing their "next sibling" reference from 0 (unknown) to something meaningful
@Override public ItemStack transferStackInSlot(EntityPlayer par1EntityPlayer,int par1){ ItemStack var2=null; Slot var3=(Slot)this.inventorySlots.get(par1); if (var3 != null && var3.getHasStack()) { ItemStack var4=var3.getStack(); var2=var4.copy(); if (par1 > 1) { if (this.getSlot(0).isItemValid(...
Called to transfer a stack from one inventory to the other eg. when shift clicking.
public static String stringFor(int n){ switch (n) { case cudaGraphicsCubeFacePositiveX: return "cudaGraphicsCubeFacePositiveX"; case cudaGraphicsCubeFaceNegativeX: return "cudaGraphicsCubeFaceNegativeX"; case cudaGraphicsCubeFacePositiveY: return "cudaGraphicsCubeFacePositiveY"; case cudaGraphicsCubeFaceNegativeY...
Returns the String identifying the given cudaGraphicsCubeFace
public void backupWorkspaceAndCleanup(final String workspaceId,final String srcPath,final String srcAddress) throws ServerException { ReentrantLock lock=workspacesBackupLocks.get(workspaceId); if (lock != null) { lock.lock(); try { if (workspacesBackupLocks.get(workspaceId) == null) { LOG.erro...
Copies workspace files from machine's host to backup storage and remove all files from the source.
public void finishTimelineRequest(){ requestInFlight.set(false); }
Unconditionally sets requestInFlight to false.
public static boolean isSpaceChar(char ch){ switch (ch) { case ' ': case '\t': case '\r': case '\n': case '\f': return true; default : return false; } }
Is the given character a whitespace character according to the CSS 2 spec.
public static long lastModified(String fileName){ return FilePath.get(fileName).lastModified(); }
Get the last modified date of a file. This method is similar to Java 7 <code>java.nio.file.attribute.Attributes. readBasicFileAttributes(file).lastModified().toMillis()</code>
public void destroy(){ super.destroy(); }
Destruction of the servlet. <br>
@DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 13:01:40.624 -0500",hash_original_method="C6D32BE942F9C5459143EF4AC85BAF30",hash_generated_method="78E448BC19E90CE4BEF7D2000846B9F2") public ClientParamsStack(HttpParams aparams,HttpParams cparams,HttpParams rparams,HttpParams oparams){ ...
Creates a new parameter stack from elements. The arguments will be stored as-is, there is no copying to prevent modification.
public Path[] generate(Path dbDir,Path segments,int numLists,long topN,long curTime,boolean filter,boolean norm,boolean force,int maxNumSegments) throws IOException { Path tempDir=new Path(getConf().get("mapred.temp.dir",".") + "/generate-temp-" + System.currentTimeMillis()); Path lock=new Path(dbDir,CrawlDb.LOCK_N...
Generate fetchlists in one or more segments. Whether to filter URLs or not is read from the crawl.generate.filter property in the configuration files. If the property is not found, the URLs are filtered. Same for the normalisation.
public void run(MyriadConfiguration cfg) throws Exception { if (LOGGER.isDebugEnabled()) { LOGGER.debug("Bindings: " + injector.getAllBindings()); } JmxReporter.forRegistry(new MetricRegistry()).build().start(); initWebApp(injector); initHealthChecks(injector); initProfiles(injector); validateNMInstan...
Initializes the Myriad object graph via MyriadConfiguration and starts the Mesos interface (MyriadDriverManager) as well as all Myriad services
public void bindTexture(int textureId){ int textureUnitIndex=this.textureUnit - GLES20.GL_TEXTURE0; if (this.textureId[textureUnitIndex] != textureId) { this.textureId[textureUnitIndex]=textureId; GLES20.glBindTexture(GLES20.GL_TEXTURE_2D,textureId); } }
Makes an OpenGL texture 2D object bound to the current multitexture unit. This has no effect if the specified texture object is already bound. The default is texture 0, indicating that no texture is bound.
public static VcsLogHighlighter.VcsCommitStyle createStyle(@Nullable Color foreground,@Nullable Color background,@Nullable VcsLogHighlighter.TextStyle textStyle){ return new VcsCommitStyleImpl(foreground,background,textStyle); }
Creates VcsCommitStyle with specified text color and background color.
public String numArcsTipText(){ return "The number of arcs in the bayesian net, at most: n * (n - 1) / 2 and at least: (n - 1); with n = numAttributes"; }
Returns the tip text for this property
public String toString(){ String s=this.getClass().getName() + " " + this.graphName+ "\n"+ this.nNodes+ "\t// <-- Total # nodes\n"+ "// "+ this.getNumEdges()+ "\t// <-- Total # edges\n"; s=s + "\n// Node names:\n"; for (int i=0; i < this.nNodes; i++) { s=s + this.getNodeName(i); s=s + "\t// #" + i+ " \tPa...
Returns a specially formatted string with all the contents of this Graph. Actually this string is compliant with the same format expected when reading the graph from a file.
public Annotation(Annotation other){ __isset_bitfield=other.__isset_bitfield; this.timestamp=other.timestamp; if (other.isSetValue()) { this.value=other.value; } if (other.isSetHost()) { this.host=new Endpoint(other.host); } }
Performs a deep copy on <i>other</i>.
@Override public String multiResultsetFull(int baseResultset,int comparisonColumn) throws Exception { int maxWidthMean=2; int maxWidthStdDev=2; double[] sortValues=new double[getNumDatasets()]; for (int i=0; i < getNumDatasets(); i++) { sortValues[i]=Double.POSITIVE_INFINITY; for (int j=0; j < getNumRes...
Creates a comparison table where a base resultset is compared to the other resultsets. Results are presented for every dataset.
public CSVFile(String name) throws MalformedURLException { infoUrl=PropUtils.getResourceOrFileOrURL(name); }
Don't do anything special, since all defaults are set already
public void shutdown(){ final ReentrantLock mainLock=this.mainLock; mainLock.lock(); try { checkShutdownAccess(); advanceRunState(SHUTDOWN); interruptIdleWorkers(); onShutdown2(); } finally { mainLock.unlock(); } tryTerminate2(); }
Initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted. Invocation has no additional effect if already shut down.
public static void putFloat(byte[] arr,long off,float val){ if (UNALIGNED) UNSAFE.putFloat(arr,off,val); else putIntByByte(arr,off,Float.floatToIntBits(val),BIG_ENDIAN); }
Stores float value into byte array. Alignment aware.
protected OMGraphicList constructGraticuleLines(){ OMGraphicList newgraphics=new OMGraphicList(20); Projection projection=getProjection(); if (projection == null) { return newgraphics; } tenDegreeLines=null; double ctrLon=((Point2D)projection.getCenter()).getX(); if (projection instanceof GeoProj) { ...
Create the graticule lines. <p> NOTES: <ul> <li>Currently graticule lines are hardcoded to 10 degree intervals. <li>No thought has been given to clipping based on the view rectangle. For non-boxy projections performance may be degraded at very large scales. (But we make up for this by running the task in its own thread...
public final LC alignX(String align){ setAlignX(ConstraintParser.parseUnitValueOrAlign(align,true,null)); return this; }
Same functionality as <code>setAlignX(ConstraintParser.parseUnitValueOrAlign(unitValue, true))</code> only this method returns <code>this</code> for chaining multiple calls. <p> For a more thorough explanation of what this constraint does see the white paper or cheat Sheet at www.migcomponents.com.
public void testKafkaInputOperator(int sleepTime,final int totalCount,KafkaConsumer consumer,boolean isValid,boolean idempotent) throws Exception { latch=new CountDownLatch(1); KafkaTestProducer p=new KafkaTestProducer(TEST_TOPIC); p.setSendCount(totalCount); new Thread(p).start(); LocalMode lma=LocalMode.new...
Test AbstractKafkaSinglePortInputOperator (i.e. an input adapter for Kafka, aka consumer). This module receives data from an outside test generator through Kafka message bus and feed that data into Malhar streaming platform. [Generate message and send that to Kafka message bus] ==> [Receive that message through Kafka i...
protected void configureScroller(){ scroller.setFocusable(false); scroller.getVerticalScrollBar().setFocusable(false); scroller.setBorder(null); installScrollerListeners(); }
Configures the scrollable portion which holds the list within the combo box popup. This method is called when the UI class is created.
@Override public String toString(){ return super.toString() + " (o.id = " + getRoutingObjectID()+ ")"; }
Returns the id as a string representation of this entry.
private void renderAxes(Camera camera){ glPushMatrix(); glLoadIdentity(); float rotX=camera.getRotation().x; float rotY=camera.getRotation().y; float rotZ=0; glRotatef(rotX,1.0f,0.0f,0.0f); glRotatef(rotY,0.0f,1.0f,0.0f); glRotatef(rotZ,0.0f,0.0f,1.0f); glLineWidth(2.0f); glBegin(GL_LINES); glColo...
Renders the three axis in space (For debugging purposes only
public void copyAndAddExtension(String oid,boolean critical,X509Certificate cert) throws CertificateParsingException { byte[] extValue=cert.getExtensionValue(oid); if (extValue == null) { throw new CertificateParsingException("extension " + oid + " not present"); } try { ASN1Encodable value=X509Extensio...
add a given extension field for the standard extensions tag (tag 3) copying the extension value from another certificate.
@Override public ImmutableSortedMap<K,V> build(){ switch (size) { case 0: return emptyMap(comparator); case 1: return of(comparator,entries[0].getKey(),entries[0].getValue()); default : return fromEntries(comparator,false,entries,size); } }
Returns a newly-created immutable sorted map.
@DSSafe(DSCat.SAFE_OTHERS) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 13:01:29.658 -0500",hash_original_method="253E079134F8C2683EC310BD65E6492A",hash_generated_method="E58B924467A604FE4E6873F1C007AADA") public ConnectTimeoutException(final String message){ super(message); }
Creates a ConnectTimeoutException with the specified detail message.
public boolean hasDetails(String sku){ return mSkuMap.containsKey(sku); }
Return whether or not details about the given product are available.
public String className(CompiledClass info){ if (name == null) name=decodeNameRef(info); return name; }
find and form the class name - remembering that '[' chars may come before the class name to denote arrays of the given class. Max of 255 array specs
public static boolean isMACAddress(String macAddress){ String[] macBytes=macAddress.split(":"); if (macBytes.length != 6) return false; for (int i=0; i < 6; ++i) { if (HEXES.indexOf(macBytes[i].toUpperCase().charAt(0)) == -1 || HEXES.indexOf(macBytes[i].toUpperCase().charAt(1)) == -1) { return false; ...
Checks to see if a string is a valid MAC address.
private void writeAttribute(java.lang.String prefix,java.lang.String namespace,java.lang.String attName,java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { if (xmlWriter.getPrefix(namespace) == null) { xmlWriter.writeNamespace(prefix,namespace); x...
Util method to write an attribute with the ns prefix
protected void tearDown() throws Exception { if (cleanupMethod != null) cleanupMethod.invoke(test,null); TestUtil.separator2(); super.tearDown(); }
Tear this test case down.
public Task<FileShareRestRep> update(URI id,FileSystemUpdateParam input){ return putTask(input,getIdUrl(),id); }
Begins updating the given file system by ID. <p> API Call: <tt>PUT /file/filesystems/{id}</tt>
public void write(byte[] buf) throws IOException { }
Writes a byte array.
public static ActivateInstanceResponseE parse(javax.xml.stream.XMLStreamReader reader) throws java.lang.Exception { ActivateInstanceResponseE object=new ActivateInstanceResponseE(); int event; java.lang.String nillableValue=null; java.lang.String prefix=""; java.lang.String namespaceuri=""; try { while ...
static method to create the object Precondition: If this object is an element, the current or next start element starts this object and any intervening reader events are ignorable If this object is not an element, it is a complex type and the reader is at the event just after the outer start element Postcondition: If t...
protected V entryValue(HashEntry<K,V> entry){ return entry.value; }
Gets the <code>value</code> field from a <code>HashEntry</code>. Used in subclasses that have no visibility of the field.
private int startFrame(final int offset,final int nLocal,final int nStack){ int n=3 + nLocal + nStack; if (frame == null || frame.length < n) { frame=new int[n]; } frame[0]=offset; frame[1]=nLocal; frame[2]=nStack; return 3; }
Starts the visit of a stack map frame.
@Override protected EClass eStaticClass(){ return UmplePackage.eINSTANCE.getAnonymous_constraint_1_(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
@Override public void onServiceConnected(Messenger m){ mRemoteService=DownloaderServiceMarshaller.CreateProxy(m); mRemoteService.onClientUpdated(mDownloaderClientStub.getMessenger()); }
Critical implementation detail. In onServiceConnected we create the remote service and marshaler. This is how we pass the client information back to the service so the client can be properly notified of changes. We must do this every time we reconnect to the service.
@Override public void eSet(int featureID,Object newValue){ switch (featureID) { case UmplePackage.AFTER_EVERY_EVENT___TIMER_1: setTimer_1((String)newValue); return; } super.eSet(featureID,newValue); }
<!-- begin-user-doc --> <!-- end-user-doc -->
@Override protected void entryRemoved(boolean evicted,String key,BitmapDrawable oldValue,BitmapDrawable newValue){ if (RecyclingBitmapDrawable.class.isInstance(oldValue)) { ((RecyclingBitmapDrawable)oldValue).setIsCached(false); } else { } }
Notify the removed entry that is no longer being cached
public void testBogusArguments() throws Exception { IllegalArgumentException expected=expectThrows(IllegalArgumentException.class,null); assertTrue(expected.getMessage().contains("Unknown parameters")); }
Test that bogus arguments result in exception
public IndependenceTest indTestSubset(List<Node> vars){ if (vars.isEmpty()) { throw new IllegalArgumentException("Subset may not be empty."); } for ( Node var : vars) { if (!variables.contains(var)) { throw new IllegalArgumentException("All vars must be original vars"); } } int[] indices=ne...
Creates a new independence test instance for a subset of the variables.
private YadisResult retrieveXrdsLocation(YadisUrl url,boolean useGet,int maxRedirects,Set serviceTypes) throws DiscoveryException { int maxattempts=1; if (useGet) maxattempts=2; YadisResult result=new YadisResult(); for (int attempt=1; attempt <= maxattempts; attempt++) { try { result.setYadisUrl(ur...
Tries to retrieve the XRDS location url by performing a cheap HEAD call on the YadisURL. <p> The returned string should be validated before being used as a XRDS-Location URL.
public static boolean removeRoute(TransitSchedule schedule,Id<TransitLine> transitLineId,Id<TransitRoute> transitRouteId){ TransitLine transitLine=schedule.getTransitLines().get(transitLineId); return transitLine != null && transitLine.removeRoute(transitLine.getRoutes().get(transitRouteId)); }
Removes the given route from the schedule
public boolean isIPCCallback(SootMethod method){ SootClass dClz=method.getDeclaringClass(); if (Hierarchy.inheritsFromAndroidService(dClz) && method.isPublic()) return true; if (isAIDLCallback(method)) return true; return ipcCallBackMethods.containsPoly(method); }
Return true if this method is or overrides a method that is marked as an IPC call back, either local to the application or remote to other apps.
public static void main(String[] args){ launch(args); }
Entry point.
@Override public void output(Vertex output){ if (!isEnabled()) { return; } Vertex sense=output.mostConscious(Primitive.SENSE); if ((sense == null) || (!getPrimitive().equals(sense.getData()))) { return; } String text=printInput(output); Vertex target=output.mostConscious(Primitive.TARGET); Strin...
Output the status or direct message reply.
@DSComment("Private Method") @DSBan(DSCat.PRIVATE_METHOD) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:58:33.487 -0500",hash_original_method="5509D297F6B8CC0BD321C284BD8D086E",hash_generated_method="1EE4C2A44C632B03EB2CD5B26F7BAC3B") private void handleEfCspData(byte[] data){ i...
Parse EF_CSP data and check if "Restriction of menu options for manual PLMN selection" is Enabled/Disabled
public ImageCache(Context context,ImageCacheParams cacheParams){ init(context,cacheParams); }
Creating a new ImageCache object using the specified parameters.
public static String listing4(String body){ int body_tracker=5; if (body != null) { body=body.trim(); body_tracker=12; } if (body_tracker != 12 && body.length() < 1) { body=null; } return body; }
From article: <blockquote> Take a look at Listing 4. Notice that on line 173 there's an extra space before the statement. Your static code analysis tool could report that extra space as a defect, but I'm willing to bet that most of us would consider that noise. The analysis isn't wrong per se - the statements don't lin...
private void addPluginMenu(final JComponent menu,final IAddressSpaceMenuPlugin plugin){ try { final List<JComponent> menuItems=plugin.extendAddressSpaceMenu(getPluginAddressSpaces()); if (menuItems != null) { for ( final JComponent menuItem : menuItems) { if (menuItem != null) { m...
Tells a plugin to create an extension to this menu.
public GeoJsonObject load(String filePath){ this.filePath=filePath; File file=null; try { file=new File(filePath); FileInputStream fis=new FileInputStream(file); JsonReader jsonReader=Json.createReader(fis); JsonObject root=jsonReader.readObject(); jsonReader.close(); fis.close(); Stri...
Load a GeoJSON file
@Override public void draw(Graphics2D g2,DialPlot plot,Rectangle2D frame,Rectangle2D view){ Shape window=getWindow(frame); Shape outerWindow=getOuterWindow(frame); Area area1=new Area(outerWindow); Area area2=new Area(window); area1.subtract(area2); g2.setPaint(Color.lightGray); g2.fill(area1); g2.setSt...
Draws the frame.
private Object readPropertyValue(GetSimplePropertyUriInfo uri_info) throws ODataException { String targetESName=uri_info.getTargetEntitySet().getName(); EdmProperty target=uri_info.getPropertyPath().get(uri_info.getPropertyPath().size() - 1); String propName=target.getName(); if (targetESName.equals(V1Model.PRO...
Returns the value of the given Property.
public int hashCode(){ return x + 37 * y + 43 * w + 47 * h; }
Returns a hash code value for this attribute.
public static double normalizeAngle(double angle){ double remainder=angle % 360; if (remainder < 0) remainder+=360; return remainder; }
Normalize the angle to the range 0 <= value < 360.
private void addLine(GridField field,WEditor editor,boolean mandatory){ log.fine("Field=" + field); Label label=editor.getLabel(); editor.setReadWrite(true); editor.setMandatory(mandatory); field.addPropertyChangeListener(editor); if (m_newRow) { m_row=new Row(); m_row.setStyle("background-color: tr...
Add Editor to parameterPanel alernative right/left depending on m_newRow. Field Value changes update Editors
@Override public void close() throws Exception { EclipseStarter.shutdown(); }
Shutsdown the eclipse instance.
private void initType(){ switch (type) { case CHANNEL_CODE: ChannelCode channelCode=new ChannelCode(); channelCode.setNumberOfChannels(barcodeSettings.getChannelCodeChannels()); barcode=channelCode; break; case CODABAR: Codabar codabar=new Codabar(); barcode=codabar; break; case CODE_11: Code11 code11=new Code11(...
INIT BARCODE FROM TYPE
public static void localVarValueChanged(long newValue,String localVar,int lineNumber){ instance.localVarValueChanged(localVar,lineNumber,newValue); }
<p> localVarValueChanged </p>
@Override public int eDerivedOperationID(int baseOperationID,Class<?> baseClass){ if (baseClass == TypableElement.class) { switch (baseOperationID) { default : return -1; } } if (baseClass == IdentifiableElement.class) { switch (baseOperationID) { case TypesPackage.IDENTIFIABLE_ELEMENT___GET_CONTAINING_MODULE...
<!-- begin-user-doc --> <!-- end-user-doc -->
public void branchConditionally(ConditionFlag condition){ super.b(condition,0); }
Branches if condition is true. Address of jump is patched up by HotSpot c++ code.
public void findAndInit(Object someObj){ if (someObj instanceof OMDrawingTool) { Debug.message("omdtl","OMDrawingToolLauncher found a DrawingTool."); setDrawingTool((DrawingTool)someObj); } if (someObj instanceof DrawingToolRequestor) { if (Debug.debugging("omdtl")) { Debug.output("OMDrawingTool...
This is the method that your object can use to find other objects within the MapHandler (BeanContext). This method gets called when the object gets added to the MapHandler, or when another object gets added to the MapHandler after the object is a member.
public synchronized void enableAttribute(String name) throws java.lang.IllegalArgumentException { if (name == null) { throw new java.lang.IllegalArgumentException("The name cannot be null."); } if (!enabledAttributes.contains(name)) { enabledAttributes.addElement(name); } }
Enables all the attribute change notifications the attribute name of which equals the specified name to be sent to the listener. <BR>If the specified name is already in the list of enabled attribute names, this method has no effect.
public void changeAtom(FixedCharAtom a){ textSymbol=false; type=-1; el=a; }
Changes this atom into the given "ligature atom".
@RequestMapping(value=EMR_CLUSTER_DEFINITIONS_URI_PREFIX + "/namespaces/{namespace}/emrClusterDefinitionNames/{emrClusterDefinitionName}",method=RequestMethod.PUT,consumes={"application/xml","application/json"}) @Secured(SecurityFunctions.FN_EMR_CLUSTER_DEFINITIONS_PUT) public EmrClusterDefinitionInformation updateEmrC...
Updates an existing EMR cluster definition by namespace and name. <p>Requires WRITE permission on namespace</p>
public boolean isStandbyDataSource(){ return isStandbyDataSource; }
Returns the isStandbyDataSource value.
public OMWarpingImage(int[] pix,int width,int height){ setWarp(pix,width,height,LatLonGCT.INSTANCE,new DataBounds(-180,-90,180,90)); }
Takes an array of ARGB integer values representing an image, assumed to be a world image in the LLXY projection (equal arc) covering -180, 180 longitude to -90, 90 latitude.
TimerImpl(String name,boolean isDaemon){ this.setName(name); this.setDaemon(isDaemon); this.start(); }
Starts a new timer.
public void openPicture(Activity activity){ Intent intent=new Intent(Intent.ACTION_PICK); intent.setDataAndType(android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI,"image/*"); activity.startActivityForResult(intent,PICTURE_REQ_CODE); }
Open picture
public void add(Object[] data){ internalAdd(data); notifyObservers(); }
Adds a new row to the cursor.
public void renderListHead(ListHead head){ Component header; WTableColumn column; for (int columnIndex=0; columnIndex < m_tableColumns.size(); columnIndex++) { column=m_tableColumns.get(columnIndex); header=getListHeaderComponent(column.getHeaderValue(),columnIndex,column.getColumnClass()); head.appen...
Render the ListHead for the table with headers for the table columns.
Mark skipUntil(String limit) throws JasperException { Mark ret=null; int limlen=limit.length(); int ch; skip: for (ret=mark(), ch=nextChar(); ch != -1; ret=mark(), ch=nextChar()) { if (ch == limit.charAt(0)) { Mark restart=mark(); for (int i=1; i < limlen; i++) { if (peekChar() == limi...
Skip until the given string is matched in the stream. When returned, the context is positioned past the end of the match.
public void sendWarning(Object source,String msg){ try { String s=getClass().getSimpleName() + ": " + msg; System.err.println(s); for ( WarningHandler handler : _priorityHandlers) { handler.warning(source,msg); } for ( WarningHandler handler : _handlers) { handler.warning(source,...
Send a warning message to any registered handlers. A high priority warning only goes to all handlers, high priority first. High priority handlers do not receive non-high priority warnings.
protected void removeAllCombinations(KeyCombination keyCombination){ synchronized (combinations) { if (combinations.containsKey(keyCombination)) { combinations.remove(keyCombination); } } }
Clean combinations
public void trainModel(TaskContext taskContext,File trainingFile,double paramC,int paramOrderE,int paramOrderT,double paramEpsilon,int paramB) throws Exception { File tmpModel=trainModelAtTemporaryLocation(trainingFile,paramC,paramOrderE,paramOrderT,paramEpsilon,paramB); FileInputStream stream=new FileInputStream(t...
Trains the model and stores it into the task context
public Object runSafely(Catbert.FastStack stack) throws Exception { int h=getInt(stack); int w=getInt(stack); Object o=stack.pop(); if (Sage.EMBEDDED) return null; if (!(o instanceof MetaImage)) { o=MetaImage.getMetaImage(o == null ? null : o.toString(),stack.getUIComponent()); } if (o instanceof Me...
Returns a java.awt.image.BufferedImage object. This can be used to load images from URLs, JAR resources or the file system. The size of the returned image will match the passed in arguments.
protected void clearDatacenters(){ for ( Vm vm : getVmsCreatedList()) { Log.printConcatLine(CloudSim.clock(),": ",getName(),": Destroying VM #",vm.getId()); sendNow(getVmsToDatacentersMap().get(vm.getId()),CloudSimTags.VM_DESTROY,vm); } getVmsCreatedList().clear(); }
Sends request to destroy all VMs running on the datacenter.
@Override public boolean eIsSet(int featureID){ switch (featureID) { case TypesPackage.TSTRUCT_FIELD__DEFINED_MEMBER: return definedMember != null; } return super.eIsSet(featureID); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public void onMerge(ReduceFn<?,?,?,W>.OnMergeContext context){ WindowTracing.debug("WatermarkHold.onMerge: for key:{}; window:{}; inputWatermark:{}; " + "outputWatermark:{}",context.key(),context.window(),timerInternals.currentInputWatermarkTime(),timerInternals.currentOutputWatermarkTime()); StateMerging.mergeWate...
Updates the watermark hold when windows merge if it is possible the merged value does not equal all of the existing holds. For example, if the new window implies a later watermark hold, then earlier holds may be released.
public int size(){ return 2; }
Gets the number of fields in this partial, which is two. The supported fields are MonthOfYear and DayOfMonth. Note that only these fields may be queried.