buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public Object eval( CallStack callstack, Interpreter interpreter)
throws EvalError
{
Object lhs = ((SimpleNode)jjtGetChild(0)).eval(callstack, interpreter);
/*
Doing instanceof? Next node is a type.
*/
if (kind == INSTANCEOF)
{
// null object ref is not instance of any ty... | public Object eval( CallStack callstack, Interpreter interpreter)
throws EvalError
{
Object lhs = ((SimpleNode)jjtGetChild(0)).eval(callstack, interpreter);
/*
Doing instanceof? Next node is a type.
*/
if (kind == INSTANCEOF)
{
// null object ref is not instance of any ty... |
public PackageFragmentInfo() {
this.nonJavaResources = null;
}
/**
*/
boolean containsJavaResources() {
return this.children.length != 0;
}
/**
* Returns an array of non-java resources contained in the receiver.
*/
Object[] getNonJavaResources(IResource underlyingResource, PackageFragmentRoot rootHandle) {
if (th... | public PackageFragmentInfo() {
this.nonJavaResources = null;
}
/**
*/
boolean containsJavaResources() {
return this.children.length != 0;
}
/**
* Returns an array of non-java resources contained in the receiver.
*/
Object[] getNonJavaResources(IResource underlyingResource, PackageFragmentRoot rootHandle) {
if (th... |
public void analyseCode(
ClassScope classScope,
InitializationFlowContext initializationContext,
FlowInfo flowInfo) {
// starting of the code analysis for methods
if (ignoreFurtherInvestigation)
return;
try {
if (binding == null)
return;
if (!this.binding.isUsed() &&
(this.binding.... | public void analyseCode(
ClassScope classScope,
InitializationFlowContext initializationContext,
FlowInfo flowInfo) {
// starting of the code analysis for methods
if (ignoreFurtherInvestigation)
return;
try {
if (binding == null)
return;
if (!this.binding.isUsed() &&
(this.binding.... |
protected void executeOperation() throws JavaModelException {
beginTask(Util.bind("operation.createUnitProgress"), 2); //$NON-NLS-1$
JavaElementDelta delta = newJavaElementDelta();
ICompilationUnit unit = getCompilationUnit();
IPackageFragment pkg = (IPackageFragment) getParentElement();
IContainer folder = (ICont... | protected void executeOperation() throws JavaModelException {
beginTask(Util.bind("operation.createUnitProgress"), 2); //$NON-NLS-1$
JavaElementDelta delta = newJavaElementDelta();
ICompilationUnit unit = getCompilationUnit();
IPackageFragment pkg = (IPackageFragment) getParentElement();
IContainer folder = (ICont... |
public void actionPerformed(ActionEvent evt) {
FolderCommandReference[] r = ((AbstractMailFrameController) getFrameMediator()).getTableSelection();
MainInterface.processor.addOp(new RemoveAddressFromWhiteListCommand(r));
}
| public void actionPerformed(ActionEvent evt) {
FolderCommandReference r = ((AbstractMailFrameController) getFrameMediator()).getTableSelection();
MainInterface.processor.addOp(new RemoveAddressFromWhiteListCommand(r));
}
|
protected Object getAttribute(ASTNode parent, StructuralPropertyDescriptor childProperty) {
if (!parent.structuralPropertiesForType().contains(childProperty)) {
System.out.print("Property doesn'y match node");
}
return fStore.getNewValue(parent, childProperty);
}
| protected Object getAttribute(ASTNode parent, StructuralPropertyDescriptor childProperty) {
if (!parent.structuralPropertiesForType().contains(childProperty)) {
System.out.print("Property doesn'y match node"); //$NON-NLS-1$
}
return fStore.getNewValue(parent, childProperty);
}
|
public String getKey() {
try {
return getKey(this, true/*with access flags*/, false/*don't open*/);
} catch (JavaModelException e) {
// happen only if force open is true
return null;
}
}
| public String getKey() {
try {
return getKey(this, false/*don't open*/);
} catch (JavaModelException e) {
// happen only if force open is true
return null;
}
}
|
public void hmacSigner(byte [] key) {
int i;
ipad = new byte[PADLEN];
opad = new byte[PADLEN];
for (i = 0; i < key.length; i++) {
ipad[i] = (byte) (key[i] & IPAD);
opad[i] = (byte) (key[i] & OPAD);
}
for (; i < PADLEN; i++) {
ipad[i] = IPAD;
opad[i] = OPAD;
}
bytes = new ByteArrayOutputStream();
try {
... | public hmacSigner(byte [] key) {
int i;
ipad = new byte[PADLEN];
opad = new byte[PADLEN];
for (i = 0; i < key.length; i++) {
ipad[i] = (byte) (key[i] & IPAD);
opad[i] = (byte) (key[i] & OPAD);
}
for (; i < PADLEN; i++) {
ipad[i] = IPAD;
opad[i] = OPAD;
}
bytes = new ByteArrayOutputStream();
try {
byt... |
private Binding findImport(char[][] compoundName, int length) {
recordQualifiedReference(compoundName);
Binding binding = environment.getTopLevelPackage(compoundName[0]);
int i = 1;
foundNothingOrType: if (binding != null) {
PackageBinding packageBinding = (PackageBinding) binding;
while (i < length) {
bind... | private Binding findImport(char[][] compoundName, int length) {
recordQualifiedReference(compoundName);
Binding binding = environment.getTopLevelPackage(compoundName[0]);
int i = 1;
foundNothingOrType: if (binding != null) {
PackageBinding packageBinding = (PackageBinding) binding;
while (i < length) {
bind... |
private String createLabelText(MailboxInfo info, IFolderItem item) {
// name of folder
String name = item.getString("property", "name");
// IMAP folder specific
// - Is this folder selectable (does it contain messages?)
boolean selectable = item.getBooleanWithDefault("selectable", true) == false;
StringB... | private String createLabelText(MailboxInfo info, IFolderItem item) {
// name of folder
String name = item.getString("property", "name");
// IMAP folder specific
// - Is this folder selectable (does it contain messages?)
boolean selectable = item.getBooleanWithDefault("selectable", true) == false;
StringB... |
public String GenerateFile(MClassifier cls, String path) {
sect = new Section();
String name = cls.getName();
if (name == null || name.length() == 0) return null;
String filename = name + ".php";
if (!path.endsWith(FILE_SEPARATOR)) path += FILE_SEPARATOR;
String packagePath = cls.getNamespac... | public String GenerateFile(MClassifier cls, String path) {
sect = new Section();
String name = cls.getName();
if (name == null || name.length() == 0) return null;
String filename = name + ".php";
if (!path.endsWith(FILE_SEPARATOR)) path += FILE_SEPARATOR;
String packagePath = cls.getNamespac... |
protected void consumeEnterAnonymousClassBody() {
// EnterAnonymousClassBody ::= $empty
if (this.indexOfAssistIdentifier() < 0) {
super.consumeEnterAnonymousClassBody();
return;
}
QualifiedAllocationExpression alloc;
AnonymousLocalTypeDeclaration anonymousType =
new AnonymousLocalTypeDeclaration();
alloc... | protected void consumeEnterAnonymousClassBody() {
// EnterAnonymousClassBody ::= $empty
if (this.indexOfAssistIdentifier() < 0) {
super.consumeEnterAnonymousClassBody();
return;
}
QualifiedAllocationExpression alloc;
AnonymousLocalTypeDeclaration anonymousType =
new AnonymousLocalTypeDeclaration(this.compi... |
public CompletionScanner(boolean assertMode) {
super(false /*comment*/, false /*whitespace*/, false /*nls*/, assertMode /*assert*/, null /*task*/);
}
| public CompletionScanner(boolean assertMode) {
super(false /*comment*/, false /*whitespace*/, false /*nls*/, assertMode /*assert*/, null /*taskTags*/, null/*taskPriorities*/);
}
|
public static Object loadExternalPlugin(
String className,
String type,
File file,
Object[] args)
throws Exception {
ColumbaLogger.log.debug("loading..");
if (type.equals("java") || type.equals("jar") ) {
String path = file.getPath();
URL[] url = new URL[1];
URL newURL = new File(path).toURL(... | public static Object loadExternalPlugin(
String className,
String type,
File file,
Object[] args)
throws Exception {
ColumbaLogger.log.debug("loading..");
if (type.equals("java") || type.equals("jar") ) {
String path = file.getPath();
URL[] url = new URL[1];
URL newURL = new File(path).toURL(... |
static public void attachTemporaryConsoleAppender(LoggerRepository repository) {
Logger ll = repository.getLogger(Constants.LOG4J_PACKAGE_NAME);
ConsoleAppender appender = new ConsoleAppender();
appender.setLayout(
new PatternLayout("LOG4J-INTERNAL: %d %level [%t] %c#%M:%L)- %m%n"));
append... | static public void attachTemporaryConsoleAppender(LoggerRepository repository) {
Logger ll = repository.getLogger(Constants.LOG4J_PACKAGE_NAME);
ConsoleAppender appender = new ConsoleAppender();
appender.setLayout(
new PatternLayout("LOG4J-INTERNAL: %d %level [%t] %c#%M:%L)- %m%n"));
append... |
public void checkTaskTag(int commentStart, int commentEnd) {
// only look for newer task: tags
if (this.taskCount > 0 && this.taskPositions[this.taskCount-1][0] >= commentStart) {
return;
}
nextChar: for (int i = commentStart; i < commentEnd && i < this.eofPosition; i++) {
int nextPos = -1;
// check for ... | public void checkTaskTag(int commentStart, int commentEnd) {
// only look for newer task: tags
if (this.taskCount > 0 && this.taskPositions[this.taskCount-1][0] >= commentStart) {
return;
}
nextChar: for (int i = commentStart; i < commentEnd && i < this.eofPosition; i++) {
int nextPos = -1;
// check for ... |
public static void main(String[] args) {
Category root = Category.getRoot();
Category cat = Category.getInstance(Loop.class.getName());
if(args.length != 2)
usage("Wrong number of arguments.");
String host = args[0];
int port = 0;
try {
port = Integer.valueOf(arg... | public static void main(String[] args) {
Category root = Category.getRoot();
Category cat = Category.getInstance(Loop.class.getName());
if(args.length != 2)
usage("Wrong number of arguments.");
String host = args[0];
int port = 0;
try {
port = Integer.valueOf(arg... |
public void mousePressed(MouseEvent evt)
{
control = (OperatingSystem.isMacOS() && evt.isMetaDown())
|| (!OperatingSystem.isMacOS() && evt.isControlDown());
// so that Home <mouse click> Home is not the same
// as pressing Home twice in a row
textArea.getInputHandler().resetLastActionCount();
quickCopy... | public void mousePressed(MouseEvent evt)
{
control = (OperatingSystem.isMacOS() && evt.isMetaDown())
|| (!OperatingSystem.isMacOS() && evt.isControlDown());
// so that Home <mouse click> Home is not the same
// as pressing Home twice in a row
textArea.getInputHandler().resetLastActionCount();
quickCopy... |
public String toStringExpression() {
/* slow code */
String str = "ExtendedStringLiteral{"+ new String(source) +"}";
return str;
}
| public String toStringExpression() {
/* slow code */
String str = "ExtendedStringLiteral{"/*nonNLS*/+ new String(source) +"}"/*nonNLS*/;
return str;
}
|
private void generateCode(
ClassScope classScope,
ClassFile classFile,
int clinitOffset) {
ConstantPool constantPool = classFile.constantPool;
int constantPoolOffset = constantPool.currentOffset;
int constantPoolIndex = constantPool.currentIndex;
classFile.generateMethodInfoHeaderForClinit();
int code... | private void generateCode(
ClassScope classScope,
ClassFile classFile,
int clinitOffset) {
ConstantPool constantPool = classFile.constantPool;
int constantPoolOffset = constantPool.currentOffset;
int constantPoolIndex = constantPool.currentIndex;
classFile.generateMethodInfoHeaderForClinit();
int code... |
public TargetError(Throwable t, SimpleNode node )
{
this("TargetError", t, node, false);
}
/**
If you're going to use this please catch and re-throw the exception
in an AST and add the node...
@see reThrow()
*/
| public TargetError(Throwable t, SimpleNode node )
{
this("TargetError", t, node, false);
}
/**
If you're going to use this please catch and re-throw the exception
in an AST and add the node...
@see #reThrow( SimpleNode )
*/
|
private void selectFrom(Binding binding, CompilationUnitDeclaration parsedUnit, boolean isDeclaration) {
if(binding instanceof TypeVariableBinding) {
TypeVariableBinding typeVariableBinding = (TypeVariableBinding) binding;
Binding enclosingElement = typeVariableBinding.declaringElement;
this.noProposal = fa... | private void selectFrom(Binding binding, CompilationUnitDeclaration parsedUnit, boolean isDeclaration) {
if(binding instanceof TypeVariableBinding) {
TypeVariableBinding typeVariableBinding = (TypeVariableBinding) binding;
Binding enclosingElement = typeVariableBinding.declaringElement;
this.noProposal = fa... |
this.rlength = (short) (16 + alg.length() + signature.length);
import java.net.*;
import java.io.*;
import java.util.*;
import java.text.*;
public class dnsTSIGRecord extends dnsRecord {
dnsName alg;
Date timeSigned;
short fudge;
byte [] signature;
int originalID;
short error;
byte [] other;
public dnsTSIGRecord(dn... | this.rlength = (short) (16 + alg.length() + signature.length);
import java.net.*;
import java.io.*;
import java.util.*;
import java.text.*;
public class dnsTSIGRecord extends dnsRecord {
dnsName alg;
Date timeSigned;
short fudge;
byte [] signature;
int originalID;
short error;
byte [] other;
public dnsTSIGRecord(dn... |
public TypeBinding resolveType(BlockScope scope) {
constant = NotAConstant;
TypeBinding expressionType = expression.resolveType(scope);
TypeBinding checkedType = type.resolveType(scope, true /* check bounds*/);
if (expressionType == null || checkedType == null)
return null;
if (checkedType.isTypeVariabl... | public TypeBinding resolveType(BlockScope scope) {
constant = NotAConstant;
TypeBinding expressionType = expression.resolveType(scope);
TypeBinding checkedType = type.resolveType(scope, true /* check bounds*/);
if (expressionType == null || checkedType == null)
return null;
if (!checkedType.isReifiable(... |
protected int matchReference(Reference node, MatchingNodeSet nodeSet, boolean writeOnlyAccess) {
if (node instanceof NameReference) {
if (this.pattern.name == null) {
return nodeSet.addMatch(node, this.pattern.mustResolve ? POSSIBLE_MATCH : ACCURATE_MATCH);
} else if (node instanceof SingleNameReference) {
i... | protected int matchReference(Reference node, MatchingNodeSet nodeSet, boolean writeOnlyAccess) {
if (node instanceof NameReference) {
if (this.pattern.name == null) {
return nodeSet.addMatch(node, ((InternalSearchPattern)this.pattern).mustResolve ? POSSIBLE_MATCH : ACCURATE_MATCH);
} else if (node instanceof Si... |
private final void openPerspective(final String perspectiveId)
throws ExecutionException {
final IWorkbench workbench = PlatformUI.getWorkbench();
final IWorkbenchWindow activeWorkbenchWindow = workbench
.getActiveWorkbenchWindow();
if (activeWorkbenchWindow == null) {
return;
}
IAdaptable input =... | private final void openPerspective(final String perspectiveId)
throws ExecutionException {
final IWorkbench workbench = PlatformUI.getWorkbench();
final IWorkbenchWindow activeWorkbenchWindow = workbench
.getActiveWorkbenchWindow();
if (activeWorkbenchWindow == null) {
return;
}
IAdaptable input =... |
private void initComponents() {
buttons = new JButton[3];
buttons[0] = new ButtonWithMnemonic(AddressbookResourceLoader
.getString("global", "cancel"));
buttons[0].setActionCommand("CANCEL");
buttons[0].setDefaultCapable(true);
buttons[1] = new ButtonWithMnemonic(AddressbookResourceLoader
.getString... | private void initComponents() {
buttons = new JButton[3];
buttons[0] = new ButtonWithMnemonic(AddressbookResourceLoader
.getString("global", "cancel"));
buttons[0].setActionCommand("CANCEL");
buttons[0].setDefaultCapable(true);
buttons[1] = new ButtonWithMnemonic(AddressbookResourceLoader
.getString... |
public void decodeIndexKey(char[] key) {
// Package reference keys are encoded as 'name' (where 'name' is the last segment of the package name)
this.pkgName = key; // decode into the pkg name, see matchesDecodedPattern()
}
| public void decodeIndexKey(char[] key) {
// Package reference keys are encoded as 'name' (where 'name' is the last segment of the package name)
this.pkgName = key; // decode into the pkg name, see matchesDecodedKey()
}
|
public static boolean isString(Object o) {
if (o == null) {
return (true);
}
return (String.class.isInstance(o));
}
} | protected static boolean isString(Object o) {
if (o == null) {
return (true);
}
return (String.class.isInstance(o));
}
} |
public void execute(Worker worker) throws Exception {
Folder folder = (Folder) ( (FolderCommandReference) getReferences()[0] ).getFolder();
Object[] uids = ( (FolderCommandReference) getReferences()[0] ).getUids();
Message message = (Message) folder.getMessage(uids[0], worker);
ColumbaHeader header = (Col... | public void execute(Worker worker) throws Exception {
Folder folder = (Folder) ( (FolderCommandReference) getReferences()[0] ).getFolder();
Object[] uids = ( (FolderCommandReference) getReferences()[0] ).getUids();
Message message = new Message();
ColumbaHeader header = (ColumbaHeader) message.getHeader()... |
public String getLibDir() {
if( libBase!=null ) return libBase;
String pkg=guessTomcatHome();
if( pkg!=null ) setLibDir( pkg + "/lib");
else setLibDir("./lib");
return libBase;
}
ClassLoader getURLClassLoader( URL urls[], ClassLoader parent )
throws Exception
{
Class urlCL=Class.forName( "java.... | public String getLibDir() {
if( libBase!=null ) return libBase;
String pkg=guessTomcatHome();
if( pkg!=null ) setLibDir( pkg + "/lib");
else setLibDir("./lib");
return libBase;
}
ClassLoader getURLClassLoader( URL urls[], ClassLoader parent )
throws Exception
{
Class urlCL=Class.forName( "java.... |
public String toStringExpression(){
/* slow code */
return receiver.toString()
+ "."/*nonNLS*/
+ new String(token);}
| public String toStringExpression(){
/* slow code */
return receiver.toString()
+ "." //$NON-NLS-1$
+ new String(token);}
|
public static final String LOG4J_ID_KEY = "log4jid";
static final String UNKNOWN_TAB_NAME = "Unknown";
static final String GLOBAL_MATCH = "*";
static final String DETAIL_CONTENT_TYPE = "text/html";
static final String EVENT_TYPE_KEY = "log4j.eventtype";
static final String LOG4J_EVENT_TYPE = "log4j";
sta... | public static final String DETAIL_CONTENT_TYPE = "text/html";
static final String EVENT_TYPE_KEY = "log4j.eventtype";
static final String LOG4J_EVENT_TYPE = "log4j";
static final String UTIL_LOGGING_EVENT_TYPE = "util-logging";
static final String LEVEL_DISPLAY = "level.display";
static final String LEVEL... |
public Object getCellEditorValue() {
Boolean b = new Boolean(((JCheckBox) component).isSelected());
// enable/disable tree node
currentNode.setEnabled(b.booleanValue());
/*
// enable/disable plugin
String id = currentNode.getId();
MainInterface.pluginManager.setEnabled(id, b.booleanValue());
... | public Object getCellEditorValue() {
Boolean b = Boolean.valueOf(((JCheckBox) component).isSelected());
// enable/disable tree node
currentNode.setEnabled(b.booleanValue());
/*
// enable/disable plugin
String id = currentNode.getId();
MainInterface.pluginManager.setEnabled(id, b.booleanValue())... |
public void execute(IWorkerStatusController wsc) throws Exception {
if (!updateGui)
return;
// get command reference
IMailFolderCommandReference r = (IMailFolderCommandReference) getReference();
// get selected folder
srcFolder = (IMailbox) r.getSourceFolder();
// register for status events
((Statu... | public void execute(IWorkerStatusController wsc) throws Exception {
if (!updateGui)
return;
// get command reference
IMailFolderCommandReference r = (IMailFolderCommandReference) getReference();
// get selected folder
srcFolder = (IMailbox) r.getSourceFolder();
// register for status events
((Statu... |
private void generateInnerClassInfos(IType type, IBinaryType typeInfo, Hashtable newElements, Vector children) {
// Add inner types
// If the current type is an inner type, innerClasses returns
// an extra entry for the current type. This entry must be removed.
// Can also return an entry for the enclosing type of... | private void generateInnerClassInfos(IType type, IBinaryType typeInfo, Hashtable newElements, Vector children) {
// Add inner types
// If the current type is an inner type, innerClasses returns
// an extra entry for the current type. This entry must be removed.
// Can also return an entry for the enclosing type of... |
private Object[] computeNonJavaResources(JavaProject project) {
// determine if src == project and/or if bin == project
IPath projectPath = project.getProject().getFullPath();
boolean srcIsProject = false;
boolean binIsProject = false;
char[][] exclusionPatterns = null;
IClasspathEntry[] classpath = nul... | private Object[] computeNonJavaResources(JavaProject project) {
// determine if src == project and/or if bin == project
IPath projectPath = project.getProject().getFullPath();
boolean srcIsProject = false;
boolean binIsProject = false;
char[][] exclusionPatterns = null;
IClasspathEntry[] classpath = nul... |
public ITypeBinding getDeclaringClass() {
if (isClass() || isInterface() || isEnum()) {
ReferenceBinding referenceBinding = (ReferenceBinding) this.binding;
if (referenceBinding.isNestedType()) {
try {
return this.resolver.getTypeBinding(referenceBinding.enclosingType());
} catch (RuntimeException... | public ITypeBinding getDeclaringClass() {
if (isClass() || isInterface() || isEnum()) {
ReferenceBinding referenceBinding = (ReferenceBinding) this.binding;
if (referenceBinding.isNestedType()) {
try {
return this.resolver.getTypeBinding(referenceBinding.enclosingType());
} catch (RuntimeException... |
public void mouseClicked(MouseEvent e)
{
treeController.selectFolder();
/*
if ( e.getClickCount() == 1 )
{
treeController.selectFolder();
}
else if ( e.getClickCount() == 2 )
{
treeController.expandImapRootFolder();
}
*/
... | public void mouseClicked(MouseEvent e)
{
if ( e.getButton() == MouseEvent.BUTTON1 ) treeController.selectFolder();
/*
if ( e.getClickCount() == 1 )
{
treeController.selectFolder();
}
else if ( e.getClickCount() == 2 )
{
treeController.exp... |
public void connect(ServerAddress serverAddress,
ThreadGroup threadGroup) throws IOException
{
this.serverAddress = serverAddress;
boolean tracing = log.isTraceEnabled();
if (tracing)
log.trace("Connecting to : " + serverAddress);
selectorManager = Selecto... | public void connect(ServerAddress serverAddress,
ThreadGroup threadGroup) throws IOException
{
this.serverAddress = serverAddress;
boolean tracing = log.isTraceEnabled();
if (tracing)
log.trace("Connecting to : " + serverAddress);
selectorManager = Selecto... |
private static void fireEvent(int eventType, NotationName nn) {
ArgoEventPump.getInstance().fireEvent(new ArgoNotationEvent(eventType, nn));
}
| private static void fireEvent(int eventType, NotationName nn) {
ArgoEventPump.fireEvent(new ArgoNotationEvent(eventType, nn));
}
|
protected String getInitialScopeId() {
return IWorkbenchConstants.DEFAULT_ACCELERATOR_SCOPE_ID;
}
| protected String getInitialScopeId() {
return null;
}
|
private static final int PADDING = 12;
void install()
{
Vector components = new Vector();
int size = 0;
JPanel comp = selectComponents.comp;
Vector ids = selectedComponents.filesets;
for(int i = 0; i < comp.getComponentCount(); i++)
{
if(((JCheckBox)comp.getComponent(i))
.getModel().isSelected(... | private static final int PADDING = 12;
void install()
{
Vector components = new Vector();
int size = 0;
JPanel comp = selectComponents.comp;
Vector ids = selectComponents.filesets;
for(int i = 0; i < comp.getComponentCount(); i++)
{
if(((JCheckBox)comp.getComponent(i))
.getModel().isSelected())... |
public String toStringExpression() {
return "<SelectOnName:"/*nonNLS*/ + super.toStringExpression() + ">"/*nonNLS*/;
}
| public String toStringExpression() {
return "<SelectOnName:" + super.toStringExpression() + ">"; //$NON-NLS-2$ //$NON-NLS-1$
}
|
public void setEnclosingFig(Fig encloser) {
super.setEnclosingFig(encloser);
if (!(getOwner() instanceof MModelElement)) return;
MModelElement me = (MModelElement) getOwner();
MNamespace m = null;
ProjectBrowser pb = ProjectBrowser.TheInstance;
if (me.getNamespace() == null) {
if ((enclose... | public void setEnclosingFig(Fig encloser) {
super.setEnclosingFig(encloser);
if (!(getOwner() instanceof MModelElement)) return;
MModelElement me = (MModelElement) getOwner();
MNamespace m = null;
ProjectBrowser pb = ProjectBrowser.TheInstance;
if (me.getNamespace() == null) {
if ((enclose... |
protected File getNewFile() {
ProjectBrowser pb = ProjectBrowser.getInstance();
Project p = ProjectManager.getManager().getCurrentProject();
JFileChooser chooser = null;
URL url = p.getURL();
if ((url != null) && (url.getFile().length() > 0)) {
chooser = OsUtil.g... | protected File getNewFile() {
ProjectBrowser pb = ProjectBrowser.getInstance();
Project p = ProjectManager.getManager().getCurrentProject();
JFileChooser chooser = null;
URL url = p.getURL();
if ((url != null) && (url.getFile().length() > 0)) {
chooser = OsUtil.g... |
public void analyseCode(
ClassScope classScope,
InitializationFlowContext initializerFlowContext,
FlowInfo flowInfo) {
if (ignoreFurtherInvestigation)
return;
if (!isDefaultConstructor && this.binding.isPrivate() && !this.binding.isPrivateUsed()) {
if (!classScope.referenceCompilationUnit().compilati... | public void analyseCode(
ClassScope classScope,
InitializationFlowContext initializerFlowContext,
FlowInfo flowInfo) {
if (ignoreFurtherInvestigation)
return;
if (!isDefaultConstructor && this.binding.isPrivate() && !this.binding.isPrivateUsed()) {
if (!classScope.referenceCompilationUnit().compilati... |
public TypeReferencePattern(char[] qualification, char[] simpleName, int matchRule) {
this(matchRule);
this.qualification = this.isCaseSensitive ? qualification : CharOperation.toLowerCase(qualification);
this.simpleName = (this.isCaseSensitive || this.isCamelCase) ? simpleName : CharOperation.toLowerCase(simpl... | public TypeReferencePattern(char[] qualification, char[] simpleName, int matchRule) {
this(matchRule);
this.qualification = this.isCaseSensitive ? qualification : CharOperation.toLowerCase(qualification);
this.simpleName = (this.isCaseSensitive || this.isCamelCase) ? simpleName : CharOperation.toLowerCase(simpl... |
public interface IKeyConfigurationDefinition extends Comparable {
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Co... | public interface IKeyConfigurationDefinition extends Comparable {
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Co... |
private void createButtons() {
removeAll();
ListIterator iterator = rootElement.getElements().listIterator();
XmlElement buttonElement = null;
while (iterator.hasNext()) {
try {
buttonElement = (XmlElement) iterator.next();
if (buttonEle... | private void createButtons() {
removeAll();
ListIterator iterator = rootElement.getElements().listIterator();
XmlElement buttonElement = null;
while (iterator.hasNext()) {
try {
buttonElement = (XmlElement) iterator.next();
if (buttonEle... |
public static CompilationUnitDeclaration parse(
org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit,
NodeSearcher nodeSearcher,
Map settings,
int flags) {
if (sourceUnit == null) {
throw new IllegalStateException();
}
CompilerOptions compilerOptions = new CompilerOptions(settings);
... | public static CompilationUnitDeclaration parse(
org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit,
NodeSearcher nodeSearcher,
Map settings,
int flags) {
if (sourceUnit == null) {
throw new IllegalStateException();
}
CompilerOptions compilerOptions = new CompilerOptions(settings);
... |
public boolean visit(IResourceProxy proxy) throws CoreException {
if (proxy.getType() == IResource.FOLDER) {
IPath path = proxy.requestFullPath();
if (prefixesOneOf(path, nestedFolders)) {
// equals if nested source folder
return !equalsOneOf(path, nestedFolders);
} else {
... | public boolean visit(IResourceProxy proxy) throws CoreException {
if (proxy.getType() == IResource.FOLDER) {
IPath path = proxy.requestFullPath();
if (prefixesOneOf(path, nestedFolders)) {
// equals if nested source folder
return !equalsOneOf(path, nestedFolders);
} else {
... |
public Constant resolveCase(BlockScope scope, TypeBinding switchExpressionType, SwitchStatement switchStatement) {
// switchExpressionType maybe null in error case
scope.enclosingCase = this; // record entering in a switch case block
if (constantExpression == null) {
// remember the default case into... | public Constant resolveCase(BlockScope scope, TypeBinding switchExpressionType, SwitchStatement switchStatement) {
// switchExpressionType maybe null in error case
scope.enclosingCase = this; // record entering in a switch case block
if (constantExpression == null) {
// remember the default case into... |
protected void copy(IResource[] resources, IPath destination, IProgressMonitor subMonitor) throws CoreException {
for (int i = 0; i < resources.length; i++) {
IResource source = resources[i];
IPath destinationPath = destination.append(source.getName());
IWorkspace workspace = source.getWorkspace();
IWork... | protected void copy(IResource[] resources, IPath destination, IProgressMonitor subMonitor) throws CoreException {
for (int i = 0; i < resources.length; i++) {
IResource source = resources[i];
IPath destinationPath = destination.append(source.getName());
IWorkspace workspace = source.getWorkspace();
IWork... |
public Object lookupData() {
return pluginHandler;
}
});
WizardModel model =
new DefaultWizardModel(
new Step[] { new PluginStep(data), new LocationStep(data)});
model.addWizardModelListener(new AddressbookImporter(data));
Wizard wizard =
new Wizard(
model,
AddressbookResourceLoader.... | public Object lookupData() {
return pluginHandler;
}
});
WizardModel model =
new DefaultWizardModel(
new Step[] { new PluginStep(data), new LocationStep(data)});
model.addWizardModelListener(new AddressbookImporter(data));
Wizard wizard =
new Wizard(
model,
AddressbookResourceLoader.... |
public boolean isSimilar(IMethod method) {
return
this.areSimilarMethods(
this.getElementName(), this.getParameterTypes(),
| public boolean isSimilar(IMethod method) {
return
areSimilarMethods(
this.getElementName(), this.getParameterTypes(),
|
public String
toString() {
StringBuffer sb = toStringNoData();
if (data != null)
sb.append("<unknown format>");
return sb.toString();
}
byte []
rrToWire(Compression c) {
return data;
}
| public String
toString() {
StringBuffer sb = toStringNoData();
if (data != null)
sb.append("<unknown format>");
return sb.toString();
}
byte []
rrToWire(Compression c, int index) {
return data;
}
|
protected
MX_KXRecord(Name _name, short _type, short _dclass, int _ttl,
MyStringTokenizer st, Name origin)
throws IOException
{
super(_name, _type, _dclass, _ttl);
priority = Short.parseShort(st.nextToken());
target = new Name(st.nextToken(), origin);
}
| protected
MX_KXRecord(Name _name, short _type, short _dclass, int _ttl,
MyStringTokenizer st, Name origin)
throws IOException
{
super(_name, _type, _dclass, _ttl);
priority = Short.parseShort(st.nextToken());
target = Name.fromString(st.nextToken(), origin);
}
|
public void actionPerformed(ActionEvent evt) {
getFrameController().getStatusBar().cancelDisplayedWorker();
}
| public void actionPerformed(ActionEvent evt) {
getFrameMediator().getStatusBar().cancelDisplayedWorker();
}
|
protected void setOptionIdOnly(NumberKey optionId)
throws TorqueException
{
if ( !Objects.equals(optionId, getOptionId()) )
{
// if the value is set multiple times before saving only
// save the last saved value
if ( !isNew() && !oldOptionIdIsSet )
... | protected void setOptionIdOnly(NumberKey optionId)
throws TorqueException
{
if ( !Objects.equals(optionId, getOptionId()) )
{
// if the value is set multiple times before saving only
// save the last saved value
if ( !isNew() && !oldOptionIdIsSet && g... |
public void actionPerformed(ActionEvent evt) {
final ComposerController composerController = (ComposerController) getFrameMediator();
if (composerController.checkState()) {
return;
}
AccountItem item = ((ComposerModel) composerController.getModel())
.getAccountItem();
SpecialFoldersItem folderItem =... | public void actionPerformed(ActionEvent evt) {
final ComposerController composerController = (ComposerController) getFrameMediator();
if (composerController.checkState()) {
return;
}
AccountItem item = ((ComposerModel) composerController.getModel())
.getAccountItem();
SpecialFoldersItem folderItem =... |
public void actionPerformed(ActionEvent e) {
String action = e.getActionCommand();
try {
//TableModelFilteredView model =
// MainInterface.tableController.getHeaderTable().getTableModelFilteredView();
TableModelFilter model = tableController.getTableModelFiltered... | public void actionPerformed(ActionEvent e) {
String action = e.getActionCommand();
try {
//TableModelFilteredView model =
// MainInterface.tableController.getHeaderTable().getTableModelFilteredView();
TableModelFilter model = tableController.getTableModelFiltered... |
public
dnsSRVRecord(dnsName _name, short _dclass, int _ttl, StringTokenizer st)
throws IOException
| public
dnsSRVRecord(dnsName _name, short _dclass, int _ttl, MyStringTokenizer st)
throws IOException
|
public void manageSyntheticAccessIfNecessary(BlockScope currentScope, FlowInfo flowInfo) {
if (!flowInfo.isReachable()) return;
// if method from parameterized type got found, use the original method at codegen time
this.codegenBinding = this.binding.original();
if (this.codegenBinding != this.binding) {
// ... | public void manageSyntheticAccessIfNecessary(BlockScope currentScope, FlowInfo flowInfo) {
if (!flowInfo.isReachable()) return;
// if method from parameterized type got found, use the original method at codegen time
this.codegenBinding = this.binding.original();
if (this.codegenBinding != this.binding) {
// ... |
public TreeView(TreeModel model) {
//super(frameController, model);
super(model);
ToolTipManager.sharedInstance().registerComponent(this);
putClientProperty("JTree.lineStyle", "Angled");
setShowsRootHandles(true);
setRootVisible(false);
setBorder(BorderFac... | public TreeView(TreeModel model) {
//super(frameController, model);
super(model);
ToolTipManager.sharedInstance().registerComponent(this);
putClientProperty("JTree.lineStyle", "Angled");
setShowsRootHandles(true);
setRootVisible(false);
//setBorder(BorderF... |
protected void addOption(StringBuffer sb, String value, String label,
boolean matched) {
sb.append("<option value=\"");
sb.append(value);
sb.append("\"");
if (matched)
sb.append(" selected");
sb.append(">");
sb.append(Response... | protected void addOption(StringBuffer sb, String value, String label,
boolean matched) {
sb.append("<option value=\"");
sb.append(value);
sb.append("\"");
if (matched)
sb.append(" selected=\"true\"");
sb.append(">");
sb.append... |
private void addWebApp( ContextManager cm, File dir, String host,
String name)
throws TomcatException
{
host= unEscapeHost( host );
if(host==null) host="DEFAULT";
String path="/" + unEscapePath( name );
if( path.equals("/ROOT") )
path="";
Hashtable loaded=(Hashtable)hosts.get(host);
if( loa... | private void addWebApp( ContextManager cm, File dir, String host,
String name)
throws TomcatException
{
host= unEscapeHost( host );
if(host==null) host="DEFAULT";
String path="/" + unEscapePath( name );
if( path.equals("/ROOT") )
path="";
Hashtable loaded=(Hashtable)hosts.get(host);
if( loa... |
public void resolve(MethodScope methScope) {
// get method declaration
AbstractMethodDeclaration methDecl = methScope.referenceMethod();
boolean overriding = methDecl == null ? false : (methDecl.binding.modifiers & (AccImplementing+AccOverriding)) != 0;
// @see tags
int seeTagsLength = this.references ==... | public void resolve(MethodScope methScope) {
// get method declaration
AbstractMethodDeclaration methDecl = methScope.referenceMethod();
boolean overriding = methDecl == null ? false : (methDecl.binding.modifiers & (AccImplementing|AccOverriding)) != 0;
// @see tags
int seeTagsLength = this.references ==... |
public ExpungeFolderAction(FrameMediator frameMediator) {
super(frameMediator,
MailResourceLoader.getString("menu", "mainframe",
"menu_folder_expungefolder"));
// tooltip text
putValue(SHORT_DESCRIPTION,
MailResourceLoader.getString("menu", "mainframe... | public ExpungeFolderAction(FrameMediator frameMediator) {
super(frameMediator,
MailResourceLoader.getString("menu", "mainframe",
"menu_folder_expungefolder"));
// tooltip text
putValue(SHORT_DESCRIPTION,
MailResourceLoader.getString("menu", "mainframe... |
private int
uniqueID(Message m) {
Record r = m.getQuestion();
return (((r.getName().hashCode() & 0xFFFF) << 16) +
(r.getType() + hashCode() << 8) +
(hashCode() & 0xFF));
}
| private int
uniqueID(Message m) {
Record r = m.getQuestion();
return (((r.getName().hashCode() & 0xFFFF) << 16) +
(r.getType() << 8) +
(hashCode() & 0xFF));
}
|
public IEvaluationReference addEvaluationListener(Expression expression,
IPropertyChangeListener listener, String property);
| public IEvaluationReference addEvaluationListener(Expression expression,
IPropertyChangeListener listener, String property, Expression restrictEvaluation);
|
public SelectionOnPackageReference(char[][] tokens , long[] positions) {
super(tokens, positions, true);
}
| public SelectionOnPackageReference(char[][] tokens , long[] positions) {
super(tokens, positions, true, AccDefault);
}
|
public void resolve(MethodScope initializationScope) {
// the two <constant = Constant.NotAConstant> could be regrouped into
// a single line but it is clearer to have two lines while the reason of their
// existence is not at all the same. See comment for the second one.
//----------------------------------------... | public void resolve(MethodScope initializationScope) {
// the two <constant = Constant.NotAConstant> could be regrouped into
// a single line but it is clearer to have two lines while the reason of their
// existence is not at all the same. See comment for the second one.
//----------------------------------------... |
private void loadThemes(IExtension ext) {
ThemeRegistryReader reader = new ThemeRegistryReader();
ThemeRegistry registry = (ThemeRegistry) WorkbenchPlugin.getDefault().getThemeRegistry();
reader.setRegistry(registry);
IConfigurationElement [] elements = ext.getConfigurationElements();
for (int i = 0;... | private void loadThemes(IExtension ext) {
ThemeRegistryReader reader = new ThemeRegistryReader();
ThemeRegistry registry = (ThemeRegistry) WorkbenchPlugin.getDefault().getThemeRegistry();
reader.setRegistry(registry);
IConfigurationElement [] elements = ext.getConfigurationElements();
for (int i = 0;... |
protected void layoutComponents() {
// Create a FormLayout instance.
FormLayout layout = new FormLayout("10dlu, max(100;default), 3dlu, fill:max(150dlu;default):grow ",
// 2 columns
""); // rows are added dynamically (no need to define them here)
/... | protected void layoutComponents() {
// Create a FormLayout instance.
FormLayout layout = new FormLayout("10dlu, max(70dlu;default), 3dlu, fill:max(150dlu;default):grow ",
// 2 columns
""); // rows are added dynamically (no need to define them here)
... |
public short
getFootprint() {
return (short) footprint;
}
void
rrToWire(DataByteOutputStream out, Compression c) {
out.writeShort(footprint);
out.writeByte(alg);
out.writeByte(digestid);
if (digest != null)
out.writeArray(digest);
}
| public short
getFootprint() {
return (short) footprint;
}
void
rrToWire(DataByteOutputStream out, Compression c, boolean canonical) {
out.writeShort(footprint);
out.writeByte(alg);
out.writeByte(digestid);
if (digest != null)
out.writeArray(digest);
}
|
public int getLineNumber(int position) {
if (this.lineEndTable == null) return -2;
int length;
if ((length = this.lineEndTable.length) == 0) {
if (position >= getStartPosition() + getLength()) {
return -1;
}
return 1;
}
int low = 0;
if (position < 0) {
// position illegal
return -1;
}... | public int getLineNumber(int position) {
if (this.lineEndTable == null) return -2;
int length;
if ((length = this.lineEndTable.length) == 0) {
if (position >= getStartPosition() + getLength()) {
return -1;
}
return 1;
}
int low = 0;
if (position < 0) {
// position illegal
return -1;
}... |
public SelectAllAction(AbstractFrameController controller) {
super(
controller,
GlobalResourceLoader.getString(
null, null, "menu_edit_selectall"));
// tooltip text
setTooltipText(
GlobalResourceLoader.getString(
null, null, "menu_edit_selectall"));
// action command
setActionComm... | public SelectAllAction(AbstractFrameController controller) {
super(
controller,
GlobalResourceLoader.getString(
null, null, "menu_edit_selectall"));
// tooltip text
setTooltipText(
GlobalResourceLoader.getString(
null, null, "menu_edit_selectall_tooltip"));
// action command
setAc... |
public final void contextManagerChanged(
final ContextManagerEvent contextManagerEvent) {
final Set enabledContextIds = workbenchContextSupport.getContextManager().getEnabledContextIds();
final Map enabledContextTree = workbenchContextSupport.createContextTreeFor(enabledC... | public final void contextManagerChanged(
final ContextManagerEvent contextManagerEvent) {
final Set enabledContextIds = workbenchContextSupport.getContextManager().getEnabledContextIds();
final Map enabledContextTree = workbenchContextSupport.createFilteredContextTreeFor(... |
public static IScanner createScanner(boolean tokenizeComments, boolean tokenizeWhiteSpace, boolean assertMode, boolean recordLineSeparator){
Scanner scanner = new Scanner(tokenizeComments, tokenizeWhiteSpace, false, assertMode);
scanner.recordLineSeparator = recordLineSeparator;
return scanner;
}
| public static IScanner createScanner(boolean tokenizeComments, boolean tokenizeWhiteSpace, boolean assertMode, boolean recordLineSeparator){
Scanner scanner = new Scanner(tokenizeComments, tokenizeWhiteSpace, false/*nls*/, assertMode, null/*todo*/);
scanner.recordLineSeparator = recordLineSeparator;
return scan... |
protected void toStringInfo(int tab, StringBuffer buffer, Object info) {
buffer.append(this.tabString(tab));
if (this.names.length == 0) {
buffer.append("<default>"); //$NON-NLS-1$
} else {
toStringName(buffer);
}
if (info == null) {
buffer.append(" (not open)"); //$NON-NLS-1$
} else {
if (tab > 0) {
b... | protected void toStringInfo(int tab, StringBuffer buffer, Object info, boolean showResolvedInfo) {
buffer.append(this.tabString(tab));
if (this.names.length == 0) {
buffer.append("<default>"); //$NON-NLS-1$
} else {
toStringName(buffer);
}
if (info == null) {
buffer.append(" (not open)"); //$NON-NLS-1$
} el... |
public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
breakLabel = new Label();
continueLabel = new Label();
LoopingFlowContext loopingContext =
new LoopingFlowContext(
flowContext,
this,
breakLabel,
continueLabel,
currentScope);
Cons... | public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
breakLabel = new Label();
continueLabel = new Label();
LoopingFlowContext loopingContext =
new LoopingFlowContext(
flowContext,
this,
breakLabel,
continueLabel,
currentScope);
Cons... |
public static IScanner createScanner(boolean tokenizeComments, boolean tokenizeWhiteSpace, boolean assertMode, boolean recordLineSeparator){
PublicScanner scanner = new PublicScanner(tokenizeComments, tokenizeWhiteSpace, false/*nls*/, CompilerOptions.JDK1_3/*sourceLevel*/, null/*taskTags*/, null/*taskPriorities*/);... | public static IScanner createScanner(boolean tokenizeComments, boolean tokenizeWhiteSpace, boolean assertMode, boolean recordLineSeparator){
PublicScanner scanner = new PublicScanner(tokenizeComments, tokenizeWhiteSpace, false/*nls*/, assertMode ? CompilerOptions.JDK1_4 : CompilerOptions.JDK1_3/*sourceLevel*/, null... |
public void setEnclosingFig(Fig encloser) {
super.setEnclosingFig(encloser);
if (!(getOwner() instanceof MModelElement)) return;
MModelElement me = (MModelElement) getOwner();
MNamespace m = null;
ProjectBrowser pb = ProjectBrowser.TheInstance;
if (encloser != null && (encloser.getOwner() inst... | public void setEnclosingFig(Fig encloser) {
super.setEnclosingFig(encloser);
if (!(getOwner() instanceof MModelElement)) return;
MModelElement me = (MModelElement) getOwner();
MNamespace m = null;
ProjectBrowser pb = ProjectBrowser.TheInstance;
if (encloser != null && (encloser.getOwner() inst... |
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
dnsUNKRecord(dnsName _name, short _type, short _dclass, int _ttl,
MyStringTokenizer st, dnsName origin) throws IOException
{
super(_name, _type, _dclass, _ttl);
System.out.println("Unknown type: " + type);
System.exit(-1);
}
|
public OutgoingServerPanel(
JDialog dialog,
ActionListener listener,
String title,
String description,
ImageIcon icon,
boolean b) {
super(dialog, listener, title, description, icon);
JPanel panel = this;
panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
panel.setBorder(BorderFactory.cre... | public OutgoingServerPanel(
JDialog dialog,
ActionListener listener,
String title,
String description,
ImageIcon icon,
boolean b) {
super(dialog, listener, title, description, icon);
JPanel panel = this;
panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));
panel.setBorder(BorderFactory.cre... |
private void createIntro(WorkbenchWindow preferredWindow) {
if (getIntroDescriptor() == null)
return;
WorkbenchPage workbenchPage = preferredWindow.getActiveWorkbenchPage();
try {
workbenchPage.showView(IIntroConstants.INTRO_VIEW_ID, true);
setIntroStandby(introPart, false);
} catch (PartInitExcept... | private void createIntro(WorkbenchWindow preferredWindow) {
if (getIntroDescriptor() == null)
return;
WorkbenchPage workbenchPage = preferredWindow.getActiveWorkbenchPage();
try {
workbenchPage.showView(IIntroConstants.INTRO_VIEW_ID);
setIntroStandby(introPart, false);
} catch (PartInitException e)... |
protected void initTab(TabItem tabItem, IPresentablePart part) {
tabItem.setText(part.getName());
tabItem.setToolTipText(part.getTitleToolTipText());
Image tabImage = part.getTitleImage();
if (tabImage != tabItem.getImage()) {
tabItem.setImage(tabImage);
}
}
| protected void initTab(TabItem tabItem, IPresentablePart part) {
tabItem.setText(part.getName());
tabItem.setToolTipText(part.getTitleToolTip());
Image tabImage = part.getTitleImage();
if (tabImage != tabItem.getImage()) {
tabItem.setImage(tabImage);
}
}
|
public String toString() {
return "SourceElementTable("/*nonNLS*/ + fPackageTable + ")"/*nonNLS*/;
}
| public String toString() {
return "SourceElementTable(" + fPackageTable + ")"; //$NON-NLS-1$ //$NON-NLS-2$
}
|
protected void toStringInfo(int tab, StringBuffer buffer, Object info) {
buffer.append(this.tabString(tab));
if (getElementName().length() == 0) {
buffer.append("<default>"); //$NON-NLS-1$
} else {
buffer.append(getElementName());
}
if (info == null) {
buffer.append(" (not open)"); //$NON-NLS-1$
} else {
... | protected void toStringInfo(int tab, StringBuffer buffer, Object info) {
buffer.append(this.tabString(tab));
if (getElementName().length() == 0) {
buffer.append("<default>"); //$NON-NLS-1$
} else {
toStringName(buffer);
}
if (info == null) {
buffer.append(" (not open)"); //$NON-NLS-1$
} else {
if (tab > 0... |
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... |
public String getEditLink(String link, Query query)
{
// query.getValue() begins with a &
link = link + "?queryId=" + query.getQueryId()
+ "&refine=true"
+ "&action=Search&eventSubmit_doGotoEditQuery=foo"
+ query.getValue();
Long listId = query.getLi... | public String getEditLink(String link, Query query)
{
// query.getValue() begins with a &
link = link + "?queryId=" + query.getQueryId()
+ "&refine=true"
+ "&action=Search&eventSubmit_doPreparequery=foo"
+ query.getValue();
Long listId = query.getList... |
public Object getContext(String key, Object data)
throws PolicyContextException
{
Object context = null;
if( key.equalsIgnoreCase(EJB_ARGS_KEY) == false )
context = ejbContext.get();
return context;
}
| public Object getContext(String key, Object data)
throws PolicyContextException
{
Object context = null;
if( key.equalsIgnoreCase(EJB_ARGS_KEY) == true )
context = ejbContext.get();
return context;
}
|
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... |
public void refresh(IProgressMonitor monitor) throws JavaModelException {
try {
boolean reactivate = isActivated();
Vector listeners = fChangeListeners;
if (reactivate) {
deactivate();
}
fProgressMonitor = monitor;
if (monitor != null) {
monitor.beginTask(Util.bind("hierarchy.creating"), IProgressMon... | public void refresh(IProgressMonitor monitor) throws JavaModelException {
try {
boolean reactivate = isActivated();
Vector listeners = fChangeListeners;
if (reactivate) {
deactivate();
}
fProgressMonitor = monitor;
if (monitor != null) {
monitor.beginTask(Util.bind("hierarchy.creating"), IProgressMon... |
public void resolve(BlockScope scope) {
Binding existingVariable = scope.getBinding(name, BindingIds.VARIABLE, this);
if (existingVariable != null && existingVariable.isValidBinding()){
if (existingVariable instanceof LocalVariableBinding && this.hiddenVariableDepth == 0) {
LocalVariableBinding local = (... | public void resolve(BlockScope scope) {
Binding existingVariable = scope.getBinding(name, BindingIds.VARIABLE, this, true /*resolve*/);
if (existingVariable != null && existingVariable.isValidBinding()){
if (existingVariable instanceof LocalVariableBinding && this.hiddenVariableDepth == 0) {
LocalVariabl... |
public int hashCode() {
return this.genericType.hashCode();
}
void initialize(ReferenceBinding someGenericType, TypeBinding someBound) {
this.genericType = someGenericType;
this.bound = someBound;
if (someGenericType != null) {
this.fPackage = someGenericType.getPackage();
}
if (someBound != null) {
... | public int hashCode() {
return this.genericType.hashCode();
}
void initialize(ReferenceBinding someGenericType, TypeBinding someBound) {
this.genericType = someGenericType;
this.bound = someBound;
if (someGenericType != null) {
this.fPackage = someGenericType.getPackage();
}
if (someBound != null) {
... |
public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) {
boolean affected = false;
if (this.genericType == unresolvedType) {
this.genericType = resolvedType; // no raw conversion
affected = true;
} else if (this.bound == unresolvedType) {... | public void swapUnresolved(UnresolvedReferenceBinding unresolvedType, ReferenceBinding resolvedType, LookupEnvironment env) {
boolean affected = false;
if (this.genericType == unresolvedType) {
this.genericType = resolvedType; // no raw conversion
affected = true;
} else if (this.bound == unresolvedType) {... |
// managing private access
if ((syntheticAccessors == null) || (syntheticAccessors[READ] == null)) {
if (isStatic) {
codeStream.getstatic(fieldBinding);
} else {
codeStream.getfield(fieldBinding);
}
} else {
codeStream.invokestatic(syntheticAccessors[... | // managing private access
if ((syntheticAccessors == null) || (syntheticAccessors[READ] == null)) {
if (isStatic) {
codeStream.getstatic(fieldBinding);
} else {
codeStream.getfield(fieldBinding);
}
} else {
codeStream.invokestatic(syntheticAccessors[... |
// abstract private methods cannot occur nor abstract static............
}
if (isMethodUseDeprecated(this.binding, scope, true))
scope.problemReporter().deprecatedMethod(this.binding, this);
// from 1.5 compliance on, array#clone() returns the array type (but binding still shows Object)
if (this.actualReceiver... | // abstract private methods cannot occur nor abstract static............
}
if (isMethodUseDeprecated(this.binding, scope, true))
scope.problemReporter().deprecatedMethod(this.binding, this);
// from 1.5 compliance on, array#clone() returns the array type (but binding still shows Object)
if (this.actualReceiver... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.