buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public TypeBinding resolveForCatch(BlockScope scope) {
// resolution on an argument of a catch clause
// provide the scope with a side effect : insertion of a LOCAL
// that represents the argument. The type must be from JavaThrowable
TypeBinding exceptionType = this.type.resolveType(scope, true /* check boun... | public TypeBinding resolveForCatch(BlockScope scope) {
// resolution on an argument of a catch clause
// provide the scope with a side effect : insertion of a LOCAL
// that represents the argument. The type must be from JavaThrowable
TypeBinding exceptionType = this.type.resolveType(scope, true /* check boun... |
public void testInvariants() {
Control focusControl = Display.getCurrent().getFocusControl();
boolean currentFound = false;
LayoutPart[] children = getChildren();
for (int idx = 0; idx < children.length; idx++) {
LayoutPart child = children[idx];
// No null c... | public void testInvariants() {
Control focusControl = Display.getCurrent().getFocusControl();
boolean currentFound = false;
LayoutPart[] children = getChildren();
for (int idx = 0; idx < children.length; idx++) {
LayoutPart child = children[idx];
// No null c... |
public void widgetSelected(SelectionEvent e) {
boolean showAll = showAllCheck.getSelection();
if (!showAll)
expandedElements = viewer.getExpandedElements();
if (showAll) {
viewer.getControl()... | public void widgetSelected(SelectionEvent e) {
boolean showAll = showAllCheck.getSelection();
if (!showAll)
expandedElements = viewer.getExpandedElements();
if (showAll) {
viewer.getControl()... |
// constructor will not be dumped as private, no emulation required thus
this.codegenBinding.modifiers |= ExtraCompilerModifiers.AccClearPrivateModifier;
} else {
syntheticAccessor = ((SourceTypeBinding) declaringClass).addSyntheticMethod(this.codegenBinding, isSuperAccess());
currentScope.problemRep... | // constructor will not be dumped as private, no emulation required thus
this.codegenBinding.tagBits |= TagBits.ClearPrivateModifier;
} else {
syntheticAccessor = ((SourceTypeBinding) declaringClass).addSyntheticMethod(this.codegenBinding, isSuperAccess());
currentScope.problemReporter().needToEmulat... |
public void paletteUserOver(PaletteButton button, boolean inside) {
if (inside) {
showStatus(((ToolButton) button).name());
}
else {
showStatus(fSelectedToolButton.name());
}
}
| public void paletteUserOver(PaletteButton button, boolean inside) {
if (inside) {
showStatus(((ToolButton) button).name());
}
else if (fSelectedToolButton != null) {
showStatus(fSelectedToolButton.name());
}
}
|
protected void matchReportReference(QualifiedNameReference qNameRef, IJavaElement element, int accuracy, MatchLocator locator) throws CoreException {
char[][] tokens = null;
Binding binding = qNameRef.binding;
TypeBinding typeBinding = null;
char[][] nameTokens = qNameRef.tokens;
int lastIndex = nameTokens.length-... | protected void matchReportReference(QualifiedNameReference qNameRef, IJavaElement element, int accuracy, MatchLocator locator) throws CoreException {
char[][] tokens = null;
Binding binding = qNameRef.binding;
TypeBinding typeBinding = null;
char[][] nameTokens = qNameRef.tokens;
int lastIndex = nameTokens.length-... |
ICommandHandlerService getCommandHandlerService();
package org.eclipse.ui.commands;
/**
* An instance of this interface provides support for managing commands at the
* <code>IWorkbenchWindow</code> level.
* <p>
* This interface is not intended to be extended or implemented by clients.
* </p>
* <p>
* <em>EXPERI... | ICommandHandlerService getCommandHandlerService();
package org.eclipse.ui.commands;
/**
* An instance of this interface provides support for managing commands at the
* <code>IWorkbenchWindow</code> level.
* <p>
* This interface is not intended to be extended or implemented by clients.
* </p>
* <p>
* <em>EXPERI... |
public TipOfTheDay(View view)
{
super(view,jEdit.getProperty("tip.title"),false);
JPanel content = new JPanel(new BorderLayout(12,12));
content.setBorder(new EmptyBorder(12,12,12,12));
setContentPane(content);
JLabel label = new JLabel(jEdit.getProperty("tip.caption"));
label.setFont(new Font("SansSerif... | public TipOfTheDay(View view)
{
super(view,jEdit.getProperty("tip.title"),false);
JPanel content = new JPanel(new BorderLayout(12,12));
content.setBorder(new EmptyBorder(12,12,12,12));
setContentPane(content);
JLabel label = new JLabel(jEdit.getProperty("tip.caption"));
label.setFont(new Font("SansSerif... |
public String getTitleStatus() {
String title = getTitle();
String name = getName();
// Return the empty string if the title is unmodified
if (title.equals(name)) {
return new String();
}
if (title.startsWith(name)) {
String substr = title.substring(name.length(), title.length());
subs... | public String getTitleStatus() {
String title = getTitle();
String name = getName();
// Return the empty string if the title is unmodified
if (title.equals(name)) {
return Util.ZERO_LENGTH_STRING;
}
if (title.startsWith(name)) {
String substr = title.substring(name.length(), title.length());
... |
public interface IIndexConstants {
package org.eclipse.jdt.internal.core.search.indexing;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.jdt.internal.core.search.processing.*;
public interface IIndexConstants extends IJobConstants {
/* index encoding */
char[] REF= "ref/"... | public interface IIndexConstants {
package org.eclipse.jdt.internal.core.search.indexing;
/*
* (c) Copyright IBM Corp. 2000, 2001.
* All Rights Reserved.
*/
import org.eclipse.jdt.internal.core.search.processing.*;
public interface IIndexConstants {
/* index encoding */
char[] REF= "ref/".toCharArray(); //$NON... |
private final void readActionSets(
final IConfigurationElement[] configurationElements,
final int configurationElementCount) {
final List warningsToLog = new ArrayList(1);
for (int i = 0; i < configurationElementCount; i++) {
final IConfigurationElement element = configurationElements[i];
// Read the... | private final void readActionSets(
final IConfigurationElement[] configurationElements,
final int configurationElementCount) {
final List warningsToLog = new ArrayList(1);
for (int i = 0; i < configurationElementCount; i++) {
final IConfigurationElement element = configurationElements[i];
// Read the... |
public void startElement(String aNamespaceURI,
String aLocalName,
String aQName,
Attributes aAtts)
{
if (TAG_EVENT.equals(aQName)) {
mThreadName = aAtts.getValue("thread");
mTimeStamp = Long.pa... | public void startElement(String aNamespaceURI,
String aLocalName,
String aQName,
Attributes aAtts)
{
if (TAG_EVENT.equals(aQName)) {
mThreadName = aAtts.getValue("thread");
mTimeStamp = Long.pa... |
public static ClasspathLocation[] computeLocations(
IWorkspaceRoot workspaceRoot,
IJavaProject javaProject,
String outputFolderLocation,
ArrayList sourceFolders,
SimpleLookupTable prereqOutputFolders) throws JavaModelException {
IClasspathEntry[] classpathEntries = ((JavaProject) javaProject).getExpandedClasspat... | public static ClasspathLocation[] computeLocations(
IWorkspaceRoot workspaceRoot,
IJavaProject javaProject,
String outputFolderLocation,
ArrayList sourceFolders,
SimpleLookupTable prereqOutputFolders) throws JavaModelException {
IClasspathEntry[] classpathEntries = ((JavaProject) javaProject).getExpandedClasspat... |
public void testAssumptionFailureIsReflected() {
runner.run(AssumptionFailureTest.class);
assertThat(results.toString(), containsString("Spain"));
}
| public void testAssumptionFailureIsReflected() {
runner.run(AssumptionFailureTest.class);
assertThat(results.toString(), both(containsString("Spain")).and(containsString("INVALID ASSUMPTION 1)")));
}
|
public BodyTextViewer() {
setMargin(new Insets(5, 5, 5, 5));
setEditable(false);
htmlEditorKit = new HTMLEditorKit();
setEditorKit(htmlEditorKit);
parser = new DocumentParser();
setContentType("text/html");
XmlElement gui = MailConfig.get("options").getEle... | public BodyTextViewer() {
setMargin(new Insets(5, 5, 5, 5));
setEditable(false);
htmlEditorKit = new HTMLEditorKit();
setEditorKit(htmlEditorKit);
parser = new DocumentParser();
setContentType("text/html");
XmlElement gui = MailConfig.get("options").getEle... |
public UndoAction(AbstractFrameController controller) {
super(
controller,
GlobalResourceLoader.getString(
null, null, "menu_edit_undo"));
// tooltip text
setTooltipText(
GlobalResourceLoader.getString(
null, null, "menu_edit_undo"));
// action command
setActionCommand("UNDO");
... | public UndoAction(AbstractFrameController controller) {
super(
controller,
GlobalResourceLoader.getString(
null, null, "menu_edit_undo"));
// tooltip text
setTooltipText(
GlobalResourceLoader.getString(
null, null, "menu_edit_undo_tooltip"));
// action command
setActionCommand("UN... |
public void addContainer( Container ct )
throws TomcatException
{
Context ctx=ct.getContext();
Container ctxCt=ctx.getContainer();
SecurityConstraints ctxSecurityC=(SecurityConstraints)ctxCt.getNote( secMapNote );
if( ct.getRoles()!=null || ct.getTransport()!=null ) {
log( "ACCESS: Adding " + ctx.ge... | public void addContainer( Container ct )
throws TomcatException
{
Context ctx=ct.getContext();
Container ctxCt=ctx.getContainer();
SecurityConstraints ctxSecurityC=(SecurityConstraints)ctxCt.getNote( secMapNote );
if( ct.getRoles()!=null || ct.getTransport()!=null ) {
if( ctx.getDebug() > 0 ) log( "... |
public String toString() {
// don't use + with char[]
return new StringBuffer("TypeHierarchyIndictment(").append(fName).append(")").toString(); //$NON-NLS-1$ //$NON-NLS-2$
}
| public String toString() {
// don't use + with char[]
return new StringBuffer("TypeHierarchyIndictment("/*nonNLS*/).append(fName).append(")"/*nonNLS*/).toString();
}
|
public void run(IProgressMonitor monitor) throws CoreException {
// propagate classpath change
Iterator projectsToUpdate = affectedProjects.keySet().iterator();
while (projectsToUpdate.hasNext()) {
if (monitor != null && monitor.isCanceled()) return;
JavaProject projec... | public void run(IProgressMonitor monitor) throws CoreException {
// propagate classpath change
Iterator projectsToUpdate = affectedProjects.keySet().iterator();
while (projectsToUpdate.hasNext()) {
if (monitor != null && monitor.isCanceled()) return;
JavaProject projec... |
public TypeBinding resolveType(BlockScope scope) {
constant = Constant.NotAConstant;
if (!checkAccess(scope.methodScope()))
return null;
ReferenceBinding enclosingReceiverType = scope.enclosingReceiverType();
if (enclosingReceiverType.id == T_JavaLangObject) {
scope.problemReporter().cannotUseSuperInJav... | public TypeBinding resolveType(BlockScope scope) {
this.constant = Constant.NotAConstant;
if (!checkAccess(scope.methodScope()))
return null;
ReferenceBinding enclosingReceiverType = scope.enclosingReceiverType();
if (enclosingReceiverType.id == T_JavaLangObject) {
scope.problemReporter().cannotUseSuper... |
public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("Built delta:\n"); //$NON-NLS-1$
buffer.append(this.delta.toString());
| public String toString() {
StringBuffer buffer = new StringBuffer();
buffer.append("Built delta:\n"/*nonNLS*/);
buffer.append(this.delta.toString());
|
public
ARecord(Name _name, short _dclass, int _ttl, int length,
CountedDataInputStream in, Compression c) throws IOException
{
super(_name, Type.A, _dclass, _ttl);
if (in == null)
return;
byte [] data = new byte[4];
in.read(data);
String s = new String();
s = (data[0] & 0xFF) + "." + (data[1] & 0xFF) + "... | public
ARecord(Name _name, short _dclass, int _ttl, int length,
DataByteInputStream in, Compression c) throws IOException
{
super(_name, Type.A, _dclass, _ttl);
if (in == null)
return;
byte [] data = new byte[4];
in.read(data);
String s = new String();
s = (data[0] & 0xFF) + "." + (data[1] & 0xFF) + "." ... |
private void disassemble(IRuntimeInvisibleParameterAnnotationsAttribute runtimeInvisibleParameterAnnotationsAttribute, StringBuffer buffer, String lineSeparator, int tabNumber) {
writeNewLine(buffer, lineSeparator, tabNumber + 1);
buffer.append(Util.bind("disassembler.runtimevisibleparameterannotationsattributehea... | private void disassemble(IRuntimeInvisibleParameterAnnotationsAttribute runtimeInvisibleParameterAnnotationsAttribute, StringBuffer buffer, String lineSeparator, int tabNumber) {
writeNewLine(buffer, lineSeparator, tabNumber + 1);
buffer.append(Util.bind("disassembler.runtimeinvisibleparameterannotationsattributeh... |
protected IContributionItem findEndOfGroup(String groupId) {
// Get items.
IContributionItem[] items = getItems();
// Find the group item.
int insertIndex = 0;
while (insertIndex < items.length) {
if (groupId.equals(items[insertIndex].getId())) {
// the found item will be the ActionSetSeparator for
... | protected IContributionItem findEndOfGroup(String groupId) {
// Get items.
IContributionItem[] items = getItems();
// Find the group item.
int insertIndex = 0;
while (insertIndex < items.length) {
if (groupId.equals(items[insertIndex].getId())) {
// the found item will be the ActionSetSeparator for
... |
public void addProblemMethod(
AbstractMethodDeclaration method,
MethodBinding methodBinding,
IProblem[] problems) {
if (methodBinding.isAbstract() && methodBinding.declaringClass.isInterface()) {
method.abort(ProblemSeverities.AbortType);
}
// always clear the strictfp/native/abstract bit for a problem ... | public void addProblemMethod(
AbstractMethodDeclaration method,
MethodBinding methodBinding,
IProblem[] problems) {
if (methodBinding.isAbstract() && methodBinding.declaringClass.isInterface()) {
method.abort(ProblemSeverities.AbortType, null);
}
// always clear the strictfp/native/abstract bit for a pr... |
public POP3Store(PopItem popItem) {
super();
this.popItem = popItem;
protocol =
new POP3Protocol(
popItem.get("user"),
popItem.get("password"),
popItem.get("host"),
popItem.getInteger("port"),
popItem.getBoolean("enable_ssl", true));
// add status information observable
observable = ... | public POP3Store(PopItem popItem) {
super();
this.popItem = popItem;
protocol =
new POP3Protocol(
popItem.get("user"),
popItem.get("password"),
popItem.get("host"),
popItem.getInteger("port"),
popItem.getBoolean("enable_ssl", false));
// add status information observable
observable =... |
CategorizedProblem createProblem(
/*******************************************************************************
* 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 Eclipse Public License v1.0
* whic... | CategorizedProblem createProblem(
/*******************************************************************************
* 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 Eclipse Public License v1.0
* whic... |
private void doZoom() {
if (visibleEditor == null)
return;
((WorkbenchPage)(getWorkbenchWindow().getActivePage())).toggleZoom(visibleEditor.getPartReference().getPart(true));
}
| private void doZoom() {
if (visibleEditor == null)
return;
visibleEditor.getPage().toggleZoom(visibleEditor.getPartReference());
}
|
public void replace(LayoutPart oldChild, LayoutPart newChild) {
IPresentablePart oldPart = oldChild.getPresentablePart();
IPresentablePart newPart = newChild.getPresentablePart();
int idx = children.indexOf(oldChild);
children.add(idx, newChild);
showPart(newChild, oldPart)... | public void replace(LayoutPart oldChild, LayoutPart newChild) {
IPresentablePart oldPart = oldChild.getPresentablePart();
IPresentablePart newPart = newChild.getPresentablePart();
int idx = children.indexOf(oldChild);
children.add(idx, newChild);
showPart(newChild, oldPart)... |
private IHTMLViewerPlugin createHTMLViewerPluginInstance(String pluginId) {
IHTMLViewerPlugin plugin = null;
try {
IExtensionHandler handler = PluginManager
.getInstance().getHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_HTMLVIEWER);
IExtension extension = handler.getExtension(pluginId);
if (exte... | private IHTMLViewerPlugin createHTMLViewerPluginInstance(String pluginId) {
IHTMLViewerPlugin plugin = null;
try {
IExtensionHandler handler = PluginManager
.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_HTMLVIEWER);
IExtension extension = handler.getExtension(pluginId);
... |
* N.B. This constructor is package-private.
* </p>
*
* @param ast the AST that is to own this node
*/
EmptyStatement(AST ast) {
super(ast);
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
final List internalStructuralPropertiesForType(int apiLevel) {
return propertyDescript... | * N.B. This constructor is package-private.
* </p>
*
* @param ast the AST that is to own this node
*/
EmptyStatement(AST ast) {
super(ast);
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
final List internalStructuralPropertiesForType(int apiLevel) {
return propertyDescript... |
// TODO (philippe) shouldn't it be protected by a check whether reachable statement ?
// mark the synthetic variable as being used
synchroVariable.useFlag = LocalVariableBinding.USED;
// simple propagation to subnodes
flowInfo =
block.analyseCode(
scope,
new InsideSubRoutineFlowContext(fl... | // TODO (philippe) shouldn't it be protected by a check whether reachable statement ?
// mark the synthetic variable as being used
synchroVariable.useFlag = LocalVariableBinding.USED;
// simple propagation to subnodes
flowInfo =
block.analyseCode(
scope,
new InsideSubRoutineFlowContext(fl... |
public ToggleEditorsVisibilityAction(IWorkbenchWindow window) {
super(WorkbenchMessages.getString("ToggleEditor.hideEditors")); //$NON-NLS-1$
if (window == null) {
throw new IllegalArgumentException();
}
this.workbenchWindow = window;
setActionDefinitionId("org.ec... | public ToggleEditorsVisibilityAction(IWorkbenchWindow window) {
super(WorkbenchMessages.getString("ToggleEditor.hideEditors")); //$NON-NLS-1$
if (window == null) {
throw new IllegalArgumentException();
}
this.workbenchWindow = window;
setActionDefinitionId("org.ec... |
public void paintControl(PaintEvent e) {
GC gc = e.gc;
Color color = e.display.getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW);
gc.setForeground(color);
if (interiorColor != null) {
gc.setBackground(interiorColor);
}
Shape shape = new Shape(TOP_LEFT_CORNER.length + 2);
... | public void paintControl(PaintEvent e) {
GC gc = e.gc;
Color color = e.display.getSystemColor(SWT.COLOR_WIDGET_NORMAL_SHADOW);
gc.setForeground(color);
if (interiorColor != null) {
gc.setBackground(interiorColor);
}
Shape shape = new Shape(TOP_LEFT_CORNER.length + 2);
... |
public int handleContextManagerInit(ContextManager cm) {
String home=cm.getHome();
File webappD=new File(home + "/webapps");
if (! webappD.exists() || ! webappD.isDirectory())
return 0; // nothing to set up
String[] list = webappD.list();
for (int i = 0; i < list.length; i++) {
String name = list[i]... | public int engineInit(ContextManager cm) {
String home=cm.getHome();
File webappD=new File(home + "/webapps");
if (! webappD.exists() || ! webappD.isDirectory())
return 0; // nothing to set up
String[] list = webappD.list();
for (int i = 0; i < list.length; i++) {
String name = list[i];
if( nam... |
protected Point getInitialSize() {
if (!getPersistBounds()) {
return new Point(350, 420);
}
return super.getInitialSize();
}
| protected Point getInitialSize() {
if (!getPersistSize()) {
return new Point(350, 420);
}
return super.getInitialSize();
}
|
public
TKEYRecord(Name name, short dclass, int ttl, Name alg,
Date timeInception, Date timeExpire, short mode, short error,
byte [] key, byte other[])
{
this(name, dclass, ttl);
if (!alg.isAbsolute())
throw new RelativeNameException(alg);
this.alg = alg;
this.timeInception = timeInception;
this.timeExpir... | public
TKEYRecord(Name name, short dclass, int ttl, Name alg,
Date timeInception, Date timeExpire, short mode, short error,
byte [] key, byte other[])
{
this(name, dclass, ttl);
if (!alg.isAbsolute())
throw new RelativeNameException(alg);
this.alg = alg;
this.timeInception = timeInception;
this.timeExpir... |
public void engineInit(ContextManager cm) throws TomcatException {
super.engineInit( cm );
try {
realFileNote = cm.getNoteId( ContextManager.REQUEST_NOTE,
"static.realFile");
} catch( TomcatException ex ) {
ex.printStackTrace();
throw new RuntimeException( "Invalid state ");
}
}
| public void engineInit(ContextManager cm) throws TomcatException {
super.engineInit( cm );
try {
realFileNote = cm.getNoteId( ContextManager.REQUEST_NOTE,
"static.realFile");
} catch( TomcatException ex ) {
log("getting note for " + cm, ex);
throw new RuntimeException( "Invalid state ... |
private void createNeededPackageFragments(IPackageFragmentRoot root, String newFragName, boolean moveFolder) throws JavaModelException {
IContainer parentFolder = (IContainer) root.getResource();
JavaElementDelta projectDelta = null;
String[] names = Signature.getSimpleNames(newFragName);
StringBuffer sideEffe... | private void createNeededPackageFragments(IPackageFragmentRoot root, String newFragName, boolean moveFolder) throws JavaModelException {
IContainer parentFolder = (IContainer) root.getResource();
JavaElementDelta projectDelta = null;
String[] names = org.eclipse.jdt.internal.core.Util.getTrimmedSimpleNames(newFr... |
protected static byte[] readUntil(InputStream input, byte separator, int offset) throws IOException, JavaModelException{
int length = 0;
byte[] bytes = new byte[SIZE];
byte b;
while((b = (byte)input.read()) != separator && b != -1) {
if(bytes.length == length) {
System.arraycopy(bytes, 0, bytes = new byte[leng... | protected static byte[] readUntil(InputStream input, byte separator, int offset) throws IOException, JavaModelException{
int length = 0;
byte[] bytes = new byte[SIZE];
byte b;
while((b = (byte)input.read()) != separator && b != -1) {
if(bytes.length == length) {
System.arraycopy(bytes, 0, bytes = new byte[leng... |
public boolean isEnabled() {
if (command != null) {
command.getCommand().setEnabled(handlerService.getCurrentState());
return command.getCommand().isEnabled();
}
return false;
}
| public boolean isEnabled() {
if (command != null) {
command.getCommand().setEnabled(menuService.getCurrentState());
return command.getCommand().isEnabled();
}
return false;
}
|
public int match(TypeDeclaration node, MatchingNodeSet nodeSet) {
if (this.pattern.simpleName == null || matchesName(this.pattern.simpleName, node.name))
return nodeSet.addMatch(node, this.pattern.mustResolve ? POSSIBLE_MATCH : ACCURATE_MATCH);
return IMPOSSIBLE_MATCH;
}
| public int match(TypeDeclaration node, MatchingNodeSet nodeSet) {
if (this.pattern.simpleName == null || matchesName(this.pattern.simpleName, node.name))
return nodeSet.addMatch(node, ((InternalSearchPattern)this.pattern).mustResolve ? POSSIBLE_MATCH : ACCURATE_MATCH);
return IMPOSSIBLE_MATCH;
}
|
public void generateSyntheticFieldInitializationsIfNecessary(
MethodScope methodScope,
CodeStream codeStream,
ReferenceBinding declaringClass) {
if (!declaringClass.isNestedType()) return;
NestedTypeBinding nestedType = (NestedTypeBinding) declaringClass;
SyntheticArgumentBinding[] syntheticArgs = ... | public void generateSyntheticFieldInitializationsIfNecessary(
MethodScope methodScope,
CodeStream codeStream,
ReferenceBinding declaringClass) {
if (!declaringClass.isNestedType()) return;
NestedTypeBinding nestedType = (NestedTypeBinding) declaringClass;
SyntheticArgumentBinding[] syntheticArgs = ... |
public ISearchCriteria getCriteria(String searchTerm) {
return new SearchCriteria("test: "+searchTerm, "test description");
}
| public ISearchCriteria getCriteria(String searchTerm) {
return new SearchCriteria("test: "+searchTerm, "test description", null);
}
|
protected ActionSaveConfiguration() {
super(Argo.localize(Argo.MENU_BUNDLE,"Save Configuration"), false);
}
| protected ActionSaveConfiguration() {
super(Argo.localize(Argo.MENU_BUNDLE,"action.save-configuration"), false);
}
|
public DefaultSearchEngine getSearchEngineInstance() {
if (searchEngine == null) {
searchEngine = new DefaultSearchEngine(this);
searchEngine.setNonDefaultEngine(new IMAPQueryEngine(this));
}
return searchEngine;
}
} | public DefaultSearchEngine getSearchEngine() {
if (searchEngine == null) {
searchEngine = new DefaultSearchEngine(this);
searchEngine.setNonDefaultEngine(new IMAPQueryEngine(this));
}
return searchEngine;
}
} |
public void addErrorPage( String errorType, String value ) {
this.errorPages.put( errorPages, value );
}
| public void addErrorPage( String errorType, String value ) {
this.errorPages.put( errorType, value );
}
|
public void computeLocalVariablePositions(int initOffset, CodeStream codeStream) {
boolean isReportingUnusedArgument = false;
if (referenceContext instanceof AbstractMethodDeclaration) {
AbstractMethodDeclaration methodDecl = (AbstractMethodDeclaration)referenceContext;
MethodBinding method = methodDecl.bi... | public void computeLocalVariablePositions(int initOffset, CodeStream codeStream) {
boolean isReportingUnusedArgument = false;
if (referenceContext instanceof AbstractMethodDeclaration) {
AbstractMethodDeclaration methodDecl = (AbstractMethodDeclaration)referenceContext;
MethodBinding method = methodDecl.bi... |
public DeleteMessageAction(AbstractFrameController frameController) {
super(
frameController,
MailResourceLoader.getString(
"menu", "mainframe", "menu_message_delete"));
// toolbar text
setToolBarName(
MailResourceLoader.getString(
"menu", "mainframe", "menu_message_delete_toolbar"));... | public DeleteMessageAction(AbstractFrameController frameController) {
super(
frameController,
MailResourceLoader.getString(
"menu", "mainframe", "menu_message_delete"));
// toolbar text
setToolBarText(
MailResourceLoader.getString(
"menu", "mainframe", "menu_message_delete_toolbar"));... |
protected int executeInsert(PreparedStatement ps, EntityEnterpriseContext ctx) throws SQLException
{
int rows = ps.executeUpdate();
Statement s = null;
ResultSet rs = null;
try {
if (trace) {
log.trace("Executing SQL :"+sequenceSQL);
}
Connection c =... | protected int executeInsert(int index, PreparedStatement ps, EntityEnterpriseContext ctx) throws SQLException
{
int rows = ps.executeUpdate();
Statement s = null;
ResultSet rs = null;
try {
if (trace) {
log.trace("Executing SQL :"+sequenceSQL);
}
Con... |
public final Object execute(final ExecutionEvent event)
throws ExecutionException {
// Debugging output
if (DEBUG_HANDLERS) {
System.out
.print("HANDLERS >>> Executing LegacyHandlerWrapper for "); //$NON-NLS-1$
if (handler == null) {
System.out.println("no handler"); //$NON-NLS-1$
} else {
... | public final Object execute(final ExecutionEvent event)
throws ExecutionException {
// Debugging output
if (DEBUG_HANDLERS) {
System.out
.print("HANDLERS >>> Executing LegacyHandlerWrapper for "); //$NON-NLS-1$
if (handler == null) {
System.out.println("no handler"); //$NON-NLS-1$
} else {
... |
public static void openError(Shell parent, String title, String message,
PartInitException exception) {
// Check for a nested CoreException
CoreException nestedException = null;
IStatus status = exception.getStatus();
if (status != null && status.getException() instanceof... | public static void openError(Shell parent, String title, String message,
PartInitException exception) {
// Check for a nested CoreException
CoreException nestedException = null;
IStatus status = exception.getStatus();
if (status != null && status.getException() instanceof... |
public Component getTreeCellRendererComponent(JTree tree, Object value,
boolean isSelected, boolean expanded, boolean leaf, int row,
boolean hasFocus) {
CheckableItem item = (CheckableItem) value;
check.setSelected(item.isSelected());
label.setFont(tree.getF... | public Component getTreeCellRendererComponent(JTree tree, Object value,
boolean isSelected, boolean expanded, boolean leaf, int row,
boolean hasFocus) {
CheckableItem item = (CheckableItem) value;
check.setSelected(item.isSelected());
label.setFont(tree.getF... |
public Expression getExpression() {
if (!this.expressionInitialized) {
// lazy init must be thread-safe for readers
synchronized (this.ast) {
if (!this.expressionInitialized) {
preLazyInit();
this.optionalExpression = new SimpleName(this.ast);
this.expressionInitialized = true;
postLazy... | public Expression getExpression() {
if (!this.expressionInitialized) {
// lazy init must be thread-safe for readers
synchronized (this) {
if (!this.expressionInitialized) {
preLazyInit();
this.optionalExpression = new SimpleName(this.ast);
this.expressionInitialized = true;
postLazyInit... |
public Record
withName(Name name) {
if (!name.isAbsolute())
throw new RelativeNameException(name);
Record rec = cloneRecord();
rec.name = name;
return rec;
}
/**
* Creates a new record identical to the current record, but with a different
* class and ttl. This is most useful for dynamic update.
*/
Record
wit... | public Record
withName(Name name) {
if (!name.isAbsolute())
throw new RelativeNameException(name);
Record rec = cloneRecord();
rec.name = name;
return rec;
}
/**
* Creates a new record identical to the current record, but with a different
* class and ttl. This is most useful for dynamic update.
*/
Record
wit... |
protected Test getTest() {
return fTest;
}
}
| public Test getTest() {
return fTest;
}
}
|
return isSameClassOrSubclassOf(subType, superType); // interfaces are subclasses of Object too
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made availa... | return isSameClassOrSubclassOf(subType, superType); // interfaces are subclasses of Object too
/*******************************************************************************
* Copyright (c) 2000, 2004 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made availa... |
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) {
// record variable initialization if any
if ((flowInfo.tagBits & FlowInfo.UNREACHABLE) == 0) {
this.bits |= ASTNode.IsLocalDeclarationReachable; // only set if actually reached
}
if (this.binding != null && this.typ... | public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) {
// record variable initialization if any
if ((flowInfo.tagBits & FlowInfo.UNREACHABLE_OR_DEAD) == 0) {
this.bits |= ASTNode.IsLocalDeclarationReachable; // only set if actually reached
}
if (this.binding != null && ... |
public DecoratorManager() {
DecoratorRegistryReader reader = new DecoratorRegistryReader();
Collection values = reader.readRegistry(Platform.getPluginRegistry());
ArrayList full = new ArrayList();
ArrayList lightweight = new ArrayList();
Iterator allDefinitions = values.iterator();
while (allDefinitions.h... | public DecoratorManager() {
DecoratorRegistryReader reader = new DecoratorRegistryReader();
Collection values = reader.readRegistry(Platform.getExtensionRegistry());
ArrayList full = new ArrayList();
ArrayList lightweight = new ArrayList();
Iterator allDefinitions = values.iterator();
while (allDefinition... |
public
SIGRecord(Name name, int dclass, long ttl, int covered, int alg, int origttl,
Date expire, Date timeSigned, int footprint, Name signer,
byte [] signature)
{
this(name, dclass, ttl);
Type.check(covered);
checkU8("alg", alg);
checkU8("labels", labels);
TTL.check(origttl);
checkU16("footprint", footprin... | public
SIGRecord(Name name, int dclass, long ttl, int covered, int alg, int origttl,
Date expire, Date timeSigned, int footprint, Name signer,
byte [] signature)
{
this(name, dclass, ttl);
Type.check(covered);
checkU8("alg", alg);
checkU8("labels", labels);
TTL.check(origttl);
checkU16("footprint", footprin... |
public PropPanelSubmachineState() {
// TODO: get the submachine state it's own icon
super("Submachine State", _compositeStateIcon, ConfigLoader.getTabPropsOrientation());
addField(Argo.localize("UMLMenu", "label.name"), nameField);
addField(Argo.localize("UMLMenu", "label.stereotype"... | public PropPanelSubmachineState() {
// TODO: get the submachine state it's own icon
super("Submachine State", _compositeStateIcon, ConfigLoader.getTabPropsOrientation());
addField(Argo.localize("UMLMenu", "label.name"), nameField);
addField(Argo.localize("UMLMenu", "label.stereotype"... |
public AddressbookAction(ComposerController composerController) {
super(
composerController,
MailResourceLoader.getString(
"menu", "composer", "menu_message_addressbook"));
// tooltip text
setTooltipText(
MailResourceLoader.getString(
"menu", "composer", "menu_message_addressbook"));
... | public AddressbookAction(ComposerController composerController) {
super(
composerController,
MailResourceLoader.getString(
"menu", "composer", "menu_message_addressbook"));
// tooltip text
setTooltipText(
MailResourceLoader.getString(
"menu", "composer", "menu_message_addressbook_tooltip"... |
public ToolBarXMLDecoder(IFrameMediator mediator) {
super();
this.mediator = mediator;
try {
pluginHandler = PluginManager
.getInstance().getHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_ACTION);
} catch (PluginHandlerNotFoundException e) {
e.printStackTrace();
}
}
| public ToolBarXMLDecoder(IFrameMediator mediator) {
super();
this.mediator = mediator;
try {
pluginHandler = PluginManager
.getInstance().getExtensionHandler(IExtensionHandlerKeys.ORG_COLUMBA_CORE_ACTION);
} catch (PluginHandlerNotFoundException e) {
e.printStackTrace();
}
}
|
List getContextBindingDefinitions();
/*******************************************************************************
* 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 Common Public License v1.0
* w... | List getContextBindingDefinitions();
/*******************************************************************************
* 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 Common Public License v1.0
* w... |
public MethodDeclaration convert(AbstractMethodDeclaration methodDeclaration) {
MethodDeclaration methodDecl = this.ast.newMethodDeclaration();
/**
* http://dev.eclipse.org/bugs/show_bug.cgi?id=13233
* This handles cases where the parser built nodes with invalid modifiers.
*/
try {
methodDecl.setModi... | public MethodDeclaration convert(AbstractMethodDeclaration methodDeclaration) {
MethodDeclaration methodDecl = this.ast.newMethodDeclaration();
/**
* http://dev.eclipse.org/bugs/show_bug.cgi?id=13233
* This handles cases where the parser built nodes with invalid modifiers.
*/
try {
methodDecl.setModi... |
private ASTNode.NodeList arguments =
new ASTNode.NodeList(ARGUMENTS_PROPERTY);
/**
* Creates a new AST node for a method invocation expression owned by the
* given AST. By default, no expression, no type arguments,
* an unspecified, but legal, method name, and an empty list of arguments.
*
* @param ast t... | private ASTNode.NodeList arguments =
new ASTNode.NodeList(ARGUMENTS_PROPERTY);
/**
* Creates a new AST node for a method invocation expression owned by the
* given AST. By default, no expression, no type arguments,
* an unspecified, but legal, method name, and an empty list of arguments.
*
* @param ast t... |
public ShowHomepageAction(IFrameMediator frameMediator) {
super(frameMediator,
GlobalResourceLoader.getString(null, null, "menu_help_homepage"));
// small icon for menu
putValue(SMALL_ICON, ImageLoader.getImageIcon("stock_home_16.png"));
}
| public ShowHomepageAction(IFrameMediator frameMediator) {
super(frameMediator,
GlobalResourceLoader.getString(null, null, "menu_help_homepage"));
// small icon for menu
putValue(SMALL_ICON, ImageLoader.getSmallIcon("go-home.png"));
}
|
public boolean execute() throws BuildException {
this.attributes.log(AntAdapterMessages.getString("ant.jdtadapter.info.usingJDTCompiler"), Project.MSG_VERBOSE); //$NON-NLS-1$
Commandline cmd = setupJavacCommand();
try {
Class c = Class.forName(compilerClass);
Constructor batchCompilerConstructor = c.getCo... | public boolean execute() throws BuildException {
this.attributes.log(AntAdapterMessages.getString("ant.jdtadapter.info.usingJDTCompiler"), Project.MSG_VERBOSE); //$NON-NLS-1$
Commandline cmd = setupJavacCommand();
try {
Class c = Class.forName(compilerClass);
Constructor batchCompilerConstructor = c.getCo... |
public static Rule getRule(Stack stack) {
if (stack.size() < 2) {
throw new IllegalArgumentException("partial text rule - expected two entries but " + stack.size() + " were provided");
}
String p2 = stack.pop().toString();
String p1 = stack.pop().toString();
return new PartialTextMa... | public static Rule getRule(Stack stack) {
if (stack.size() < 2) {
throw new IllegalArgumentException("invalid partial text rule - expected two entries but " + stack.size() + " were provided");
}
String p2 = stack.pop().toString();
String p1 = stack.pop().toString();
return new Parti... |
public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
// if reachable, request the addition of a synthetic field for caching the class descriptor
SourceTypeBinding sourceType =
currentScope.outerMostMethodScope().enclosingSourceType();
if ((!(sourceType.isI... | public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
// if reachable, request the addition of a synthetic field for caching the class descriptor
SourceTypeBinding sourceType =
currentScope.outerMostMethodScope().enclosingSourceType();
if ((!(sourceType.isI... |
public void delete(ScarabUser user) throws Exception
{
Module module = getAttributeGroup().getModule();
if (user.hasPermission(ScarabSecurity.MODULE__EDIT, module))
{
Criteria c = new Criteria()
.add(RAttributeAttributeGroupPeer.GROUP_ID, getGroupId())
... | public void delete(ScarabUser user) throws Exception
{
Module module = getAttributeGroup().getModule();
if (user.hasPermission(ScarabSecurity.MODULE__CONFIGURE, module))
{
Criteria c = new Criteria()
.add(RAttributeAttributeGroupPeer.GROUP_ID, getGroupId())... |
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
int pc = codeStream.position;
if (constant != NotAConstant) {
if (valueRequired) {
codeStream.generateConstant(constant, implicitConversion);
}
} else {
generateReadSequence(currentScope, codeStream, valueRequi... | public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
int pc = codeStream.position;
if (constant != NotAConstant) {
if (valueRequired) {
codeStream.generateConstant(constant, implicitConversion);
}
} else {
generateReadSequence(currentScope, codeStream, valueRequi... |
public boolean exists() {
return super.exists()
&& isOnClasspath();
}
/*
* Returns the exclusion patterns from the classpath entry associated with this root.
*/
char[][] getExclusionPatterns() {
try {
return ((ClasspathEntry)getRawClasspathEntry()).charBasedExclusionPatterns();
} catch (JavaModelException e... | public boolean exists() {
return super.exists()
&& isOnClasspath();
}
/*
* Returns the exclusion patterns from the classpath entry associated with this root.
*/
char[][] getExclusionPatterns() {
try {
return ((ClasspathEntry)getRawClasspathEntry()).fulExclusionPatternChars();
} catch (JavaModelException e) ... |
public TypeBinding literalType(BlockScope scope) {
return NullBinding;
}
| public TypeBinding literalType(BlockScope scope) {
return TypeBinding.NULL;
}
|
public void indexDocument() {
try {
byte[] contents = this.document.getByteContents();
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=107124
// contents can potentially be null if a IOException occurs while retrieving the contents
if (contents == null) return;
ClassFileReader reader = new ClassF... | public void indexDocument() {
try {
final byte[] contents = this.document.getByteContents();
// see https://bugs.eclipse.org/bugs/show_bug.cgi?id=107124
// contents can potentially be null if a IOException occurs while retrieving the contents
if (contents == null) return;
ClassFileReader reader = new ... |
public synchronized void unlock() {
if (fDrawingLockHolder != null) {
fDrawingLockHolder = null;
notifyAll();
}
}
| public synchronized void unlock() {
if (fDrawingLockHolder != null) {
fDrawingLockHolder = null;
notify();
}
}
|
private synchronized void containersReset(String[] containerIDs) {
for (int i = 0; i < containerIDs.length; i++) {
String containerID = containerIDs[i];
Iterator projectIterator = this.containers.values().iterator();
while (projectIterator.hasNext()){
Map projectContainers = (Map) projectIterator.next()... | private synchronized void containersReset(String[] containerIDs) {
for (int i = 0; i < containerIDs.length; i++) {
String containerID = containerIDs[i];
Iterator projectIterator = this.containers.values().iterator();
while (projectIterator.hasNext()){
Map projectContainers = (Map) projectIterator.next()... |
public boolean supportsAddFolder(AbstractFolder newFolder) {
return true;
}
} | public boolean supportsAddFolder(IFolder newFolder) {
return true;
}
} |
public TypeBinding resolveType(BlockScope scope) {
// for code gen, harm the restrictiveFlag
if (this.actualReceiverType != null) {
this.binding = scope.getField(this.actualReceiverType, token, this);
} else {
this.actualReceiverType = scope.enclosingSourceType();
this.binding = scope.getBinding(tok... | public TypeBinding resolveType(BlockScope scope) {
// for code gen, harm the restrictiveFlag
if (this.actualReceiverType != null) {
this.binding = scope.getField(this.actualReceiverType, token, this);
} else {
this.actualReceiverType = scope.enclosingSourceType();
this.binding = scope.getBinding(tok... |
private void locateMatchesInClassFile() throws CoreException, JavaModelException {
org.eclipse.jdt.internal.core.ClassFile classFile = (org.eclipse.jdt.internal.core.ClassFile)this.openable;
BinaryType binaryType = (BinaryType)classFile.getType();
IBinaryType info;
if (classFile.isOpen()) {
// reuse the info from... | private void locateMatchesInClassFile() throws CoreException, JavaModelException {
org.eclipse.jdt.internal.core.ClassFile classFile = (org.eclipse.jdt.internal.core.ClassFile)this.openable;
BinaryType binaryType = (BinaryType)classFile.getType();
IBinaryType info;
if (classFile.isOpen()) {
// reuse the info from... |
public AttachmentActionListener(AttachmentController attachmentController) {
this.attachmentController = attachmentController;
initActions();
}
| public AttachmentActionListener(AttachmentController attachmentController) {
this.attachmentController = attachmentController;
//initActions();
}
|
public
OPTRecord(short payloadSize, byte xrcode, byte version, int flags) {
super(Name.root, Type.OPT, payloadSize,
((int)xrcode << 24) + ((int)version << 16) + flags);
options = null;
}
| public
OPTRecord(short payloadSize, byte xrcode, byte version, int flags) {
this(Name.root, payloadSize,
((int)xrcode << 24) + ((int)version << 16) + flags);
options = null;
}
|
public JeremiePRODelegate() throws Exception {
// class for name
unicastClass = Class.forName(className);
this.port=new Integer(System.getProperty(CarolDefaultValues.PORT_NUMBER_PROPERTY, "0")).intValue();
}
| public JeremiePRODelegate() throws Exception {
// class for name
unicastClass = Thread.currentThread().getContextClassLoader().loadClass(className);
this.port=new Integer(System.getProperty(CarolDefaultValues.PORT_NUMBER_PROPERTY, "0")).intValue();
}
|
public TypeBinding resolveType(BlockScope scope) {
// Build an array type reference using the current dimensions
// The parser does not check for the fact that dimension may be null
// only at the -end- like new int [4][][]. The parser allows new int[][4][]
// so this must be checked here......(this comes fro... | public TypeBinding resolveType(BlockScope scope) {
// Build an array type reference using the current dimensions
// The parser does not check for the fact that dimension may be null
// only at the -end- like new int [4][][]. The parser allows new int[][4][]
// so this must be checked here......(this comes fro... |
public String toString() {
return "(" + this.offset + ", length " + this.length + " :>" + this.replacement + "<"; //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$
}
| public String toString() {
return (this.offset < 0 ? "(" : "X(") + this.offset + ", length " + this.length + " :>" + this.replacement + "<"; //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$ //$NON-NLS-5$
}
|
protected ReferenceCollection(char[][][] qualifiedNameReferences, char[][] simpleNameReferences) {
this.qualifiedNameReferences = internQualifiedNames(qualifiedNameReferences);
this.simpleNameReferences = internSimpleNames(simpleNameReferences, true);
}
boolean includes(char[] simpleName) {
for (int i = 0, l = simp... | protected ReferenceCollection(char[][][] qualifiedNameReferences, char[][] simpleNameReferences) {
this.qualifiedNameReferences = internQualifiedNames(qualifiedNameReferences);
this.simpleNameReferences = internSimpleNames(simpleNameReferences, true);
}
boolean includes(char[] simpleName) {
for (int i = 0, l = simp... |
protected final MethodBinding mostSpecificMethodBinding(MethodBinding[] visible, int visibleSize, TypeBinding[] argumentTypes, InvocationSite invocationSite, ReferenceBinding receiverType) {
int[] compatibilityLevels = new int[visibleSize];
for (int i = 0; i < visibleSize; i++)
compatibilityLevels[i] = paramete... | protected final MethodBinding mostSpecificMethodBinding(MethodBinding[] visible, int visibleSize, TypeBinding[] argumentTypes, InvocationSite invocationSite, ReferenceBinding receiverType) {
int[] compatibilityLevels = new int[visibleSize];
for (int i = 0; i < visibleSize; i++)
compatibilityLevels[i] = paramete... |
public void initializePolymorphicSearch(MatchLocator locator, IProgressMonitor progressMonitor) {
try {
this.allSuperDeclaringTypeNames =
new SuperTypeNamesCollector(
this,
locator.handleFactory,
this.declaringType,
progressMonitor).collect();
} catch (JavaModelException e) {
// inaccurate m... | public void initializePolymorphicSearch(MatchLocator locator, IProgressMonitor progressMonitor) {
try {
this.allSuperDeclaringTypeNames =
new SuperTypeNamesCollector(
this,
locator,
this.declaringType,
progressMonitor).collect();
} catch (JavaModelException e) {
// inaccurate matches will be... |
protected void createTools(JToolBar palette) {
super.createTools(palette);
Tool tool = new TextTool(this, new TextFigure());
palette.add(createToolButton(IMAGES + "TEXT", "Text Tool", tool));
// the generic but slower version
//tool = new CreationTool(new PertFigure());
//palette.add(createToolButton(PER... | protected void createTools(JToolBar palette) {
super.createTools(palette);
Tool tool = new TextTool(this, new TextFigure());
palette.add(createToolButton(IMAGES + "TEXT", "Text Tool", tool));
// the generic but slower version
//tool = new CreationTool(new PertFigure());
//palette.add(createToolButton(PER... |
public boolean isClass() {
return this.binding.isClass() && !this.binding.isTypeVariable();
}
| public boolean isClass() {
return this.binding.isClass() && !this.binding.isTypeVariable() && !this.binding.isWildcard();
}
|
public PartPresentation createDetachedWindowPresentation(Composite parent,
IPartPresentationSite container, IPresentablePart thePart, int flags) {
return null;
}
} | public PartPresentation createDetachedViewPresentation(Composite parent,
IPartPresentationSite container, IPresentablePart thePart, int flags) {
return null;
}
} |
public String individualToString(){
return "Flow context"; //$NON-NLS-1$
}
| public String individualToString(){
return "Flow context"/*nonNLS*/;
}
|
public int previousAvailableLineEnd(int position){
Parser parser = this.parser();
if (parser == null) return position;
Scanner scanner = parser.scanner;
if (scanner.lineEnds == null) return position;
int index = scanner.searchLineNumber(position);
if (index < 2) return position;
int previousLineEnd = scanne... | public int previousAvailableLineEnd(int position){
Parser parser = this.parser();
if (parser == null) return position;
Scanner scanner = parser.scanner;
if (scanner.lineEnds == null) return position;
int index = scanner.getLineNumber(position);
if (index < 2) return position;
int previousLineEnd = scanner.l... |
public void addPages() {
super.addPages();
IWizardPage page;
WorkingSetRegistry registry = WorkbenchPlugin.getDefault().getWorkingSetRegistry();
if (descriptors.length > 1) {
page = workingSetTypePage = new WorkingSetTypePage();
} else {
edit... | public void addPages() {
super.addPages();
IWizardPage page;
WorkingSetRegistry registry = WorkbenchPlugin.getDefault().getWorkingSetRegistry();
if (descriptors.length > 1) {
page = workingSetTypePage = new WorkingSetTypePage(this.descriptors);
} else {
... |
private ActionActivityDiagram() {
super(Translator.localize("CoreMenu", "ActivityDiagram"));
}
| private ActionActivityDiagram() {
super("ActivityDiagram");
}
|
protected void markerFromProblemDetail(IResource resource, IProblemDetail problem) throws CoreException {
IMarker marker = resource.createMarker(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER);
marker.setAttribute(IMarker.MESSAGE, problem.getMessage());
int sev = problem.getSeverity();
marker.setAttribute(IMarker.... | protected void markerFromProblemDetail(IResource resource, IProblemDetail problem) throws CoreException {
IMarker marker = resource.createMarker(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER);
marker.setAttribute(IMarker.MESSAGE, problem.getMessage());
int sev = problem.getSeverity();
marker.setAttribute(IMarker.... |
public Object eval( CallStack callstack, Interpreter interpreter )
throws EvalError
{
int numchild = jjtGetNumChildren();
int child = 0;
SimpleNode switchExp = ((SimpleNode)jjtGetChild(child++));
Object switchVal = switchExp.eval( callstack, interpreter );
/*
Note: this could be made clearer by add... | public Object eval( CallStack callstack, Interpreter interpreter )
throws EvalError
{
int numchild = jjtGetNumChildren();
int child = 0;
SimpleNode switchExp = ((SimpleNode)jjtGetChild(child++));
Object switchVal = switchExp.eval( callstack, interpreter );
/*
Note: this could be made clearer by add... |
public final void widgetSelected(final SelectionEvent e) {
update();
}
});
labelBindingsForCommand = new Label(groupCommand, SWT.LEFT);
gridData = new GridData(GridData.VERTICAL_ALIGN_BEGINNING);
gridData.verticalAlignment = GridData.FILL_VERTICAL;
labelBindingsForCommand.setLayoutData(gridData);
... | public final void widgetSelected(final SelectionEvent e) {
update();
}
});
labelBindingsForCommand = new Label(groupCommand, SWT.LEFT);
gridData = new GridData(GridData.VERTICAL_ALIGN_BEGINNING);
gridData.verticalAlignment = GridData.FILL_VERTICAL;
labelBindingsForCommand.setLayoutData(gridData);
... |
abstract class JobTreeElement implements Comparable{
/*******************************************************************************
* Copyright (c) 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License... | abstract class JobTreeElement implements Comparable{
/*******************************************************************************
* Copyright (c) 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Common Public License... |
private Object doName(
Object obj, boolean toLHS,
CallStack callstack, Interpreter interpreter)
throws EvalError, ReflectError, InvocationTargetException
{
try {
// .length on array
if ( field.equals("length") && obj.getClass().isArray() )
if ( toLHS )
throw new EvalError(
"Can't assign... | private Object doName(
Object obj, boolean toLHS,
CallStack callstack, Interpreter interpreter)
throws EvalError, ReflectError, InvocationTargetException
{
try {
// .length on array
if ( field.equals("length") && obj.getClass().isArray() )
if ( toLHS )
throw new EvalError(
"Can't assign... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.