code
stringlengths
10
174k
nl
stringlengths
3
129k
public final boolean isFinished(){ return mFinished; }
Returns whether the scroller has finished scrolling.
final void forgetContents(){ UNSAFE.putObject(this,itemOffset,this); UNSAFE.putObject(this,waiterOffset,null); }
Sets item to self and waiter to null, to avoid garbage retention after matching or cancelling. Uses relaxed writes because order is already constrained in the only calling contexts: item is forgotten only after volatile/atomic mechanics that extract items. Similarly, clearing waiter follows either CAS or return from p...
public FBNBackupManager(){ }
Create a new instance of <code>FBNBackupManager</code> based on the default GDSType.
public void error(Throwable t,String s){ if (isEnabled(TraceSystem.ERROR)) { traceWriter.write(TraceSystem.ERROR,module,s,t); } }
Write a message with trace level ERROR to the trace system.
public String toString(final String name,final String header){ final Map<String,Integer> items=contents.get(name); final StringBuilder sb=new StringBuilder(header + "\n"); for ( final Entry<String,Integer> entry : items.entrySet()) { sb.append(entry.getKey() + " \t" + entry.getValue()+ "\n"); } return sb...
converts a shop into a human readable form
public static final long fileTimeToWinTime(FileTime ftime){ return (ftime.to(TimeUnit.MICROSECONDS) - WINDOWS_EPOCH_IN_MICROSECONDS) * 10; }
Converts FileTime to Windows time.
@Override public void visit(NodeVisitor v){ if (v.visit(this)) { target.visit(v); if (initializer != null) { initializer.visit(v); } } }
Visits this node, then the target expression, then the initializer expression if present.
protected void sendMomentaryFunctionGroup5(){ if (log.isDebugEnabled()) { log.debug("Momentary function request not supported by Elite."); } return; }
Send the XpressNet message to set the momentary state of functions F21, F22, F23, F24, F25, F26, F27, F28
public static void main(String[] args){ Scanner input=new Scanner(System.in); double[] numbers=new double[10]; System.out.print("Enter ten numbers: "); for (int i=0; i < numbers.length; i++) numbers[i]=input.nextDouble(); bubbleSort(numbers); for ( double e : numbers) { System.out.print(e + " "); }...
Main method
public static void registerInterest(){ try { Region region1=cache.getRegion(Region.SEPARATOR + REGION_NAME1); Region region2=cache.getRegion(Region.SEPARATOR + REGION_NAME2); assertTrue(region1 != null); assertTrue(region2 != null); region1.registerInterest("ALL_KEYS"); region2.registerInteres...
register interest with the server on ALL_KEYS
public Intent putExtra(String name,Serializable value){ if (mExtras == null) { mExtras=new Bundle(); } mExtras.putSerializable(name,value); return this; }
Add extended data to the intent. The name must include a package prefix, for example the app com.android.contacts would use names like "com.android.contacts.ShowAll".
private QueryWrapper processIn(InPredicate node,QueryState state){ String field=getVariableName(node.getValue()); FieldAndType fat=getFieldAndType(field,state); field=fat.getFieldName(); if (node.getValueList() instanceof InListExpression) { InListExpression list=(InListExpression)(node).getValueList(); ...
Parses predicates of type IN (...)
public static void testSplit(String regexp,String text,String[] expected){ testSplit(regexp,text,0,expected); }
Tests that both RE2 and JDK split the string on the regex in the same way, and that that way matches our expectations.
public NotificationEffect effect(){ return CENTER.effect(); }
Get the singleton object of NotificationEffect.
public void ruleR6R7(Graph graph){ List<Node> nodes=graph.getNodes(); for ( Node b : nodes) { List<Node> adjacents=graph.getAdjacentNodes(b); if (adjacents.size() < 2) continue; ChoiceGenerator cg=new ChoiceGenerator(adjacents.size(),2); for (int[] choice=cg.next(); choice != null; choice=cg.ne...
Implements Zhang's rules R6 and R7, applies them over the graph once. Orient single tails. R6: If A---Bo-*C then A---B--*C. R7: If A--oBo-*C and A,C nonadjacent, then A--oB--*C
public Blade routes(List<Route> routes){ Assert.notEmpty(routes,"Routes not is empty!"); routers.addRoutes(routes); return this; }
Add a route list
public OutputUser send(){ try { return output.get(); } catch ( ConcurrentException ex) { throw new RuntimeException("Could not generate OutputChannel for " + getNick(),ex); } }
Send a line to the user.
public static void notEmpty(Collection<?> str,String message,Object... params) throws AssertException { if (CommonUtil.isEmpty(str)) { throw new AssertException(ErrorCodeDef.IS_NULL_20006,message,params); } }
Description: <br>
public LayoutParams(int width,int height,float weight){ super(width,height); this.weight=weight; }
Creates a new set of layout parameters with the specified width, height and weight.
public String foldsTipText(){ return "Number of xval folds to use when estimating subset accuracy."; }
Returns the tip text for this property
public static Map<String,Object> sendMailHiddenInLogFromScreen(DispatchContext dctx,Map<String,? extends Object> rServiceContext){ Map<String,Object> serviceContext=UtilMisc.makeMapWritable(rServiceContext); serviceContext.put("hideInLog",true); return sendMailFromScreen(dctx,serviceContext); }
JavaMail Service same than sendMailFromScreen but with hidden result in log. To prevent having not encoded passwords shown in log
int generate(){ int movement=0; nonAccelMovement=0; do { final int dir=position >= 0 ? 1 : -1; switch (step) { case 0: if (Math.abs(position) < FIRST_MOVEMENT_THRESHOLD) { return movement; } movement+=dir; nonAccelMovement+=dir; step=1; break; case 1: if (Math.abs(position) < SECOND_...
Generate the number of discrete movement events appropriate for the currently collected trackball movement.
private int doLaunch(Container container,Path containerWorkDir) throws Exception { Map<String,String> environment=container.getLaunchContext().getEnvironment(); EnvironmentUtils.putAll(environment); Set<URL> additionalClassPathUrls=this.filterAndBuildUserClasspath(container); ExecJavaCliParser javaCliParser=thi...
Will launch containers within the same JVM as this Container Executor. It will do so by: - extracting Container's class name and program arguments from the launch script (e.g., launch_container.sh) - Creating an isolated ClassLoader for each container - Calling doLaunchContainer(..) method to launch Container
public static MemberDialog createBuildNewMemberDialog(final JFrame owner,final TypeManager typeManager){ return new MemberDialog(owner,typeManager); }
Instantiates the member dialog to create a new member.
Class evalReturnType(CallStack callstack,Interpreter interpreter) throws EvalError { insureNodesParsed(); if (returnTypeNode != null) return returnTypeNode.evalReturnType(callstack,interpreter); else return null; }
Evaluate the return type node.
void onAddToDatabase(Context context,ContentValues values){ values.put(LauncherSettings.BaseLauncherColumns.ITEM_TYPE,itemType); values.put(LauncherSettings.Favorites.CONTAINER,container); values.put(LauncherSettings.Favorites.SCREEN,screenId); values.put(LauncherSettings.Favorites.CELLX,cellX); values.put(La...
Write the fields of this item to the DB
private void changeStimulusDimension(final int num){ double[] newStim=new double[num]; for (int i=0; i < num; i++) { if (i < valArray.length) { newStim[i]=valArray[i]; } else { newStim[i]=0; } } valArray=newStim; }
Changes size of array.
@Override public void run(){ amIActive=true; String destHeader=null; WhiteboxRaster image=null; WhiteboxRaster destination=null; WhiteboxRasterInfo imageInfo=null; int nCols=0; int nRows=0; double imageNoData=-32768; double outputNoData=-32768; int numImages; double x, y, z; int progress=0; in...
Used to execute this plugin tool.
public static void storePtsResult(String deviceSerial,String classMethodName,String result){ mMap.put(generateTestKey(deviceSerial,classMethodName),result); }
Stores PTS result. Existing result with the same key will be replaced. Note that key is generated in the form of device_serial#class#method name. So there should be no concurrent test for the same (serial, class, method).
public Builder withErrorCode(String errorCode){ message.setErrorCode(errorCode); return this; }
Add an error code to the message.
public void waitForPrimaryPersistentRecovery(){ boolean interupted=false; while (true) { try { someMemberRecoveredLatch.await(); break; } catch ( InterruptedException e) { interupted=true; } } if (interupted) { Thread.currentThread().interrupt(); } if (recoveryException...
Wait for this bucket to be recovered from disk, at least to the point where it starts doing a GII. This method will throw an exception if the recovery thread encountered an exception.
protected KeyAgreement(KeyAgreementSpi keyAgreeSpi,Provider provider,String algorithm){ this.spi=keyAgreeSpi; this.provider=provider; this.algorithm=algorithm; lock=null; }
Creates a KeyAgreement object.
public static LatLon interpolate(double amount,LatLon value1,LatLon value2){ if (value1 == null || value2 == null) { String message=Logging.getMessage("nullValue.LatLonIsNull"); Logging.logger().severe(message); throw new IllegalArgumentException(message); } if (LatLon.equals(value1,value2)) return ...
Returns the linear interpolation of <code>value1</code> and <code>value2</code>, treating the geographic locations as simple 2D coordinate pairs.
@Override public synchronized boolean retainAll(Collection<?> collection){ return super.retainAll(collection); }
Removes all objects from this vector that are not contained in the specified collection.
private void addAnswer(String riddle,String answer){ Collection<String> answers=riddles.get(riddle); if (answers == null) { answers=new LinkedList<String>(); riddles.put(riddle,answers); } answers.add(answer); }
Add an answer to a riddle. Add the riddle too if it did not exist before.
public XlsxSheetMetaData parseMetaData(Operator callingOperator,ExcelResultSetConfiguration configuration,XlsxReadMode readMode) throws XMLStreamException, IOException, UserError { int firstRowIndex=Math.max(configuration.getRowOffset(),0); int firstColumnIndex=configuration.getColumnOffset(); int userSpecifiedLa...
Parses the XLSX worksheet file to retrieve sheet meta data.
public AlgVector(int n){ m_Elements=new double[n]; initialize(); }
Constructs a vector and initializes it with default values.
public static String[] split(String s,char c){ int i, b, e; int cnt; String res[]; int ln=s.length(); i=0; cnt=1; while ((i=s.indexOf(c,i)) != -1) { cnt++; i++; } res=new String[cnt]; i=0; b=0; while (b <= ln) { e=s.indexOf(c,b); if (e == -1) e=ln; res[i++]=s.substring(b,...
Splits a string at the specified character.
public static void main(String args[]){ if (args.length != 1) { throw new RuntimeException("Usage: java HttpUtils <serviceResetUrl>"); } performHttpGet(args[0]); }
parameters: serviceResetUrl
@Override public void update(){ if (condition.applies()) { dispatchUpdate(); } }
UpdateDispatcher.update() -> BaseObservable.dispatchUpdate()
public boolean isBroadcast(){ try { return channel.socket().getBroadcast(); } catch ( SocketException e) { throw new RuntimeIoException(e); } }
Tells if SO_BROADCAST is enabled.
public static void launchDataReductionPromo(Activity parentActivity){ if (!DataReductionProxySettings.getInstance().isDataReductionProxyPromoAllowed()) { return; } if (DataReductionProxySettings.getInstance().isDataReductionProxyManaged()) return; if (DataReductionProxySettings.getInstance().isDataReducti...
Launch the data reduction promo, if it needs to be displayed.
private static void omitirFicherosSubidosAnt(Integer bookId,Integer folderId,Map documents,String entidad,String sessionID) throws BookException, SessionException, ValidationException { List docsFolder=FolderFileSession.getBookFolderDocsWithPages(sessionID,bookId,folderId.intValue(),entidad); for (Iterator it=docsF...
Metodo que elimina del array de documentos los ficheros que ya han sido subidos con anterioridad
@SafeVarargs public final AssertSubscriber<T> assertValuesWith(Consumer<T>... expectations){ if (!valuesStorage) { throw new IllegalStateException("Using assertNoValues() requires enabling values storage"); } final int expectedValueCount=expectations.length; if (expectedValueCount != values.size()) { th...
Assert the specified values have been received in the declared order. Values storage should be enabled to use this method.
public void testAddUser(){ final long n=new Date().getTime() % 100000; final String given="Testgiven" + n; final String family="Testfamily" + n; click(viewWithId(R.id.action_new_user)); type(given,viewWithId(R.id.add_user_given_name_tv)); type(family,viewWithId(R.id.add_user_family_name_tv)); click(viewWi...
Adds a new user and logs in.
private void separateAnnotationsKinds(JCTree typetree,Type type,Symbol sym,TypeAnnotationPosition pos){ List<Attribute.Compound> annotations=sym.getRawAttributes(); ListBuffer<Attribute.Compound> declAnnos=new ListBuffer<Attribute.Compound>(); ListBuffer<Attribute.TypeCompound> typeAnnos=new ListBuffer<Attribute....
Separates type annotations from declaration annotations. This step is needed because in certain locations (where declaration and type annotations can be mixed, e.g. the type of a field) we never build an JCAnnotatedType. This step finds these annotations and marks them as if they were part of the type.
static void referenced(ObjID id,long sequenceNum,VMID vmid){ synchronized (tableLock) { ObjectEndpoint oe=new ObjectEndpoint(id,Transport.currentTransport()); Target target=objTable.get(oe); if (target != null) { target.referenced(sequenceNum,vmid); } } }
Process client VM signalling reference for given ObjID: forward to corresponding Target entry. If ObjID is not found in table, no action is taken.
private static double b0(double u){ double tmp=1.0 - u; return (tmp * tmp * tmp); }
B0, B1, B2, B3 : Bezier multipliers
private static String generateNameFromType(Type type){ String name=type.typeName().replace('.','$'); int dimensions=type.dimension().length() / 2; for (int i=0; i < dimensions; i++) { name="arrayOf_" + name; } return name; }
Generates a readable string representing the given type suitable for embedding within a Java identifier.
@Override protected void determineCoverageGoals(){ List<MethodNoExceptionCoverageTestFitness> goals=new MethodNoExceptionCoverageFactory().getCoverageGoals(); for ( MethodNoExceptionCoverageTestFitness goal : goals) { methodCoverageMap.put(goal.getClassName() + "." + goal.getMethod(),goal); if (Properties....
Initialize the set of known coverage goals
public int hashCode(){ return url.hashCode(); }
Defines the hashcode.
Field readField(){ ReferenceTypeImpl refType=readReferenceType(); long fieldRef=readFieldRef(); return refType.getFieldMirror(fieldRef); }
Read field represented as vm specific byte sequence.
public void deltaXTriangleWeigths(PixelState pixel){ pixel.triangleWeight1+=diff23y * denomInverted; pixel.triangleWeight2-=diff13y * denomInverted; pixel.triangleWeight3=1.f - (pixel.triangleWeight1 + pixel.triangleWeight2); }
Update the triangle weights (Barycentric coordinates) by knowing that pixel.x has been incremented by 1.
public static Button createPushButton(Composite parent,String label,String tooltip,Image image){ Button button=createPushButton(parent,label,image); button.setToolTipText(tooltip); return button; }
Creates and returns a new push button with the given label, tooltip and/or image.
public MutableLong(final long value){ super(); this.value=value; }
Constructs a new MutableLong with the specified value.
public void add(byte[] vals){ add(vals,0,vals.length); }
Adds the values in the array <tt>vals</tt> to the end of the list, in order.
public void switchToLeftCamera(final Renderer r){ ContextManager.getCurrentContext().enforceState(redColorMask); _leftCamera.update(); _leftCamera.apply(r); }
Switch to left camera for drawing
public double incrementAndReturn(){ if (enabled) { return ++count; } else return 0; }
increment the counters value and return it
public static void rotate(File file,int max,String extension) throws IOException { FileUtilSupport.getDefault().rotate(file,max,extension); }
Rotate a file and its backups, retaining only a set number of backups.
private void updateProgress(int progress){ if (myHost != null && progress != previousProgress) { myHost.updateProgress(progress); } previousProgress=progress; }
Used to communicate a progress update between a plugin tool and the main Whitebox user interface.
public boolean isMessageTransferred(){ if (msgsent >= msgsize) { return true; } else { return false; } }
Returns true if the current message transfer is done.
private static void assertBufferMatchesResponseBody(byte[] buffer,int count){ assertArrayEquals(Arrays.copyOf(TEST_RESPONSE_BODY,count),buffer); }
Asserts that buffer's length equal to count and matches the first count bytes of the test response body.
public TimeSeriesLagSearch(IndependenceTest independenceTest){ if (independenceTest == null) { throw new NullPointerException(); } this.independenceTest=independenceTest; }
Constructs a CPC algorithm that uses the given independence test as oracle. This does not make a copy of the independence test, for fear of duplicating the data set!
protected boolean accept(Component aComponent){ if (!(aComponent.isVisible() && aComponent.isDisplayable() && aComponent.isEnabled())) { return false; } if (!(aComponent instanceof Window)) { for (Container enableTest=aComponent.getParent(); enableTest != null; enableTest=enableTest.getParent()) { i...
Determines whether a Component is an acceptable choice as the new focus owner. The Component must be visible, displayable, and enabled to be accepted. If client code has explicitly set the focusability of the Component by either overriding <code>Component.isFocusTraversable()</code> or <code>Component.isFocusable()</co...
public static void main(String... args) throws SQLException { CsvSample.write(); CsvSample.read(); FileUtils.delete("data/test.csv"); }
This method is called when executing this sample application from the command line.
private void showPopupMenu(final MouseEvent event){ final JPopupMenu menu=new CNativeFunctionViewFilterFieldMenu(getFilterField()); menu.show(event.getComponent(),event.getX(),event.getY()); }
Shows a context menu depending on the mouse event.
public boolean shouldLogOnNullSet(String lhs,String rhs){ if (nseh == null) { return true; } return nseh.shouldLogOnNullSet(lhs,rhs); }
Implementation of NullSetEventHandler method <code>shouldLogOnNullSet()</code>. Called during Velocity merge to determine if when a #set() results in a null assignment, a warning is logged.
public RemoteCarrierSlaServiceImpl(final GenericDTOService<CarrierSlaDTO> carrierSlaDTOGenericDTOService,final FederationFacade federationFacade){ super(carrierSlaDTOGenericDTOService); this.federationFacade=federationFacade; }
Construct remote service.
public ServiceCall<String> convertDocumentToText(File document,String mediaType,JsonObject customConfig){ Request request=createConversionRequest(document,null,ConversionTarget.NORMALIZED_TEXT,customConfig); return createServiceCall(request,ResponseConverterUtils.getString()); }
Converts a document to Text using a custom configuration.
public Process start() throws IOException { if (this.serverProcess != null) { throw new IllegalArgumentException("Server already started"); } this.serverProcess=Runtime.getRuntime().exec(getCommandLine()); return this.serverProcess; }
Starts the server, returning a java.lang.Process instance that represents the mysql server.
static void initResource(){ try { messageRB=ResourceBundle.getBundle("sun.tools.javac.resources.javac"); } catch ( MissingResourceException e) { throw new Error("Fatal: Resource for javac is missing"); } }
Initialize ResourceBundle
private void hangUp(){ send("Hanging up"); getTelephonyService().endCall(); }
Ends the current call and send a notification. Doesn't throw if there is no pending call
public Object runSafely(Catbert.FastStack stack) throws Exception { String[] recentStationIDs=Sage.getRawProperties().getMRUList("recent_channels",10); java.util.ArrayList rv=new java.util.ArrayList(); for (int i=0; recentStationIDs != null && i < recentStationIDs.length; i++) { try { int id=Integer.par...
Returns an array of recently viewed channels. This tracks channels viewed from any mechanism; live or DVR'd.
public Currency read(String symbol){ return Currency.getInstance(symbol); }
This method is used to convert the string value given to an appropriate representation. This is used when an object is being deserialized from the XML document and the value for the string representation is required.
@Override public void transform(AffineTransform tx){ invalidateTransformedShape(); if (get(TRANSFORM) != null || (tx.getType() & (AffineTransform.TYPE_TRANSLATION)) != tx.getType()) { if (get(TRANSFORM) == null) { set(TRANSFORM,(AffineTransform)tx.clone()); } else { AffineTransform t=TRANSFORM....
Transforms the figure.
protected void customize(@NotNull V value){ setText(myStaticText != null ? myStaticText : value.toString()); }
Here all subclasses should customize their text, icon and other attributes. Note, that background and foreground colors are already set.
public static Map<String,Object> updateAffiliate(DispatchContext ctx,Map<String,? extends Object> context){ Delegator delegator=ctx.getDelegator(); Locale locale=(Locale)context.get("locale"); String partyId=getPartyId(context); if (UtilValidate.isEmpty(partyId)) { return ServiceUtil.returnError(UtilPropert...
Updates an Affiliate.
public ShieldFrame(byte shieldId,byte functionId){ this.shieldId=shieldId; this.verificationByte=getNewVerificationByte(); this.functionId=functionId; arguments=new ArrayList<>(); }
Instantiates a new <tt>ShieldFrame</tt>.
public boolean hasExperimentNotes(){ return hasExtension(GwoExperimentNotes.class); }
Returns whether it has the experiment's notes.
@After public void tearDown(){ webClient.closeAllWindows(); }
Tear down after testing.
public boolean saveChunks(boolean bln,net.minecraft.util.IProgressUpdate ipu){ return provider.saveChunks(bln,ipu); }
Two modes of operation: if passed true, save all Chunks in one go. If passed false, save up to two chunks. Return true if all chunks have been saved.
public TestCertificate(String diff,String type){ super(type); this.diff=diff; }
A ctor that allows to specify both the TYPE of certificate and the diff. Leave the <code>diff</code> null when no difference needed.
public GenerateCodeException(String msg,Throwable cause){ super(msg,cause); }
Error generating the java code.
public CtClass[] mayThrow(){ return super.mayThrow(); }
Returns the list of exceptions that the catch clause may throw.
public HessianRemote(String type,String url){ this.type=type; this.url=url; }
Creates a new Hessian remote object.
@GuardedBy("lock") private int readSize(){ int count=writePosition - readPosition; return (count < 0) ? count + buffer.length : count; }
Amount of unread data in the buffer.
private static boolean isFirstTime(){ Path acceptedLicenseFile=Paths.get(Constant.getInstance().ACCEPTED_LICENSE); return Files.notExists(acceptedLicenseFile); }
Tells whether or not ZAP is being started for first time. It does so by checking if the license was not yet been accepted.
public static boolean isParityAdjusted(byte[] key,int offset) throws InvalidKeyException { if (key == null) { throw new InvalidKeyException("null key"); } if (key.length - offset < DES_KEY_LEN) { throw new InvalidKeyException("Wrong key size"); } for (int i=0; i < DES_KEY_LEN; i++) { int k=Integer...
Checks if the given DES key material, starting at <code>offset</code> inclusive, is parity-adjusted.
public void writeTo(OutputStream os) throws IOException { DataOutputStream dos=new DataOutputStream(os); dos.writeInt(N); dos.writeInt(q); dos.writeInt(df); dos.writeInt(df1); dos.writeInt(df2); dos.writeInt(df3); dos.writeInt(db); dos.writeInt(dm0); dos.writeInt(c); dos.writeInt(minCallsR); dos...
Writes the parameter set to an output stream
public int hashCode(){ return (int)value; }
Return the hash code of the byte value.
public static Vector<?> create(Vector<String> markerNames,String prefix,Properties properties){ return getInstance()._create(markerNames,prefix,properties,null,false); }
Given a Vector of marker name Strings, and a Properties object, look in the Properties object for the markerName.class property to get a class name to create each object. Then, if the new objects are PropertyConsumers, use the marker name as a property prefix to get properties for that object out of the Properties.
public OMRaster(){ super(RENDERTYPE_UNKNOWN,LINETYPE_UNKNOWN,DECLUTTERTYPE_NONE); }
Construct a blank OMRaster, to be filled in with setX calls.
public static <T>ListWithDefault<T> withDefault(List<T> self,@ClosureParams(value=SimpleType.class,options="int") Closure<T> init){ return withLazyDefault(self,init); }
An alias for <code>withLazyDefault</code> which decorates a list allowing it to grow when called with index values outside the normal list bounds.
protected String selectedDecoderType(){ if (!isDecoderSelected()) { return null; } else { return ((DecoderTreeNode)dTree.getLastSelectedPathComponent()).getTitle(); } }
Convert the decoder selection UI result into a name.
public UnitsFormat(){ this(UnitsFormat.KILOMETERS,UnitsFormat.SQUARE_KILOMETERS,false); }
Construct an instance that displays length in kilometers, area in square kilometers and angles in decimal degrees.
@Override public void close() throws IOException { synchronized (lock) { in.close(); } }
Closes this reader. This implementation closes the filtered reader.
public void testAtomicOffheap() throws Exception { testAtomic0(cachesAtomicOffheap); }
Test atomic offheap cache.
protected void removeTag(short tagId,int ifdId){ IfdData ifdData=mIfdDatas[ifdId]; if (ifdData == null) { return; } ifdData.removeTag(tagId); }
Removes the tag with a given TID and IFD.
public UWidget widget(){ UWidget uw=new UWidget(); uw.bb(this); return uw; }
The <b>widget </b> function should be used to get the object needed for the <b>addPalette </b> specialist function, which adds the palette widget to the palette widget list.
void resetMasterPassword(String password,boolean encrypt){ myKey.get().set(EncryptionUtil.genPasswordKey(password)); myDatabase.clear(); try { storePassword(null,MasterKeyPasswordSafe.class,testKey(password),TEST_PASSWORD_VALUE); if (encrypt) { myDatabase.setPasswordInfo(encryptPassword(password)); ...
Reset password for the password safe (clears password database). The method is used from plugin's UI.