code
stringlengths
10
174k
nl
stringlengths
3
129k
public void swap(){ mv.visitInsn(Opcodes.SWAP); }
Generates a SWAP instruction.
public <R>MapStream<K,R> mapValue(Function<? super V,? extends R> mapper){ return new MapStream<>(inner.map(null)); }
Returns a stream consisting of the results of applying the given function to the value-component of this stream. <p> This is an intermediate operation.
public void paintComponent(Graphics g){ super.paintComponent(g); Rectangle raOuter=getBounds(); Rectangle raInner=getParent().getBounds(); g.setColor(Color.red); g.drawRect(-raOuter.x + 12,-raOuter.y + 12,raInner.width - 24,raInner.height - 24); }
Method paintComponent.
protected boolean shouldSelect(Transaction tx){ if (tx != null) { return isSelectable(tx); } return true; }
Sub-classes can override this to just customize whether transactions are usable, but keep age sorting.
public Transit createNewTransit(String systemName,String userName){ if ((systemName == null) || (systemName.length() < 1)) { return null; } String sysName=systemName; if ((sysName.length() < 2) || (!sysName.substring(0,2).equals("IZ"))) { sysName="IZ" + sysName; } Transit z; if (userName != null &...
Method to create a new Transit if the Transit does not exist Returns null if a Transit with the same systemName or userName already exists, or if there is trouble creating a new Transit.
public void start() throws IllegalStateTransitionException { assertStateTransitionsAllowed(); if (state != AdapterState.OPENED) { throw new IllegalStateTransitionException("Cannot start from the " + state + " state"); } state=AdapterState.STARTED; }
Transition into the STARTED state (from the OPENED state).
public void closeDriver(){ if (camera != null) { FlashlightManager.disableFlashlight(); camera.release(); camera=null; } }
Closes the camera driver if still in use.
public JavaParser(ParserConfiguration configuration){ commentsInserter=new CommentsInserter(configuration); }
Instantiate the parser. Note that parsing can also be done with the static methods on this class. Creating an instance will reduce setup time between parsing files.
public static Object[] generateExampleForArrayProperty(ArrayProperty value,Map<String,Model> definitions,MarkupDocBuilder markupDocBuilder,Map<String,Integer> refStack){ Property property=value.getItems(); if (property.getExample() != null) { return new Object[]{property.getExample()}; } else if (property ...
Generates examples from an ArrayProperty
public static Mapping<UUID> uuid(Constraint... constraints){ return new FieldMapping(InputMode.SINGLE,mkSimpleConverter(null),new MappingMeta("uuid",UUID.class)).constraint(checking(null,"error.uuid",true)).constraint(constraints); }
(convert to UUID) mapping
static TransferDFragment newInstance(){ TransferDFragment f=new TransferDFragment(); return f; }
Create a new instance of CallActionsDFragment
public static JSONObject GetForJson(String uriStr,String deviceBssid,HeaderPair... headers){ return MeshCommunicationUtils.HttpGet(uriStr,deviceBssid,headers); }
execute GET to get JSONObject by Mesh Net
public static BufferedInputStream createGzipInputStream(File file,boolean async) throws IOException { final InputStream inStream; if (async) { inStream=new GzipAsynchInputStream(file); } else { inStream=GzipUtils.createGzipInputStream(new BufferedInputStream(new FileInputStream(file))); } return new ...
Creates a <code>BufferedInputStream</code> for a file, utilizing a <code>GZIPInputStream</code>.
private void updateTask(Protos.TaskStatus status){ if (!exists(status.getTaskId())) { LOGGER.warn("Could not find task in cluster state."); return; } try { Protos.TaskInfo taskInfo=getTask(status.getTaskId()); LOGGER.debug("Updating task status for executor: " + status.getExecutorId().getValue() +...
Updates a task with the given status. Status is written to zookeeper. If the task is in error, then the healthchecks are stopped and state is removed from ZK
@Override public boolean read(GlowChunk chunk) throws IOException { int x=chunk.getX(), z=chunk.getZ(); RegionFile region=cache.getRegionFile(x,z); int regionX=x & REGION_SIZE - 1; int regionZ=z & REGION_SIZE - 1; if (!region.hasChunk(regionX,regionZ)) { return false; } DataInputStream in=region.getCh...
Reads a chunk from its region file.
void recomposeTemplates(ElemTemplate template){ m_templateList.setTemplate(template); }
Recompose the template declarations.
private void onExit(){ Env.JOBS.cancelJobs(); saveSettings(); Env.EXT_MOD_MANAGER.destroyStartedExtMods(); Env.JOBS.closeJobs(); }
Called before exit to properly end/finish pending jobs and do things that must be done before shut down (e.g. save settings).
@Thunk int compareTitles(String titleA,String titleB){ boolean aStartsWithLetter=(titleA.length() > 0) && Character.isLetterOrDigit(titleA.codePointAt(0)); boolean bStartsWithLetter=(titleB.length() > 0) && Character.isLetterOrDigit(titleB.codePointAt(0)); if (aStartsWithLetter && !bStartsWithLetter) { return...
Compares two titles with the same return value semantics as Comparator.
protected ConnectionImpl(){ }
' For the delegate only
public final String elementAt(int i){ return m_map[i]; }
Get the nth element.
public byte[] doFinal() throws InvalidCipherTextException { byte[] out=cipher.processBlock(buf,0,bufOff); reset(); return out; }
process the contents of the buffer using the underlying cipher.
private void showFeedback(String message){ if (myHost != null) { myHost.showFeedback(message); } else { System.out.println(message); } }
Used to communicate feedback pop-up messages between a plugin tool and the main Whitebox user-interface.
public ECHO256(){ super(); }
Create the engine.
@NotNull public static Query<PsiReference> search(@NotNull final SearchParameters parameters){ final Query<PsiReference> result=INSTANCE.createQuery(parameters); if (parameters.isSharedOptimizer) { return uniqueResults(result); } final SearchRequestCollector requests=parameters.getOptimizer(); final PsiEl...
Searches for references to the specified element according to the specified parameters.
void host(){ HostDialog hd; hd=new HostDialog(frame); hd.setVisible(true); if ((hd.playerName == null) || (hd.serverPass == null) || (hd.port == 0)) { return; } boolean foundValid=false; char[] nameChars=hd.playerName.toCharArray(); for (int loop=0; !foundValid && (loop < nameChars.length); loop++) ...
Start instances of both the client and the server.
public Timing(String tag){ this.TAG=tag; }
Create Timing
public void addError(Throwable error){ errors.add(error); }
Adds a Throwable to the table. Execution continues, but the test will fail at the end.
public static void check(){ if (Boolean.parseBoolean(System.getProperty(JVM_BYPASS))) { Loggers.getLogger(JVMCheck.class).warn("bypassing jvm version check for version [{}], this can result in data corruption!",fullVersion()); } else if ("Oracle Corporation".equals(Constants.JVM_VENDOR)) { HotspotBug bug...
Checks that the current JVM is "ok". This means it doesn't have severe bugs that cause data corruption.
@Override public CommandLine parse(Options options,String[] arguments,boolean stopAtNonOption) throws ParseException { return this.commandLineParser.parse(options,arguments,stopAtNonOption); }
Parse the arguments according to the specified options.
protected void rename(String name){ m_name=name; if (m_editFlag == FolderEditFlag.NONE) m_editFlag=FolderEditFlag.UPDATE; }
Cambia el nombre del nodo
public Key engineGetKey(String alias,char[] password) throws NoSuchAlgorithmException, UnrecoverableKeyException { Key key=null; Object entry=entries.get(alias.toLowerCase(Locale.ENGLISH)); if (!((entry instanceof PrivateKeyEntry) || (entry instanceof SecretKeyEntry))) { return null; } KeyProtector keyPro...
Returns the key associated with the given alias, using the given password to recover it.
private long calculateUpdateTime(CalendarAppWidgetModel model,long now,String timeZone){ long minUpdateTime=getNextMidnightTimeMillis(timeZone); for ( EventInfo event : model.mEventInfos) { final long start; final long end; start=event.start; end=event.end; if (now < start) { minUpdateTim...
Calculates and returns the next time we should push widget updates.
public static String formatParams(ArrayList<? extends ParameterInterface> parameters){ if (parameters.size() == 0) { return ""; } StatementBuilder buff=new StatementBuilder(); int i=0; boolean params=false; for ( ParameterInterface p : parameters) { if (p.isValueSet()) { if (!params) { ...
Format the parameter list.
public PaymentGatewayBluePay20POST(){ BP_AccountID=AppConfig.getInstance().getProperty("payment.BluePay20POST.accountID"); this.BP_SecretKey=AppConfig.getInstance().getProperty("payment.BluePay20POST.secretKey"); BP_TestMode=AppConfig.getInstance().getBoolean("payment.testmode"); ENDPOINTADDRESS=AppConfig.getIn...
Creates a new instance of PaymentGatewayBluePay20POST
public void displayError(String message){ try { SVGAbstractTranscoder.this.handler.error(new TranscoderException(message)); } catch ( TranscoderException ex) { throw new RuntimeException(ex.getMessage()); } }
Displays the specified error message using the <tt>ErrorHandler</tt>.
void doInsideScores(){ grammar.logarithmMode(); lexicon.logarithmMode(); for (int diff=1; diff <= length; diff++) { for (int start=0; start < (length - diff + 1); start++) { int end=start + diff; for (int pparentState=0; pparentState < numStates; pparentState++) { BinaryRule[] parentRules=...
Fills in the iScore array of each category over each span of length 2 or more. Note: This places the grammar and lexicon into logarithm mode!
@Deprecated public static WorkflowAnnotations lookupProcessAnnotations(ExecutionUnit process){ return AnnotationProcessXMLFilter.lookupProcessAnnotations(process); }
Returns the process annotations for the given execution unit.
public static void enableSync(Context context){ PreferencesUtils.setBoolean(context,R.string.drive_sync_key,true); disableSyncForAll(context); ContentResolver.setMasterSyncAutomatically(true); String googleAccount=PreferencesUtils.getString(context,R.string.google_account_key,PreferencesUtils.GOOGLE_ACCOUNT_DEF...
Enables sync.
public SwitchPortTuple(SwitchPortTuple other){ __isset_bitfield=other.__isset_bitfield; this.dpid=other.dpid; this.port=other.port; }
Performs a deep copy on <i>other</i>.
public void testNextInt(){ int f=ThreadLocalRandom.current().nextInt(); int i=0; while (i < NCALLS && ThreadLocalRandom.current().nextInt() == f) ++i; assertTrue(i < NCALLS); }
Repeated calls to nextInt produce at least two distinct results
public boolean isTargetTooClose(Pos3D target){ if (new Pos3D(this.xCoord,0,this.zCoord).distance(new Pos3D(target.xPos,0,target.zPos)) < 10) { return true; } return false; }
Checks to see if the target is too close.
private String _hexString(byte[] bytes){ StringBuilder result=new StringBuilder(2 * bytes.length); for (int i=0; i < bytes.length; i++) { int b=bytes[i] & 0xFF; result.append(_nibbleToHex[b / 16]); result.append(_nibbleToHex[b % 16]); } return result.toString(); }
Returns a hex-string for printing
static int decodeMax(byte[] b,int dimension){ int offset=b.length / 2 + dimension * BYTES; return NumericUtils.sortableBytesToInt(b,offset); }
decodes the max value (for the defined dimension) from the encoded input byte array
final public void disable_tracing(){ }
Disable tracing.
@Override protected void onDestroy(){ super.onDestroy(); }
I remove the PubNub object in onDestroy since turning the screen off triggers onStop and I wanted PubNub to receive messages while the screen is off.
public DefaultSailChangedEvent(Sail sail){ this.sail=sail; }
Creates a new DefaultSailChangedEvent in which all possible changes are set to false.
public DeleteRequest refresh(boolean refresh){ this.refresh=refresh; return this; }
Should a refresh be executed post this index operation causing the operation to be searchable. Note, heavy indexing should not set this to <tt>true</tt>. Defaults to <tt>false</tt>.
public static void storeStoreBarrier(){ if (VM.VerifyAssertions && VM.runningVM) { VM._assert(VM.NOT_REACHED); } }
Emits a StoreStore barrier. A StoreStore barrier ensures that the data that was stored by the instruction before the barrier is visible to all subsequent store instructions.
private void updateProgress(String progressLabel,int progress){ if (myHost != null && ((progress != previousProgress) || (!progressLabel.equals(previousProgressLabel)))) { myHost.updateProgress(progressLabel,progress); } previousProgress=progress; previousProgressLabel=progressLabel; }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public MBankStatement(MBankAccount account){ this(account,false); }
Create a new Bank Statement
public boolean isButtonEnabled(){ boolean operationsAvaliable=false; boolean dateAvaliable=false; List<AuditLogOperation> operations=model.getAvailableOperations(); if (operations != null && operations.size() > 0) { for (int i=0; i < operations.size(); i++) { if (operations.get(i).isSelected() == true...
Checks if export button is enabled
private String nodeName(int idx){ return NODE_PREFIX + idx; }
Get node name by index.
public double distanceSq(final Int2D p){ final double dx=(double)this.x - p.x; final double dy=(double)this.y - p.y; return (dx * dx + dy * dy); }
Returns the squared distance FROM this Int2D TO the specified point.
public boolean visit(Initializer node){ return true; }
Visits the given type-specific AST node. <p> The default implementation does nothing and return true. Subclasses may reimplement. </p>
public <T>void putEnv(String key,T value){ String ekey=this.expandString(key); FlexibleMapAccessor<T> fma=FlexibleMapAccessor.getInstance(ekey); this.putEnv(fma,value); }
Puts the named value in the environment. Supports the "." (dot) syntax to access Map members and the "[]" (bracket) syntax to access List entries. If the brackets for a list are empty the value will be appended to end of the list, otherwise the value will be set in the position of the number in the brackets. If a "+" (...
@Override public void compactNodeNumbering(){ }
Implementation for Graph Interface. TODO: why is this in the Graph interface?
public static AuditLog convertToAuditLog(RecordableAuditLog auditlog){ AuditLog dbAuditLog=new AuditLog(); dbAuditLog.setTimeInMillis(auditlog.getTimestamp()); dbAuditLog.setProductId(auditlog.getProductId()); dbAuditLog.setTenantId(auditlog.getTenantId()); dbAuditLog.setUserId(auditlog.getUserId()); dbAudi...
Converts a RecordableAuditLog to an AuditLog Model
public void goOneBack(){ mFragmentManager.popBackStackImmediate(); }
Goes one entry back in the history
@DSSafe(DSCat.SAFE_LIST) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:55:37.871 -0500",hash_original_method="9121421793EC5D37F14A312213FF0274",hash_generated_method="0E38B803B5F7EA7FC3B7A952B8C48B78") public String toString(){ return this.encode(); }
ALias for encode above.
public boolean equals(Object obj){ if (obj instanceof Language) { Language cmp=(Language)obj; if (cmp.getAD_Language().equals(m_AD_Language)) return true; } return false; }
Equals. Two languages are equal, if they have the same AD_Language
public void addTopologyListener(GridClientTopologyListener lsnr){ topLsnrs.add(lsnr); }
Adds topology listener.
public MoveResourcesProcessor(IResource[] resourcesToMove){ if (resourcesToMove == null) { throw new IllegalArgumentException("resources must not be null"); } fResourcesToMove=resourcesToMove; fDestination=null; fUpdateReferences=true; }
Creates a new move resource processor.
private boolean isValidPackingPlan(PackingPlan plan){ for ( PackingPlan.ContainerPlan containerPlan : plan.getContainers()) { for ( PackingPlan.InstancePlan instancePlan : containerPlan.getInstances()) { if (instancePlan.getResource().getRam() < MIN_RAM_PER_INSTANCE) { LOG.severe(String.format("...
Check whether the PackingPlan generated is valid
@DSSink({DSSinkKind.CONTENT}) @DSComment("Insert an image and create a thumbnail") @DSSpec(DSCat.IO) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:33:57.510 -0500",hash_original_method="7EDFE27F4065D73B827ECCB92823E704",hash_generated_method="F4811B325135D139327C3CD84EF94612") pub...
Insert an image and create a thumbnail for it.
public void testUpdate8() throws SQLException { statement.executeUpdate("UPDATE " + DatabaseCreator.SIMPLE_TABLE3 + " SET speed = (SELECT MAX(speed) FROM "+ DatabaseCreator.SIMPLE_TABLE1+ ") WHERE id = (SELECT id FROM "+ DatabaseCreator.SIMPLE_TABLE1+ " WHERE speed = (SELECT MAX(speed) FROM "+ DatabaseCreator.SIMPLE_...
UpdateFunctionalityTest2#testUpdate8(). Updates table using scalar subquery as new field value
public String rewriteAllLinks(final String html,final String requestHost){ Document document=Jsoup.parse(html); Elements links=document.select("a[href]"); Elements metas=document.select("meta[content]"); updateAttribute(links,"href",requestHost); updateAttribute(metas,"content",requestHost); return document...
Rewrite all links in an HTML string based on the extensionless URLs settings.
public static final void unInit(){ if (isInit) { synchronized (Snowdream.class) { Snowdream.mContext=null; isInit=false; } } else { Log.w("The FrameWork has not been initialized."); } }
call it when application unInit.
public Boolean isServicePackageInfoSupported(){ return servicePackageInfoSupported; }
Gets the value of the servicePackageInfoSupported property.
public void removeNoCollisions(PhysicalObject2D c1,PhysicalObject2D c2){ PhysicalObjectPair pair=new PhysicalObjectPair(c1,c2); noCollisions.remove(pair); }
Turns collisions for a pair of objects back on
public static int clamp(int v,int min,int max){ return v < min ? min : v > max ? max : v; }
Clamps an integer value to a given range.
@Override public boolean isActive(){ return amIActive; }
Used by the Whitebox GUI to tell if this plugin is still running.
public static boolean isRpVplexVolume(UnManagedVolume unManagedVolume){ return isVplexVolume(unManagedVolume) && checkUnManagedResourceIsRecoverPointEnabled(unManagedVolume); }
Returns true if the UnManagedVolume represents a RP/VPLEX virtual volume. That is, a VPLEX volume that is RecoverPoint-enabled.
public Boolean isDegraded(){ return degraded; }
Gets the value of the degraded property.
public QueueNode next(){ return m_Next; }
Gets the next node in the queue.
public static void unsupportSASLMechanism(String name){ mechanismsPreferences.remove(name); }
Un-supports an existing SASL mechanism. Once the mechanism has been unregistered it won't be possible to authenticate users using the removed SASL mechanism. Note that the mechanism is still registered, but will just not be used.
public static double nextUp(double d){ if (d == Double.POSITIVE_INFINITY) return d; else { d+=0.0d; return Double.longBitsToDouble(Double.doubleToRawLongBits(d) + ((d >= 0.0d) ? +1L : -1L)); } }
Replacement for the Math.nextUp(...) method that is only available in HONEYCOMB and higher. Dat's some seeeeek sheeet.
public void start(){ Thread thread=new Thread(this); if (m_pi != null) thread.setName(m_pi.getTitle() + "-" + m_pi.getAD_PInstance_ID()); thread.start(); }
Run this process in a new thread
public void updateRow(Object[] oldRow,Object[] newRow) throws IOException { if (!enforcing()) { return; } if (!anyUpdates(oldRow,newRow)) { return; } initialize(); SharedState ss=_table.getDatabase().getFKEnforcerSharedState(); if (ss.isUpdating()) { for ( Joiner joiner : _secondaryJoiners)...
Handles foregn-key constraints when updating a row.
public static Map<String,MiDPersonGroupData> createMiDPersonGroups(){ MiDPersonGroupData students=new MiDPersonGroupData(6,17); students.setLegsPerPersonAndDay(2.81); setPercentages(students); EgapPopulationUtilsV2.personGroupData.put(HashGenerator.generateAgeGroupHash(6,17),students); MiDPersonGroupData adul...
Creates person groups according to MiD survey data. Each person group consists of <ul> <li>age segment of ten years</li> <li>sex of the members</li> <li>legs per person and day</li> </ul>
protected int _columnOffset(int absRank){ return columnOffsets[absRank]; }
Returns the position of the given absolute rank within the (virtual or non-virtual) internal 1-dimensional array. Default implementation. Override, if necessary.
protected void prepareRaml() throws MojoExecutionException, MojoFailureException, IOException { ClassLoaderUtils.addLocationsToClassLoader(project); List<String> targetPacks=ClassLoaderUtils.loadPackages(project); if (dependencyPackagesList != null && !dependencyPackagesList.isEmpty()) { targetPacks.addAll(de...
Main entrypoint for raml generation
public boolean doWindowDeActivated(){ if (m_aspects.isDirty()) { setStatusBarMessage("Please Save or Refresh as changed are pending",BasePanel.WARNING); return false; } return true; }
Method doWindowDeActivated.
public static void deleteTag(final JFrame parent,final ITagManager tagManager,final ITreeNode<CTag> tag){ if (CMessageBox.showYesNoQuestion(parent,String.format("Do you really want to convert delete the node tag '%s'?",tag.getObject().getName())) == JOptionPane.YES_OPTION) { try { tagManager.deleteTag(tag);...
Deletes a node tag.
public synchronized void dispose(){ events.clear(); unregisterSupplier.get(); latch=null; }
Clears the underlying queue and unregisters the current instance from the event bus.
private void entryDestructionInSynchPersistTypeForIOExceptionCase(Region region) throws Exception { region.create("key1","value1"); ((LocalRegion)region).getDiskRegion().testHook_getChild().testClose(); try { region.destroy("key1"); fail("Should have encountered DiskAccessException"); } catch ( DiskAc...
If IOException occurs while destroying an entry in a persist only synch mode, DiskAccessException should occur & region should be destroyed
private RemoveStupidOverrides(){ }
Do nothing.
protected void forwardToLoginPage(String relativePath,boolean save,HttpServletRequest request,HttpServletResponse response,FilterChain chain) throws IOException, ServletException { String actualLoginPage=getActualLoginPage(request,loginPage,authSettings); String redirectUrl=request.getContextPath() + actualLoginPag...
Forward to the login page if the given relative path is not the login page.
public void writeSortTempFile(Object[][] records) throws CarbonSortKeyAndGroupByException { int recordCount=0; Object[][] tempRecords; while (recordCount < records.length) { if (records.length - recordCount < recordPerLeaf) { recordPerLeaf=records.length - recordCount; } tempRecords=new Object[r...
Below method will be used to write the sort temp file chunk by chunk
public boolean requiresClat(int netType,NetworkStateTracker tracker){ LinkProperties lp=tracker.getLinkProperties(); Slog.d(TAG,"requiresClat: netType=" + netType + ", hasIPv4Address="+ lp.hasIPv4Address()); return netType == TYPE_MOBILE && !lp.hasIPv4Address(); }
Determines whether an interface requires clat.
static void checkOpcode(final int opcode,final int type){ if (opcode < 0 || opcode > 199 || TYPE[opcode] != type) { throw new IllegalArgumentException("Invalid opcode: " + opcode); } }
Checks that the type of the given opcode is equal to the given type.
public static List propertyDescriptors(int apiLevel){ return PROPERTY_DESCRIPTORS; }
Returns a list of structural property descriptors for this node type. Clients must not modify the result.
static String encodeEntities(String source){ StringBuffer buffer=new StringBuffer(); String encoded; for (int index=0; index < source.length(); index++) { char ch=source.charAt(index); if ((encoded=encodeEntity(ch)) != null) { buffer.append(encoded); } else { buffer.append(ch); } } ...
Utility method for encoding HTML entities within query parameters.
public int countProcess(long groupId,String keywords){ String[] names=null; boolean andOperator=false; if (Validator.isNotNull(keywords)) { names=CustomSQLUtil.keywords(keywords); } else { andOperator=true; } return _countProcess(groupId,andOperator,names); }
Count Process with keywords
public DelegatingInvocableHandler(List<InvocableHandlerMethod> handlers,Object bean){ this.handlers=new ArrayList<InvocableHandlerMethod>(handlers); this.bean=bean; }
Construct an instance with the supplied handlers for the bean.
public static Collection<Display> all(){ return enums.all(); }
Gets all of the parameter values that are defined as static constants in this class.
public static byte[] decode(byte[] source) throws Base64DecoderException { return decode(source,0,source.length); }
Decodes Base64 content in byte array format and returns the decoded byte array.
private void updateMenuState(){ m_appendAnd.setEnabled(m_criteriumNode.allowAppend(CAndCriterium.class)); m_appendOr.setEnabled(m_criteriumNode.allowAppend(COrCriterium.class)); m_appendNot.setEnabled(m_criteriumNode.allowAppend(CNotCriterium.class)); m_insertAnd.setEnabled(m_criteriumNode.allowInsert(CAndCrite...
Updates the state of the context menu depending on the state of the criterium tree.
public ClearCacheRequest(Cache cache,Runnable callback){ super(Method.GET,null,null); mCache=cache; mCallback=callback; }
Creates a synthetic request for clearing the cache.
public void stop(){ isRotating=false; mPlayPauseDrawable.setPlaying(isRotating); postInvalidate(); }
Stop turning image
@Override public void onTurnReached(int currentTurn){ QueryCanonicalCharacterNamesCommand checkcommand=DBCommandQueue.get().getOneResult(QueryCanonicalCharacterNamesCommand.class,handle); if (checkcommand == null) { TurnNotifier.get().notifyInTurns(0,new TurnListenerDecorator(this)); return; } Player pl...
Completes handling the buddy action.