buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
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;
ReadWriteMoni... | 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 */
if (... |
public void run() {
workbenchWindow.getWorkbench().showIntro(workbenchWindow);
}
| public void run() {
workbenchWindow.getWorkbench().showIntro(workbenchWindow, false);
}
|
public void view(MessageFolder folder, Object uid,
MailFrameMediator mediator) throws Exception {
MimePart bodyPart = null;
InputStream bodyStream;
MimeTree mimePartTree = folder.getMimePartTree(uid);
XmlElement html = MailInterface.config.getMainFrameOptionsConfig()
.getRoot().getElement("/options/ht... | public void view(MessageFolder folder, Object uid,
MailFrameMediator mediator) throws Exception {
MimePart bodyPart = null;
InputStream bodyStream;
MimeTree mimePartTree = folder.getMimePartTree(uid);
XmlElement html = MailInterface.config.getMainFrameOptionsConfig()
.getRoot().getElement("/options/ht... |
public PasteFromListDialog(String name, View view, ListModel model)
{
super(view,jEdit.getProperty(name + ".title"),true);
this.view = view;
JPanel content = new JPanel(new BorderLayout());
content.setBorder(new EmptyBorder(12,12,12,12));
setContentPane(content);
JPanel center = new JPanel(new GridLayout... | public PasteFromListDialog(String name, View view, ListModel model)
{
super(view,jEdit.getProperty(name + ".title"),true);
this.view = view;
JPanel content = new JPanel(new BorderLayout());
content.setBorder(new EmptyBorder(12,12,12,12));
setContentPane(content);
JPanel center = new JPanel(new GridLayout... |
public void testGet() throws Exception {
ContactModel c = new ContactModel();
c.setNickName("nickname");
Object uid = getSourceFolder().add(c);
IContactModel c2 = getSourceFolder().get(uid);
assertEquals("same nickname", c.getNickName(), c2.getNickName());
}
| public void testGet() throws Exception {
ContactModel c = new ContactModel();
c.setNickName("nickname");
String uid = getSourceFolder().add(c);
IContactModel c2 = getSourceFolder().get(uid);
assertEquals("same nickname", c.getNickName(), c2.getNickName());
}
|
public static void updatePerspective(IConfigurationElement configElement) {
// Do not change perspective if the configuration element is
// not specified.
if (configElement == null)
return;
AbstractUIPlugin uiPlugin =
(AbstractUIPlugin) Platform.getPlugin(PlatformUI.PLUGIN_ID);
// Retrieve the new projec... | public static void updatePerspective(IConfigurationElement configElement) {
// Do not change perspective if the configuration element is
// not specified.
if (configElement == null)
return;
AbstractUIPlugin uiPlugin =
(AbstractUIPlugin) Platform.getPlugin(PlatformUI.PLUGIN_ID);
// Retrieve the new projec... |
public void delete()
throws Exception
{
int dupeSequence = 0;
Integer issueTypeId = getIssueTypeId();
IssueType issueType = IssueTypeManager
.getInstance(SimpleKey.keyFor(issueTypeId), false);
List attrGroups = null;
if (isGlobal())
... | public void delete()
throws Exception
{
int dupeSequence = 0;
Integer issueTypeId = getIssueTypeId();
IssueType issueType = IssueTypeManager
.getInstance(SimpleKey.keyFor(issueTypeId), false);
List attrGroups = null;
if (isGlobal())
... |
public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, IProgressMonitor progressMonitor) {
IPackageFragmentRoot root = (IPackageFragmentRoot) this.typeParameter.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT);
String documentPath;
String... | public void findIndexMatches(Index index, IndexQueryRequestor requestor, SearchParticipant participant, IJavaSearchScope scope, IProgressMonitor progressMonitor) {
IPackageFragmentRoot root = (IPackageFragmentRoot) this.typeParameter.getAncestor(IJavaElement.PACKAGE_FRAGMENT_ROOT);
String documentPath;
String... |
private void saveExpandedState(AbstractFolder folder, TreePath path) {
FolderItem item = folder.getFolderItem();
XmlElement property = item.getElement("property");
// Note: we negate the expanded state because this is
// a will-expand/collapse listener
if (!getView().... | private void saveExpandedState(AbstractFolder folder, TreePath path) {
FolderItem item = folder.getConfiguration();
XmlElement property = item.getElement("property");
// Note: we negate the expanded state because this is
// a will-expand/collapse listener
if (!getView... |
public int getNodeType() {
return LINE_COMMENT;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
LineComment result = new LineComment(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
return result;
}
| public int getNodeType() {
return LINE_COMMENT;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone0(AST target) {
LineComment result = new LineComment(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
return result;
}
|
public RemoveAddressFromWhiteListAction(FrameMediator frameController) {
super(frameController, "Remove Address from Whitelist");
// tooltip text
setTooltipText("Remove Address from Whitelist");
setEnabled(false);
(
(
AbstractMailFrameController) frameController)
.registerTableSelectionListener... | public RemoveAddressFromWhiteListAction(FrameMediator frameController) {
super(frameController, "Remove Address from Whitelist");
// tooltip text
putValue(SHORT_DESCRIPTION, "Remove Address from Whitelist");
setEnabled(false);
(
(
AbstractMailFrameController) frameController)
.registerTableSele... |
public static final NumberKey GLOBAL__PK = new NumberKey("2");
} | public static final NumberKey MODULE__PK = new NumberKey("2");
} |
public final boolean canBeSeenBy(TypeBinding receiverType, InvocationSite invocationSite, Scope scope) {
if (isPublic()) return true;
SourceTypeBinding invocationType = scope.enclosingSourceType();
if (invocationType == this.declaringClass && invocationType == receiverType) return true;
if (invocationType == null... | public final boolean canBeSeenBy(TypeBinding receiverType, InvocationSite invocationSite, Scope scope) {
if (isPublic()) return true;
SourceTypeBinding invocationType = scope.enclosingSourceType();
if (invocationType == this.declaringClass && invocationType == receiverType) return true;
if (invocationType == null... |
public void build(boolean computeSubtypes) {
JavaModelManager manager = JavaModelManager.getJavaModelManager();
try {
// optimize access to zip files while building hierarchy
manager.cacheZipFiles();
if (this.hierarchy.type == null || computeSubtypes) {
IProgressMonitor typeInRegionMonitor =
thi... | public void build(boolean computeSubtypes) {
JavaModelManager manager = JavaModelManager.getJavaModelManager();
try {
// optimize access to zip files while building hierarchy
manager.cacheZipFiles();
if (this.hierarchy.focusType == null || computeSubtypes) {
IProgressMonitor typeInRegionMonitor =
... |
public String getExecuteLink(String link)
{
return link
+ "/template/IssueList.vm?action=Search&eventSubmit_doSearch=Search"
+ getValue();
}
| public String getExecuteLink(String link)
{
return link
+ "/template/IssueList.vm?action=Search&eventSubmit_doSearch=Search"
+ "&resultsperpage=25&pagenum=1" + getValue();
}
|
private void fillMenu(IMenuManager innerMgr) {
// Remove all.
innerMgr.removeAll();
// If no page disable all.
IWorkbenchPage page = window.getActivePage();
if (page == null)
return;
// If no active perspective disable all
if (page.getPerspective() == null)
return;
// Get visible actions. (cop... | private void fillMenu(IMenuManager innerMgr) {
// Remove all.
innerMgr.removeAll();
// If no page disable all.
IWorkbenchPage page = window.getActivePage();
if (page == null)
return;
// If no active perspective disable all
if (page.getPerspective() == null)
return;
// Get visible actions. (cop... |
public void saveIndexes(){
ArrayList indexList = new ArrayList();
synchronized(this){
for (Iterator iter = indexes.values().iterator(); iter.hasNext();){
indexList.add(iter.next());
}
}
for (Iterator iter = indexList.iterator(); iter.hasNext();){
IIndex index = (IIndex)iter.next();
if (index == null)... | public void saveIndexes(){
ArrayList indexList = new ArrayList();
synchronized(this){
for (Iterator iter = indexes.values().iterator(); iter.hasNext();){
indexList.add(iter.next());
}
}
for (Iterator iter = indexList.iterator(); iter.hasNext();){
IIndex index = (IIndex)iter.next();
if (index == null)... |
protected static Record
rdataFromString(NS_CNAME_PTRRecord rec, MyStringTokenizer st, Name origin)
throws TextParseException
{
rec.target = Name.fromString(st.nextToken(), origin);
rec.target.checkAbsolute("read an NS, CNAME, PTR, or similar record");
return rec;
}
| protected static Record
rdataFromString(NS_CNAME_PTRRecord rec, MyStringTokenizer st, Name origin)
throws TextParseException
{
rec.target = Name.fromString(nextString(st), origin);
rec.target.checkAbsolute("read an NS, CNAME, PTR, or similar record");
return rec;
}
|
protected AbstractImageBuilder(JavaBuilder javaBuilder) {
this.javaBuilder = javaBuilder;
// local copies
this.outputFolder = javaBuilder.outputFolder;
this.sourceFolders = javaBuilder.sourceFolders;
this.notifier = javaBuilder.notifier;
this.hasSeparateOutputFolder = !outputFolder.getFullPath().equals(javaBuil... | protected AbstractImageBuilder(JavaBuilder javaBuilder) {
this.javaBuilder = javaBuilder;
// local copies
this.outputFolder = javaBuilder.outputFolder;
this.sourceFolders = javaBuilder.sourceFolders;
this.notifier = javaBuilder.notifier;
this.hasSeparateOutputFolder = !outputFolder.getFullPath().equals(javaBuil... |
package org.eclipse.ui.commands;
/*******************************************************************************
* 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
* which... | package org.eclipse.ui.commands;
/*******************************************************************************
* 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
* which... |
protected IBuffer openBuffer(IProgressMonitor pm) throws JavaModelException {
SourceMapper mapper = getSourceMapper();
if (mapper != null) {
char[] contents = mapper.findSource(getType());
if (contents != null) {
IBufferManager bufManager = getBufferManager();
IBuffer buf = bufManager.openBuffer(contents, p... | protected IBuffer openBuffer(IProgressMonitor pm) throws JavaModelException {
SourceMapper mapper = getSourceMapper();
if (mapper != null) {
char[] contents = mapper.findSource(getType());
if (contents != null) {
IBufferManager bufManager = getBufferManager();
IBuffer buf = bufManager.openBuffer(contents, p... |
protected void parseCatsAndRenderers(
Properties props, LoggerRepository hierarchy) {
Enumeration enum = props.propertyNames();
while (enum.hasMoreElements()) {
String key = (String) enum.nextElement();
if (key.startsWith(CATEGORY_PREFIX) || key.startsWith(LOGGER_PREFIX)) {
String lo... | protected void parseCatsAndRenderers(
Properties props, LoggerRepository hierarchy) {
Enumeration enum = props.propertyNames();
while (enum.hasMoreElements()) {
String key = (String) enum.nextElement();
if (key.startsWith(CATEGORY_PREFIX) || key.startsWith(LOGGER_PREFIX)) {
String lo... |
protected boolean buildStructure(OpenableElementInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) throws JavaModelException {
// check whether this pkg fragment root can be opened
IStatus status = validateOnClasspath();
if (!status.isOK()) throw newJavaModelException(status);
if (!res... | protected boolean buildStructure(OpenableElementInfo info, IProgressMonitor pm, Map newElements, IResource underlyingResource) throws JavaModelException {
// check whether this pkg fragment root can be opened
IStatus status = validateOnClasspath();
if (!status.isOK()) throw newJavaModelException(status);
if (!res... |
public int getNodeType() {
return TYPE_PARAMETER;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
TypeParameter result = new TypeParameter(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.setName((SimpleName) ((ASTNode) g... | public int getNodeType() {
return TYPE_PARAMETER;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone0(AST target) {
TypeParameter result = new TypeParameter(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.setName((SimpleName) ((ASTNode) ... |
protected void okPressed() {
// Shortcuts
if (showShortcutTab()) {
perspective.setNewWizardActionIds(getVisibleIDs(wizards));
perspective.setPerspectiveActionIds(getVisibleIDs(perspectives));
perspective.setShowViewActionIds(getVisibleIDs(views));
}
// Determine if anything has changed and, if so, up... | protected void okPressed() {
// Shortcuts
if (showShortcutTab()) {
perspective.setNewWizardActionIds(getVisibleIDs(wizards));
perspective.setPerspectiveActionIds(getVisibleIDs(perspectives));
perspective.setShowViewActionIds(getVisibleIDs(views));
}
// Determine if anything has changed and, if so, up... |
protected void toStringInfo(int tab, StringBuffer buffer, Object info) {
buffer.append(this.tabString(tab));
if (getElementName().length() == 0) {
buffer.append("[project root]"); //$NON-NLS-1$
} else {
IPath path = getPath();
if (getJavaProject().getElementName().equals(path.segment(0))) {
buffer.append(pa... | protected void toStringInfo(int tab, StringBuffer buffer, Object info) {
buffer.append(this.tabString(tab));
if (getElementName().length() == 0) {
buffer.append("<project root>"); //$NON-NLS-1$
} else {
IPath path = getPath();
if (getJavaProject().getElementName().equals(path.segment(0))) {
buffer.append(pa... |
public synchronized void paint(Graphics g)
{
Dimension size = getSize();
if(offscreenImg == null)
{
offscreenImg = createImage(size.width,size.height);
offscreenGfx = offscreenImg.getGraphics();
}
offscreenGfx.setColor(Color.gray);
offscreenGfx.drawRect(0,0,size.width - 1,size.height - 1);
offs... | public synchronized void paint(Graphics g)
{
Dimension size = getSize();
if(offscreenImg == null)
{
offscreenImg = createImage(size.width,size.height);
offscreenGfx = offscreenImg.getGraphics();
}
offscreenGfx.setColor(Color.gray);
offscreenGfx.drawRect(0,0,size.width - 1,size.height - 1);
offs... |
public void printNextToken(int expectedTokenType, boolean considerSpaceIfAny){
printComment(false);
try {
this.currentToken = this.scanner.getNextToken();
char[] currentTokenSource = this.scanner.getCurrentTokenSource();
if (expectedTokenType != this.currentToken) {
throw new AbortFormatting("unexpect... | public void printNextToken(int expectedTokenType, boolean considerSpaceIfAny){
printComment(false);
try {
this.currentToken = this.scanner.getNextToken();
char[] currentTokenSource = this.scanner.getRawTokenSource();
if (expectedTokenType != this.currentToken) {
throw new AbortFormatting("unexpected t... |
public void update(boolean force) {
if (isDirty() || force) {
if (coolBarExist()) {
boolean useRedraw = false;
CoolBarLayout layout = getLayout();
// remove CoolBarItemContributions that are empty
IContributionItem[] items = getItems();
ArrayList cbItemsToRemove = new ArrayList(items.leng... | public void update(boolean force) {
if (isDirty() || force) {
if (coolBarExist()) {
boolean useRedraw = false;
CoolBarLayout layout = getLayout();
// remove CoolBarItemContributions that are empty
IContributionItem[] items = getItems();
ArrayList cbItemsToRemove = new ArrayList(items.leng... |
public boolean trySave( boolean overwrite ) {
Object target = ProjectBrowser.TheInstance.getTarget();
if( target instanceof Diagram ) {
String defaultName = ((Diagram)target).getName();
defaultName = Util.stripJunk(defaultName);
// FIX - It's probably worthwhile to abstract and factor this chooser... | public boolean trySave( boolean overwrite ) {
Object target = ProjectBrowser.TheInstance.getActiveDiagram();
if( target instanceof Diagram ) {
String defaultName = ((Diagram)target).getName();
defaultName = Util.stripJunk(defaultName);
// FIX - It's probably worthwhile to abstract and factor this ... |
public void actionPerformed(ActionEvent ae) {
Project p = ProjectBrowser.TheInstance.getProject();
try {
int numPacks = p.getModels().size();
String nameStr = "package_" + (numPacks + 1);
MModel model = UmlFactory.getFactory().getModelManagement().createModel();
model.setName(nameStr);
p.... | public void actionPerformed(ActionEvent ae) {
Project p = ProjectBrowser.TheInstance.getProject();
try {
int numPacks = p.getUserDefinedModels().size();
String nameStr = "package_" + (numPacks + 1);
MModel model = UmlFactory.getFactory().getModelManagement().createModel();
model.setName(nameSt... |
public void run() {
try {
process.waitFor();
if (verbose) {
System.out.println("Stopping process " + processID);
System.out.println("Error:");
System.out.println(getProcessError(process));
System.out.println("Output:");
System.out.println(getProcessOutput(process));
}
synchro... | public void run() {
try {
process.waitFor();
if (verbose) {
System.out.println("Stopping process " + processID);
System.out.println("Error:");
System.out.println(getProcessError(process));
System.out.println("Output:");
System.out.println(getProcessOutput(process));
}
synchro... |
public void TestActorClonable() {
try {
FigActor actor = new FigActor();
FigActor actorclone;
actorclone = (FigActor) actor.clone();
assert("FigActor cloned", true);
}
catch(Exception e) {
assert("FigActor not ... | public void testActorClonable() {
try {
FigActor actor = new FigActor();
FigActor actorclone;
actorclone = (FigActor) actor.clone();
assert("FigActor cloned", true);
}
catch(Exception e) {
assert("FigActor not ... |
public Map getOptions(boolean inheritJavaCoreOptions) {
// initialize to the defaults from JavaCore options pool
Map options = inheritJavaCoreOptions ? JavaCore.getOptions() : new Hashtable(5);
// Get project specific options
JavaModelManager.PerProjectInfo perProjectInfo = null;
Hashtable projectOptions =... | public Map getOptions(boolean inheritJavaCoreOptions) {
// initialize to the defaults from JavaCore options pool
Map options = inheritJavaCoreOptions ? JavaCore.getOptions() : new Hashtable(5);
// Get project specific options
JavaModelManager.PerProjectInfo perProjectInfo = null;
Hashtable projectOptions =... |
public void notifySourceElementRequestor(
ImportReference importReference,
boolean isPackage) {
if (isPackage) {
requestor.acceptPackage(
importReference.declarationSourceStart,
importReference.declarationSourceEnd,
CharOperation.concatWith(importReference.getImportName(), '.'));
} else {
requestor... | public void notifySourceElementRequestor(
ImportReference importReference,
boolean isPackage) {
if (isPackage) {
requestor.acceptPackage(
importReference.declarationSourceStart,
importReference.declarationSourceEnd,
CharOperation.concatWith(importReference.getImportName(), '.'));
} else {
requestor... |
public void notifySourceElementRequestor(AbstractMethodDeclaration methodDeclaration) {
// range check
boolean isInRange =
scanner.initialPosition <= methodDeclaration.declarationSourceStart
&& scanner.eofPosition >= methodDeclaration.declarationSourceEnd;
if (methodDeclaration.isClinit()) {
this.visitI... | public void notifySourceElementRequestor(AbstractMethodDeclaration methodDeclaration) {
// range check
boolean isInRange =
scanner.initialPosition <= methodDeclaration.declarationSourceStart
&& scanner.eofPosition >= methodDeclaration.declarationSourceEnd;
if (methodDeclaration.isClinit()) {
this.visitI... |
public boolean isRecursive(ArrayList visited) {
if (this.binding == null
|| this.constructorCall == null
|| this.constructorCall.binding == null
|| this.constructorCall.isSuperAccess()
|| !this.constructorCall.binding.isValidBinding()) {
return false;
}
ConstructorDeclaration targetConstru... | public boolean isRecursive(ArrayList visited) {
if (this.binding == null
|| this.constructorCall == null
|| this.constructorCall.binding == null
|| this.constructorCall.isSuperAccess()
|| !this.constructorCall.binding.isValidBinding()) {
return false;
}
ConstructorDeclaration targetConstru... |
public static final SuffixFilter XMIFilter = new
SuffixFilter("xmi", "Argo model file");
| public static final SuffixFilter XMIFilter = new
SuffixFilter("xmi", "XML Metadata Interchange");
|
public void performCompilation() throws InvalidInputException {
this.startTime = System.currentTimeMillis();
INameEnvironment environment = getLibraryAccess();
Compiler batchCompiler =
new Compiler(
environment,
getHandlingPolicy(),
this.options,
getBatchRequestor(),
getProblemFactory())... | public void performCompilation() throws InvalidInputException {
this.startTime = System.currentTimeMillis();
INameEnvironment environment = getLibraryAccess();
Compiler batchCompiler =
new Compiler(
environment,
getHandlingPolicy(),
this.options,
getBatchRequestor(),
getProblemFactory())... |
protected static Border lineBorder = new HeaderSeparatorBorder(
Color.LIGHT_GRAY);
| protected static Border lineBorder = new HeaderSeparatorBorder(
new Color(248, 248, 248));
|
private ColumbaHeader parseEnvelope(String envelope) {
ColumbaHeader result = new ColumbaHeader();
BodystructureTokenizer tokenizer = new BodystructureTokenizer( envelope );
Item nextItem;
// Date
nextItem = tokenizer.getNextItem();
if( nextItem.getType() == Item.STRING )
result.set( "Date", (S... | private ColumbaHeader parseEnvelope(String envelope) {
ColumbaHeader result = new ColumbaHeader();
BodystructureTokenizer tokenizer = new BodystructureTokenizer( envelope );
Item nextItem;
// Date
nextItem = tokenizer.getNextItem();
if( nextItem.getType() == Item.STRING )
result.set( "Date", (S... |
private TypeBinding leastContainingInvocation(TypeBinding mec, Set invocations, List lubStack) {
if (invocations == null) return mec; // no alternate invocation
int length = invocations.size();
Iterator iter = invocations.iterator();
if (length == 1) return (TypeBinding) iter.next();
int argLength = mec.type... | private TypeBinding leastContainingInvocation(TypeBinding mec, Set invocations, List lubStack) {
if (invocations == null) return mec; // no alternate invocation
int length = invocations.size();
Iterator iter = invocations.iterator();
if (length == 1) return (TypeBinding) iter.next();
int argLength = mec.type... |
public void consumeBaseType(char[] baseTypeSig) {
this.compoundName = new char[][] {baseTypeSig};
TypeBinding baseTypeBinding = getBaseTypeBinding(baseTypeSig);
if (baseTypeBinding != null) {
this.typeBinding = baseTypeBinding;
}
}
| public void consumeBaseType(char[] baseTypeSig) {
this.compoundName = new char[][] {getKey().toCharArray()};
TypeBinding baseTypeBinding = getBaseTypeBinding(baseTypeSig);
if (baseTypeBinding != null) {
this.typeBinding = baseTypeBinding;
}
}
|
private final void editKeyBinding() {
// Create a preference dialog on the keys preference page.
final String keysPageId = "org.eclipse.ui.preferencePages.NewKeys"; //$NON-NLS-1$
final PreferenceDialog dialog = PreferencesUtil
.createPreferenceDialogOn(getShell(), keysPageId, null, binding);
/*
* Forge... | private final void editKeyBinding() {
// Create a preference dialog on the keys preference page.
final String keysPageId = "org.eclipse.ui.preferencePages.Keys"; //$NON-NLS-1$
final PreferenceDialog dialog = PreferencesUtil
.createPreferenceDialogOn(getShell(), keysPageId, null, binding);
/*
* Forget t... |
public void doService(Request req, Response res)
throws Exception
{
if(req.method().equalsIgnoreCase("OPTIONS")) {
doOptions(req, res);
return;
} else if(req.method().equalsIgnoreCase("TRACE")) {
doTrace(req, res);
return;
}
// if we are in include, with req==original request
// - just... | public void doService(Request req, Response res)
throws Exception
{
if(req.method().equalsIgnoreCase("OPTIONS")) {
doOptions(req, res);
return;
} else if(req.method().equalsIgnoreCase("TRACE")) {
doTrace(req, res);
return;
}
// if we are in include, with req==original request
// - just... |
protected IProject[] build(int kind, Map ignored, IProgressMonitor monitor) throws CoreException {
this.currentProject = getProject();
if (currentProject == null || !currentProject.isAccessible()) return new IProject[0];
if (DEBUG)
System.out.println("\nStarting build of " + currentProject.getName() //$NON-NLS-1$... | protected IProject[] build(int kind, Map ignored, IProgressMonitor monitor) throws CoreException {
this.currentProject = getProject();
if (currentProject == null || !currentProject.isAccessible()) return new IProject[0];
if (DEBUG)
System.out.println("\nStarting build of " + currentProject.getName() //$NON-NLS-1$... |
public final boolean isIgnored(int completionProposalKind) {
if (completionProposalKind < CompletionProposal.ANONYMOUS_CLASS_DECLARATION
|| completionProposalKind > CompletionProposal.VARIABLE_DECLARATION) {
throw new IllegalArgumentException();
}
return 0 != (this.ignoreSet & (1 << completionProposalKind... | public final boolean isIgnored(int completionProposalKind) {
if (completionProposalKind < CompletionProposal.ANONYMOUS_CLASS_DECLARATION
|| completionProposalKind > CompletionProposal.METHOD_NAME_REFERENCE) {
throw new IllegalArgumentException();
}
return 0 != (this.ignoreSet & (1 << completionProposalKin... |
public boolean execute(IProgressMonitor progressMonitor) {
if (this.isCancelled || progressMonitor != null && progressMonitor.isCanceled()) return true;
/* ensure no concurrent write access to index */
Index index = manager.getIndex(this.containerPath, true, /*reuse index file*/ false /*create if none*/);
if... | public boolean execute(IProgressMonitor progressMonitor) {
if (this.isCancelled || progressMonitor != null && progressMonitor.isCanceled()) return true;
/* ensure no concurrent write access to index */
Index index = this.manager.getIndex(this.containerPath, true, /*reuse index file*/ false /*create if none*/);... |
protected StringBuffer print(StringBuffer output) {
if (this.findDeclarations) {
output.append(this.findReferences
? "TypeParamCombinedPattern: " //$NON-NLS-1$
: "TypeParamDeclarationPattern: "); //$NON-NLS-1$
} else {
output.append("TypeParamReferencePattern: "); //$NON-NLS-1$
}
output.append(ty... | protected StringBuffer print(StringBuffer output) {
if (this.findDeclarations) {
output.append(this.findReferences
? "TypeParamCombinedPattern: " //$NON-NLS-1$
: "TypeParamDeclarationPattern: "); //$NON-NLS-1$
} else {
output.append("TypeParamReferencePattern: "); //$NON-NLS-1$
}
output.append(th... |
private ActionActivityDiagram() {
super("ActivityDiagram");
}
| private ActionActivityDiagram() {
super("action.activity-diagram");
}
|
public void setAttribute( String prop, Object value) {
if( debug > 0 )
loghelper.log( "setAttribute( " + prop + " , " + value + ")");
try {
if( value instanceof String ) {
String valueS=(String)value;
if( PORT.equals(prop) ) {
setPort( valueS );
} else if(HANDLER.equals(prop)) {
c... | public void setAttribute( String prop, Object value) {
if( debug > 0 )
loghelper.log( "setAttribute( " + prop + " , " + value + ")");
try {
if( value instanceof String ) {
String valueS=(String)value;
if( PORT.equals(prop) ) {
setPort( valueS );
} else if(HANDLER.equals(prop)) {
c... |
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 ViewMessageAction(FrameController controller) {
super(controller);
controller.getSelectionManager().registerSelectionListener("mail.headertable", this);
}
| public ViewMessageAction(FrameController controller) {
super(controller);
controller.getSelectionManager().registerSelectionListener("mail.table", this);
}
|
public boolean visit(Javadoc node) {
// ignore deprecated node.getComment()
this.buffer.append("/** ");//$NON-NLS-1$
for (Iterator it = node.fragments().iterator(); it.hasNext(); ) {
ASTNode e = (ASTNode) it.next();
e.accept(this);
}
this.buffer.append("\n */");//$NON-NLS-1$
return false;
}
| public boolean visit(Javadoc node) {
// ignore deprecated node.getComment()
this.buffer.append("/** ");//$NON-NLS-1$
for (Iterator it = node.tags().iterator(); it.hasNext(); ) {
ASTNode e = (ASTNode) it.next();
e.accept(this);
}
this.buffer.append("\n */");//$NON-NLS-1$
return false;
}
|
// The private access will be managed through the code generation
if ((flowInfo.tagBits & FlowInfo.UNREACHABLE) != 0) return;
// if field from parameterized type got found, use the original field at codegen time
if (this.binding instanceof ParameterizedFieldBinding) {
ParameterizedFieldBinding parameterized... | // The private access will be managed through the code generation
if ((flowInfo.tagBits & FlowInfo.UNREACHABLE) != 0) return;
// if field from parameterized type got found, use the original field at codegen time
if (this.binding instanceof ParameterizedFieldBinding) {
ParameterizedFieldBinding parameterized... |
private IJavaElement createElement(Scope scope, int elementPosition, ICompilationUnit unit, HashSet existingElements, HashMap knownScopes) {
IJavaElement newElement = (IJavaElement)knownScopes.get(scope);
if (newElement != null) return newElement;
switch(scope.kind) {
case Scope.COMPILATION_UNIT_SCOPE :
... | private IJavaElement createElement(Scope scope, int elementPosition, ICompilationUnit unit, HashSet existingElements, HashMap knownScopes) {
IJavaElement newElement = (IJavaElement)knownScopes.get(scope);
if (newElement != null) return newElement;
switch(scope.kind) {
case Scope.COMPILATION_UNIT_SCOPE :
... |
* N.B. This constructor is package-private.
* </p>
*
* @param ast the AST that is to own this node
*/
SuperFieldAccess(AST ast) {
super(ast);
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
final List internalStructuralPropertiesForType(int apiLevel) {
return propertyDescrip... | * N.B. This constructor is package-private.
* </p>
*
* @param ast the AST that is to own this node
*/
SuperFieldAccess(AST ast) {
super(ast);
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
final List internalStructuralPropertiesForType(int apiLevel) {
return propertyDescrip... |
public TypeBinding resolveType(BlockScope scope) {
// field and/or local are done before type lookups
// the only available value for the restrictiveFlag BEFORE
// the TC is Flag_Type Flag_LocalField and Flag_TypeLocalField
this.actualReceiverType = scope.enclosingReceiverType();
this.constant = Constant.NotACons... | public TypeBinding resolveType(BlockScope scope) {
// field and/or local are done before type lookups
// the only available value for the restrictiveFlag BEFORE
// the TC is Flag_Type Flag_LocalField and Flag_TypeLocalField
this.actualReceiverType = scope.enclosingReceiverType();
this.constant = Constant.NotACons... |
public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
if (ignoreFurtherInvestigation)
return flowInfo;
try {
// remember local types binding for innerclass emulation propagation
currentScope.referenceCompilationUnit().record((LocalTypeBinding) binding);... | public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
if (ignoreFurtherInvestigation)
return flowInfo;
try {
// remember local types binding for innerclass emulation propagation
currentScope.referenceCompilationUnit().record((LocalTypeBinding) binding);... |
private Object[] computeNonJavaResources(JavaProject project) {
// determine if src == project and/or if bin == project
IPath projectPath = project.getProject().getFullPath();
boolean srcIsProject = false;
boolean binIsProject = false;
char[][] inclusionPatterns = null;
char[][] exclusionPatterns = null... | private Object[] computeNonJavaResources(JavaProject project) {
// determine if src == project and/or if bin == project
IPath projectPath = project.getProject().getFullPath();
boolean srcIsProject = false;
boolean binIsProject = false;
char[][] inclusionPatterns = null;
char[][] exclusionPatterns = null... |
public void reconcile(boolean forceProblemDetection, IProgressMonitor monitor) throws JavaModelException {
if (this.useCount == 0) throw newNotPresentException(); //was destroyed
if (monitor != null){
if (monitor.isCanceled()) return;
monitor.beginTask(Util.bind("element.reconciling"), 10); //$NON-NLS-1$
}
... | public void reconcile(boolean forceProblemDetection, IProgressMonitor monitor) throws JavaModelException {
if (this.useCount == 0) throw newNotPresentException(); //was destroyed
if (monitor != null){
if (monitor.isCanceled()) return;
monitor.beginTask(Util.bind("element.reconciling"), 10); //$NON-NLS-1$
}
... |
public ConstructorDeclaration(CompilationResult compilationResult){
super(compilationResult);
}
/**
* @see org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration#analyseCode(org.eclipse.jdt.internal.compiler.lookup.ClassScope, org.eclipse.jdt.internal.compiler.flow.InitializationFlowContext, org.eclipse.jdt... | public ConstructorDeclaration(CompilationResult compilationResult){
super(compilationResult);
}
/**
* @see org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration#analyseCode(org.eclipse.jdt.internal.compiler.lookup.ClassScope, org.eclipse.jdt.internal.compiler.flow.InitializationFlowContext, org.eclipse.jdt... |
public SaveAllAction(IWorkbenchWindow window) {
super(WorkbenchMessages.SaveAll_text, window);
setToolTipText(WorkbenchMessages.SaveAll_toolTip);
setId("saveAll"); //$NON-NLS-1$
setEnabled(false);
window.getWorkbench().getHelpSystem().setHelp(this,
IWorkbenchHelpContextId... | public SaveAllAction(IWorkbenchWindow window) {
super(WorkbenchMessages.SaveAll_text, window);
setToolTipText(WorkbenchMessages.SaveAll_toolTip);
setId("saveAll"); //$NON-NLS-1$
setEnabled(false);
window.getWorkbench().getHelpSystem().setHelp(this,
IWorkbenchHelpContextId... |
public boolean isEquivalentTo(TypeBinding otherType) {
if (this == otherType) return true;
if (otherType == null) return false;
switch(otherType.kind()) {
case Binding.WILDCARD_TYPE :
return ((WildcardBinding) otherType).boundCheck(this);
case Binding.PARAMETERIZED_TYPE :
if ((otherType.tagBits & TagBit... | public boolean isEquivalentTo(TypeBinding otherType) {
if (this == otherType) return true;
if (otherType == null) return false;
switch(otherType.kind()) {
case Binding.WILDCARD_TYPE :
return ((WildcardBinding) otherType).boundCheck(this);
case Binding.PARAMETERIZED_TYPE :
if ((otherType.tagBits & TagBit... |
public void body(String text) throws Exception
{
if (text != null &&
!UserRule.isUserInUserList(getImportBean()) &&
text.length() > 0)
{
getImportBean().getRoleList().add(text);
log().debug("(" + getImportBean().getState() +
") a... | public void body(String text) throws Exception
{
if (text != null &&
!UserRule.isUserInUserList(getImportBean()) &&
text.length() > 0)
{
getImportBean().getRoleList().add(text);
log().debug("(" + getImportBean().getState() +
") f... |
static public void fail(String message) {
throw new AssertionError(message);
}
| static public void fail(String message) {
throw new AssertionError(message == null ? "" : message);
}
|
public TableModelClassChecks() {
}
////////////////
// accessors
public void setTarget(Vector classes, ArrayList languages) {
_classes = classes;
_languages = languages;
_checked = new Set[getLanguagesCount()];
for (int j = 0; j < getLanguagesCount(); j++)
_checked[j] = new HashSet(); // Do... | public TableModelClassChecks() {
}
////////////////
// accessors
public void setTarget(Vector classes, ArrayList languages) {
_classes = classes;
_languages = languages;
_checked = new Set[getLanguagesCount()];
for (int j = 0; j < getLanguagesCount(); j++)
_checked[j] = new HashSet(); // Do... |
protected LayoutPart getVisiblePart(ILayoutContainer container) {
return ((ViewStack) container).getVisiblePart();
}
| protected LayoutPart getVisiblePart(ILayoutContainer container) {
return ((ViewStack) container).getSelection();
}
|
protected void consumeTypeImportOnDemandDeclarationName() {
// TypeImportOnDemandDeclarationName ::= 'import' Name '.' '*'
/* push an ImportRef build from the last name
stored in the identifier stack. */
int index;
/* no need to take action if not inside assist identifiers */
if ((index = indexOfAssistIdentifi... | protected void consumeTypeImportOnDemandDeclarationName() {
// TypeImportOnDemandDeclarationName ::= 'import' Name '.' '*'
/* push an ImportRef build from the last name
stored in the identifier stack. */
int index;
/* no need to take action if not inside assist identifiers */
if ((index = indexOfAssistIdentifi... |
protected void openWhenClosed(IProgressMonitor pm, IBuffer buffer) throws JavaModelException {
try {
if (JavaModelManager.VERBOSE){
System.out.println("OPENING Element ("+ Thread.currentThread()+"): " + this.toStringWithAncestors()); //$NON-NLS-1$//$NON-NLS-2$
}
// 1) Parent must be open - open the pare... | protected void openWhenClosed(IProgressMonitor pm, IBuffer buffer) throws JavaModelException {
try {
if (JavaModelManager.VERBOSE){
System.out.println("OPENING Element ("+ Thread.currentThread()+"): " + this.toStringWithAncestors()); //$NON-NLS-1$//$NON-NLS-2$
}
// 1) Parent must be open - open the pare... |
protected Control createContents(Composite parent) {
WorkbenchHelp.setHelp(parent, IHelpContextIds.RESOURCE_INFO_PROPERTY_PAGE);
// layout the page
IResource resource = (IResource) getElement();
if(resource.getType()!= IResource.PROJECT) {
this.previousReadOnlyValue = resource.isReadOnly();
this.previousDeriv... | protected Control createContents(Composite parent) {
WorkbenchHelp.setHelp(getControl(), IHelpContextIds.RESOURCE_INFO_PROPERTY_PAGE);
// layout the page
IResource resource = (IResource) getElement();
if(resource.getType()!= IResource.PROJECT) {
this.previousReadOnlyValue = resource.isReadOnly();
this.previou... |
public void delete(ScarabUser user) throws Exception
{
ModuleEntity module = getAttributeGroup().getModule();
if (user.hasPermission(ScarabSecurity.ITEM__APPROVE, module))
{
Criteria c = new Criteria()
.add(RAttributeAttributeGroupPeer.GROUP_ID, getGroupId(... | public void delete(ScarabUser user) throws Exception
{
ModuleEntity module = getAttributeGroup().getModule();
if (user.hasPermission(ScarabSecurity.MODULE__EDIT, module))
{
Criteria c = new Criteria()
.add(RAttributeAttributeGroupPeer.GROUP_ID, getGroupId()... |
public WorkbenchEditorsAction(IWorkbenchWindow window) {
super(WorkbenchMessages.getString("WorkbenchEditorsAction.label")); //$NON-NLS-1$
if (window == null) {
throw new IllegalArgumentException();
}
this.workbenchWindow = window;
// @issue missing action id
... | public WorkbenchEditorsAction(IWorkbenchWindow window) {
super(WorkbenchMessages.getString("WorkbenchEditorsAction.label")); //$NON-NLS-1$
if (window == null) {
throw new IllegalArgumentException();
}
this.workbenchWindow = window;
// @issue missing action id
... |
public void traverse(ASTVisitor visitor, BlockScope scope) {
if (visitor.visit(this, scope)) {
if (enclosingInstance != null)
enclosingInstance.traverse(visitor, scope);
if (this.typeArguments != null) {
for (int i = 0, typeArgumentsLength = this.typeArguments.length; i < typeArgumentsLength; i++) {
... | public void traverse(ASTVisitor visitor, BlockScope scope) {
if (visitor.visit(this, scope)) {
if (enclosingInstance != null)
enclosingInstance.traverse(visitor, scope);
if (this.typeArguments != null) {
for (int i = 0, typeArgumentsLength = this.typeArguments.length; i < typeArgumentsLength; i++) {
... |
public void searchDeclarations(IJavaElement enclosingElement, SearchRequestor requestor, SearchPattern pattern, IProgressMonitor monitor) throws JavaModelException {
if (VERBOSE) {
Util.verbose(" - java element: "+enclosingElement); //$NON-NLS-1$
}
IJavaSearchScope scope = createJavaSearchScope(new IJavaEleme... | public void searchDeclarations(IJavaElement enclosingElement, SearchRequestor requestor, SearchPattern pattern, IProgressMonitor monitor) throws JavaModelException {
if (VERBOSE) {
Util.verbose(" - java element: "+enclosingElement); //$NON-NLS-1$
}
IJavaSearchScope scope = createJavaSearchScope(new IJavaEleme... |
protected void acceptSourceMethod(IType type, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[] uniqueKey) {
String name = new String(selector);
IMethod[] methods = null;
try {
methods = type.getMethods();
for (int i = 0; i < methods.length; i++) {
if (methods[i].getElementN... | protected void acceptSourceMethod(IType type, char[] selector, char[][] parameterPackageNames, char[][] parameterTypeNames, char[] uniqueKey) {
String name = new String(selector);
IMethod[] methods = null;
try {
methods = type.getMethods();
for (int i = 0; i < methods.length; i++) {
if (methods[i].getElementN... |
public boolean execute(IProgressMonitor progressMonitor) {
if (this.isCancelled || progressMonitor != null && progressMonitor.isCanceled()) return true;
/* ensure no concurrent write access to index */
Index index = this.manager.getIndex(this.containerPath, true, /*reuse index file*/ false /*create if none*/);... | public boolean execute(IProgressMonitor progressMonitor) {
if (this.isCancelled || progressMonitor != null && progressMonitor.isCanceled()) return true;
/* ensure no concurrent write access to index */
Index index = this.manager.getIndex(this.containerPath, true, /*reuse index file*/ false /*create if none*/);... |
protected boolean equalsDOMNode(IDOMNode node) {
String elementName = getElementName();
if (node.getNodeType() == IDOMNode.COMPILATION_UNIT && elementName != null ) {
String nodeName = node.getName();
if (nodeName == null) return false;
if (elementName.equals(nodeName)) {
return true;
} else {
try {
... | protected boolean equalsDOMNode(IDOMNode node) {
String elementName = getElementName();
if (node.getNodeType() == IDOMNode.COMPILATION_UNIT && elementName != null ) {
String nodeName = node.getName();
if (nodeName == null) return false;
if (elementName.equals(nodeName)) {
return true;
} else {
try {
... |
public void execute(WorkerStatusController worker)
throws Exception {
ComposerCommandReference[] r = (ComposerCommandReference[]) getReferences();
ComposerController composerController = r[0].getComposerController();
AccountItem item = ((ComposerModel) composerController.getModel()... | public void execute(WorkerStatusController worker)
throws Exception {
ComposerCommandReference[] r = (ComposerCommandReference[]) getReferences();
ComposerController composerController = r[0].getComposerController();
AccountItem item = ((ComposerModel) composerController.getModel()... |
int FORCE_IMMEDIATE_SEARCH = IJob.ForceImmediate; // TODO may discard for 3.0, since it isn't used anyway
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are ... | int FORCE_IMMEDIATE_SEARCH = IJob.ForceImmediate; // TODO may discard for 3.0, since it isn't used anyway
/*******************************************************************************
* Copyright (c) 2000, 2003 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are ... |
public EmptyProject() {
super("Untitiled");
Model m1 = new Model("Untitled package");
try {
addDiagram(makeDiagram(m1));
addModel(m1);
}
catch (PropertyVetoException pve) { }
}
| public EmptyProject() {
super("Untitiled");
Model m1 = new Model("UntitledPackage");
try {
addDiagram(makeDiagram(m1));
addModel(m1);
}
catch (PropertyVetoException pve) { }
}
|
public Object lookupData() {
return plugin;
}
});
WizardModel model =
new DefaultWizardModel(
new Step[] {
new InfoStep(data),
new DescriptionStep(data),
new LocationStep(data)});
listener = new ExternalToolsWizardModelListener(data);
model.addWizardModelListener(listener);
... | public Object lookupData() {
return plugin;
}
});
WizardModel model =
new DefaultWizardModel(
new Step[] {
new InfoStep(),
new DescriptionStep(data),
new LocationStep(data)});
listener = new ExternalToolsWizardModelListener(data);
model.addWizardModelListener(listener);
// T... |
public void failedAssumptionsMeanIgnored() {
Result result= JUnitCore.runClasses(HasFailingAssumption.class);
assertThat(result.getRunCount(), is(0));
assertThat(result.getIgnoreCount(), is(1));
assertThat(result.getFailureCount(), is(0));
| public void failedAssumptionsMeanIgnored() {
Result result= JUnitCore.runClasses(HasFailingAssumption.class);
assertThat(result.getRunCount(), is(0));
assertThat(result.getUnrunnableCount(), is(1));
assertThat(result.getFailureCount(), is(0));
|
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.getPluginRegistry());
ArrayList full = new ArrayList();
ArrayList lightweight = new ArrayList();
Iterator allDefinitions = values.iterator();
while (allDefinitions.h... |
public int getNodeType() {
return WHILE_STATEMENT;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
WhileStatement result = new WhileStatement(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.copyLeadingComment(this);
re... | public int getNodeType() {
return WHILE_STATEMENT;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone0(AST target) {
WhileStatement result = new WhileStatement(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.copyLeadingComment(this);
r... |
public void computeConversion(Scope scope, TypeBinding runtimeTimeType, TypeBinding compileTimeType) {
if (runtimeTimeType == null || compileTimeType == null)
return;
// set the generic cast after the fact, once the type expectation is fully known (no need for strict cast)
FieldBinding field = null;
int l... | public void computeConversion(Scope scope, TypeBinding runtimeTimeType, TypeBinding compileTimeType) {
if (runtimeTimeType == null || compileTimeType == null)
return;
// set the generic cast after the fact, once the type expectation is fully known (no need for strict cast)
FieldBinding field = null;
int l... |
public InitializationFlowContext(
FlowContext parent,
AstNode associatedNode,
BlockScope scope) {
super(
parent,
associatedNode,
NoExceptions, // no exception allowed by default
scope,
FlowInfo.DeadEnd);
}
| public InitializationFlowContext(
FlowContext parent,
AstNode associatedNode,
BlockScope scope) {
super(
parent,
associatedNode,
NoExceptions, // no exception allowed by default
scope,
FlowInfo.DEAD_END);
}
|
public int getNodeType() {
return IMPORT_DECLARATION;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
ImportDeclaration result = new ImportDeclaration(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.setOnDemand(isOnDeman... | public int getNodeType() {
return IMPORT_DECLARATION;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone0(AST target) {
ImportDeclaration result = new ImportDeclaration(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.setOnDemand(isOnDema... |
protected SourceType(JavaElement parent, String name) {
super(parent, name);
Assert.isTrue(name.indexOf('.') == -1);
}
| protected SourceType(JavaElement parent, String name) {
super(parent, name);
Assert.isTrue(name.indexOf('.') == -1, Util.bind("sourcetype.invalidName", name));
}
|
private Object[] computeNonJavaResources(JavaProject project) {
// determine if src == project and/or if bin == project
IPath projectPath = project.getProject().getFullPath();
boolean srcIsProject = false;
boolean binIsProject = false;
char[][] inclusionPatterns = null;
char[][] exclusionPatterns = null... | private Object[] computeNonJavaResources(JavaProject project) {
// determine if src == project and/or if bin == project
IPath projectPath = project.getProject().getFullPath();
boolean srcIsProject = false;
boolean binIsProject = false;
char[][] inclusionPatterns = null;
char[][] exclusionPatterns = null... |
public void actionPerformed(ActionEvent evt) {
FolderCommandReference[] r = new FolderCommandReference[1];
// get outbox folder
OutboxFolder folder =
(OutboxFolder) MailInterface.treeModel.getFolder(103);
// create reference
r[0] = new FolderCommandReference(folder);
// start command
SendAllMess... | public void actionPerformed(ActionEvent evt) {
FolderCommandReference[] r = new FolderCommandReference[1];
// get outbox folder
OutboxFolder folder =
(OutboxFolder) MailInterface.treeModel.getFolder(103);
// create reference
r[0] = new FolderCommandReference(folder);
// start command
SendAllMess... |
public Constant resolveCase(
BlockScope scope,
TypeBinding switchExpressionType,
SwitchStatement switchStatement) {
scope.enclosingCase = this; // record entering in a switch case block
if (constantExpression == null) {
// remember the default case into the associated switch statement
if (swi... | public Constant resolveCase(
BlockScope scope,
TypeBinding switchExpressionType,
SwitchStatement switchStatement) {
scope.enclosingCase = this; // record entering in a switch case block
if (constantExpression == null) {
// remember the default case into the associated switch statement
if (swi... |
public void contextInit(Context ctx) {
Hashtable loadableServlets = new Hashtable();
init(ctx,loadableServlets);
Vector orderedKeys = new Vector();
Enumeration e= loadableServlets.keys();
// order keys
while (e.hasMoreElements()) {
Integer key = (Integer)e.nextElement();
int slot = -1;
fo... | public void contextInit(Context ctx) {
Hashtable loadableServlets = new Hashtable();
init(ctx,loadableServlets);
Vector orderedKeys = new Vector();
Enumeration e= loadableServlets.keys();
// order keys
while (e.hasMoreElements()) {
Integer key = (Integer)e.nextElement();
int slot = -1;
fo... |
public void setJavaConventionsSettings() {
this.alignment_for_arguments_in_allocation_expression = Alignment.M_COMPACT_SPLIT;
this.alignment_for_arguments_in_enum_constant = Alignment.M_COMPACT_SPLIT;
this.alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT;
this.alignment_for_argu... | public void setJavaConventionsSettings() {
this.alignment_for_arguments_in_allocation_expression = Alignment.M_COMPACT_SPLIT;
this.alignment_for_arguments_in_enum_constant = Alignment.M_COMPACT_SPLIT;
this.alignment_for_arguments_in_explicit_constructor_call = Alignment.M_COMPACT_SPLIT;
this.alignment_for_argu... |
public String getDescription() {
return "Argo v0.3.1 native file type";
}
| public String getDescription() {
return "Argo v0.4 file format";
}
|
public void load() throws Exception {
ColumbaLogger.log.info("loading header-cache=" + headerFile);
headerList = new HeaderList();
ObjectInputStream p = openInputStream();
int capacity = 0 ;
if (p.available() > 0)
capacity = p.readInt();
ColumbaLogger.log.info("capacity=" + capacity);
if (getO... | public void load() throws Exception {
ColumbaLogger.log.info("loading header-cache=" + headerFile);
headerList = new HeaderList();
ObjectInputStream p = openInputStream();
int capacity = 0 ;
if (p.available() > 0)
capacity = p.readInt();
ColumbaLogger.log.info("capacity=" + capacity);
if (getO... |
public boolean forgotPassword(RunData data, TemplateContext context)
throws Exception
{
IntakeTool intake = getIntakeTool(context);
Group password = intake.get("ForgotPassword", IntakeTool.DEFAULT_KEY);
String username = password.get("Username").toString();
... | public boolean forgotPassword(RunData data, TemplateContext context)
throws Exception
{
IntakeTool intake = getIntakeTool(context);
Group password = intake.get("ForgotPassword", IntakeTool.DEFAULT_KEY);
String username = password.get("Username").toString();
... |
public JPanel createPanel(int uid)
{
JPanel panel = new JPanel();
panel.setLayout(new BorderLayout());
addressbook = new AddressbookDNDListView();
addressbook.setAcceptDrop(false);
JScrollPane scrollPane = new JScrollPane(addressbook);
panel.add(scrollPane, BorderLayout.CENTER);
JPanel topPanel = new... | public JPanel createPanel(int uid)
{
JPanel panel = new JPanel();
panel.setLayout(new BorderLayout());
addressbook = new AddressbookDNDListView();
addressbook.setAcceptDrop(false);
JScrollPane scrollPane = new JScrollPane(addressbook);
panel.add(scrollPane, BorderLayout.CENTER);
JPanel topPanel = new... |
public ElementOwnership elementOwnershipFor(ModelElement me,
VisibilityKind vk) {
java.util.Enumeration eoEnum = _ownedElement.elements();
while (eoEnum.hasMoreElements()) {
ElementOwnership eo = (ElementOwnership) eoEnum.nextElement();
if (eo.getModelElement() == me &&
(vk == null |... | public ElementOwnership elementOwnershipFor(ModelElement me,
VisibilityKind vk) {
java.util.Enumeration eoEnum = _ownedElement.elements();
while (eoEnum.hasMoreElements()) {
ElementOwnership eo = (ElementOwnership) eoEnum.nextElement();
if (eo.getModelElement() == me &&
(vk == null |... |
protected void fillEditorTable() {
editorTable.removeAll();
FileEditorMapping resourceType = getSelectedResourceType();
if (resourceType != null) {
IEditorDescriptor[] array = resourceType.getEditors();
for (int i = 0; i < array.length; i++) {
IEditorD... | protected void fillEditorTable() {
editorTable.removeAll();
FileEditorMapping resourceType = getSelectedResourceType();
if (resourceType != null) {
IEditorDescriptor[] array = resourceType.getEditors();
for (int i = 0; i < array.length; i++) {
IEditorD... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.