buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public void testMain() {
CheckResourceBundle.checkResourceBundle(this,
new ActionResourceBundle());
}
| public void testMain() {
CheckResourceBundle.checkResourceBundle(this,
"org.argouml.i18n.ActionResourceBundle");
}
|
private ActionDeploymentDiagram() {
super(Translator.localize("CoreMenu", "DeploymentDiagram"));
}
| private ActionDeploymentDiagram() {
super("DeploymentDiagram");
}
|
private void stackPart(LayoutPart newPart, String viewId, String refId) {
setRefPart(viewId, newPart);
// force creation of the view layout rec
getViewLayoutRec(viewId, true);
// If ref part is in a folder than just add the
// new view to that folder.
ViewStack folde... | private void stackPart(LayoutPart newPart, String viewId, String refId) {
setRefPart(viewId, newPart);
// force creation of the view layout rec
getViewLayoutRec(viewId, true);
// If ref part is in a folder than just add the
// new view to that folder.
ViewStack folde... |
public void saveWidgetValues() {
IStructuredSelection sel = (IStructuredSelection) viewer.getSelection();
if (sel.size() > 0) {
WorkbenchWizardElement selectedWizard = (WorkbenchWizardElement) sel
.getFirstElement();
getDialogSettings().put(STORE_SELECTED_... | public void saveWidgetValues() {
IStructuredSelection sel = (IStructuredSelection) viewer.getSelection();
if (sel.size() > 0) {
WorkbenchWizardElement selectedWizard = (WorkbenchWizardElement) sel
.getFirstElement();
getDialogSettings().put(STORE_SELECTED_... |
public boolean execute(IProgressMonitor progressMonitor) {
if (progressMonitor != null && progressMonitor.isCanceled()) return COMPLETE;
try {
IIndex index = manager.getIndex(this.indexedContainer);
/* ensure no concurrent write access to index */
if (index == null)
return COMPLETE;
ReadWrite... | public boolean execute(IProgressMonitor progressMonitor) {
if (progressMonitor != null && progressMonitor.isCanceled()) return COMPLETE;
try {
IIndex index = manager.getIndex(this.indexedContainer, true /*reuse index file*/, true /*create if none*/);
/* ensure no concurrent write access to index */
... |
public StatusBar(TaskManager tm) {
taskManager = tm;
tm.addWorkerListChangeListener(this);
imageSequenceTimer = new ImageSequenceTimer();
setBorder(BorderFactory.createEmptyBorder(1, 2, 1, 2));
displayedWorkerIndex = 0;
workerListSize = 0;
label = new JLabe... | public StatusBar(TaskManager tm) {
taskManager = tm;
tm.addWorkerListChangeListener(this);
imageSequenceTimer = new ImageSequenceTimer();
setBorder(BorderFactory.createEmptyBorder(1, 2, 1, 2));
displayedWorkerIndex = 0;
workerListSize = 0;
label = new JLabe... |
public int discardPerWorkingCopyInfo(CompilationUnit workingCopy) throws JavaModelException {
// create the delta builder (this remembers the current content of the working copy)
// outside the perWorkingCopyInfos lock (see bug 50667)
JavaElementDeltaBuilder deltaBuilder = null;
if (workingCopy.isPrimary())... | public int discardPerWorkingCopyInfo(CompilationUnit workingCopy) throws JavaModelException {
// create the delta builder (this remembers the current content of the working copy)
// outside the perWorkingCopyInfos lock (see bug 50667)
JavaElementDeltaBuilder deltaBuilder = null;
if (workingCopy.isPrimary() ... |
public PropPanelDataType() {
super("DataType", _dataTypeIcon,3);
Class mclass = MDataType.class;
addCaption(Argo.localize("UMLMenu", "label.name"),1,0,0);
addField(new UMLTextField(this,new UMLTextProperty(mclass,"name","getName","setName")),1,0,0);
addCaption(Argo.localize("UMLMenu", "label.s... | public PropPanelDataType() {
super("DataType", _dataTypeIcon,3);
Class mclass = MDataType.class;
addCaption(Argo.localize("UMLMenu", "label.name"),1,0,0);
addField(new UMLTextField(this,new UMLTextProperty(mclass,"name","getName","setName")),1,0,0);
addCaption(Argo.localize("UMLMenu", "label.s... |
public void execute(Worker worker) throws Exception {
ComposerCommandReference[] r =
(ComposerCommandReference[]) getReferences();
ComposerController composerController = r[0].getComposerController();
AccountItem item = ((ComposerModel)composerController.getModel()).getAccountItem();
SendableMessage mes... | public void execute(Worker worker) throws Exception {
ComposerCommandReference[] r =
(ComposerCommandReference[]) getReferences();
ComposerController composerController = r[0].getComposerController();
AccountItem item = ((ComposerModel)composerController.getModel()).getAccountItem();
SendableMessage mes... |
public final int sourceStart() {
return scope.referenceContext.sourceStart;
}
SimpleLookupTable storedAnnotations(boolean forceInitialize) {
if (forceInitialize && this.storedAnnotations == null) {
this.scope.referenceCompilationUnit().compilationResult.hasAnnotations = true;
if (!this.scope.environment().storeAn... | public final int sourceStart() {
return scope.referenceContext.sourceStart;
}
SimpleLookupTable storedAnnotations(boolean forceInitialize) {
if (forceInitialize && this.storedAnnotations == null) {
this.scope.referenceCompilationUnit().compilationResult.hasAnnotations = true;
if (!this.scope.environment().globalO... |
public void doService(Request req, Response res)
throws Exception
{
String location = (String)
req.getAttribute("javax.servlet.error.message");
Context ctx=req.getContext();
//location = makeAbsolute(req, location);
if( debug>0) ctx.log("Redirect " + location + " " + req );
res.setContentType("te... | public void doService(Request req, Response res)
throws Exception
{
String location = (String)
req.getAttribute("javax.servlet.error.message");
Context ctx=req.getContext();
location = makeAbsolute(req, location);
if( debug>0) ctx.log("Redirect " + location + " " + req );
res.setContentType("text... |
private final void addHandlerSubmissionReal(
final HandlerSubmission handlerSubmission) {
final String commandId = handlerSubmission.getCommandId();
List handlerSubmissions2 = (List) handlerSubmissionsByCommandId
.get(commandId);
if (handlerSubmissions2 == null) {
handlerSubmissions2 = new ArrayList()... | private final void addHandlerSubmissionReal(
final HandlerSubmission handlerSubmission) {
final String commandId = handlerSubmission.getCommandId();
List handlerSubmissions2 = (List) handlerSubmissionsByCommandId
.get(commandId);
if (handlerSubmissions2 == null) {
handlerSubmissions2 = new ArrayList(1... |
private void setCoolItemSize(final CoolItem coolItem) {
// there is no coolItem when the bar is on the left
if (currentLocation == LEFT)
return;
ToolBar toolbar = perspectiveBar.getControl();
if (toolbar == null)
return;
// calculate the minimum width
/* int minWidth = 0;
if (perspectiveBar.get... | private void setCoolItemSize(final CoolItem coolItem) {
// there is no coolItem when the bar is on the left
if (currentLocation == LEFT)
return;
ToolBar toolbar = perspectiveBar.getControl();
if (toolbar == null)
return;
// calculate the minimum width
/* int minWidth = 0;
if (perspectiveBar.get... |
public Rfc822Header() {
hashTable = new Hashtable();
}
| public Rfc822Header() {
hashTable = new Hashtable(20);
}
|
public CodeSnippetCompiler(
INameEnvironment environment,
IErrorHandlingPolicy policy,
Map settings,
ICompilerRequestor requestor,
IProblemFactory problemFactory,
EvaluationContext evaluationContext,
int codeSnippetStart,
int codeSnippetEnd) {
super(environment, policy, settings, requestor, problem... | public CodeSnippetCompiler(
INameEnvironment environment,
IErrorHandlingPolicy policy,
Map settings,
ICompilerRequestor requestor,
IProblemFactory problemFactory,
EvaluationContext evaluationContext,
int codeSnippetStart,
int codeSnippetEnd) {
super(environment, policy, settings, requestor, problem... |
protected boolean readElement(IConfigurationElement element) {
String tagName = element.getName();
if (tagName.equals(IWorkbenchRegistryConstants.TAG_OBJECT_CONTRIBUTION)) {
processObjectContribution(element);
return true;
}
if (tagName.equals(IWorkbenchRegist... | protected boolean readElement(IConfigurationElement element) {
String tagName = element.getName();
if (tagName.equals(IWorkbenchRegistryConstants.TAG_OBJECT_CONTRIBUTION)) {
processObjectContribution(element);
return true;
}
if (tagName.equals(IWorkbenchRegist... |
static public void main(String[] args) {
if(args.length != 3) {
usage("Wrong number of arguments.");
}
String tcfBindingName = args[0];
String topicBindingName = args[1];
PropertyConfigurator.configure(args[2]);
Category.getDefaultHierarchy().addRenderer(Message.class,
... | static public void main(String[] args) {
if(args.length != 3) {
usage("Wrong number of arguments.");
}
String tcfBindingName = args[0];
String topicBindingName = args[1];
PropertyConfigurator.configure(args[2]);
Category.getDefaultHierarchy().addRenderer(Message.class,
... |
public void run() {
if (workbenchWindow != null) {
setChecked(((WorkbenchWindow) workbenchWindow)
.isCoolBarLocked());
}
}
});
WorkbenchHelp.setHelp(this, IHelpContextIds.LOCK_TOOLBAR_ACTION);
}
| public void run() {
if (workbenchWindow != null) {
setChecked(((WorkbenchWindow) workbenchWindow)
.isCoolBarLocked());
}
}
});
WorkbenchHelp.setHelp(this, IWorkbenchHelpContextIds.LOCK_TOOLBAR_ACTION)... |
private AnonymousClassDeclaration optionalAnonymousClassDeclaration = null;
/**
* Creates a new AST node for an enumeration constants declaration owned by
* the given AST. By default, the enumeration constant has an unspecified,
* but legal, name; no javadoc; an empty list of modifiers and annotations;
* an... | private AnonymousClassDeclaration optionalAnonymousClassDeclaration = null;
/**
* Creates a new AST node for an enumeration constants declaration owned by
* the given AST. By default, the enumeration constant has an unspecified,
* but legal, name; no javadoc; an empty list of modifiers and annotations;
* an... |
protected char[] computeUniqueKey(MethodBinding methodBinding) {
// declaring class
char[] declaringKey = this.declaringClass.computeUniqueKey();
int declaringLength = declaringKey.length;
// selector
int selectorLength = this.selector == TypeConstants.INIT ? 0 : this.selector.length;
// generic signature
c... | protected char[] computeUniqueKey(MethodBinding methodBinding) {
// declaring class
char[] declaringKey = this.declaringClass.computeUniqueKey();
int declaringLength = declaringKey.length;
// selector
int selectorLength = this.selector == TypeConstants.INIT ? 0 : this.selector.length;
// generic signature
c... |
protected void storeProblemsFor(SourceFile sourceFile, CategorizedProblem[] problems) throws CoreException {
if (sourceFile == null || problems == null || problems.length == 0) return;
String missingClassFile = null;
IResource resource = sourceFile.resource;
HashSet managedMarkerTypes = JavaModelManager.getJavaMod... | protected void storeProblemsFor(SourceFile sourceFile, CategorizedProblem[] problems) throws CoreException {
if (sourceFile == null || problems == null || problems.length == 0) return;
String missingClassFile = null;
IResource resource = sourceFile.resource;
HashSet managedMarkerTypes = JavaModelManager.getJavaMod... |
public boolean isVisible() {
IObjectActivityManager objectManager = PlatformUI.getWorkbench().getObjectActivityManager(PLUGIN_CONTRIBUTION_ITEM, false);
// if there was no manager return isVisible().
if (objectManager == null)
return super.isVisible();
Object activityObject = getActivityOb... | public boolean isVisible() {
IObjectActivityManager objectManager = PlatformUI.getWorkbench().getObjectActivityManager(PLUGIN_CONTRIBUTION_ITEM, false);
// if there was no manager return isVisible().
if (objectManager == null)
return super.isVisible();
Object activityObject = getActivityOb... |
public void body(String text) throws Exception
{
log().debug("(" + getState() + ") attachment type body()");
if(getState().equals(DBImport.STATE_DB_INSERTION))
{
Attachment attachment = (Attachment)digester.pop();
attachment.setName(text);
digester.pus... | public void body(String text) throws Exception
{
log().debug("(" + getState() + ") attachment type body()");
if(getState().equals(XMLImport.STATE_DB_INSERTION))
{
Attachment attachment = (Attachment)digester.pop();
attachment.setName(text);
digester.pu... |
public static String id() {
return "4.4";
}
| public static String id() {
return "4.5-SNAPSHOT-20070720-1711";
}
|
public static void createProblemType(TypeDeclaration typeDeclaration, CompilationResult unitResult) {
SourceTypeBinding typeBinding = typeDeclaration.binding;
ClassFile classFile = new CodeSnippetClassFile(typeBinding, null, true);
// inner attributes
if (typeBinding.isMemberType())
classFile.recordEnclosingType... | public static void createProblemType(TypeDeclaration typeDeclaration, CompilationResult unitResult) {
SourceTypeBinding typeBinding = typeDeclaration.binding;
ClassFile classFile = new CodeSnippetClassFile(typeBinding, null, true);
// inner attributes
if (typeBinding.isMemberType())
classFile.recordEnclosingType... |
public void setProject(IProject project) {
fProject = project;
fParent = JavaModelManager.getJavaModel(project.getWorkspace());
fName = project.getName();
}
| public void setProject(IProject project) {
fProject = project;
fParent = JavaModelManager.getJavaModelManager().getJavaModel();
fName = project.getName();
}
|
public class InitializerElementInfo extends MemberElementInfo {
/*******************************************************************************
* 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 Comm... | public class InitializerElementInfo extends MemberElementInfo {
/*******************************************************************************
* 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 Comm... |
public void execute() throws BuildException {
if (this.file == null) {
throw new BuildException(AntAdapterMessages.getString("checkDebugAttributes.file.argument.cannot.be.null")); //$NON-NLS-1$
}
if (this.property == null) {
throw new BuildException(AntAdapterMessages.getString("checkDebugAttributes.proper... | public void execute() throws BuildException {
if (this.file == null) {
throw new BuildException(AntAdapterMessages.getString("checkDebugAttributes.file.argument.cannot.be.null")); //$NON-NLS-1$
}
if (this.property == null) {
throw new BuildException(AntAdapterMessages.getString("checkDebugAttributes.proper... |
protected void executeOperation() throws JavaModelException {
checkCanceled();
try {
beginTask("", 1); //$NON-NLS-1$
if (JavaModelManager.CP_RESOLVE_VERBOSE)
verbose_set_variables();
JavaModelManager manager = JavaModelManager.getJavaModelManager();
if (manager.variablePutIfInitializingWithSame... | protected void executeOperation() throws JavaModelException {
checkCanceled();
try {
beginTask("", 1); //$NON-NLS-1$
if (JavaModelManager.CP_RESOLVE_VERBOSE)
verbose_set_variables();
JavaModelManager manager = JavaModelManager.getJavaModelManager();
if (manager.variablePutIfInitializingWithSame... |
protected DOMNode newDOMNode() {
return new DOMType();
}
/**
* Normalizes this <code>DOMNode</code>'s source positions to include whitespace preceeding
* the node on the line on which the node starts, and all whitespace after the node up to
* the next node's start
*/
void normalize(ILineStartFinder finder) {
// p... | protected DOMNode newDOMNode() {
return new DOMType();
}
/**
* Normalizes this <code>DOMNode</code>'s source positions to include whitespace preceeding
* the node on the line on which the node starts, and all whitespace after the node up to
* the next node's start
*/
void normalize(ILineStartFinder finder) {
// p... |
public static SearchPattern createPattern(IJavaElement element, int limitTo) {
SearchPattern searchPattern = null;
int lastDot;
switch (element.getElementType()) {
case IJavaElement.FIELD :
IField field = (IField) element;
String fullDeclaringName = field.getDeclaringType().getFullyQualifiedName().replace('... | public static SearchPattern createPattern(IJavaElement element, int limitTo) {
SearchPattern searchPattern = null;
int lastDot;
switch (element.getElementType()) {
case IJavaElement.FIELD :
IField field = (IField) element;
String fullDeclaringName = field.getDeclaringType().getFullyQualifiedName().replace('... |
public POP3PreProcessingFilterPluginHandler() {
super(
"org.columba.mail.pop3preprocessingfilter",
"org/columba/mail/filter/pop3preprocessingfilter.xml");
parentNode =
getConfig().getRoot().getElement("pop3preprocessingfilterlist");
}
| public POP3PreProcessingFilterPluginHandler() {
super(
"org.columba.mail.pop3preprocessingfilter",
"org/columba/mail/plugin/pop3preprocessingfilter.xml");
parentNode =
getConfig().getRoot().getElement("pop3preprocessingfilterlist");
}
|
public char[] computeConstantPoolName(LocalTypeBinding localType) {
if (localType.constantPoolName() != null) {
return localType.constantPoolName();
}
// delegates to the outermost enclosing classfile, since it is the only one with a global vision of its innertypes.
if (constantPoolNameUsage == null)
constantP... | public char[] computeConstantPoolName(LocalTypeBinding localType) {
if (localType.constantPoolName() != null) {
return localType.constantPoolName();
}
// delegates to the outermost enclosing classfile, since it is the only one with a global vision of its innertypes.
if (constantPoolNameUsage == null)
constantP... |
public interface GraphEdgeHooks extends java.io.Serializable {
// Copyright (c) 1996-98 The Regents of the University of California. All
// Rights Reserved. Permission to use, copy, modify, and distribute this
// software and its documentation for educational, research and non-profit
// purposes, without fee, and with... | public interface GraphEdgeHooks extends java.io.Serializable {
// Copyright (c) 1996-98 The Regents of the University of California. All
// Rights Reserved. Permission to use, copy, modify, and distribute this
// software and its documentation for educational, research and non-profit
// purposes, without fee, and with... |
public
MessageRenderer() {
}
/**
Render a {@link Message}.
*/
| public
MessageRenderer() {
}
/**
Render a {@link javax.jms.Message}.
*/
|
protected void append(LoggingEvent event) {
try {
Connection connection = connectionSource.getConnection();
connection.setAutoCommit(false);
// sequence_number BIGINT NOT NULL,
// timestamp BIGINT NOT NULL,
// rendered_message TEXT NOT NULL,
// logger_name VARCHAR... | protected void append(LoggingEvent event) {
try {
Connection connection = connectionSource.getConnection();
connection.setAutoCommit(false);
// sequence_number BIGINT NOT NULL,
// timestamp BIGINT NOT NULL,
// rendered_message TEXT NOT NULL,
// logger_name VARCHAR... |
public void createParser(JavaProject project) throws JavaModelException {
// cleaup and recreate file name environment
if (this.nameEnvironment != null) {
this.nameEnvironment.cleanup();
}
this.nameEnvironment = this.getNameEnvironment(project);
// create lookup environment
CompilerOptions options = ... | public void createParser(JavaProject project) throws JavaModelException {
// cleaup and recreate file name environment
if (this.nameEnvironment != null) {
this.nameEnvironment.cleanup();
}
this.nameEnvironment = this.getNameEnvironment(project);
// create lookup environment
CompilerOptions options = ... |
public IAnnotationBinding[] getAnnotations() {
try {
INameEnvironment nameEnvironment = this.binding.environment.nameEnvironment;
if (!(nameEnvironment instanceof SearchableEnvironment))
return AnnotationBinding.NoAnnotations;
NameLookup nameLookup = ((SearchableEnvironment) nameEnvironment).nameLookup;... | public IAnnotationBinding[] getAnnotations() {
try {
INameEnvironment nameEnvironment = this.binding.environment.nameEnvironment;
if (!(nameEnvironment instanceof SearchableEnvironment))
return AnnotationBinding.NoAnnotations;
NameLookup nameLookup = ((SearchableEnvironment) nameEnvironment).nameLookup;... |
public void generateSyntheticBodyForMethodAccess(SyntheticMethodBinding accessMethod) {
initializeMaxLocals(accessMethod);
MethodBinding targetMethod = accessMethod.targetMethod;
TypeBinding[] parameters = targetMethod.parameters;
int length = parameters.length;
TypeBinding[] arguments = accessMethod.purpose == Sy... | public void generateSyntheticBodyForMethodAccess(SyntheticMethodBinding accessMethod) {
initializeMaxLocals(accessMethod);
MethodBinding targetMethod = accessMethod.targetMethod;
TypeBinding[] parameters = targetMethod.parameters;
int length = parameters.length;
TypeBinding[] arguments = accessMethod.purpose == Sy... |
// 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... |
public void doService(Request req, Response res)
throws Exception
{
// this is how get locale is implemented. Ugly, but it's in
// the next round of optimizations
Locale locale=RequestUtil.getLocale(req);
StringManager sm=StringManager.
getManager("org.apache.tomcat.resources",locale);
DateFormat dat... | public void doService(Request req, Response res)
throws Exception
{
// this is how get locale is implemented. Ugly, but it's in
// the next round of optimizations
Locale locale=RequestUtil.getLocale(req);
StringManager sm=StringManager.
getManager("org.apache.tomcat.resources",locale);
DateFormat dat... |
public void setType(Type type) {
if (type == null) {
throw new IllegalArgumentException();
}
replaceChild((ASTNode) this.type, (ASTNode) type, false);
this.type = type;
}
| public void setType(Type type) {
if (type == null) {
throw new IllegalArgumentException();
}
replaceChild(this.type, type, false);
this.type = type;
}
|
public static void addContact(int uid, String address) {
if (address == null) {
return;
}
if (address.length() == 0)
return;
Address adr;
try {
adr = Address.parse(address);
} catch (ParserException e1) {
if ( MainInterface.DEBUG)
e1.printStackTrace();
return;
}
... | public static void addContact(int uid, String address) {
if (address == null) {
return;
}
if (address.length() == 0)
return;
Address adr;
try {
adr = Address.parse(address);
} catch (ParserException e1) {
if ( MainInterface.DEBUG)
e1.printStackTrace();
return;
}
... |
public void run(RunNotifier notifier) {
notifier.fireTestIgnored(getDescription());
notifier.fireTestIgnoredReason(getDescription(),
new AssumptionViolatedException(fTestClass.getAnnotation(
Ignore.class).value()));
}
| public void run(RunNotifier notifier) {
notifier.fireTestIgnored(getDescription());
notifier.fireTestAssumptionFailed(getDescription(),
new AssumptionViolatedException(fTestClass.getAnnotation(
Ignore.class).value()));
}
|
public void testRunRealtime() throws Exception {
processor = new CommandProcessor(true);
processor.addOp( new TestCommand(this, 1));
processor.addOp( new TestCommand(this, 2));
processor.addOp( new TestCommand(this, 3));
processor.addOp( new TestCommand(this, 4, Command.REALTIM... | public void testRunRealtime() throws Exception {
processor = new CommandProcessor(true);
processor.addOp( new TestCommand(this, 1));
processor.addOp( new TestCommand(this, 2));
processor.addOp( new TestCommand(this, 3));
processor.addOp( new TestCommand(this, 4, Command.REALTIM... |
public void resolveStatements() {
if (!CharOperation.equals(scope.enclosingSourceType().sourceName, selector)){
scope.problemReporter().missingReturnType(this);
}
if (this.binding != null && this.binding.declaringClass.isAnnotationType()) {
scope.problemReporter().annotationTypeDeclarationCannotHaveConst... | public void resolveStatements() {
if (!CharOperation.equals(scope.enclosingSourceType().sourceName, selector)){
scope.problemReporter().missingReturnType(this);
}
if (this.binding != null && this.binding.declaringClass.isAnnotationType()) {
scope.problemReporter().annotationTypeDeclarationCannotHaveConst... |
public void find(File f, String pattern, boolean verbose) {
if (verbose) {
System.out.println(Main.bind("scanning.start"/*nonNLS*/,f.getAbsolutePath()));
}
find0(f, pattern, verbose);
System.arraycopy(resultFiles, 0, (resultFiles = new String[counter]), 0, counter);
if (verbose) {
System.out.println();
Syste... | public void find(File f, String pattern, boolean verbose) {
if (verbose) {
System.out.println(Main.bind("scanning.start"/*nonNLS*/,f.getAbsolutePath()));
}
find0(f, pattern, verbose);
System.arraycopy(resultFiles, 0, (resultFiles = new String[counter]), 0, counter);
if (verbose) {
System.out.println();
Syste... |
public final boolean areTypesCastCompatible(BlockScope scope, TypeBinding castTb, TypeBinding expressionTb) {
//see specifications p.68
//A more complete version of this method is provided on
//CastExpression (it deals with constant and need runtime checkcast)
//========ARRAY===============
if (expressionTb.isAr... | public final boolean areTypesCastCompatible(BlockScope scope, TypeBinding castTb, TypeBinding expressionTb) {
//see specifications p.68
//A more complete version of this method is provided on
//CastExpression (it deals with constant and need runtime checkcast)
//========ARRAY===============
if (expressionTb.isAr... |
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
int pc = codeStream.position;
if (valueRequired) {
codeStream.generateConstant(constant, implicitConversion);
}
codeStream.recordPositionsFrom(pc, this.sourceStart);
}
| public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
int pc = codeStream.position;
if (valueRequired) {
codeStream.generateConstant(this.constant, this.implicitConversion);
}
codeStream.recordPositionsFrom(pc, this.sourceStart);
}
|
int UnsafeTypeConversion = TypeRelated + 532;
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License ... | int UnsafeTypeConversion = TypeRelated + 532;
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License ... |
public void actionPerformed(ActionEvent evt) {
URLController c = new URLController();
try {
c.open(
new URL("http://columba.sourceforge.net/index.php?page=license"));
} catch (MalformedURLException mue) {
}
}
| public void actionPerformed(ActionEvent evt) {
URLController c = new URLController();
try {
c.open(
new URL("http://columba.sourceforge.net/license.php"));
} catch (MalformedURLException mue) {
}
}
|
public void handle(
int problemId,
String[] problemArguments,
String[] messageArguments,
int severity,
int problemStartPosition,
int problemEndPosition,
ReferenceContext referenceContext,
CompilationResult unitResult) {
if (severity == Ignore)
return;
// if no reference context, we need to abort fro... | public void handle(
int problemId,
String[] problemArguments,
String[] messageArguments,
int severity,
int problemStartPosition,
int problemEndPosition,
ReferenceContext referenceContext,
CompilationResult unitResult) {
if (severity == Ignore)
return;
// if no reference context, we need to abort fro... |
public void handleKeyReleased(KeyEvent event) {
if (event.keyCode == SWT.F5) {
refreshAll();
}
}
| public void handleKeyReleased(KeyEvent event) {
if (event.keyCode == SWT.F5 && event.stateMask == 0) {
refreshAll();
}
}
|
protected void storeProblemsFor(IResource resource, IProblem[] problems) throws CoreException {
if (resource == null || problems == null || problems.length == 0) return;
String missingClassFile = null;
for (int i = 0, length = problems.length; i < length; i++) {
IProblem problem = problems[i];
int id = problem.... | protected void storeProblemsFor(IResource resource, IProblem[] problems) throws CoreException {
if (resource == null || problems == null || problems.length == 0) return;
String missingClassFile = null;
for (int i = 0, length = problems.length; i < length; i++) {
IProblem problem = problems[i];
int id = problem.... |
public void propertySet(MElementEvent e) {
((UMLPlainTextDocument)getDocument()).propertySet(e);
}
| public void propertySet(MElementEvent e) {
// ((UMLPlainTextDocument)getDocument()).propertySet(e);
}
|
public void generateCode(BlockScope currentScope, CodeStream codeStream) {
int pc = codeStream.position;
if (targetLabel != null) {
targetLabel.codeStream = codeStream;
if (statement != null) {
statement.generateCode(currentScope, codeStream);
}
targetLabel.place();
}
// May loose some local... | public void generateCode(BlockScope currentScope, CodeStream codeStream) {
int pc = codeStream.position;
if (targetLabel != null) {
targetLabel.initialize(codeStream);
if (statement != null) {
statement.generateCode(currentScope, codeStream);
}
targetLabel.place();
}
// May loose some local ... |
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 ... |
public static char[][] toCompoundChars(String s) {
int len = s.length();
if (len == 0) {
return new char[0][];
}
int segCount = 1;
for (int off = s.indexOf('.'); off != -1; off = s.indexOf('.', off + 1)) {
++segCount;
}
char[][] segs = new char[segCount][];
int start = 0;
for (int i = 0; i < se... | public static char[][] toCompoundChars(String s) {
int len = s.length();
if (len == 0) {
return CharOperation.NO_CHAR_CHAR;
}
int segCount = 1;
for (int off = s.indexOf('.'); off != -1; off = s.indexOf('.', off + 1)) {
++segCount;
}
char[][] segs = new char[segCount][];
int start = 0;
for (int ... |
private TypeBinding internalResolveType(Scope scope) {
// Answer the signature return type
// Base type promotion
this.constant = NotAConstant;
if (this.receiver == null) {
this.receiverType = scope.enclosingSourceType();
} else if (scope.kind == Scope.CLASS_SCOPE) {
this.receiverType = this.receiver.r... | private TypeBinding internalResolveType(Scope scope) {
// Answer the signature return type
// Base type promotion
this.constant = NotAConstant;
if (this.receiver == null) {
this.receiverType = scope.enclosingSourceType();
} else if (scope.kind == Scope.CLASS_SCOPE) {
this.receiverType = this.receiver.r... |
public void run() {
new AboutDialog(workbenchWindow.getShell()).open();
}
| public void run() {
new AboutDialog(workbenchWindow).open();
}
|
public void addJar(String jarFileName) throws IOException {
if (!jars.contains(jarFileName)) {
Constants.message("jsp.message.adding_jar",
new Object[] { jarFileName },
Log.INFORMATION);
jars.addElement(jarFileN... | public void addJar(String jarFileName) throws IOException {
if (!jars.contains(jarFileName)) {
Constants.message("jsp.message.adding_jar",
new Object[] { jarFileName },
Log.DEBUG);
jars.addElement(jarFileName);
... |
private final Request createSubRequest( String host, String urlPath ) {
String queryString=null;
int i = urlPath.indexOf("?");
int len=urlPath.length();
if (i>-1) {
if(i<len)
queryString =urlPath.substring(i + 1, urlPath.length());
urlPath = urlPath.substring(0, i);
}
Request lr = new Request();
... | private final Request createSubRequest( String host, String urlPath ) {
String queryString=null;
int i = urlPath.indexOf("?");
int len=urlPath.length();
if (i>-1) {
if(i<len)
queryString =urlPath.substring(i + 1, urlPath.length());
urlPath = urlPath.substring(0, i);
}
Request lr = new Request();
... |
public void propagateInnerEmulationForAllLocalTypes() {
isPropagatingInnerClassEmulation = true;
for (int i = 0, max = this.localTypeCount; i < max; i++) {
LocalTypeBinding localType = localTypes[i];
// only propagate for reachable local types
if ((localType.scope.referenceType().bits & IsReachableM... | public void propagateInnerEmulationForAllLocalTypes() {
isPropagatingInnerClassEmulation = true;
for (int i = 0, max = this.localTypeCount; i < max; i++) {
LocalTypeBinding localType = localTypes[i];
// only propagate for reachable local types
if ((localType.scope.referenceType().bits & IsReachable)... |
private IStatus restoreState(IMemento memento) {
MultiStatus result = new MultiStatus(
PlatformUI.PLUGIN_ID,IStatus.OK,
WorkbenchMessages.getString("Workbench.problemsRestoring"),null); //$NON-NLS-1$
// Read perspective history.
// This must be done before we recreate the windows, because it is
// consu... | private IStatus restoreState(IMemento memento) {
MultiStatus result = new MultiStatus(
PlatformUI.PLUGIN_ID,IStatus.OK,
WorkbenchMessages.getString("Workbench.problemsRestoring"),null); //$NON-NLS-1$
// Read perspective history.
// This must be done before we recreate the windows, because it is
// consu... |
public static void showEvaluateLinesDialog(View view)
{
String command = GUIUtilities.input(view,"beanshell-eval-line",null);
if(command != null)
{
if(!command.endsWith(";"))
command = command + ";";
if(view.getMacroRecorder() != null)
view.getMacroRecorder().record(1,command);
JEditTextArea ... | public static void showEvaluateLinesDialog(View view)
{
String command = GUIUtilities.input(view,"beanshell-eval-line",null);
if(command != null)
{
if(!command.endsWith(";"))
command = command + ";";
if(view.getMacroRecorder() != null)
view.getMacroRecorder().record(1,command);
JEditTextArea ... |
public IMethodBinding[] getDeclaredMethods() {
try {
if (isClass() || isInterface() || isEnum()) {
ReferenceBinding referenceBinding = (ReferenceBinding) this.binding;
org.eclipse.jdt.internal.compiler.lookup.MethodBinding[] methods = referenceBinding.methods();
int length = methods.length;
int re... | public IMethodBinding[] getDeclaredMethods() {
try {
if (isClass() || isInterface() || isEnum() || isAnnotation()) {
ReferenceBinding referenceBinding = (ReferenceBinding) this.binding;
org.eclipse.jdt.internal.compiler.lookup.MethodBinding[] methods = referenceBinding.methods();
int length = methods.... |
protected boolean visitNode(ASTNode node) {
if(this.blockDepth > 0) {
int start = node.getStartPosition();
int end = start + node.getLength() - 1;
// continue to visit the node only if it contains tokens modifications
if(this.insertedTokensFlagged != null) {
for (int i = 0; i < this.insertedT... | protected boolean visitNode(ASTNode node) {
if(this.blockDepth > 0) {
int start = node.getStartPosition();
int end = start + node.getLength() - 1;
// continue to visit the node only if it contains tokens modifications
if(this.insertedTokensFlagged != null) {
for (int i = 0; i < this.insertedT... |
protected void closing(Object info) throws JavaModelException {
IClasspathEntry[] entries = getRawClasspath();
for (int i = 0; i < entries.length; i++) {
if(entries[i].getEntryKind() == IClasspathEntry.CPE_LIBRARY) {
IPackageFragmentRoot[] roots = getPackageFragmentRoots(entries[i]);
for (int j = 0; j <... | protected void closing(Object info) throws JavaModelException {
IClasspathEntry[] entries = getRawClasspath();
for (int i = 0; i < entries.length; i++) {
if(entries[i].getEntryKind() == IClasspathEntry.CPE_LIBRARY) {
IPackageFragmentRoot[] roots = getPackageFragmentRoots(entries[i]);
for (int j = 0; j <... |
public boolean complainIfUnreachable(Statement statement, BlockScope scope) {
// Report an error if necessary
boolean isDeadEnd;
if ((isDeadEnd = (this == DeadEnd)) || isFakeReachable) {
statement.bits &= ~Statement.IsReachableMASK;
/* EXTRA REFERENCE RECORDING
statement.recordUnreachableReferences(scope.refe... | public boolean complainIfUnreachable(Statement statement, BlockScope scope) {
// Report an error if necessary
boolean isDeadEnd;
if ((isDeadEnd = (this == DeadEnd)) || isFakeReachable) {
statement.bits &= ~AstNode.IsReachableMASK;
/* EXTRA REFERENCE RECORDING
statement.recordUnreachableReferences(scope.refere... |
public void actionPerformed(ActionEvent e) {
String action = e.getActionCommand();
if (action.equals("ACCOUNT_PREFERENCES")) {
org.columba.mail.gui.config.account.ConfigFrame frame =
new org.columba.mail.gui.config.account.ConfigFrame();
} else if (
action.equals(
frameController
.globalActi... | public void actionPerformed(ActionEvent e) {
String action = e.getActionCommand();
if (action.equals("ACCOUNT_PREFERENCES")) {
org.columba.mail.gui.config.account.ConfigFrame frame =
new org.columba.mail.gui.config.account.ConfigFrame();
} else if (
action.equals(
frameController
.globalActi... |
protected ShowViewAction(IWorkbenchWindow window, IViewDescriptor desc, boolean makeFast) {
super(""); //$NON-NLS-1$
// TODO: is this wart still needed?
String accel = desc instanceof ViewDescriptor ? ((ViewDescriptor) desc)
.getAccelerator() : null;
String label = '&' ... | protected ShowViewAction(IWorkbenchWindow window, IViewDescriptor desc, boolean makeFast) {
super(""); //$NON-NLS-1$
// TODO: is this wart still needed?
String accel = desc instanceof ViewDescriptor ? ((ViewDescriptor) desc)
.getAccelerator() : null;
String label = desc... |
public TreeController(
MailFrameController mailFrameController,
TreeModel model) {
this.model = model;
this.mailFrameController = mailFrameController;
view = new TreeView(model);
actionListener = new FolderTreeActionListener(this);
treeSelectionManager = new TreeSelectionManager();
mailFrameCont... | public TreeController(
MailFrameController mailFrameController,
TreeModel model) {
this.model = model;
this.mailFrameController = mailFrameController;
view = new TreeView(mailFrameController, model);
actionListener = new FolderTreeActionListener(this);
treeSelectionManager = new TreeSelectionManager(... |
public void actionPerformed(ActionEvent arg0) {
AddressbookFrameMediator mediator = (AddressbookFrameMediator) frameMediator;
// get selected folder
AddressbookFolder sourceFolder = (AddressbookFolder) mediator.getTree()
.getSelectedFolder();
// get selected contact/group card
Object[] uids = media... | public void actionPerformed(ActionEvent arg0) {
AddressbookFrameMediator mediator = (AddressbookFrameMediator) frameMediator;
// get selected folder
AddressbookFolder sourceFolder = (AddressbookFolder) mediator.getTree()
.getSelectedFolder();
// get selected contact/group card
String[] uids = media... |
public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, IProgressMonitor progressMonitor) {
IPackageFragmentRoot root = (IPackageFragmentRoot)this.localVariable.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT);
String documentPath;
String rela... | public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, IProgressMonitor progressMonitor) {
IPackageFragmentRoot root = (IPackageFragmentRoot)this.localVariable.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT);
String documentPath;
String rela... |
public void execute(Worker worker) throws Exception {
MailFrameController mailFrameController =
(MailFrameController) frameController;
FolderCommandReference[] r = (FolderCommandReference[]) getReferences();
Object[] uids = r[0].getUids();
Folder srcFolder = (Folder) r[0].getFolder();
for (int j = ... | public void execute(Worker worker) throws Exception {
MailFrameController mailFrameController =
(MailFrameController) frameController;
FolderCommandReference[] r = (FolderCommandReference[]) getReferences();
Object[] uids = r[0].getUids();
Folder srcFolder = (Folder) r[0].getFolder();
for (int j = ... |
public int startPosOffset = 0;
// Internal fields
char[] codeSnippet;
char[] snippetPackageName;
char[][] snippetImports;
char[] snippetClassName;
char[] snippetVarClassName;
char[] snippetDeclaringTypeName;
// Mapping of external local variables
char[][] localVarNames;
char[][] localVarTypeNames;
int[] ... | public int startPosOffset = 0;
// Internal fields
char[] codeSnippet;
char[] snippetPackageName;
char[][] snippetImports;
char[] snippetClassName;
char[] snippetVarClassName;
char[] snippetDeclaringTypeName;
// Mapping of external local variables
char[][] localVarNames;
char[][] localVarTypeNames;
int[] ... |
private void reportDeclaration(TypeBinding typeBinding, int maxType, MatchLocator locator) throws CoreException {
IType type = locator.lookupType(typeBinding);
if (type == null) return; // case of a secondary type
IResource resource = type.getUnderlyingResource();
boolean isBinary = type.isBinary();
IBinaryType in... | private void reportDeclaration(TypeBinding typeBinding, int maxType, MatchLocator locator) throws CoreException {
IType type = locator.lookupType(typeBinding);
if (type == null) return; // case of a secondary type
IResource resource = type.getResource();
boolean isBinary = type.isBinary();
IBinaryType info = null;... |
public void record(IProblem problem, CompilationResult unitResult, ReferenceContext referenceContext) {
unitResult.record(problem, referenceContext);
requestor.acceptProblem(problem);
}
},
true,
options.sourceLevel >= CompilerOptions.JDK1_4);
this.requestor = requestor;
| public void record(IProblem problem, CompilationResult unitResult, ReferenceContext referenceContext) {
unitResult.record(problem, referenceContext);
requestor.acceptProblem(problem);
}
},
true,
options.sourceLevel);
this.requestor = requestor;
|
public void delete( ScarabUser user )
throws Exception
{
ModuleEntity module = getModule();
if (user.hasPermission(ScarabSecurity.MODULE__EDIT, module))
{
// Delete attribute groups first
List attGroups = getIssueType().getAttributeGroups... | public void delete( ScarabUser user )
throws Exception
{
ModuleEntity module = getModule();
if (user.hasPermission(ScarabSecurity.MODULE__EDIT, module))
{
// Delete attribute groups first
List attGroups = getIssueType().getAttributeGroups... |
public int hashCode() {
int hashCode= 0;
if (this.isSystemLibrary) {
hashCode++;
}
for (int i= 0; i < this.entries.length; i++) {
hashCode= hashCode * 17 + this.entries.hashCode();
}
return hashCode;
}
/* package */ String serialize() throws IOException {
ByteArrayOutputStream s = new ByteArra... | public int hashCode() {
int hashCode= 0;
if (this.isSystemLibrary) {
hashCode++;
}
for (int i= 0; i < this.entries.length; i++) {
hashCode= hashCode * 17 + this.entries.hashCode();
}
return hashCode;
}
/* package */ String serialize() throws IOException {
ByteArrayOutputStream s = new ByteArra... |
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;
try {
IClasspathEntry[] classpath = project.getResolvedClasspath(true);
for... | 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;
try {
IClasspathEntry[] classpath = project.getExpandedClasspath(true);
for... |
public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
// Extract attributes we will need
HttpSession session = request.getSession();
Locale locale = getLoca... | public ActionForward execute(ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
// Extract attributes we will need
HttpSession session = request.getSession();
Locale locale = getLoca... |
public ChainsawStatusBar getStatusBar() {
return statusBar;
}
void showAboutBox() {
if (aboutBox == null) {
aboutBox = new ChainsawAbout(this);
}
aboutBox.setVisible(true);
}
Map getPanels() {
Map m = new HashMap();
Set panelSet = getPanelMap().entrySet();
Iterator iter = ... | public ChainsawStatusBar getStatusBar() {
return statusBar;
}
void showAboutBox() {
if (aboutBox == null) {
aboutBox = new ChainsawAbout(this);
}
aboutBox.setVisible(true);
}
Map getPanels() {
Map m = new HashMap();
Set panelSet = getPanelMap().entrySet();
Iterator iter = ... |
private Object invokeImpl(
Object[] argValues, Interpreter interpreter, CallStack callstack,
SimpleNode callerInfo, boolean overrideNameSpace )
throws EvalError
{
Class returnType = getReturnType();
Class [] paramTypes = getParameterTypes();
// If null callstack
if ( callstack == null )
callstac... | private Object invokeImpl(
Object[] argValues, Interpreter interpreter, CallStack callstack,
SimpleNode callerInfo, boolean overrideNameSpace )
throws EvalError
{
Class returnType = getReturnType();
Class [] paramTypes = getParameterTypes();
// If null callstack
if ( callstack == null )
callstac... |
public String getText() {
return WorkbenchMessages.FilteredPreferenceDialog_Resize;
}
});
Menu menu = manager.createContextMenu(getShell());
Rectangle bounds = historyManager.getControl().getBounds();
Point topLeft = new Point(bounds.x + bounds.width, bounds.y + bounds.height);
topLe... | public String getText() {
return WorkbenchMessages.FilteredPreferenceDialog_Resize;
}
});
Menu menu = manager.createContextMenu(getShell());
Rectangle bounds = historyManager.getControl().getBounds();
Point topLeft = new Point(bounds.x + bounds.width, bounds.y + bounds.height);
topLe... |
public static void loadTabs(Vector tabs, String panelName, Orientation orientation) {
String position = null;
if (
panelName.equals("north") || panelName.equals("south") ||
panelName.equals("west") || panelName.equals("east") ||
panelName.equals("nort... | public static void loadTabs(Vector tabs, String panelName, Orientation orientation) {
String position = null;
if (
panelName.equals("north") || panelName.equals("south") ||
panelName.equals("west") || panelName.equals("east") ||
panelName.equals("nort... |
private int decodeRequest( Request req, Ajp13Packet msg ) throws IOException
{
// XXX Awful return values
boolean isSSL = false;
// Translate the HTTP method code to a String.
byte methodCode = msg.getByte();
req.method().setString( methodTransArray[(int)methodCode - 1] );
... | private int decodeRequest( Request req, Ajp13Packet msg ) throws IOException
{
// XXX Awful return values
boolean isSSL = false;
// Translate the HTTP method code to a String.
byte methodCode = msg.getByte();
req.method().setString( methodTransArray[(int)methodCode - 1] );
... |
public URL[] getURLs(ClassLoader cl,int depth){
int c=0;
do{
while(! (cl instanceof SimpleClassLoader))
cl=((DependClassLoader)cl).getParent();
if (depth==c) return ((SimpleClassLoader)cl).getURLs();
c++;
cl=((SimpleClassLoader)cl).getP... | public URL[] getURLs(ClassLoader cl,int depth){
int c=0;
do{
while(! (cl instanceof SimpleClassLoader))
cl=((DependClassLoader)cl).getParentLoader();
if (depth==c) return ((SimpleClassLoader)cl).getURLs();
c++;
cl=((SimpleClassLoader)cl... |
public
MXRecord(Name _name, short _dclass, int _ttl,
int length, CountedDataInputStream in, Compression c)
throws IOException
| public
MXRecord(Name _name, short _dclass, int _ttl,
int length, DataByteInputStream in, Compression c)
throws IOException
|
private ActionClassDiagram() {
super(Translator.localize("CoreMenu", "ClassDiagram"));
}
| private ActionClassDiagram() {
super("ClassDiagram");
}
|
public DetachedWindow(WorkbenchPage workbenchPage) {
super(workbenchPage.getWorkbenchWindow().getShell());
setShellStyle( //SWT.CLOSE | SWT.MIN | SWT.MAX |
SWT.RESIZE);
this.page = workbenchPage;
folder = new ViewStack(page, false, PresentationFactoryUtil.ROLE_VIEW);
}
| public DetachedWindow(WorkbenchPage workbenchPage) {
super(workbenchPage.getWorkbenchWindow().getShell());
setShellStyle( //SWT.CLOSE | SWT.MIN | SWT.MAX |
SWT.RESIZE | getDefaultOrientation());
this.page = workbenchPage;
folder = new ViewStack(page, false, PresentationFacto... |
public void end( SaxContext ctx) throws Exception {
Stack st=ctx.getObjectStack();
Context tcCtx=(Context)st.pop(); // get the Context
HostConfig hc=(HostConfig)st.peek();
st.push( tcCtx ); // put back the context, to be cleaned up corectly
hc.addContext( tcCtx );
}
});
... | public void end( SaxContext ctx) throws Exception {
Stack st=ctx.getObjectStack();
Context tcCtx=(Context)st.pop(); // get the Context
HostConfig hc=(HostConfig)st.peek();
st.push( tcCtx ); // put back the context, to be cleaned up corectly
hc.addContext( tcCtx );
}
});
... |
public void run() {
try {
stop();
} catch (Exception e) {
TraceCarol.error("JeremieRegistry ShutdownHook problem" ,e);
}
}
});
} else {
if (TraceCarol.isDebugJndiCarol()) {
TraceCarol.debugJndiCarol("Can't start JeremieRegistry, port="+port+" is < 0");
... | public void run() {
try {
JeremieRegistry.this.stop();
} catch (Exception e) {
TraceCarol.error("JeremieRegistry ShutdownHook problem" ,e);
}
}
});
} else {
if (TraceCarol.isDebugJndiCarol()) {
TraceCarol.debugJndiCarol("Can't start JeremieRegistry, port="+p... |
protected ImportReference newImportReference(char[][] tokens, long[] sourcePositions, boolean onDemand, int mod) {
ImportReference ref = this.importReference;
ref.tokens = tokens;
ref.sourcePositions = sourcePositions;
if (onDemand) {
ref.bits |= ASTNode.OnDemand;
}
ref.sourceEnd = (int) (sourcePosition... | protected ImportReference newImportReference(char[][] tokens, long[] sourcePositions, boolean onDemand, int mod) {
ImportReference ref = this.importReference;
ref.tokens = tokens;
ref.sourcePositions = sourcePositions;
if (onDemand) {
ref.bits |= ASTNode.OnDemand;
}
ref.sourceEnd = (int) (sourcePosition... |
static final private String INTERNAL_ROOT_NAME = "root";
/**
Read configuration from a file. The existing configuration is not
cleared nor reset. If you require a different call, behaviour,
then call {@link BasicConfigurator#resetConfiguration
resetConfiguration} method before calling
<code>d... | static final private String INTERNAL_ROOT_NAME = "root";
/**
Read configuration from a file. The existing configuration is not
cleared nor reset. If you require a different call, behaviour,
then call {@link BasicConfigurator#resetConfiguration
resetConfiguration} method before calling
<code>d... |
private TypeBinding internalResolveType(Scope scope, boolean checkBounds) {
// handle the error here
this.constant = Constant.NotAConstant;
if ((this.bits & ASTNode.DidResolve) != 0) { // is a shared type reference which was already resolved
if (this.resolvedType != null) { // is a shared type reference which... | private TypeBinding internalResolveType(Scope scope, boolean checkBounds) {
// handle the error here
this.constant = Constant.NotAConstant;
if ((this.bits & ASTNode.DidResolve) != 0) { // is a shared type reference which was already resolved
if (this.resolvedType != null) { // is a shared type reference which... |
public final void expand(AbstractFolder parent) {
// get configuration from tree.xml file
FolderItem item = parent.getFolderItem();
XmlElement property = item.getElement("property");
if (property != null) {
String expanded = property.getAttribute("expanded");
... | public final void expand(AbstractFolder parent) {
// get configuration from tree.xml file
FolderItem item = parent.getConfiguration();
XmlElement property = item.getElement("property");
if (property != null) {
String expanded = property.getAttribute("expanded");
... |
protected void addIndexEntry(char[] category, char[] key) {
SearchParticipant.addIndexEntry(category, key, this.document.getPath(), this.indexPath);
}
| protected void addIndexEntry(char[] category, char[] key) {
SearchParticipant.addIndexEntry(category, key, this.document, this.indexPath);
}
|
public void update() {
if (editorPane == null) {
setEnabled(false);
return;
}
setEnabled(editorPane.getPage().getEditors().length > 1);
}
| public void update() {
if (editorPane == null) {
setEnabled(false);
return;
}
setEnabled(editorPane.getPage().getEditorReferences().length > 1);
}
|
public static final ChildPropertyDescriptor NAME_PROPERTY =
new ChildPropertyDescriptor(TypeDeclaration.class, "name", SimpleName.class, MANDATORY, NO_CYCLE_RISK); //$NON-NLS-1$
| public static final ChildPropertyDescriptor NAME_PROPERTY =
internalNamePropertyFactory(TypeDeclaration.class);
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.