buggy_function
stringlengths
1
391k
fixed_function
stringlengths
0
392k
public void record(IProblem problem, CompilationResult unitResult) { unitResult.record(problem); SelectionEngine.this.requestor.acceptError(problem); } }; this.parser = new SelectionParser(problemReporter, options.getAssertMode()); this.lookupEnvironment = new LookupEnvironment(this, options, pro...
public void record(IProblem problem, CompilationResult unitResult) { unitResult.record(problem); SelectionEngine.this.requestor.acceptError(problem); } }; this.parser = new SelectionParser(problemReporter, options.assertMode); this.lookupEnvironment = new LookupEnvironment(this, options, problemR...
private IBinding resolveNameForPackageDeclaration(Name name) { PackageDeclaration packageDeclaration = (PackageDeclaration) name.getParent(); CompilationUnit unit = (CompilationUnit) packageDeclaration.getParent(); List types = unit.types(); if (types.size() == 0) { return super.resolveName(name); } Typ...
private IBinding resolveNameForPackageDeclaration(Name name) { PackageDeclaration packageDeclaration = (PackageDeclaration) name.getParent(); CompilationUnit unit = (CompilationUnit) packageDeclaration.getParent(); List types = unit.types(); if (types.size() == 0) { return super.resolveName(name); } Typ...
protected boolean visitNode(ASTNode node) { if ((node.getFlags() & ASTNode.ORIGINAL) != 0) { throw new IllegalArgumentException("The AST that is rewritten must not be modified."); //$NON-NLS-1$ } return true; } }; root.accept(isModifiedVisitor); }
protected boolean visitNode(ASTNode node) { if ((node.getFlags() & ASTNode.ORIGINAL) == 0) { throw new IllegalArgumentException("The AST that is rewritten must not be modified."); //$NON-NLS-1$ } return true; } }; root.accept(isModifiedVisitor); }
public void scrubOutput() { IJavaProject projectElement = JavaCore.create(this.project); IClasspathEntry[] entries; try { entries = projectElement.getResolvedClasspath(true); } catch(JavaModelException e){ throw this.dc.internalException(e); } /* detect whether the binary ouput coincidates with source folde...
public void scrubOutput() { IJavaProject projectElement = JavaCore.create(this.project); IClasspathEntry[] entries; try { entries = projectElement.getExpandedClasspath(true); } catch(JavaModelException e){ throw this.dc.internalException(e); } /* detect whether the binary ouput coincidates with source folde...
public int compare(Object o1, Object o2) throws ClassCastException { byte [] b1 = (byte []) o1; byte [] b2 = (byte []) o2; for (int i = 0; i < b1.length && i < b2.length; i++) if (b1[i] != b2[i]) return b1[i] - b2[i]; return b1.length - b2.length; }
public int compare(Object o1, Object o2) throws ClassCastException { byte [] b1 = (byte []) o1; byte [] b2 = (byte []) o2; for (int i = 0; i < b1.length && i < b2.length; i++) if (b1[i] != b2[i]) return (b1[i] & 0xFF) - (b2[i] & 0xFF); return b1.length - b2.length; }
public void createControl(Composite parent) { if (getControl() != null) return; partReference.addPropertyListener(this); // Create view form. control = new Composite(parent, SWT.NONE); control.setLayout(new FillLayout()); // the part should never be visi...
public void createControl(Composite parent) { if (getControl() != null) return; partReference.addPropertyListener(this); // Create view form. control = new Composite(parent, SWT.NONE); control.setLayout(new FillLayout()); // the part should never be visi...
public void branchChainTo(Label label) { if (this.statements != null) { this.statements[statements.length - 1].branchChainTo(label); } } }
public void branchChainTo(BranchLabel label) { if (this.statements != null) { this.statements[statements.length - 1].branchChainTo(label); } } }
public int beforeCommit(Request request, Response response) { synchronized (AccessLogInterceptor.class) { FileWriter fw = getFileWriter(); if (fw != null) { try { for (int i = 0; i < logformat.length(); i++) { char c = logformat.charAt(i); if (c == '%' && ++i < logformat.length()) { ...
public int beforeCommit(Request request, Response response) { synchronized (AccessLogInterceptor.class) { FileWriter fw = getFileWriter(); if (fw != null) { try { for (int i = 0; i < logformat.length(); i++) { char c = logformat.charAt(i); if (c == '%' && ++i < logformat.length()) { ...
public void setInitializationData(IConfigurationElement cfig, String propertyName, Object data) { // Save config element. configElement = cfig; // Part name and title. partName = Util.safeString(cfig.getAttribute("name"));//$NON-NLS-1$; title = partName; ...
public void setInitializationData(IConfigurationElement cfig, String propertyName, Object data) { // Save config element. configElement = cfig; // Part name and title. partName = Util.safeString(cfig.getAttribute("name"));//$NON-NLS-1$; title = partName; ...
public String individualToString(){ return "Switch flow context"; }
public String individualToString(){ return "Switch flow context"/*nonNLS*/; }
public void execute() { if (deleted) { throw new IllegalStateException(id + "has already been deleted"); } long now = System.currentTimeMillis(); count++; //System.out.println( //id + " - execute called: count" + count + ", now=" + now); long lastDesiredTime = ((Long) desire...
public void execute() { if (deleted) { throw new IllegalStateException(id + "has already been deleted"); } long now = System.currentTimeMillis(); count++; //System.out.println( //id + " - execute called: count" + count + ", now=" + now); long lastDesiredTime = ((Long) desire...
protected void performDefaults() { String activeKeyConfigurationId = getKeyConfigurationId(); List preferenceKeySequenceBindingDefinitions = new ArrayList(); KeySequenceBindingNode.getKeySequenceBindingDefinitions( tree, KeySequence.getInstance(), 0, preferenceKeySequenceBindingDefinitions); if (a...
protected void performDefaults() { String activeKeyConfigurationId = getKeyConfigurationId(); List preferenceKeySequenceBindingDefinitions = new ArrayList(); KeySequenceBindingNode.getKeySequenceBindingDefinitions( tree, KeySequence.getInstance(), 0, preferenceKeySequenceBindingDefinitions); if (a...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = (FolderCommandReference[]) frameController .getSelectionManager() .getSelection( "mail.tree"); FolderTreeNode folder = r[0].getFolder(); if (!folder.isLeaf()) { // warn user JOptionPane.showMessageDialog( null,...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = (FolderCommandReference[]) frameMediator .getSelectionManager() .getSelection( "mail.tree"); FolderTreeNode folder = r[0].getFolder(); if (!folder.isLeaf()) { // warn user JOptionPane.showMessageDialog( null, ...
protected NameEnvironmentAnswer find(String typeName, String packageName) { if (packageName == null) packageName = IPackageFragment.DEFAULT_PACKAGE_NAME; IType type = this.nameLookup.findType( typeName, packageName, false, NameLookup.ACCEPT_ALL); if (type != null) { boolean isBinary = ty...
protected NameEnvironmentAnswer find(String typeName, String packageName) { if (packageName == null) packageName = IPackageFragment.DEFAULT_PACKAGE_NAME; IType type = this.nameLookup.findType( typeName, packageName, false, NameLookup.ACCEPT_ALL); if (type != null) { boolean isBinary = ty...
private void readRegistry(boolean setDefaults) { if (!isRegexpSupported()) { return; } Collection activityDefinitions = new ArrayList(); activityDefinitions.addAll(activityRegistry.getActivityDefinitions()); Map activityDefinitionsById = new HashMap(ActivityDefinition ...
private void readRegistry(boolean setDefaults) { if (!isRegexpSupported()) { return; } Collection activityDefinitions = new ArrayList(); activityDefinitions.addAll(activityRegistry.getActivityDefinitions()); Map activityDefinitionsById = new HashMap(ActivityDefinition ...
public void setAttribute(FigureAttributeConstant attributeConstant, Object value) { Font font = getFont(); if (attributeConstant.equals(FigureAttributeConstant.FONT_SIZE)) { Integer s = (Integer)value; setFont(new Font(font.getName(), font.getStyle(), s.intValue()) ); } else if (attributeConstant.equals(...
public void setAttribute(FigureAttributeConstant attributeConstant, Object value) { Font font = getFont(); if (attributeConstant.equals(FigureAttributeConstant.FONT_SIZE)) { Integer s = (Integer)value; setFont(new Font(font.getName(), font.getStyle(), s.intValue()) ); } else if (attributeConstant.equals(...
private ASTNode.NodeList arguments = new ASTNode.NodeList(ARGUMENTS_PROPERTY); /** * Creates a new AST node for an super constructor invocation statement * owned by the given AST. By default, no type arguments, and an empty list * of arguments. * * @param ast the AST that is to own this node */ Super...
private ASTNode.NodeList arguments = new ASTNode.NodeList(ARGUMENTS_PROPERTY); /** * Creates a new AST node for an super constructor invocation statement * owned by the given AST. By default, no type arguments, and an empty list * of arguments. * * @param ast the AST that is to own this node */ Super...
private Rectangle getParentBounds() { Control ctrl = getControl(); if (getContainer() != null && getContainer() instanceof LayoutPart) { LayoutPart part = (LayoutPart)getContainer(); if (part.getControl() != null) { ctrl = part.getControl(); } } return DragUtil.getDisplayBounds(ctrl); }...
public void doHide() { getPage().hideView(getViewReference()); } /*package*/ Rectangle getParentBounds() { Control ctrl = getControl(); if (getContainer() != null && getContainer() instanceof LayoutPart) { LayoutPart part = (LayoutPart)getContainer(); if (part.getControl() != null) { ctrl = p...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); Constant cst = this.condition.constant; boolean isConditionTrue = cst != NotAConstant && cst.booleanValue() == true; boolean isConditionFalse = c...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { breakLabel = new Label(); continueLabel = new Label(); Constant cst = this.condition.constant; boolean isConditionTrue = cst != NotAConstant && cst.booleanValue() == true; boolean isConditionFalse = c...
public void setArrowHeads(MLink ml, Vector contents) { if (ml != null ) { Collection col = ml.getStimuli(); MStimulus stimulus = null; MAction action = null; Iterator it = col.iterator(); while (it.hasNext()) { stimulus = (MStimulus) it.next(); action = (MAction) stimulus.getDispatc...
public void setArrowHeads(MLink ml, Vector contents) { if (ml != null ) { Collection col = ml.getStimuli(); MStimulus stimulus = null; MAction action = null; Iterator it = col.iterator(); while (it.hasNext()) { stimulus = (MStimulus) it.next(); action = (MAction) stimulus.getDispatc...
public void saveIndexes(){ ArrayList indexList = new ArrayList(); synchronized(this){ for (Iterator iter = indexes.values().iterator(); iter.hasNext();){ indexList.add(iter.next()); } } for (Iterator iter = indexList.iterator(); iter.hasNext();){ IIndex index = (IIndex)iter.next(); if (index == null)...
public void saveIndexes(){ ArrayList indexList = new ArrayList(); synchronized(this){ for (Iterator iter = indexes.values().iterator(); iter.hasNext();){ indexList.add(iter.next()); } } for (Iterator iter = indexList.iterator(); iter.hasNext();){ IIndex index = (IIndex)iter.next(); if (index == null)...
public String[] getUserRoles(String username) { try { if( (dbConnection == null) || dbConnection.isClosed() ) { log(sm.getString("jdbcRealm.getUserRolesDBClosed")); dbConnection = DriverManager.getConnection(connectionURL); if( dbConnection == null || dbConnec...
public String[] getUserRoles(String username) { try { if( (dbConnection == null) || dbConnection.isClosed() ) { log(sm.getString("jdbcRealm.getUserRolesDBClosed")); dbConnection = DriverManager.getConnection(connectionURL); if( dbConnection == null || dbConnec...
public DetailedProgressViewer(Composite parent, int style) { scrolled = new ScrolledComposite(parent, SWT.H_SCROLL | SWT.V_SCROLL | style); int height = JFaceResources.getDefaultFont().getFontData()[0] .getHeight(); scrolled.getVerticalBar().setIncrement(height * 2); scrolled.setExpandHorizontal(true);...
public DetailedProgressViewer(Composite parent, int style) { scrolled = new ScrolledComposite(parent, SWT.V_SCROLL | style); int height = JFaceResources.getDefaultFont().getFontData()[0] .getHeight(); scrolled.getVerticalBar().setIncrement(height * 2); scrolled.setExpandHorizontal(true); scrolled.set...
public TypeBinding substitute(TypeBinding originalType) { if (originalType.isTypeVariable()) { TypeVariableBinding originalVariable = (TypeVariableBinding) originalType; ParameterizedTypeBinding currentType = this; while (true) { TypeVariableBinding[] typeVariables = curren...
public TypeBinding substitute(TypeBinding originalType) { if (originalType.isTypeVariable()) { TypeVariableBinding originalVariable = (TypeVariableBinding) originalType; ParameterizedTypeBinding currentType = this; while (true) { TypeVariableBinding[] typeVariables = curren...
public Context getInitialContext(Hashtable env) throws NamingException { env.put("java.naming.factory.initial","org.openorb.rmi.jndi.CtxFactory"); return new IIOPReferenceContextWrapper(super.getInitialContext(env)); }
public Context getInitialContext(Hashtable env) throws NamingException { env.put("java.naming.factory.initial","org.openorb.rmi.jndi.CtxFactory"); return IIOPReferenceContextWrapper.getSingleInstance(super.getInitialContext(env)); }
public void indexDocument() { // Create a new Parser SourceIndexerRequestor requestor = new SourceIndexerRequestor(this); String documentPath = this.document.getPath(); IPath path = new Path(documentPath); SourceElementParser parser = this.document.parser; if (parser == null) { IProject project = Resour...
public void indexDocument() { // Create a new Parser SourceIndexerRequestor requestor = new SourceIndexerRequestor(this); String documentPath = this.document.getPath(); IPath path = new Path(documentPath); SourceElementParser parser = ((InternalSearchDocument) this.document).parser; if (parser == null) { ...
protected void findSourceFiles(IResourceDelta sourceDelta, int sourceFolderSegmentCount) throws CoreException { // When a package becomes a type or vice versa, expect 2 deltas, // one on the folder & one on the source file IResource resource = sourceDelta.getResource(); IPath location = resource.getLocation(); swi...
protected void findSourceFiles(IResourceDelta sourceDelta, int sourceFolderSegmentCount) throws CoreException { // When a package becomes a type or vice versa, expect 2 deltas, // one on the folder & one on the source file IResource resource = sourceDelta.getResource(); IPath location = resource.getLocation(); swi...
public void mouseUp(MouseEvent e, int x, int y) { super.mouseDrag(e, x, y); fAnchorHandle.invokeEnd(x, y, fAnchorX, fAnchorY, view()); }
public void mouseUp(MouseEvent e, int x, int y) { super.mouseUp(e, x, y); fAnchorHandle.invokeEnd(x, y, fAnchorX, fAnchorY, view()); }
public void valueChanged(TreeSelectionEvent e) { AddressbookTreeNode node = (AddressbookTreeNode) e.getPath() .getLastPathComponent(); if (node == null) { return; } if (node instanceof IContactStorage) { try { ((AbstractFolder) node).removeFolderListener(this); selectedFolder = node; ...
public void valueChanged(TreeSelectionEvent e) { AddressbookTreeNode node = (AddressbookTreeNode) e.getPath() .getLastPathComponent(); if (node == null) { return; } if (node instanceof IContactStorage) { try { ((AbstractFolder) node).removeFolderListener(this); selectedFolder = node; ...
public String toString() { if (string == null) { final StringBuffer stringBuffer = new StringBuffer(); stringBuffer.append('['); stringBuffer.append(defined); stringBuffer.append(','); stringBuffer.append(description); stringBuffer.append(','); stringBuffer.append(id); stringBuffer.append(','...
public String toString() { if (string == null) { final StringBuffer stringBuffer = new StringBuffer(); stringBuffer.append('['); stringBuffer.append(defined); stringBuffer.append(','); stringBuffer.append(description); stringBuffer.append(','); stringBuffer.append(id); stringBuffer.append(','...
public boolean visit(IResourceProxy proxy) /* throws CoreException */{ switch(proxy.getType()) { case IResource.FILE : if (org.eclipse.jdt.internal.compiler.util.Util.isJavaFileName(proxy.getName())) { IResource resource = proxy.requestResource(); if (!Util.isExcluded(r...
public boolean visit(IResourceProxy proxy) /* throws CoreException */{ switch(proxy.getType()) { case IResource.FILE : if (org.eclipse.jdt.internal.compiler.util.Util.isJavaFileName(proxy.getName())) { IResource resource = proxy.requestResource(); if (!Util.isExcluded(r...
protected void openWhenClosed(IProgressMonitor pm, IBuffer buffer) throws JavaModelException { try { if (JavaModelManager.VERBOSE){ System.out.println("OPENING Element ("+ Thread.currentThread()+"): " + this.getHandleIdentifier()); } // 1) Parent must be open - open the parent if necessary Openable o...
protected void openWhenClosed(IProgressMonitor pm, IBuffer buffer) throws JavaModelException { try { if (JavaModelManager.VERBOSE){ System.out.println("OPENING Element ("+ Thread.currentThread()+"): " + this.getHandleIdentifier()); //$NON-NLS-1$//$NON-NLS-2$ } // 1) Parent must be open - open the parent...
public void generateCompoundAssignment( BlockScope currentScope, CodeStream codeStream, Expression expression, int operator, int assignmentImplicitConversion, boolean valueRequired) { receiver.generateCode(currentScope, codeStream, true); if (receiver instanceof CastExpression // ((type[])null)[0] ...
public void generateCompoundAssignment( BlockScope currentScope, CodeStream codeStream, Expression expression, int operator, int assignmentImplicitConversion, boolean valueRequired) { receiver.generateCode(currentScope, codeStream, true); if (receiver instanceof CastExpression // ((type[])null)[0] ...
public void recordReturnFrom(FlowInfo flowInfo) { if (!flowInfo.isReachable()) return; if (initsOnReturn == FlowInfo.DEAD_END) { initsOnReturn = flowInfo.copy().unconditionalInits(); } else { initsOnReturn = initsOnReturn.mergedWith(flowInfo.unconditionalInits()); } }
public void recordReturnFrom(FlowInfo flowInfo) { if (!flowInfo.isReachable()) return; if (initsOnReturn == FlowInfo.DEAD_END) { initsOnReturn = flowInfo.copy().unconditionalInits(); } else { initsOnReturn = initsOnReturn.mergedWith(flowInfo.copy().unconditionalInits()); } }
public byte getAlgorithm() { return alg; } void rrToWire(DataByteOutputStream dbs, Compression c) throws IOException { if (cert == null) return; dbs.writeShort(certType); dbs.writeByte(keyTag); dbs.writeByte(alg); dbs.write(cert); }
public byte getAlgorithm() { return alg; } void rrToWire(DataByteOutputStream dbs, Compression c) throws IOException { if (cert == null) return; dbs.writeShort(certType); dbs.writeShort(keyTag); dbs.writeByte(alg); dbs.write(cert); }
public static String id() { return "4.5-SNAPSHOT-20070720-1711"; }
public static String id() { return "4.5-SNAPSHOT-20070816-1619"; }
public void setReturnType(Classifier rt) throws PropertyVetoException { Parameter p = findParameter(Parameter.RETURN_NAME); if (p == null) { p = new Parameter(rt, Parameter.RETURN_NAME); addParameter(p); //System.out.println("just set return type"); } else { p.setType(rt); ...
public void setReturnType(Classifier rt) throws PropertyVetoException { Parameter p = findParameter(Parameter.RETURN_NAME); if (p == null) { p = new Parameter(rt, ParameterDirectionKind.IN, Parameter.RETURN_NAME); addParameter(p); //System.out.println("just set return type"); } else ...
public dnsUNKRecord(dnsName _name, short _type, short _dclass, int _ttl, StringTokenizer st) throws IOException { super(_name, _type, _dclass, _ttl); System.out.println("Unknown type: " + type); System.exit(-1); }
public dnsUNKRecord(dnsName _name, short _type, short _dclass, int _ttl, MyStringTokenizer st) throws IOException { super(_name, _type, _dclass, _ttl); System.out.println("Unknown type: " + type); System.exit(-1); }
public void generateCode(BlockScope currentScope, CodeStream codeStream) { try { if ((bits & IsReachableMASK) == 0) { return; } int pc = codeStream.position; // prepare the labels and constants this.breakLabel.initialize(codeStream); CaseLabel[] caseLabels = new CaseLabel[this.caseCount];...
public void generateCode(BlockScope currentScope, CodeStream codeStream) { try { if ((bits & IsReachableMASK) == 0) { return; } int pc = codeStream.position; // prepare the labels and constants this.breakLabel.initialize(codeStream); CaseLabel[] caseLabels = new CaseLabel[this.caseCount];...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { Constant conditionConstant = condition.optimizedBooleanConstant(); flowInfo = condition.analyseCode(currentScope, flowContext, flowInfo, conditionConstant == NotAConstant); if (conditionConstant != NotACo...
public FlowInfo analyseCode( BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) { Constant conditionConstant = condition.constant; flowInfo = condition.analyseCode(currentScope, flowContext, flowInfo, conditionConstant == NotAConstant); if (conditionConstant != NotAConstant) { if (c...
protected void doConfigure(InputSource inputSource, LoggerRepository hierarchy) throws FactoryConfigurationError { DocumentBuilderFactory dbf = null; try { LogLog.debug("System property is :"+ OptionConverter.getSystemProperty(dbfK...
protected void doConfigure(InputSource inputSource, LoggerRepository hierarchy) throws FactoryConfigurationError { DocumentBuilderFactory dbf = null; try { LogLog.debug("System property is :"+ OptionConverter.getSystemProperty(dbfK...
public SplashPanel(String iconName) { super(); splashImage = ResourceLoader.lookupIconResource(iconName); // // JWindow does not allow setting title or icon. // // ImageIcon argoImage = ResourceLoader.lookupIconResource("Model"); // this.setIconImage(argoImage.getImage()); // if (titl...
public SplashPanel(String iconName) { super(); splashImage = ResourceLoader.lookupIconResource(iconName); // // JWindow does not allow setting title or icon. // // ImageIcon argoImage = ResourceLoader.lookupIconResource("Model"); // this.setIconImage(argoImage.getImage()); // if (titl...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ ArrayAccess(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors(...
* N.B. This constructor is package-private. * </p> * * @param ast the AST that is to own this node */ ArrayAccess(AST ast) { super(ast); } /* (omit javadoc for this method) * Method declared on ASTNode. */ final List internalStructuralPropertiesForType(int apiLevel) { return propertyDescriptors(...
public void selectionChanged(SelectionChangedEvent evt) { if (((TreeSelectionChangedEvent) evt).getSelected().length > 0) { AbstractFolder folder = ((TreeSelectionChangedEvent) evt).getSelected()[0]; if ((folder != null) && folder instanceof AbstractMessageFolder) { IFo...
public void selectionChanged(SelectionChangedEvent evt) { if (((TreeSelectionChangedEvent) evt).getSelected().length > 0 && ((TreeSelectionChangedEvent) evt).getSelected()[0] instanceof AbstractMessageFolder) { AbstractFolder folder = ((TreeSelectionChangedEvent) evt).getSelected()[0]; ...
public ServletContext getContext(String path) { Context target=context.getContext(path); return target.getFacade(); }
public ServletContext getContext(String path) { Context target=context.getContext(path); return (ServletContext)target.getFacade(); }
protected void executeOperation() throws JavaModelException { if (fMonitor != null){ if (fMonitor.isCanceled()) return; fMonitor.beginTask(Util.bind("element.reconciling"), 10); //$NON-NLS-1$ } WorkingCopy workingCopy = getWorkingCopy(); boolean wasConsistent = workingCopy.isConsistent(); JavaElement...
protected void executeOperation() throws JavaModelException { if (fMonitor != null){ if (fMonitor.isCanceled()) return; fMonitor.beginTask(Util.bind("element.reconciling"), 10); //$NON-NLS-1$ } WorkingCopy workingCopy = getWorkingCopy(); boolean wasConsistent = workingCopy.isConsistent(); JavaElement...
public void configure(String[] argv) throws InvalidInputException { if ((argv == null) || (argv.length == 0)) { printUsage(); return; } final int InsideClasspath = 1; final int InsideDestinationPath = 2; final int TargetSetting = 4; final int InsideLog = 8; final int InsideRepetition = 16; fin...
public void configure(String[] argv) throws InvalidInputException { if ((argv == null) || (argv.length == 0)) { printUsage(); return; } final int InsideClasspath = 1; final int InsideDestinationPath = 2; final int TargetSetting = 4; final int InsideLog = 8; final int InsideRepetition = 16; fin...
private void initialize() { ownerScopeCheckbox = new UMLFeatureOwnerScopeCheckBox(this); // according to the UML spec we need an attribute visibility here // but it seems that NSUML thinks that elementownership visibility // and feature visibility are the same ownerComboBox =...
private void initialize() { ownerScopeCheckbox = new UMLFeatureOwnerScopeCheckBox(); // according to the UML spec we need an attribute visibility here // but it seems that NSUML thinks that elementownership visibility // and feature visibility are the same ownerComboBox = new...
public int getNodeType() { return INSTANCEOF_EXPRESSION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone(AST target) { InstanceofExpression result = new InstanceofExpression(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setLeftOpera...
public int getNodeType() { return INSTANCEOF_EXPRESSION; } /* (omit javadoc for this method) * Method declared on ASTNode. */ ASTNode clone0(AST target) { InstanceofExpression result = new InstanceofExpression(target); result.setSourceRange(this.getStartPosition(), this.getLength()); result.setLeftOper...
protected void writeBytes(byte[] data) throws Exception { output.write('{'); output.writeBytes(Integer.toString(data.length)); output.writeBytes("}\r\n"); output.flush(); for (;;) { IMAPResponse r = protocol.getResponse(); if (r.isCONTINUATION()) break; } output.write(data); } }
protected void writeBytes(byte[] data) throws Exception { output.write('{'); output.writeBytes(Integer.toString(data.length)); output.writeBytes("}\r\n"); output.flush(); for (;;) { IMAPResponse r = protocol.getResponse(null); if (r.isCONTINUATION()) break; } output.write(data); } }
public final void removeContextManagerListener( final IContextManagerListener listener) { contextManager.addContextManagerListener(listener); }
public final void removeContextManagerListener( final IContextManagerListener listener) { contextManager.removeContextManagerListener(listener); }
public void readRegistry() { readRegistry(Platform.getPluginRegistry(), IWorkbenchConstants.PLUGIN_ID, IWorkbenchConstants.PL_MARKER_IMAGE_PROVIDER); } } new MarkerImageReader().readRegistry(); }
public void readRegistry() { readRegistry(Platform.getPluginRegistry(), PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_MARKER_IMAGE_PROVIDER); } } new MarkerImageReader().readRegistry(); }
public SetResponse addMessage(Message in) { boolean isAuth = in.getHeader().getFlag(Flags.AA); Record question = in.getQuestion(); Name qname; Name curname; int qtype; int qclass; byte cred; short rcode = in.getHeader().getRcode(); boolean haveAnswer = false;
public SetResponse addMessage(Message in) { boolean isAuth = in.getHeader().getFlag(Flags.AA); Record question = in.getQuestion(); Name qname; Name curname; int qtype; int qclass; byte cred; int rcode = in.getHeader().getRcode(); boolean haveAnswer = false;
private TypeBinding[] getTypeBindingArguments() { int size = this.types.size(); TypeBinding[] arguments = new TypeBinding[size]; int rank = 0; for (int i = 0; i < size; i++) { BindingKeyResolver resolver = (BindingKeyResolver) this.types.get(i); TypeBinding binding; int kind = resolver.wildcardKind; ...
private TypeBinding[] getTypeBindingArguments() { int size = this.types.size(); TypeBinding[] arguments = new TypeBinding[size]; int rank = 0; for (int i = 0; i < size; i++) { BindingKeyResolver resolver = (BindingKeyResolver) this.types.get(i); TypeBinding binding; int kind = resolver.wildcardKind; ...
public void addInterceptor(ContextManager cm, Context ctx, BaseInterceptor module) throws TomcatException { if( this != module ) return; // Adjust paths in CM String home=cm.getHome(); if( home==null ) { // try system property home=System.getProperty(ContextManager.TOMCAT_HOME); } i...
public void addInterceptor(ContextManager cm, Context ctx, BaseInterceptor module) throws TomcatException { if( this != module ) return; // Adjust paths in CM String home=cm.getHome(); if( home==null ) { // try system property home=System.getProperty(ContextManager.TOMCAT_HOME); } i...
public void propertyChange(PropertyChangeEvent evt) { tree.repaint(tree.getRowBounds(row)); } }); } } rootAShape.setInteractors(interactors[row]); shapeComp.setRelativeToComponent(tree); BufferedImage check = null; Object o = category.getPropertyDeep(Category.PROP_IS_HIDDEN, ...
public void propertyChange(PropertyChangeEvent evt) { tree.repaint(tree.getRowBounds(row)); } }); } } rootAShape.setInteractors(interactors[row]); shapeComp.setRelativeToComponent(tree); BufferedImage check = null; Object o = category.getPropertyDeep(Category.PROP_IS_HIDDEN, ...
public void acceptPackage(char[] packageName){} } TypeResolveRequestor requestor = new TypeResolveRequestor(); SelectionEngine engine = new SelectionEngine(environment, requestor, JavaCore.getOptions()); engine.selectType(info, typeName.toCharArray()); return requestor.answers; }
public void acceptPackage(char[] packageName){} } TypeResolveRequestor requestor = new TypeResolveRequestor(); SelectionEngine engine = new SelectionEngine(environment, requestor, JavaCore.getOptions()); engine.selectType(info, typeName.toCharArray(), false); return requestor.answers; }
public void roleAdded(MElementEvent e) { if (e.getName().equals("base") && e.getSource() == getTarget()) { MClassifier clazz = (MClassifier)getChangedElement(e); addAll(clazz.getFeatures()); UmlModelEventPump.getPump().removeModelEventListener(this, clazz, "feature"); ...
public void roleAdded(MElementEvent e) { if (e.getName().equals("base") && e.getSource() == getTarget()) { MClassifier clazz = (MClassifier)getChangedElement(e); addAll(clazz.getFeatures()); // UmlModelEventPump.getPump().removeModelEventListener(this, clazz, "feature"); ...
public StringBuffer printStatement(int indent, StringBuffer output) { printIndent(indent, output).append("try \n"); //$NON-NLS-1$ tryBlock.printStatement(indent + 1, output); //$NON-NLS-1$ //catches if (catchBlocks != null) for (int i = 0; i < catchBlocks.length; i++) { output.append('\n'); print...
public StringBuffer printStatement(int indent, StringBuffer output) { printIndent(indent, output).append("try \n"); //$NON-NLS-1$ tryBlock.printStatement(indent + 1, output); //catches if (catchBlocks != null) for (int i = 0; i < catchBlocks.length; i++) { output.append('\n'); printIndent(indent,...
protected void executeOperation() throws JavaModelException { checkCanceled(); try { // set raw classpath and null out resolved info this.project.getPerProjectInfo().setClasspath(this.newRawClasspath, this.newOutputLocation, JavaModelStatus.VERIFIED_OK/*format is ok*/, null, null, null); // if needed,...
protected void executeOperation() throws JavaModelException { checkCanceled(); try { // set raw classpath and null out resolved info this.project.getPerProjectInfo().setClasspath(this.newRawClasspath, this.newOutputLocation, JavaModelStatus.VERIFIED_OK/*format is ok*/, null, null, null, null); // if n...
public void actionPerformed(ActionEvent evt) { SelectFolderDialog dialog = MailInterface.treeModel.getSelectFolderDialog(); if (dialog.success()) { Folder destFolder = dialog.getSelectedFolder(); FolderCommandReference[] result = new FolderCommandReference[2]; FolderCommandReference[] r1 = ((Abst...
public void actionPerformed(ActionEvent evt) { SelectFolderDialog dialog = MailInterface.treeModel.getSelectFolderDialog(); if (dialog.success()) { Folder destFolder = dialog.getSelectedFolder(); FolderCommandReference[] result = new FolderCommandReference[2]; FolderCommandReference[] r1 = ((Abst...
private void correct(char[] argument) throws JavaModelException { try { String source = unit.getSource(); Scanner scanner = new Scanner(); scanner.setSourceBuffer(source.toCharArray()); scanner.resetTo(correctionStart, correctionEnd); int token = 0; char[] argumentSource = new char[0]; /...
private void correct(char[] argument) throws JavaModelException { try { String source = unit.getSource(); Scanner scanner = new Scanner(); scanner.setSource(source.toCharArray()); scanner.resetTo(correctionStart, correctionEnd); int token = 0; char[] argumentSource = new char[0]; // sear...
public String getDeclaredName() throws NotPresentException { if (isAnonymous()) { return ""; //$NON-NLS-1$ } String name = fHandle.getSimpleName(); return name.substring(name.lastIndexOf('$') + 1); }
public String getDeclaredName() throws NotPresentException { if (isAnonymous()) { return ""/*nonNLS*/; } String name = fHandle.getSimpleName(); return name.substring(name.lastIndexOf('$') + 1); }
public void caseAConstraintBody (tudresden.ocl.parser.node.AConstraintBody node) { // We don't care for anything below this node, so we do not use apply anymore. String sKind = (node.getStereotype() != null)? (node.getStereotype().toString()): (null); ...
public void caseAConstraintBody (tudresden.ocl.parser.node.AConstraintBody node) { // We don't care for anything below this node, so we do not use apply anymore. String sKind = (node.getStereotype() != null)? (node.getStereotype().toString()): (null); ...
public static void checkInvocationArguments(BlockScope scope, Expression receiver, TypeBinding receiverType, MethodBinding method, Expression[] arguments, TypeBinding[] argumentTypes, boolean argsContainCast, InvocationSite invocationSite) { boolean unsafeWildcardInvocation = false; for (int i = 0; i < arguments.l...
public static void checkInvocationArguments(BlockScope scope, Expression receiver, TypeBinding receiverType, MethodBinding method, Expression[] arguments, TypeBinding[] argumentTypes, boolean argsContainCast, InvocationSite invocationSite) { boolean unsafeWildcardInvocation = false; for (int i = 0; i < arguments.l...
private final void initializeDefaultServices() { /* * Phase 1 of the initialization of commands. When this phase completes, * all the services and managers will exist, and be accessible via the * getService(Object) method. */ Command.DEBUG_COMMAND_EXECUTION = Policy.DEBUG_COMMANDS; commandManager = n...
private final void initializeDefaultServices() { /* * Phase 1 of the initialization of commands. When this phase completes, * all the services and managers will exist, and be accessible via the * getService(Object) method. */ Command.DEBUG_COMMAND_EXECUTION = Policy.DEBUG_COMMANDS; commandManager = n...
public SimpleName getName() { if (this.memberName == null) { // lazy init must be thread-safe for readers synchronized (this.ast) { if (this.memberName == null) { preLazyInit(); this.memberName = new SimpleName(this.ast); postLazyInit(this.memberName, NAME_PROPERTY); } } } return ...
public SimpleName getName() { if (this.memberName == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.memberName == null) { preLazyInit(); this.memberName = new SimpleName(this.ast); postLazyInit(this.memberName, NAME_PROPERTY); } } } return this...
public final TypeBinding getType(char[][] compoundName, int typeNameLength) { if (typeNameLength == 1) { // Would like to remove this test and require senders to specially handle base types TypeBinding binding = getBaseType(compoundName[0]); if (binding != null) return binding; } CompilationUnitScope u...
public final TypeBinding getType(char[][] compoundName, int typeNameLength) { if (typeNameLength == 1) { // Would like to remove this test and require senders to specially handle base types TypeBinding binding = getBaseType(compoundName[0]); if (binding != null) return binding; } CompilationUnitScope u...
public void indexDocument() { // Create a new Parser SourceIndexerRequestor requestor = new SourceIndexerRequestor(this); String documentPath = this.document.getPath(); IPath path = new Path(documentPath); IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(path.segment(0)); SourceElemen...
public void indexDocument() { // Create a new Parser SourceIndexerRequestor requestor = new SourceIndexerRequestor(this); String documentPath = this.document.getPath(); IPath path = new Path(documentPath); IProject project = ResourcesPlugin.getWorkspace().getRoot().getProject(path.segment(0)); SourceElemen...
public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod) { if (originalMethod.typeVariables == NoTypeVariables) { return super.createParameterizedMethod(originalMethod); } return new ParameterizedGenericMethodBinding(originalMethod, this, this.environment); }
public ParameterizedMethodBinding createParameterizedMethod(MethodBinding originalMethod) { if (originalMethod.typeVariables == NoTypeVariables || originalMethod.isStatic()) { return super.createParameterizedMethod(originalMethod); } return new ParameterizedGenericMethodBinding(originalMethod, this, this.envi...
public PopupMenu() { super(); JMenu newMenu = new JMenu(); newMenu.setText(Argo.localize("CoreMenu", "New")); ActionNewPseudoState.SINGLETON.setTarget(getTarget()); newMenu.add(ActionNewPseudoState.SINGLETON); newMenu.add(Actio...
public PopupMenu() { super(); JMenu newMenu = new JMenu(); newMenu.setText(Argo.localize("CoreMenu", "New")); ActionNewPseudoState.SINGLETON.setTarget(getTarget()); newMenu.add(ActionNewPseudoState.SINGLETON); newMenu.add(Actio...
public static void main(String argv[]) { if(argv.length == 1) init(argv[0]); else usage("Wrong number of arguments."); test(); } static void usage(String msg) { System.err.println(msg); System.err.println( "Usage: java "+ DRFATest.class.getName()+" length"); System.exit(...
public static void main(String argv[]) { if(argv.length == 1) init(argv[0]); else usage("Wrong number of arguments."); test(); } static void usage(String msg) { System.err.println(msg); System.err.println( "Usage: java "+ DRFATest.class.getName()+" length"); System.exit(...
public static boolean checkExists( Group group ) throws DataBackendException, Exception { Criteria criteria = new Criteria(); criteria.addSelectColumn(MODULE_ID); String name = ((ModuleEntity)group).getName(); criteria.add(MODULE_NAME, name); criteria.add(PARENT_I...
public static boolean checkExists( Group group ) throws DataBackendException, Exception { Criteria criteria = new Criteria(); criteria.addSelectColumn(MODULE_ID); String name = ((ModuleEntity)group).getRealName(); criteria.add(MODULE_NAME, name); criteria.add(PARE...
private void locateMatchesInCompilationUnit(char[] source) throws CoreException { if (this.parsedUnit == null) { // case where no binding resolution is needed // create match set this.matchSet = new MatchSet(this.locator); this.locator.parser.matchSet = this.matchSet; // diet parse char[] qualifiedName =...
private void locateMatchesInCompilationUnit(char[] source) throws CoreException { if (this.parsedUnit == null) { // case where no binding resolution is needed // create match set this.matchSet = new MatchSet(this.locator); this.locator.parser.matchSet = this.matchSet; // diet parse char[] qualifiedName =...
private TypeBinding internalResolveType(Scope scope, boolean checkBounds) { // handle the error here this.constant = Constant.NotAConstant; if (this.didResolve) { // is a shared type reference which was already resolved if (this.resolvedType != null && !this.resolvedType.isValidBinding()) return null; //...
private TypeBinding internalResolveType(Scope scope, boolean checkBounds) { // handle the error here this.constant = Constant.NotAConstant; if (this.didResolve) { // is a shared type reference which was already resolved if (this.resolvedType != null && !this.resolvedType.isValidBinding()) return null; //...
public void generateCode( BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (initializer != null) { initializer.generateCode(currentScope, codeStream, valueRequired); return; } int nonNullDimensionsLength = 0; for (int i = 0, max = dimens...
public void generateCode( BlockScope currentScope, CodeStream codeStream, boolean valueRequired) { int pc = codeStream.position; if (initializer != null) { initializer.generateCode(currentScope, codeStream, valueRequired); return; } int nonNullDimensionsLength = 0; for (int i = 0, max = dimens...
public static IClassFileReader createDefaultClassFileReader(String zipFileName, String zipEntryName, int decodingFlag){ try { ZipFile zipFile = new ZipFile(zipFileName); ZipEntry zipEntry = zipFile.getEntry(zipEntryName); if (zipEntry == null) { return null; } if (!zipEntryName.toLowerCase().endsW...
public static IClassFileReader createDefaultClassFileReader(String zipFileName, String zipEntryName, int decodingFlag){ try { ZipFile zipFile = new ZipFile(zipFileName); ZipEntry zipEntry = zipFile.getEntry(zipEntryName); if (zipEntry == null) { return null; } if (!zipEntryName.toLowerCase().endsW...
public Constant resolveCase(BlockScope scope, TypeBinding testType, SwitchStatement switchStatement) { // statement within a switch that are not case are treated as normal statement.... resolve(scope); return NotAConstant; }
public Constant resolveCase(BlockScope scope, TypeBinding testType, SwitchStatement switchStatement) { // statement within a switch that are not case are treated as normal statement.... resolve(scope); return Constant.NotAConstant; }
public IStatus restoreState(IMemento memento,IPerspectiveDescriptor activeDescritor) { // Restore working set String pageName = memento.getString(IWorkbenchConstants.TAG_LABEL); if(pageName == null) pageName = ""; MultiStatus result = new MultiStatus( PlatformUI.PLUGIN_ID,IStatus.OK, WorkbenchMessages.format("W...
public IStatus restoreState(IMemento memento,IPerspectiveDescriptor activeDescritor) { // Restore working set String pageName = memento.getString(IWorkbenchConstants.TAG_LABEL); if(pageName == null) pageName = ""; MultiStatus result = new MultiStatus( PlatformUI.PLUGIN_ID,IStatus.OK, WorkbenchMessages.format("W...
public String getJspFilePath() { // lazy evaluation of full path if( jspFilePath == null ) jspFilePath=FileUtil.safePath( docBase, jspFile, false); return jspFilePath; } private String fixInvalidChars(String className) { // Fix for invalid characters. From CommandLineCo...
public String getJspFilePath() { // lazy evaluation of full path if( jspFilePath == null ) jspFilePath=FileUtil.safePath( docBase, jspFile, false); return jspFilePath; } private String fixInvalidChars(String className) { // Fix for invalid characters. From CommandLineCo...
public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, IProgressMonitor progressMonitor) throws IOException { if (progressMonitor != null && progressMonitor.isCanceled()) throw new OperationCanceledException(); resetQuery(); SimpleSet intersec...
public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, IProgressMonitor progressMonitor) throws IOException { if (progressMonitor != null && progressMonitor.isCanceled()) throw new OperationCanceledException(); resetQuery(); SimpleSet intersec...
protected void initStyleSheet() { /* // read configuration from options.xml file XmlElement mainFont = Config.get("options").getElement("/options/gui/mainfont"); String name = mainFont.getAttribute("name"); String size = mainFont.getAttribute("size"); Font font = new Font(name, Font.PLAIN,...
protected void initStyleSheet() { /* // read configuration from options.xml file XmlElement mainFont = MainInterface.config.get("options").getElement("/options/gui/mainfont"); String name = mainFont.getAttribute("name"); String size = mainFont.getAttribute("size"); Font font = new Font(nam...
public Expression getOperand() { if (this.operand == null) { // lazy init must be thread-safe for readers synchronized (this.ast) { if (this.operand == null) { preLazyInit(); this.operand= new SimpleName(this.ast); postLazyInit(this.operand, OPERAND_PROPERTY); } } }
public Expression getOperand() { if (this.operand == null) { // lazy init must be thread-safe for readers synchronized (this) { if (this.operand == null) { preLazyInit(); this.operand= new SimpleName(this.ast); postLazyInit(this.operand, OPERAND_PROPERTY); } } }
private IExtensionPoint getExtensionPointFilter() { return Platform.getExtensionRegistry().getExtensionPoint(PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_EDITOR); }
private IExtensionPoint getExtensionPointFilter() { return Platform.getExtensionRegistry().getExtensionPoint(PlatformUI.PLUGIN_ID, IWorkbenchRegistryConstants.PL_EDITOR); }
public String getRemoteUser() { if( notAuthenticated ) { notAuthenticated=false; // Call all authentication callbacks. If any of them is able to // identify the user it will set the principal in req. int status=0; BaseInterceptor reqI[]= getContext().getContainer(). getInterceptors(Con...
public String getRemoteUser() { if( notAuthenticated ) { notAuthenticated=false; // Call all authentication callbacks. If any of them is able to // identify the user it will set the principal in req. int status=0; BaseInterceptor reqI[]= getContext().getContainer(). getInterceptors(Con...
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((AbstractMailFrameController) getFrameController()).getTableSelection(); MainInterface.processor.addOp(new ReplyToAllCommand(r)); }
public void actionPerformed(ActionEvent evt) { FolderCommandReference[] r = ((AbstractMailFrameController) getFrameMediator()).getTableSelection(); MainInterface.processor.addOp(new ReplyToAllCommand(r)); }
public void execute(Worker worker) throws Exception { MailFrameController mailFrameController = (MailFrameController) frameController; FolderCommandReference[] r = (FolderCommandReference[]) getReferences(); Object[] uids = MessageNode.toUidArray( (MessageNode[]) r[0].getUids()); Folder folder = (Folder)...
public void execute(Worker worker) throws Exception { MailFrameController mailFrameController = (MailFrameController) frameController; FolderCommandReference[] r = (FolderCommandReference[]) getReferences(); Object[] uids = r[0].getUids(); Folder folder = (Folder) r[0].getFolder(); Object[] destUids =...
public void generateCompoundAssignment( BlockScope currentScope, CodeStream codeStream, Expression expression, int operator, int assignmentImplicitConversion, boolean valueRequired) { receiver.generateCode(currentScope, codeStream, true); if (receiver instanceof CastExpression // ((type[])null)[0] ...
public void generateCompoundAssignment( BlockScope currentScope, CodeStream codeStream, Expression expression, int operator, int assignmentImplicitConversion, boolean valueRequired) { receiver.generateCode(currentScope, codeStream, true); if (receiver instanceof CastExpression // ((type[])null)[0] ...
public void append(LoggingEvent event) { // Retrieve the information from the log4j LoggingEvent. String category = event.getLoggerName(); String logMessage = event.getRenderedMessage(); String nestedDiagnosticContext = event.getNDC(); String threadDescription = event.getThreadName(); String l...
public void append(LoggingEvent event) { // Retrieve the information from the log4j LoggingEvent. String category = event.getLoggerName(); String logMessage = event.getRenderedMessage(); String nestedDiagnosticContext = event.getNDC(); String threadDescription = event.getThreadName(); String l...
public FilterDialog(JFrame parent, Filter filter) { super(parent, false); setTitle(MailResourceLoader.getString("dialog", "filter", "dialog_title")); this.filter = filter; //System.out.println("filternode name: " + filter.getName()); initComponents(); ...
public FilterDialog(JFrame parent, Filter filter) { super(parent, true); setTitle(MailResourceLoader.getString("dialog", "filter", "dialog_title")); this.filter = filter; //System.out.println("filternode name: " + filter.getName()); initComponents(); ...
private SequencedHashMap getMITAttributeValuesMap() throws Exception { SequencedHashMap result = null; List attributes = mitList.getCommonAttributes(); HashMap siaValuesMap = getAttributeValuesMap(); if (attributes != null) { result = new SequencedH...
private SequencedHashMap getMITAttributeValuesMap() throws Exception { SequencedHashMap result = null; List attributes = mitList.getCommonAttributes(); Map siaValuesMap = getAttributeValuesMap(); if (attributes != null) { result = new SequencedHashM...
public static Class getOMClass(Record record, int offset) throws Exception { NumberKey attId = new NumberKey(record.getValue(offset-1 + 2) .asString()); Attribute attribute = Attribute.getInstance(attId); String className = attribute.getAt...
public static Class getOMClass(Record record, int offset) throws Exception { NumberKey attId = new NumberKey(record.getValue(offset-1 + 3) .asString()); Attribute attribute = Attribute.getInstance(attId); String className = attribute.getAt...
public synchronized void setTimeZone(TimeZone timeZone) { timeZone = timeZone; configure(); }
public synchronized void setTimeZone(TimeZone timeZone) { _timeZone = timeZone; configure(); }
public static void main(String[] arg) { final String[] args = arg; ColumbaCmdLineArgumentParser cmdLineParser = new ColumbaCmdLineArgumentParser(); try { cmdLineParser.parse(args); } catch (CmdLineArgumentParser.UnknownOptionException e) { System.err.println(e.getMessage()); ColumbaCmdLineArgumen...
public static void main(String[] arg) { final String[] args = arg; ColumbaCmdLineArgumentParser cmdLineParser = new ColumbaCmdLineArgumentParser(); try { cmdLineParser.parse(args); } catch (CmdLineArgumentParser.UnknownOptionException e) { System.err.println(e.getMessage()); ColumbaCmdLineArgumen...
private void updateNavigationHistory(IWorkbenchPartReference partRef, boolean partClosed) { if (partRef != null && partRef.getPart(false) instanceof IEditorPart) { IEditorPart editor = (IEditorPart) partRef.getPart(false); IEditorInput input = editor.getEditorI...
private void updateNavigationHistory(IWorkbenchPartReference partRef, boolean partClosed) { if (partRef != null && partRef.getPart(false) instanceof IEditorPart) { IEditorPart editor = (IEditorPart) partRef.getPart(false); IEditorInput input = editor.getEditorI...
public void findIndexMatches(IndexInput input, IIndexSearchRequestor requestor, int detailLevel, IProgressMonitor progressMonitor, IJavaSearchScope scope) throws IOException { if (progressMonitor != null && progressMonitor.isCanceled()) throw new OperationCanceledException(); /* narrow down a set of entries using ...
public void findIndexMatches(IndexInput input, IIndexSearchRequestor requestor, int detailLevel, IProgressMonitor progressMonitor, IJavaSearchScope scope) throws IOException { if (progressMonitor != null && progressMonitor.isCanceled()) throw new OperationCanceledException(); /* narrow down a set of entries using ...
private void disassemble(ICodeAttribute codeAttribute, StringBuffer buffer, String lineSeparator, int tabNumber, int mode) { writeNewLine(buffer, lineSeparator, tabNumber - 1); DefaultBytecodeVisitor visitor = new DefaultBytecodeVisitor(codeAttribute, buffer, lineSeparator, tabNumber, mode); try { codeAttribu...
private void disassemble(ICodeAttribute codeAttribute, StringBuffer buffer, String lineSeparator, int tabNumber, int mode) { writeNewLine(buffer, lineSeparator, tabNumber - 1); DefaultBytecodeVisitor visitor = new DefaultBytecodeVisitor(codeAttribute, buffer, lineSeparator, tabNumber, mode); try { codeAttribu...
public void printStackTrace() { if (fThrowable != null) { System.err.println(this); System.err.println("Stack trace of embedded throwable:"/*nonNLS*/); fThrowable.printStackTrace(); } else { super.printStackTrace(); } }
public void printStackTrace() { if (fThrowable != null) { System.err.println(this); System.err.println("Stack trace of embedded throwable:"); //$NON-NLS-1$ fThrowable.printStackTrace(); } else { super.printStackTrace(); } }
public void initClassLoaders() throws IOException, MalformedURLException { if( dL > 0 ) debug( "Init class loaders " + noClassLoaders ); if( noClassLoaders ) { commonCL=this.getClass().getClassLoader(); if( commonCL == null ) { commonCL=new java.net.URLClassLoad...
public void initClassLoaders() throws IOException, MalformedURLException { if( dL > 0 ) debug( "Init class loaders " + noClassLoaders ); if( noClassLoaders ) { commonCL=this.getClass().getClassLoader(); if( commonCL == null ) { commonCL=jdk11Compat.newClassLoade...
protected boolean containsRecentChildren(MessageNode parent) { for (int i = 0; i < parent.getChildCount(); i++) { MessageNode child = (MessageNode) parent.getChildAt(i); if (((ColumbaHeader) child.getHeader()).getFlags().getRecent()) { // recent found ...
protected boolean containsRecentChildren(MessageNode parent) { for (int i = 0; i < parent.getChildCount(); i++) { MessageNode child = (MessageNode) parent.getChildAt(i); if (((ColumbaHeader) child.getHeader()).getFlags().getSeen()==false) { // recent found ...