code
stringlengths
10
174k
nl
stringlengths
3
129k
private Point2D edge_point(Point2D p,double current_azimuth){ double c=HEMISPHERE_EDGE; LatLonPoint tmpll=GreatCircle.sphericalBetween(centerY,centerX,c,current_azimuth); double phi=tmpll.getRadLat(); double lambda=tmpll.getRadLon(); double kPrime=1f / Math.cos(c); double cosPhi=Math.cos(phi); double sinP...
Calculate point along edge of hemisphere (using center point and current azimuth). <p> This is invoked for points that aren't visible in the current hemisphere.
static UtilEvalError castError(Class lhsType,Class rhsType,int operation){ return castError(Reflect.normalizeClassName(lhsType),Reflect.normalizeClassName(rhsType),operation); }
Return a UtilEvalError or UtilTargetError wrapping a ClassCastException describing an illegal assignment or illegal cast, respectively.
public void testEquals_equalObjectsInDifferentEqualityGroups(){ assertTestEqualsCausesException("Equal objects in different equality group should cause an exception.",new EqualsTester().newEqualityGroup("a").newEqualityGroup("a")); }
Check 6) comparing each pair of objects from different equality groups returns false
@Category(FlakyTest.class) @Test public void testDLockMBean() throws Throwable { initManagement(false); VM[] managedNodes=new VM[getManagedNodeList().size()]; VM managingNode=getManagingNode(); getManagedNodeList().toArray(managedNodes); createGrantorLockService(managedNodes[0]); createLockService(managedNo...
Distributed Lock Service test
public boolean removeDefaultRemoveGraph(IRI graphURI){ return defaultRemoveGraphs.remove(graphURI); }
Removes a graph URI from the set of default remove graph URIs.
protected void addCommentPropertyDescriptor(Object object){ itemPropertyDescriptors.add(createItemPropertyDescriptor(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),getResourceLocator(),getString("_UI_DeprecatableElement_comment_feature"),getString("_UI_PropertyDescriptor_description","_UI_Depreca...
This adds a property descriptor for the Comment feature. <!-- begin-user-doc --> <!-- end-user-doc -->
public String username(){ return this.username; }
Gets username of this github url
public ChannelFuture connectAsync(){ logger.info("Connecting to {}",getSocketAddress()); final Bootstrap b=getBootstrap(); reconnectOnCloseListener.requestReconnect(); final ChannelFuture connectFuture=b.connect(); connectFuture.addListener(null); return connectFuture; }
Connects asynchronously to remote address.
@SuppressWarnings("fallthrough") public static Automaton toAutomaton(Term wildcardquery){ List<Automaton> automata=new ArrayList<>(); String wildcardText=wildcardquery.text(); for (int i=0; i < wildcardText.length(); ) { final int c=wildcardText.codePointAt(i); int length=Character.charCount(c); switch (c...
Convert Lucene wildcard syntax into an automaton.
public int adjustAlpha(int color,float factor){ int alpha=Math.round(Color.alpha(color) * factor); int red=Color.red(color); int green=Color.green(color); int blue=Color.blue(color); return Color.argb(alpha,red,green,blue); }
Transparent the given color by the factor The more the factor closer to zero the more the color gets transparent
FlowState manageOperationProcess(FlowState flowState,InstanceStatus result){ EC2Communication ec2comm=new EC2Communication(ph); FlowState newState=null; switch (flowState) { case START_REQUESTED: ec2comm.startInstance(ph.getAWSInstanceId()); result.setDescription(Messages.getAll("accessInfo_STARTING")); resul...
Manage operation process.
synchronized boolean isTerminated(){ return state instanceof TerminatedStateHandler; }
Checks if the session handle state is terminated (i.e., if the session handle can be discarded and the underlying connection can be closed).
@Override public String globalInfo(){ return "Combining several multi-label classifiers using Bootstrap AGGregatING.\n" + "Duplicates Instances instead of assigning higher weights -- should work for methods that do not handle weights at all."; }
Description to display in the GUI.
public String standardPattern(){ return pattern.pattern(); }
Returns the regular expression from which this pattern was compiled.
void drawRGB(int[] rgbData,int offset,int x,int y,int w,int h,boolean processAlpha){ impl.drawRGB(nativeGraphics,rgbData,offset,x + xTranslate,y + yTranslate,w,h,processAlpha); }
Draws the RGB values based on the MIDP API of a similar name. Renders a series of device-independent RGB+transparency values in a specified region. The values are stored in rgbData in a format with 24 bits of RGB and an eight-bit alpha value (0xAARRGGBB), with the first value stored at the specified offset. The sca...
public ObjectFactory(){ }
Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: pl.baczkowicz.mqttspy.stats.generated
protected Pair<Class<? extends Page>,PageParameters> determineRedirectTarget(boolean isCheckout){ final Class<? extends Page> successfulPage; final PageParameters parameters=new PageParameters(); if (isCheckout) { successfulPage=(Class)wicketPagesMounter.getPageProviderByUri("/checkout").get(); parameters...
Extension hook to override classes for themes.
@Override public boolean isRasterFormat(){ return true; }
Used to check if the file is raster format.
public static void writeBytesToFilename(String filename,byte[] bytes){ FileOutputStream fos=null; try { if (filename != null && bytes != null) { File f=new File(filename); fos=new FileOutputStream(f); fos.write(bytes); fos.close(); } else { if (log.isLoggable(java.util.logging...
Method writeBytesToFilename
@Override public String serialize(boolean full){ try { StringWriter writer=new StringWriter(); XMLStreamWriter serializer=makeXMLSerializer(writer); serializer.writeStartDocument(); serializer.writeComment("This file is autogenerated. Please don't edit."); serializer.setDefaultNamespace("http://ma...
Serializes the flow into an xml string
public JmsSiBusScriptCommand(Configuration configuration,String resourcePath,Resource resource){ super(configuration,resourcePath); this.resource=resource; }
Sets configuration containing all needed information for building configuration scripts.
public void produceImage() throws IOException, ImageFormatException { char nm[]=new char[80]; int c; int i=0; int state=0; int H=0; int W=0; int x=0; int y=0; boolean start=true; byte raster[]=null; IndexColorModel model=null; while (!aborted && (c=input.read()) != -1) { if ('a' <= c && c <=...
produce an image from the stream.
public DefaultRetryPolicy(){ this(DEFAULT_TIMEOUT_MS,DEFAULT_MAX_RETRIES,DEFAULT_BACKOFF_MULT); }
Constructs a new retry policy using the default timeouts.
public boolean hasSource(){ return getSource() != null; }
Returns whether it has the source.
@Deprecated public AssumptionViolatedException(String assumption,Throwable e){ this(assumption,false,null,null); initCause(e); }
An assumption exception with the given message and a cause.
public void testSignumNegative(){ String a="-92948782094488478231212478987482988429808779810457634781384756794987"; int aScale=41; BigDecimal aNumber=new BigDecimal(new BigInteger(a),aScale); assertEquals("incorrect value",-1,aNumber.signum()); }
signum() for a negative BigDecimal
public Double3D(final Double2D p){ x=p.x; y=p.y; z=0.0; }
Explicitly assumes the z value is set to 0
@Override public void write(int b) throws IOException { Iterator<Client> it=clients.iterator(); while (it.hasNext()) { Client client=it.next(); try { client.output.write(b); } catch ( Exception e) { it.remove(); close(client); } } }
Write data to every client socket
public static void finishShareToMessenger(Activity activity,ShareToMessengerParams shareToMessengerParams){ Intent originalIntent=activity.getIntent(); Set<String> categories=originalIntent.getCategories(); if (categories == null) { activity.setResult(Activity.RESULT_CANCELED,null); activity.finish(); ...
Finishes the activity and returns the media item the user picked to Messenger.
public void startDocument() throws SAXException { }
Receive notification of the beginning of the document. <p>By default, do nothing. Application writers may override this method in a subclass to take specific actions at the beginning of a document (such as allocating the root node of a tree or creating an output file).</p>
@Override protected void process(DistributionManager dm){ doGet(dm); }
This method execute's on the receiver's node, and checks to see if the requested object exists in shared memory on this node, and if so, sends back a ResponseMessage.
@Override public boolean longTryCompareAndSwap(ObjectReference objref,long expected,long newValue,Word offset,Word unused,int mode){ if (org.jikesrvm.VM.BuildForIA32) { return Magic.attemptLong(objref.toObject(),offset.toOffset(),expected,newValue); } else { long oldValue; do { oldValue=Magic.pre...
Attempt an atomic compare and exchange in a write barrier sequence.
public ReceiveFileTransfer acceptFileTransfer(IncomingFileTransferEvent event,File destination) throws IOException { checkNotNull(event,"Event cannot be null"); checkNotNull(destination,"Destination file cannot be null"); return acceptFileTransfer(event,destination,0); }
Accept file transfer at position 0, blocking until the connection is active <p>
public IndexStats(StatisticsFactory factory,String indexName){ stats=factory.createAtomicStatistics(type,indexName); }
Creates a new <code>CachePerfStats</code> and registers itself with the given statistics factory.
public AboutAction(KseFrame kseFrame){ super(kseFrame); putValue(LONG_DESCRIPTION,res.getString("AboutAction.statusbar")); putValue(NAME,res.getString("AboutAction.text")); putValue(SHORT_DESCRIPTION,res.getString("AboutAction.tooltip")); putValue(SMALL_ICON,new ImageIcon(Toolkit.getDefaultToolkit().createIma...
Construct action.
public CF9(){ this(10); }
Constructs a CF9 test problem with 10 decision variables.
public static double cdf(double val,double loc,double scale,double shape){ val=(val - loc) / scale; if (shape != 0.) { final double tmp=1 - shape * val; if (tmp < 1e-15) { return (shape < 0) ? 0 : 1; } val=-Math.log(tmp) / shape; } return 1. / (1. + Math.exp(-val)); }
Cumulative density function.
public void finer(String mesg){ log(Level.FINER,mesg,null); }
This method logs a message at the FINER level.
public Project tagProjectWithOpenstackId(URI projectId,String osTenantId,String coprhdTenantId){ Project project=_dbClient.queryObject(Project.class,projectId); if (project != null) { ScopedLabelSet tagSet=new ScopedLabelSet(); ScopedLabel tagLabel=new ScopedLabel(coprhdTenantId,osTenantId); tagSet.add(...
Tags Project with given Openstack Tenant ID.
public static void initAllPipes(GraphManager m,int stageId){ int idx; initInputPipesAsNeeded(m,stageId); int pipeId; idx=m.stageIdToOutputsBeginIdx[stageId]; while (-1 != (pipeId=m.multOutputIds[idx++])) { try { int consumerId=getRingConsumerId(m,pipeId); if (consumerId < 0 && !Pipe.isInit(get...
Initialize the buffers for the input rings of this stage and Block until some other code has initialized the output rings.
private void drawRightPart(final Point buttonSize){ gc.setForeground(selectedBackgroundColor); gc.setBackground(selectedBackgroundColor); gc.setClipping(3,3,buttonSize.x / 2,buttonSize.y - 1); if (round) { gc.fillRoundRectangle(2,2,buttonSize.x,buttonSize.y,arc,arc); } else { gc.fillRectangle(2,2,but...
Draw the right part of the button
public void testRepeatedClose() throws IOException { fetch("www.fortify.net",443,true,"/sslcheck.html",10,1,0,60); fetch("mail.google.com",443,true,"/mail/",10,1,0,60); fetch("www.paypal.com",443,true,"/",10,1,0,60); fetch("www.yellownet.ch",443,true,"/",10,1,0,60); }
Does repeated requests for each of the hosts, with the connection being closed in between.
public void plnI(Object o) throws IOException { p(o.toString()); pln(); pI(); }
Writes object; ends current line; indents in.
public static void writeDataRow(String data,String outputPath){ File file=new File(outputPath); try { file.createNewFile(); } catch ( IOException e1) { e1.printStackTrace(); System.exit(0); } try { BufferedWriter writer=new BufferedWriter(new FileWriter(file)); writer.write(data); wr...
Write data row.
public boolean swapChildren(@NonNull DisplayBase child1,@NonNull DisplayBase child2){ int childIndex1=mDisplayList.indexOf(child1); int childIndex2=mDisplayList.indexOf(child2); if (childIndex1 == -1 || childIndex2 == -1) { return false; } removeChildAt(childIndex1); addChildAt(childIndex1,child2); re...
Swaps the specified children's depth in the display list. If either child is not a child of this Container, return false.
public int hashCode(){ int result=0; int cnt; Enumeration e; for (e=all(), cnt=0; e.hasMoreElements() && cnt < 5; cnt++) result^=((symbol)e.nextElement()).hashCode(); return result; }
Compute a hash code.
public boolean checkProcess(final IOContainer inputContainer){ rootOperator.checkAll(); return true; }
Checks for correct number of inner operators, properties, and io.
private static String createGDSExceptionMessage(GDSException ex){ return "GDS Exception. " + ex.getIntParam() + ". "+ ex.getMessage(); }
Helper method to create message text for GDSException.
public int[] readAllInts(){ String[] fields=readAllStrings(); int[] vals=new int[fields.length]; for (int i=0; i < fields.length; i++) vals[i]=Integer.parseInt(fields[i]); return vals; }
Read all ints until the end of input is reached, and return them.
protected void drawFrame(DrawContext dc){ GL2 gl=dc.getGL().getGL2(); OGLStackHandler oglStack=new OGLStackHandler(); try { oglStack.pushModelviewIdentity(gl); FrameAttributes attributes=this.getActiveAttributes(); gl.glTranslated(this.frameBounds.x,this.frameBounds.y,0.0); boolean drawHorizontalS...
Draw the frame, scroll bars, and title bar.
private static Point2D calcCenterOfMass(final Point2D[] pointArray){ final int N=pointArray.length; double cx=0; double cy=0; double area=calcSignedPolygonArea(pointArray); final Point2D centroid=new Point2D.Double(); int i; int j; double factor=0; for (i=0; i < N; i++) { j=(i + 1) % N; factor...
from: eu.hansolo.steelseries.tools.Scaler.java Returns a Point2D object that represents the center of mass of the given point array which represents a polygon.
protected boolean isSourceNewer(URL source,Class cls) throws IOException { long lastMod; if (isFile(source)) { String path=source.getPath().replace('/',File.separatorChar).replace('|',':'); File file=new File(path); lastMod=file.lastModified(); } else { URLConnection conn=source.openConnection();...
Decides if the given source is newer than a class.
public static boolean checkConnected(ConnectivityManager cm,boolean onlyWifi,boolean onlyUnmeteredNetwork){ if (cm == null) return false; NetworkInfo info=cm.getActiveNetworkInfo(); if (info != null && info.isConnected()) { if (onlyWifi && info.getType() != ConnectivityManager.TYPE_WIFI) { return fals...
Only checks the connectivity without regard to the preferences
public void testCaseInsensitive(){ m_Filter=getFilter(SortLabels.SORT_CASEINSENSITIVE,"first-last"); testBuffered(); Instances result=performTest(); String[] sorted=new String[]{"b","g","r"}; for (int i=0; i < sorted.length; i++) assertEquals("Values differ for index #" + (i + 1),sorted[i],result.attribute(...
Tests the case-insensitive sorting on all attributes.
public static String toHexString(byte[] buf,int of,int cb,String sep,int lineLen){ if (buf == null) return null; if (lineLen <= 0) lineLen=Integer.MAX_VALUE; StringBuffer res=new StringBuffer(cb * 2); for (int c=0; c < cb; c++) { int b=buf[of++]; res.append(HEX_DIGITS[(b >> 4) & 0xf]); res.appen...
Get a text representation of a byte[] as hexadecimal String, where each pair of hexadecimal digits corresponds to consecutive bytes in the array.
public static Ed25519GroupElement cached(final Ed25519FieldElement YPlusX,final Ed25519FieldElement YMinusX,final Ed25519FieldElement Z,final Ed25519FieldElement T2d){ return new Ed25519GroupElement(CoordinateSystem.CACHED,YPlusX,YMinusX,Z,T2d); }
Creates a new group element using the CACHED coordinate system.
public Iterator iterator(){ return new IntMapIterator(); }
Returns an iterator of the keys.
public boolean isSetGetResponse(){ return this.getResponse != null; }
Returns true if field getResponse is set (has been assigned a value) and false otherwise
@Override public boolean equals(Object obj){ if (obj == this) { return true; } if (!(obj instanceof BarRenderer)) { return false; } BarRenderer that=(BarRenderer)obj; if (this.base != that.base) { return false; } if (this.itemMargin != that.itemMargin) { return false; } if (this.draw...
Tests this instance for equality with an arbitrary object.
private MatrixBlock collectBinaryBlock(Iterable<Writable> valueList) throws IOException { MatrixBlock partition=null; try { if (_tSparseCol) partition=new MatrixBlock(_clen,_rlen,true); else partition=new MatrixBlock(_rlen,_clen,false); for ( Writable val : valueList) { PairWritableBlock p...
Collects a matrixblock partition from a given input iterator over binary blocks. Note it reuses the instance attribute _partition - multiple calls will overwrite the result.
public List<MType> build(){ isClean=true; if (!isMessagesListMutable && builders == null) { return messages; } boolean allMessagesInSync=true; if (!isMessagesListMutable) { for (int i=0; i < messages.size(); i++) { Message message=messages.get(i); SingleFieldBuilder<MType,BType,IType> buil...
Builds the list of messages from the builder and returns them.
public void visit(){ int num=ByteArray.readU16bit(info,0); int pos=2; for (int i=0; i < num; i++) { int offset=ByteArray.readU16bit(info,pos); int numLoc=ByteArray.readU16bit(info,pos + 2); pos=locals(pos + 4,offset,numLoc); int numStack=ByteArray.readU16bit(info,pos); pos=stack(pos + 2,offset...
Visits each entry of the stack map frames.
public void paintComponent(Graphics g){ if (getFrame() != null) { setState(getFrame().getExtendedState()); } JRootPane rootPane=getRootPane(); Window window=getWindow(); boolean leftToRight=(window == null) ? rootPane.getComponentOrientation().isLeftToRight() : window.getComponentOrientation().isLeftToRig...
Renders the TitlePane.
public void pause(){ fan.pause(); }
Pause animation
public static BigDecimal toBigDecimal(byte[] bytes){ return toBigDecimal(bytes,0,bytes.length); }
Converts a byte array to a BigDecimal
public String weightTrimBetaTipText(){ return "Set the beta value used for weight trimming in LogitBoost. " + "Only instances carrying (1 - beta)% of the weight from previous iteration " + "are used in the next iteration. Set to 0 for no weight trimming. "+ "The default value is 0."; }
Returns the tip text for this property
public boolean hasMultipleConfigurations(){ return (this.getInstrOfferingConfigs().size() > 1); }
Checks if IO has more than 1 config
private Geometry unionActual(Geometry g0,Geometry g1){ return restrictToPolygons(g0.union(g1)); }
Encapsulates the actual unioning of two polygonal geometries.
static synchronized void returnStream(PSOutputStream stream){ if (m_streamCount > 10) { return; } stream.m_count=0; if (m_poolTail != null) { m_poolTail.setNext(stream); } else { m_poolHead=stream; } m_poolTail=stream; m_streamCount++; }
maintains pool of streams - in a normal situation there will only me a single stream continually re-used, but with some patterns there could be many streams. For this reason it is worth checking that the pool is not maintained at an unnecessarily large value, so maximum of 10 streams are maintained - adding up to 80K ...
public int search(final CharSequence s,final int from){ return search(s,from,s.length()); }
Returns the index of the first occurrence of this pattern in the given character sequence starting from a given index.
protected void writeNetscapeExt() throws IOException { out.write(0x21); out.write(0xff); out.write(11); writeString("NETSCAPE" + "2.0"); out.write(3); out.write(1); writeShort(repeat); out.write(0); }
Writes Netscape application extension to define repeat count.
public static void checkHTML(String text){ if (containsHTML(text)) { throw new BotException("HTML tag characters are not allowed"); } }
Check if the text contains a HTML.
public Quaterniond lookAlong(double dirX,double dirY,double dirZ,double upX,double upY,double upZ){ return lookAlong(dirX,dirY,dirZ,upX,upY,upZ,this); }
Apply a rotation to this quaternion that maps the given direction to the positive Z axis. <p> Because there are multiple possibilities for such a rotation, this method will choose the one that ensures the given up direction to remain parallel to the plane spanned by the <tt>up</tt> and <tt>dir</tt> vectors. <p> If <co...
public XMLDecoder(InputStream in,Object owner,ExceptionListener exceptionListener){ this(in,owner,exceptionListener,null); }
Creates a new input stream for reading archives created by the <code>XMLEncoder</code> class.
public void pop(){ if (s.pop().equals(minStack.peek())) minStack.pop(); }
Pop from s. Check if the value is current min. If it is, pop from min stack as well.
public final void checkAccess(){ }
Does nothing.
private boolean checkLevelCompleted(){ for ( Block entity : boxes) { Pair<Integer,Integer> point=new Pair<Integer,Integer>(Integer.valueOf(entity.getX()),Integer.valueOf(entity.getY())); if (!containerLocations.contains(point)) { return false; } } return true; }
checks whether the level was completed successfully.
public void unsubscribe(String clientHandle,final String[] topic,String invocationContext,String activityToken){ MqttConnection client=getConnection(clientHandle); client.unsubscribe(topic,invocationContext,activityToken); }
Unsubscribe from one or more topics
public boolean isHome(){ return isHome; }
boolean indicating this team is the home team. Optional.
public boolean isDistinct(){ return distinct; }
This method was generated by MyBatis Generator. This method corresponds to the database table activity
public boolean attempt(int old,int value,Offset offset){ if (VM.VerifyAssertions) VM._assert(VM.NOT_REACHED); return false; }
Attempt an atomic store operation. This must be associated with a related call to prepare.
public static String replaceFirst(String s,char sub,char with){ int index=s.indexOf(sub); if (index == -1) { return s; } char[] str=s.toCharArray(); str[index]=with; return new String(str); }
Replaces the very first occurrence of a character in a string.
public List<NamedRelatedResourceRep> listVcenters(URI tenantId){ UriBuilder uriBuilder=client.uriBuilder(baseUrl); if (tenantId != null) { uriBuilder.queryParam(TENANT_PARAM,tenantId); } return getList(uriBuilder.build()); }
Get the list of vCenter by tenantId. <p> API Call: <tt>PUT /compute/vcenters?tenant={tenantId}</tt>
private void populateCephAccessProfile(AccessProfile accessProfile,StorageProvider providerInfo){ accessProfile.setSystemId(providerInfo.getId()); accessProfile.setSystemClazz(providerInfo.getClass()); accessProfile.setIpAddress(providerInfo.getIPAddress()); accessProfile.setUserName(providerInfo.getUserName())...
inject details needed for Scanning
synchronized void decrementCallCount(){ if (--callCount < 0) { throw new Error("internal error: call count less than zero"); } if (!permanent && removed && callCount == 0) { ObjectTable.decrementKeepAliveCount(); } }
Decrement call count.
protected int nextInNotationType() throws IOException, XMLException { switch (current) { case 0x9: case 0xA: case 0xD: case 0x20: do { nextChar(); } while (current != -1 && XMLUtilities.isXMLSpace((char)current)); return LexicalUnits.S; case '|': nextChar(); return LexicalUnits.PIPE; case '(': nextChar...
Returns the next lexical unit in the context of a notation type.
protected SnippetImpl(){ super(); }
<!-- begin-user-doc --> <!-- end-user-doc -->
public boolean equals(Object otherObj){ if (!(otherObj instanceof ShortArrayList)) return super.equals(otherObj); if (this == otherObj) return true; if (otherObj == null) return false; ShortArrayList other=(ShortArrayList)otherObj; if (size() != other.size()) return false; short[] theElements=elemen...
Compares the specified Object with the receiver. Returns true if and only if the specified Object is also an ArrayList of the same type, both Lists have the same size, and all corresponding pairs of elements in the two Lists are identical. In other words, two Lists are defined to be equal if they contain the same ele...
public synchronized void streamClosed(){ for (int i=0; i < listeners.length; i++) { try { if (listeners[i] != null) { listeners[i].processFinished(); } } catch ( Exception e) { TLCActivator.logError("Error broadcasting the stream closed event",e); } } }
Called to inform us that it has been completed.
public ObjectNode welcomeDetails(){ return welcomeDetails.deepCopy(); }
Returns the details of the welcome message that was sent from the router to the client
public CloneFailedException(final String message){ super(message); }
Constructs a CloneFailedException.
public int port(){ return _myPort; }
get the port the net message was received at.
public static BlockConsistencyGroup findOrCreateRPBlockConsistencyGroup(IngestionRequestContext requestContext,UnManagedVolume unManagedVolume,ProtectionSet pset,DbClient dbClient){ BlockConsistencyGroup cg=null; Project project=dbClient.queryObject(Project.class,pset.getProject()); NamedURI projectNamedUri=new N...
Creates a block consistency group for the given protection set, or finds one first if it has already been created in another volume context within the scope of this ingestion request.
private void copyInstances(int from,Instances dest,int num){ for (int i=0; i < num; i++) { dest.add(instance(from + i)); } }
Copies instances from one set to the end of another one.
public static boolean showDefaultConfigurationFileMissingChoice(final String title,final Scene scene){ final DialogAction createWithSample=new DialogAction("Create " + BaseConfigurationManager.APPLICATION_NAME + " configuration file with sample content",System.getProperty("line.separator") + "This creates a configura...
Shows the choice dialog when missing configuration file is detected.
private void fillBuf() throws IOException { int result=in.read(buf,0,buf.length); if (result == -1) { throw new EOFException(); } pos=0; end=result; }
Reads new input data into the buffer. Call only with pos == end or end == -1, depending on the desired outcome if the function throws.
public String toString(){ return "null"; }
Get the "null" string value.
@DSComment("Private Method") @DSBan(DSCat.PRIVATE_METHOD) @DSGenerator(tool_name="Doppelganger",tool_version="2.0",generated_on="2013-12-30 12:33:07.824 -0500",hash_original_method="CDA0A8C6D295040926E78ABE78DD6146",hash_generated_method="4B933B475475A8A7E23E265423554132") private void nativeScrollFocusedTextInput(floa...
Scroll the focused textfield to (xPercent, y) in document space
public T caseLineStart(LineStart object){ return null; }
Returns the result of interpreting the object as an instance of '<em>Line Start</em>'. <!-- begin-user-doc --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
public void remove(String key){ Tool tool=(Tool)items.remove(key.intern()); if (tool != null) { remove(tool.getFace()); tool.getFace().removeComponentListener(this); firePropertyChange(MembershipProperty,null,items); } }
Remove a tool with the right key