buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public boolean trySave( boolean overwrite ) {
CmdSaveGIF cmd = new CmdSaveGIF();
Object target = ProjectBrowser.TheInstance.getActiveDiagram();
if( target instanceof Diagram ) {
String defaultName = ((Diagram)target).getName();
defaultName = Util.stripJunk(defaultName);
// FIX - It's probably wor... | public boolean trySave( boolean overwrite ) {
CmdSaveGIF cmd = new CmdSaveGIF();
Object target = ProjectBrowser.TheInstance.getActiveDiagram();
if( target instanceof Diagram ) {
String defaultName = ((Diagram)target).getName();
defaultName = Util.stripJunk(defaultName);
// FIX - It's probably wor... |
public void createPartControl(Composite parent) {
viewer = new DetailedProgressViewer(parent, SWT.MULTI);
viewer.setSorter(ProgressManagerUtil.getProgressViewerSorter());
viewer.getControl().setLayoutData(
new GridData(SWT.FILL, SWT.FILL, true, true));
PlatformUI.getWorkbench().getHelpSystem().setHelp(pa... | public void createPartControl(Composite parent) {
viewer = new DetailedProgressViewer(parent, SWT.MULTI);
viewer.setComparator(ProgressManagerUtil.getProgressViewerComparator());
viewer.getControl().setLayoutData(
new GridData(SWT.FILL, SWT.FILL, true, true));
PlatformUI.getWorkbench().getHelpSystem().se... |
public String toString() {
return Localizer.localize ("Tree", "Project->Package");
}
| public String toString() {
return Localizer.localize ("Tree", "misc.project.package");
}
|
public SOARecord
getSOA() {
Hashtable h = findName(origin);
RRset r = (RRset) h.get(new Short(Type.SOA));
Enumeration e = r.rrs();
return (SOARecord) e.nextElement();
}
Name
parseOrigin(MyStringTokenizer st) throws IOException {
return new Name(st.nextToken());
}
Record
parseRR(MyStringTokenizer st, boolean useL... | public SOARecord
getSOA() {
Hashtable h = findName(origin);
RRset r = (RRset) h.get(new Short(Type.SOA));
Enumeration e = r.rrs();
return (SOARecord) e.nextElement();
}
Name
parseOrigin(MyStringTokenizer st) throws IOException {
return new Name(st.nextToken());
}
Record
parseRR(MyStringTokenizer st, boolean useL... |
private Vector decodeEvents(Document document) {
Vector events = new Vector();
Logger logger = null;
long timeStamp = 0L;
String level = null;
String threadName = null;
Object message = null;
String ndc = null;
String[] exception = null;
String className = null;
String methodN... | private Vector decodeEvents(Document document) {
Vector events = new Vector();
Logger logger = null;
long timeStamp = 0L;
String level = null;
String threadName = null;
Object message = null;
String ndc = null;
String[] exception = null;
String className = null;
String methodN... |
public String getPluginId() {
IPluginContribution contribution = (IPluginContribution) Util.getAdapter(wizardElement,
IPluginContribution.class);
if (contribution != null) {
return contribution.getLocalId();
}
return null;
}
| public String getPluginId() {
IPluginContribution contribution = (IPluginContribution) Util.getAdapter(wizardElement,
IPluginContribution.class);
if (contribution != null) {
return contribution.getPluginId();
}
return null;
}
|
public ToolbarButton(BasicAction a) {
super(a);
setRequestFocusEnabled(false);
setMargin(new Insets(1, 1, 1, 1));
GuiItem item = Config.getOptionsConfig().getGuiItem();
WITH_TEXT = item.getBoolean("toolbar","enable_text");
ALIGNMENT = item.getBoolean("toolbar","text_positio... | public ToolbarButton(BasicAction a) {
super(a);
setRequestFocusEnabled(false);
setMargin(new Insets(1, 1, 1, 1));
GuiItem item = Config.getOptionsConfig().getGuiItem();
WITH_TEXT = item.getBoolean("toolbar","enable_text");
ALIGNMENT = item.getBoolean("toolbar","text_positio... |
public void progress(final ProgressEvent event) {
if (this.pbar != null) {
int currentUpdate = Long.valueOf(event.getPosition()).intValue();
pbar.setProgress(currentUpdate);
Object[] args = new Object[]{String.valueOf(currentUpdate)};
pbar.setNote(Translator.loca... | public void progress(final ProgressEvent event) {
if (this.pbar != null) {
int currentUpdate = new Long(event.getPosition()).intValue();
pbar.setProgress(currentUpdate);
Object[] args = new Object[]{String.valueOf(currentUpdate)};
pbar.setNote(Translator.localize... |
public void describeLayout(StringBuffer buf) {
if (detachable) {
if(detachedWindowList.size() != 0){
buf.append("detachedWindows ("); //$NON-NLS-1$
for (int i = 0, length = detachedWindowList.size(); i < length; i++) {
DetachedWindow wind... | public void describeLayout(StringBuffer buf) {
if (detachable) {
if(detachedWindowList.size() != 0){
buf.append("detachedWindows ("); //$NON-NLS-1$
for (int i = 0, length = detachedWindowList.size(); i < length; i++) {
DetachedWindow wind... |
private void buildFromPotentialSubtypes(String[] allPotentialSubTypes) {
IType focusType = this.getType();
// substitute compilation units with working copies
HashMap wcPaths = new HashMap(); // a map from path to working copies
int wcLength;
IWorkingCopy[] workingCopies = this.getWokingCopies();
if (workingCo... | private void buildFromPotentialSubtypes(String[] allPotentialSubTypes) {
IType focusType = this.getType();
// substitute compilation units with working copies
HashMap wcPaths = new HashMap(); // a map from path to working copies
int wcLength;
IWorkingCopy[] workingCopies = this.getWokingCopies();
if (workingCo... |
public void addSource(IFile resource, IPath containerPath, SourceElementParser parser) {
if (JavaCore.getPlugin() == null) return;
SearchParticipant participant = SearchEngine.getDefaultSearchParticipant();
SearchDocument document = participant.getDocument(resource.getFullPath().toString());
document.parser = pars... | public void addSource(IFile resource, IPath containerPath, SourceElementParser parser) {
if (JavaCore.getPlugin() == null) return;
SearchParticipant participant = SearchEngine.getDefaultSearchParticipant();
SearchDocument document = participant.getDocument(resource.getFullPath().toString());
((InternalSearchDocume... |
public void testDecodeFile() throws Exception {
XMLDecoder xmlDecoder = new XMLDecoder();
List events = xmlDecoder.decode(new File("tests/witness/eventSet.1.xml"));
assertTrue("Should have returned at least 418 events: " + events.size(), events.size()==418);
}
| public void testDecodeFile() throws Exception {
XMLDecoder xmlDecoder = new XMLDecoder();
List events = xmlDecoder.decode(new File("tests/witness/eventSet.1.xml").toURL());
assertTrue("Should have returned at least 418 events: " + events.size(), events.size()==418);
}
|
public void generateCode(BlockScope currentScope, CodeStream codeStream) {
try {
int[] sortedIndexes = new int[caseCount];
int[] localKeysCopy;
if ((bits & IsReachableMASK) == 0) {
return;
}
int pc = codeStream.position;
// prepare the labels and constants
breakLabel.codeStream = codeS... | public void generateCode(BlockScope currentScope, CodeStream codeStream) {
try {
int[] sortedIndexes = new int[caseCount];
int[] localKeysCopy;
if ((bits & IsReachableMASK) == 0) {
return;
}
int pc = codeStream.position;
// prepare the labels and constants
breakLabel.initialize(codeStr... |
package org.jhotdraw.util;
/*
* @(#)Animatable.java
*
* Project: JHotdraw - a GUI framework for technical drawings
* http://www.jhotdraw.org
* http://jhotdraw.sourceforge.net
* Copyright: © by the original author(s) and all contributors
* License: Lesser GNU Public License (LGPL)
* http://www.openso... | package org.jhotdraw.util;
/*
* @(#)Animatable.java
*
* Project: JHotdraw - a GUI framework for technical drawings
* http://www.jhotdraw.org
* http://jhotdraw.sourceforge.net
* Copyright: © by the original author(s) and all contributors
* License: Lesser GNU Public License (LGPL)
* http://www.openso... |
public void actionPerformed(ActionEvent e) {
ProjectBrowser pb = ProjectBrowser.getInstance();
Project p = ProjectManager.getManager().getCurrentProject();
if (p != null && p.needsSave()) {
String t = MessageFormat.format (
Argo.localize ("Actions", "template.new_project.save_changes_to")... | public void actionPerformed(ActionEvent e) {
ProjectBrowser pb = ProjectBrowser.getInstance();
Project p = ProjectManager.getManager().getCurrentProject();
if (p != null && p.needsSave()) {
String t = MessageFormat.format (
Argo.localize ("Actions", "optionpane.new-project-save-changes-to... |
import org.columba.api.plugin.IExtensionInterface;
// The contents of this file are subject to the Mozilla Public License Version
// 1.1
//(the "License"); you may not use this file except in compliance with the
//License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
//
//Software distributed un... | import org.columba.api.plugin.IExtensionInterface;
// The contents of this file are subject to the Mozilla Public License Version
// 1.1
//(the "License"); you may not use this file except in compliance with the
//License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
//
//Software distributed un... |
public void readRegistry(IPluginRegistry in, ActionSetRegistry out)
{
registry = out;
readRegistry(in, PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_ACTION_SETS);
out.mapActionSetsToCategories();
}
} | public void readRegistry(IExtensionRegistry in, ActionSetRegistry out)
{
registry = out;
readRegistry(in, PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_ACTION_SETS);
out.mapActionSetsToCategories();
}
} |
public int getNodeType() {
return ARRAY_ACCESS;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
ArrayAccess result = new ArrayAccess(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.setArray((Expression) getArray().clone(... | public int getNodeType() {
return ARRAY_ACCESS;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone0(AST target) {
ArrayAccess result = new ArrayAccess(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.setArray((Expression) getArray().clone... |
public static void formCredentials( Request req, Hashtable credentials ) {
Context ctx=req.getContext();
String authMethod=ctx.getAuthMethod();
if( "FORM".equals( authMethod ) ) {
HttpSession session=req.getSession( false );
if( session == null )
return; // not authenticated
// XXX The attrib... | public static void formCredentials( Request req, Hashtable credentials ) {
Context ctx=req.getContext();
String authMethod=ctx.getAuthMethod();
if( "FORM".equals( authMethod ) ) {
HttpSession session=(HttpSession)req.getSession( false );
if( session == null )
return; // not authenticated
// X... |
public InsideSubRoutineFlowContext(
FlowContext parent,
AstNode associatedNode) {
super(parent, associatedNode);
this.initsOnReturn = FlowInfo.DeadEnd;
}
| public InsideSubRoutineFlowContext(
FlowContext parent,
AstNode associatedNode) {
super(parent, associatedNode);
this.initsOnReturn = FlowInfo.DEAD_END;
}
|
public void readRegistry(IPluginRegistry in, ActionSetRegistry out)
{
registry = out;
readRegistry(in, IWorkbenchConstants.PLUGIN_ID, IWorkbenchConstants.PL_ACTION_SET_PART_ASSOCIATIONS);
}
| public void readRegistry(IPluginRegistry in, ActionSetRegistry out)
{
registry = out;
readRegistry(in, PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_ACTION_SET_PART_ASSOCIATIONS);
}
|
public void doBuildTemplate(RunData data, TemplateContext context)
throws Exception {
super.doBuildTemplate(data, context);
data.getResponse().setContentType(MIME_TYPE);
// we will send the response, so no target to render
data.setTarget(null);
Writer writer = data.getResponse().getWriter();
try... | public void doBuildTemplate(RunData data, TemplateContext context)
throws Exception {
super.doBuildTemplate(data, context);
data.getResponse().setContentType(MIME_TYPE);
// we will send the response, so no target to render
data.setTarget(null);
Writer writer = data.getResponse().getWriter();
try... |
public String getGestureTextForCommand(String command)
throws IllegalArgumentException {
String text = null;
Sequence sequence = getGestureMachine().getFirstSequenceForCommand(command);
if (sequence != null)
text = GestureSupport.formatSequence(sequence);
return text != null ? text : Util.ZERO_LENG... | public String getGestureTextForCommand(String command)
throws IllegalArgumentException {
String text = null;
Sequence sequence = getGestureMachine().getFirstSequenceForCommand(command);
if (sequence != null)
text = GestureSupport.formatSequence(sequence, true);
return text != null ? text : Util.ZER... |
public
dnsARecord(dnsName _name, short _dclass, int _ttl, StringTokenizer st)
throws IOException
| public
dnsARecord(dnsName _name, short _dclass, int _ttl, MyStringTokenizer st)
throws IOException
|
public TypeBinding checkFieldAccess(BlockScope scope) {
FieldBinding fieldBinding = (FieldBinding) binding;
bits &= ~RestrictiveFlagMASK; // clear bits
bits |= FIELD;
if (!((FieldBinding) binding).isStatic()) {
// must check for the static status....
if (scope.methodScope().isStatic) {
scope.problemReport... | public TypeBinding checkFieldAccess(BlockScope scope) {
FieldBinding fieldBinding = (FieldBinding) binding;
bits &= ~RestrictiveFlagMASK; // clear bits
bits |= FIELD;
if (!((FieldBinding) binding).isStatic()) {
// must check for the static status....
if (scope.methodScope().isStatic) {
scope.problemReport... |
public void resolve() {
if (binding == null) {
ignoreFurtherInvestigation = true;
return;
}
try {
// check superclass & interfaces
if (binding.superclass != null) // watch out for Object ! (and other roots)
if (isTypeUseDeprecated(binding.superclass, scope))
scope.problemReporter().deprec... | public void resolve() {
if (binding == null) {
ignoreFurtherInvestigation = true;
return;
}
try {
// check superclass & interfaces
if (binding.superclass != null) // watch out for Object ! (and other roots)
if (isTypeUseDeprecated(binding.superclass, scope))
scope.problemReporter().deprec... |
public interface IPackageDeclaration extends IJavaElement, ISourceReference, IAnnotatable {
/*******************************************************************************
* Copyright (c) 2000, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available ... | public interface IPackageDeclaration extends IJavaElement, ISourceReference, IAnnotatable {
/*******************************************************************************
* Copyright (c) 2000, 2006 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available ... |
protected ShowViewAction(IWorkbenchWindow window, IViewDescriptor desc) {
super(""); //$NON-NLS-1$
String accel = desc.getAccelerator();
String label = desc.getLabel();
setText(accel == null ? label : label + "@" + accel); //$NON-NLS-1$
setImageDescriptor(desc.getImageDescrip... | protected ShowViewAction(IWorkbenchWindow window, IViewDescriptor desc) {
super(""); //$NON-NLS-1$
String accel = desc.getAccelerator();
String label = desc.getLabel();
setText(accel == null ? label : label + "@" + accel); //$NON-NLS-1$
setImageDescriptor(desc.getImageDescrip... |
private boolean checkSelection(
char[] source,
int selectionStart,
int selectionEnd) {
Scanner scanner = new Scanner();
scanner.setSource(source);
int lastIdentifierStart = -1;
int lastIdentifierEnd = -1;
char[] lastIdentifier = null;
int token, identCount = 0;
StringBuffer entireSelection = ne... | private boolean checkSelection(
char[] source,
int selectionStart,
int selectionEnd) {
Scanner scanner = new Scanner();
scanner.setSource(source);
int lastIdentifierStart = -1;
int lastIdentifierEnd = -1;
char[] lastIdentifier = null;
int token, identCount = 0;
StringBuffer entireSelection = ne... |
protected void initComponents() {
// general
markCheckBox = new CheckBoxWithMnemonic(MailResourceLoader.getString(
"dialog", "general", "mark_messages_read"));
markSpinner = new JSpinner();
markSpinner.setModel(new SpinnerNumberModel(1, 0, 99, 1));
emptyTrashCheckBox = new CheckBoxWithMnemonic(MailReso... | protected void initComponents() {
// general
markCheckBox = new CheckBoxWithMnemonic(MailResourceLoader.getString(
"dialog", "general", "mark_messages_read"));
markSpinner = new JSpinner();
markSpinner.setModel(new SpinnerNumberModel(1, 0, 99, 1));
emptyTrashCheckBox = new CheckBoxWithMnemonic(MailReso... |
public Object call() throws Exception {
runMethod();
return null;
}
};
Future<Object> result= service.submit(callable);
service.shutdown();
try {
boolean terminated= service.awaitTermination(timeout,
TimeUnit.MILLISECONDS);
if (!terminated)
service.shutdownNow();
result.get(timeo... | public Object call() throws Exception {
runMethod();
return null;
}
};
Future<Object> result= service.submit(callable);
service.shutdown();
try {
boolean terminated= service.awaitTermination(timeout,
TimeUnit.MILLISECONDS);
if (!terminated)
service.shutdownNow();
result.get(0, Ti... |
protected void readBinaryChildren(HashMap newElements, IBinaryType typeInfo) {
ArrayList children = new ArrayList();
BinaryType type = null;
try {
type = (BinaryType) this.classFile.getType();
if (typeInfo == null) {
typeInfo = (IBinaryType) newElements.get(type);
}
} catch (JavaModelException npe) {
ret... | protected void readBinaryChildren(HashMap newElements, IBinaryType typeInfo) {
ArrayList children = new ArrayList();
BinaryType type = null;
try {
type = (BinaryType) this.classFile.getType();
if (typeInfo == null) {
typeInfo = (IBinaryType) newElements.get(type);
}
} catch (JavaModelException npe) {
ret... |
public String getDescription() {
return "Argo v0.4 file format";
}
| public String getDescription() {
return "Argo v0.5 file format";
}
|
public void acceptMethodTypeParameter(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, int selectorStart, int selcetorEnd, char[] typeParameterName, boolean isDeclaration, int start, int end) {
// ignore
}
}
TypeResolveRequestor requestor = new TypeResolveRequestor();
Selecti... | public void acceptMethodTypeParameter(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, int selectorStart, int selcetorEnd, char[] typeParameterName, boolean isDeclaration, int start, int end) {
// ignore
}
}
TypeResolveRequestor requestor = new TypeResolveRequestor();
Selecti... |
public void valueChanged(TreeSelectionEvent arg0) {
selectedNode = (PluginNode) arg0.getPath().getLastPathComponent();
if (selectedNode == null)
return;
boolean isCategoryFolder = selectedNode.isCategory();
if (isCategoryFolder) {
// this is just a folder
// ->disable all actions
removeButton.se... | public void valueChanged(TreeSelectionEvent arg0) {
selectedNode = (PluginNode) arg0.getPath().getLastPathComponent();
if (selectedNode == null)
return;
boolean isCategoryFolder = selectedNode.isCategory();
if (isCategoryFolder) {
// this is just a folder
// ->disable all actions
removeButton.se... |
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 initializeDefaultPreferences() {
// Get options names set
HashSet optionNames = JavaModelManager.getJavaModelManager().optionNames;
// Compiler settings
Map defaultOptionsMap = new CompilerOptions().getMap(); // compiler defaults
// Override some compiler defaults
defaultOptionsMap.put(J... | public void initializeDefaultPreferences() {
// Get options names set
HashSet optionNames = JavaModelManager.getJavaModelManager().optionNames;
// Compiler settings
Map defaultOptionsMap = new CompilerOptions().getMap(); // compiler defaults
// Override some compiler defaults
defaultOptionsMap.put(J... |
public final boolean canBeSeenBy(TypeBinding receiverType, InvocationSite invocationSite, Scope scope) {
if (isPublic()) return true;
SourceTypeBinding invocationType = scope.enclosingSourceType();
if (invocationType == 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 == declaringClass && invocationType == receiverType) return true;
if (invocationType == null) // ... |
protected void setActiveDiagram (ArgoDiagram ad) {
_activeDiagram = ad;
System.out.println ("Active diagram set to " + ad.getName());
}
| protected void setActiveDiagram (ArgoDiagram ad) {
_activeDiagram = ad;
//System.out.println ("Active diagram set to " + ad.getName());
}
|
public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
// here requires to generate a sequence of finally blocks invocations depending corresponding
// to each of the traversed try statements, so that execution will terminate properly.
// lookup the label, thi... | public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
// here requires to generate a sequence of finally blocks invocations depending corresponding
// to each of the traversed try statements, so that execution will terminate properly.
// lookup the label, thi... |
public PropPanelInterface() {
super("Interface Properties",2);
Class mclass = MInterface.class;
addCaption("Name:",0,0,0);
addField(new UMLTextField(this,new UMLTextProperty(mclass,"name","getName","setName")),0,0,0);
addCaption("Stereotype:",1,0,0);
JComboBox stereotypeBox = new UMLStereo... | public PropPanelInterface() {
super("Interface Properties",2);
Class mclass = MInterface.class;
addCaption("Name:",0,0,0);
addField(new UMLTextField(this,new UMLTextProperty(mclass,"name","getName","setName")),0,0,0);
addCaption("Stereotype:",1,0,0);
JComboBox stereotypeBox = new UMLStereo... |
public String toString() {
return "Locator for " + this.pattern.toString();
}
| public String toString() {
return "Locator for " + this.pattern.toString(); //$NON-NLS-1$
}
|
protected void executeOperation() throws JavaModelException {
try {
beginTask(Util.bind("workingCopy.commit"), 2); //$NON-NLS-1$
CompilationUnit workingCopy = getCompilationUnit();
IFile resource = (IFile)workingCopy.getResource();
ICompilationUnit primary = workingCopy.getPrimary();
boolean isPrimary... | protected void executeOperation() throws JavaModelException {
try {
beginTask(Util.bind("workingCopy.commit"), 2); //$NON-NLS-1$
CompilationUnit workingCopy = getCompilationUnit();
IFile resource = (IFile)workingCopy.getResource();
ICompilationUnit primary = workingCopy.getPrimary();
boolean isPrimary... |
public void run() {
IWorkbenchPage page = window.getActivePage();
if (page != null) {
try {
if (makeFast) {
WorkbenchPage wp = (WorkbenchPage) page;
IViewReference ref = wp.findViewReference(desc.getId());
... | public void run() {
IWorkbenchPage page = window.getActivePage();
if (page != null) {
try {
if (makeFast) {
WorkbenchPage wp = (WorkbenchPage) page;
IViewReference ref = wp.findViewReference(desc.getId());
... |
public Type getComponentType() {
if (this.componentType == null) {
// lazy init must be thread-safe for readers
synchronized (this.ast) {
if (this.componentType == null) {
preLazyInit();
this.componentType = new SimpleType(this.ast);
postLazyInit(this.componentType, COMPONENT_TYPE_PROPERTY);... | public Type getComponentType() {
if (this.componentType == null) {
// lazy init must be thread-safe for readers
synchronized (this) {
if (this.componentType == null) {
preLazyInit();
this.componentType = new SimpleType(this.ast);
postLazyInit(this.componentType, COMPONENT_TYPE_PROPERTY);
... |
public static List getAttributes(String attributeType,
String sortColumn, String sortPolarity)
throws Exception
{
List result = null;
String cacheKey = null;
if (attributeType.equals("data"))
{
cacheKey = GET_DATA_ATTRIBU... | public static List getAttributes(String attributeType,
String sortColumn, String sortPolarity)
throws Exception
{
List result = null;
String cacheKey = null;
if (attributeType.equals("data"))
{
cacheKey = GET_DATA_ATTRIBU... |
public void enterMethod(int declarationStart, int modifiers, char[] returnType, char[] name, int nameStart, int nameEnd, char[][] parameterTypes, char[][] parameterNames, char[][] exceptionTypes) {
enterAbstractMethod(declarationStart, modifiers,
null, name, nameStart, nameEnd, parameterTypes,
parameterNames, exc... | public void enterMethod(int declarationStart, int modifiers, char[] returnType, char[] name, int nameStart, int nameEnd, char[][] parameterTypes, char[][] parameterNames, char[][] exceptionTypes) {
enterAbstractMethod(declarationStart, modifiers,
returnType, name, nameStart, nameEnd, parameterTypes,
parameterName... |
public PropertyDialog(JFrame frame, PropertyEditor pe, int x, int y) {
super(pe.getClass().getName());
//new WindowCloser(this);
getContentPane().setLayout(new BorderLayout());
body = pe.getCustomEditor();
System.out.println("got custom editor!!");
getContentPane().add(body, BorderLayout.... | public PropertyDialog(JFrame frame, PropertyEditor pe, int x, int y) {
super(pe.getClass().getName());
//new WindowCloser(this);
getContentPane().setLayout(new BorderLayout());
body = pe.getCustomEditor();
//System.out.println("got custom editor!!");
getContentPane().add(body, BorderLayou... |
protected void stopService() {
InitialContext ic;
try {
ic = new InitialContext();
// Remove all SMs from JNDI
if (smContext != null) {
for (Iterator it = smJndiNames.iterator(); it.hasNext(); ) {
smContext.unbind((String) it.ne... | protected void stopService() {
InitialContext ic;
try {
ic = new InitialContext();
// Remove all SMs from JNDI
if (smContext != null) {
for (Iterator it = smJndiNames.iterator(); it.hasNext(); ) {
smContext.unbind((String) it.ne... |
protected void selfInitialize() {
RuleStore rs = new SimpleRuleStore();
rs.addRule(new Pattern("log4j:configuration"), new ConfigurationAction());
rs.addRule(
new Pattern("log4j:configuration/substitutionProperty"),
new SubstitutionPropertyAction());
rs.addRule(
new Pattern("log4j:co... | protected void selfInitialize() {
RuleStore rs = new SimpleRuleStore();
rs.addRule(new Pattern("log4j:configuration"), new ConfigurationAction());
rs.addRule(
new Pattern("log4j:configuration/substitutionProperty"),
new SubstitutionPropertyAction());
rs.addRule(
new Pattern("log4j:co... |
public
static
void permutationDump() {
System.out.print("Current permutation is - ");
for(int i = 0; i < LENGTH; i++) {
System.out.print(names[i] + " ");
}
System.out.println();
}
// Loop through all possible 3^n combinations of not instantiating,
// instantiating and setting/not se... | public
static
void permutationDump() {
System.out.print("Current permutation is - ");
for(int i = 0; i < LENGTH; i++) {
System.out.print(names[i] + " ");
}
System.out.println();
}
// Loop through all possible 3^n combinations of not instantiating,
// instantiating and setting/not se... |
public StringBuffer print(int indent, StringBuffer output) {
output.append("<CompleteOnAttributeName:"); //$NON-NLS-1$
output.append(name);
output.append('>');
return output;
}
| public StringBuffer print(int indent, StringBuffer output) {
output.append("<CompleteOnAttributeName:"); //$NON-NLS-1$
output.append(this.name);
output.append('>');
return output;
}
|
public void generateCode(BlockScope currentScope, CodeStream codeStream) {
if ((bits & IsReachableMASK) == 0) {
return;
}
int pc = codeStream.position;
targetLabel.place();
codeStream.recordPositionsFrom(pc, this.sourceStart);
}
| public void generateCode(BlockScope currentScope, CodeStream codeStream) {
if ((bits & IsReachable) == 0) {
return;
}
int pc = codeStream.position;
targetLabel.place();
codeStream.recordPositionsFrom(pc, this.sourceStart);
}
|
public int getNodeType() {
return CLASS_INSTANCE_CREATION;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
ClassInstanceCreation result = new ClassInstanceCreation(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.setExpre... | public int getNodeType() {
return CLASS_INSTANCE_CREATION;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone0(AST target) {
ClassInstanceCreation result = new ClassInstanceCreation(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.setExpr... |
private void store(MClassifier cls, Statement stmt) throws SQLException {
stmtString = "REPLACE INTO tClassifier (uuid) VALUES ('";
stmtString += cls.getUUID()+ "')";
stmt.executeUpdate(stmtString);
store((MGeneralizableElement)cls, stmt);
// in case the Classifier has attributes or operations, store the... | private void store(MClassifier cls, Statement stmt) throws SQLException {
stmtString = "REPLACE INTO tClassifier (uuid) VALUES ('";
stmtString += cls.getUUID()+ "')";
stmt.executeUpdate(stmtString);
store((MGeneralizableElement)cls, stmt);
// in case the Classifier has attributes or operations, store the... |
public DeclarationOfAccessedFieldsPattern(IJavaElement enclosingElement) {
super(false, true, true, null, null, null, null, null, R_PATTERN_MATCH);
this.enclosingElement = enclosingElement;
this.knownFields = new SimpleSet();
this.mustResolve = true;
}
| public DeclarationOfAccessedFieldsPattern(IJavaElement enclosingElement) {
super(false, true, true, null, null, null, null, null, R_PATTERN_MATCH);
this.enclosingElement = enclosingElement;
this.knownFields = new SimpleSet();
((InternalSearchPattern)this).mustResolve = true;
}
|
* N.B. This constructor is package-private.
* </p>
*
* @param ast the AST that is to own this node
*/
SingleMemberAnnotation(AST ast) {
super(ast);
unsupportedIn2();
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
final List internalStructuralPropertiesForType(int apiLeve... | * N.B. This constructor is package-private.
* </p>
*
* @param ast the AST that is to own this node
*/
SingleMemberAnnotation(AST ast) {
super(ast);
unsupportedIn2();
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
final List internalStructuralPropertiesForType(int apiLeve... |
public void checkComment() {
super.checkComment();
if (this.javadocParser.checkDocComment && this.javadoc != null) {
// Search for pattern locator matches in javadoc comment parameters @param tags
JavadocSingleNameReference[] paramReferences = this.javadoc.paramReferences;
if (paramReferences != null) {
for... | public void checkComment() {
super.checkComment();
if (this.javadocParser.checkDocComment && this.javadoc != null && this.patternFineGrain == 0 /* there's no fine grain concerning Javadoc*/) {
// Search for pattern locator matches in javadoc comment parameters @param tags
JavadocSingleNameReference[] paramRefere... |
public String getResult() {
// convert to a string, but lose any extra space in the string buffer by copying
return new String(buffer.toString());
}
| public String getResult() {
// convert to a string, but lose any extra space in the string buffer by copying
return buffer.toString();
}
|
public String getJavadocContents(IProgressMonitor monitor) throws JavaModelException {
PerProjectInfo projectInfo = JavaModelManager.getJavaModelManager().getPerProjectInfoCheckExistence(this.getJavaProject().getProject());
String cachedJavadoc = null;
synchronized (projectInfo.javadocCache) {
cachedJavadoc = (Str... | public String getJavadocContents(IProgressMonitor monitor) throws JavaModelException {
PerProjectInfo projectInfo = JavaModelManager.getJavaModelManager().getPerProjectInfoCheckExistence(this.getJavaProject().getProject());
String cachedJavadoc = null;
synchronized (projectInfo.javadocCache) {
cachedJavadoc = (Str... |
public void indexAll(IProject project) {
if (JavaCore.getPlugin() == null) return;
// Also request indexing of binaries on the classpath
// determine the new children
try {
JavaModel model = (JavaModel) JavaModelManager.getJavaModelManager().getJavaModel();
IJavaProject javaProject = model.getJavaProject(proje... | public void indexAll(IProject project) {
if (JavaCore.getPlugin() == null) return;
// Also request indexing of binaries on the classpath
// determine the new children
try {
JavaModel model = JavaModelManager.getJavaModelManager().getJavaModel();
IJavaProject javaProject = model.getJavaProject(project);
// o... |
FolderCommandReference filter(MessageFolder folder, Object uid) throws Exception;
// The contents of this file are subject to the Mozilla Public License Version
// 1.1
//(the "License"); you may not use this file except in compliance with the
//License. You may obtain a copy of the License at http://www.mozilla.org/MP... | FolderCommandReference filter(MessageFolder folder, Object uid) throws Exception;
// The contents of this file are subject to the Mozilla Public License Version
// 1.1
//(the "License"); you may not use this file except in compliance with the
//License. You may obtain a copy of the License at http://www.mozilla.org/MP... |
private static String[] allModelElements = {
"Action",
"ActionSequence",
"Argument",
"AttributeLink",
"CallAction",
"ComponentInstance",
"CreateAction",
"DataValue",
"DestroyAction",
"Exception",
"Instance",
"Link",
... | public void testDeleteComplete() {
CheckUMLModelHelper.deleteComplete(this,
CommonBehaviorFactory.getFactory(),
allModelElements);
}
}
|
protected void createInfoArea(Composite parent) {
Font font = parent.getFont();
infoArea = new Composite(parent, SWT.NULL);
GridData data = new GridData(GridData.FILL, GridData.FILL, true, true);
// need to provide space for arbitrary feature infos, not just the
// one selec... | protected void createInfoArea(Composite parent) {
Font font = parent.getFont();
infoArea = new Composite(parent, SWT.NULL);
GridData data = new GridData(GridData.FILL, GridData.FILL, true, true);
// need to provide space for arbitrary feature infos, not just the
// one selec... |
public boolean supportsAddFolder(IFolder newFolder) {
return true;
}
} | public boolean supportsAddFolder(IMailFolder newFolder) {
return true;
}
} |
protected CompilationUnitDeclaration buildBindings(ICompilationUnit compilationUnit, boolean isTopLevelOrMember) throws JavaModelException {
final IFile file = (IFile) compilationUnit.getResource();
final String fileName = file.getFullPath().lastSegment();
final char[] mainTypeName = fileName.substring(0, fileName.l... | protected CompilationUnitDeclaration buildBindings(ICompilationUnit compilationUnit, boolean isTopLevelOrMember) throws JavaModelException {
final IFile file = (IFile) compilationUnit.getResource();
final String fileName = file.getFullPath().lastSegment();
final char[] mainTypeName = fileName.substring(0, fileName.l... |
public void updateGUI() throws Exception {
// can no longer assume that sendMessageDialog has been displayed
if (sendMessageDialog != null) {
// close send message dialog
sendMessageDialog.setVisible(false);
}
if (showComposer == true
&& composerController.getView().getFrame() != null) {
// re-o... | public void updateGUI() throws Exception {
// can no longer assume that sendMessageDialog has been displayed
if (sendMessageDialog != null) {
// close send message dialog
sendMessageDialog.setVisible(false);
}
if (showComposer == true
&& composerController.getView().getFrame() != null) {
// re-o... |
protected void initComponents() {
JPanel mainPanel = new JPanel();
mainPanel.setLayout(new BorderLayout());
mainPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));
getContentPane().add(mainPanel);
exportButton = new JButton("Export...");
exportButton.setActionCommand("EXPORT");
exportButt... | protected void initComponents() {
JPanel mainPanel = new JPanel();
mainPanel.setLayout(new BorderLayout());
mainPanel.setBorder(BorderFactory.createEmptyBorder(12, 12, 12, 12));
getContentPane().add(mainPanel);
exportButton = new JButton("Export...");
exportButton.setActionCommand("EXPORT");
exportButt... |
public String toString(){
return "removing from index " + resourceName; //$NON-NLS-1$
}
| public String toString(){
return "removing from index "/*nonNLS*/ + resourceName;
}
|
return !newMethod.isPrivate(); // The inheritedMethod cannot be private since it would not be visible
}
boolean isInterfaceMethodImplemented(MethodBinding inheritedMethod, MethodBinding existingMethod, ReferenceBinding superType) {
// skip interface method with the same signature if visible to its declaringClass
re... | return !newMethod.isPrivate(); // The inheritedMethod cannot be private since it would not be visible
}
boolean isInterfaceMethodImplemented(MethodBinding inheritedMethod, MethodBinding existingMethod, ReferenceBinding superType) {
// skip interface method with the same signature if visible to its declaringClass
re... |
public Expression convert(ThisReference reference) {
if (reference == ThisReference.ThisImplicit) {
// There is no source associated with an implicit this
return null;
} else if (reference instanceof QualifiedSuperReference) {
return convert((QualifiedSuperReference) reference);
} else if (reference ins... | public Expression convert(ThisReference reference) {
if (reference.isImplicitThis()) {
// There is no source associated with an implicit this
return null;
} else if (reference instanceof QualifiedSuperReference) {
return convert((QualifiedSuperReference) reference);
} else if (reference instanceof Quali... |
public QualifiedTypeDeclarationPattern(char[] qualification, char[] simpleName, char typeSuffix, int matchRule) {
this(matchRule);
this.qualification = isCaseSensitive() ? qualification : CharOperation.toLowerCase(qualification);
this.simpleName = isCaseSensitive() ? simpleName : CharOperation.toLowerCase(simpleNam... | public QualifiedTypeDeclarationPattern(char[] qualification, char[] simpleName, char typeSuffix, int matchRule) {
this(matchRule);
this.qualification = isCaseSensitive() ? qualification : CharOperation.toLowerCase(qualification);
this.simpleName = (isCaseSensitive() || isCamelCase()) ? simpleName : CharOperation.t... |
public PackageFragmentInfo() {
this.nonJavaResources = null;
}
/**
*/
boolean containsJavaResources() {
return fChildren.length != 0;
}
| public PackageFragmentInfo() {
this.nonJavaResources = null;
}
/**
*/
boolean containsJavaResources() {
return this.children.length != 0;
}
|
protected void configureShell(Shell shell) {
super.configureShell(shell);
if (menuBarManager != null) {
menuBarManager.updateAll(true);
shell.setMenuBar(menuBarManager.createMenuBar(shell));
}
// we need a special layout
shell.setLayout(new ApplicationWindowLayout());
new Label(shell, SWT.SEPARATOR | SWT... | protected void configureShell(Shell shell) {
super.configureShell(shell);
if (menuBarManager != null) {
menuBarManager.updateAll(true);
shell.setMenuBar(menuBarManager.createMenuBar(shell));
}
// we need a special layout
shell.setLayout(new ApplicationWindowLayout());
new Label(shell, SWT.SEPARATOR | SWT... |
public static String id() {
return "4.5-SNAPSHOT-20080513-1059";
}
| public static String id() {
return "4.5-SNAPSHOT-20080602-1631";
}
|
public String toString() {
return name + " (" + id + ')';
}
| public String toString() {
return name + " (" + id + ')'; //$NON-NLS-1$
}
|
public void delete(ScarabUser user) throws Exception
{
ModuleEntity module = getAttributeGroup().getScarabModule();
ScarabSecurity security = SecurityFactory.getInstance();
if (security.hasPermission(ScarabSecurity.ITEM__APPROVE,
user, module))
... | public void delete(ScarabUser user) throws Exception
{
ModuleEntity module = getAttributeGroup().getModule();
ScarabSecurity security = SecurityFactory.getInstance();
if (security.hasPermission(ScarabSecurity.ITEM__APPROVE,
user, module))
{
... |
private void unhookDragSupport() {
ToolBar bar = perspectiveBar.getControl();
if (bar != null || !bar.isDisposed() || dragListener == null)
return;
PresentationUtil.removeDragListener(bar, dragListener);
DragUtil.removeDragTarget(perspectiveBar.getControl(), dragTarget);
DragUtil.removeDragTarget(null, e... | private void unhookDragSupport() {
ToolBar bar = perspectiveBar.getControl();
if (bar == null || bar.isDisposed() || dragListener == null)
return;
PresentationUtil.removeDragListener(bar, dragListener);
DragUtil.removeDragTarget(perspectiveBar.getControl(), dragTarget);
DragUtil.removeDragTarget(null, ex... |
private List sortByAttribute(Criteria crit) throws Exception
{
Vector attSet = new Vector();
Vector attNotSet = new Vector();
List unSortedIssues = IssuePeer.doSelect(crit);
List sortedIssues = new ArrayList(unSortedIssues.size());
NumberKey sortAttrId = getSortAttributeI... | private List sortByAttribute(Criteria crit) throws Exception
{
Vector attSet = new Vector();
Vector attNotSet = new Vector();
List unSortedIssues = IssuePeer.doSelect(crit);
List sortedIssues = new ArrayList(unSortedIssues.size());
NumberKey sortAttrId = getSortAttributeI... |
public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
// here requires to generate a sequence of finally blocks invocations depending corresponding
// to each of the traversed try statements, so that execution will terminate properly.
// lookup the label, thi... | public FlowInfo analyseCode(
BlockScope currentScope,
FlowContext flowContext,
FlowInfo flowInfo) {
// here requires to generate a sequence of finally blocks invocations depending corresponding
// to each of the traversed try statements, so that execution will terminate properly.
// lookup the label, thi... |
protected void addDependentsOf(IPath path, boolean hasStructuralChanges) {
if (hasStructuralChanges)
newState.hasStructuralChanges();
// the qualifiedStrings are of the form 'p1/p1' & the simpleStrings are just 'X'
path = path.setDevice(null);
String packageName = path.uptoSegment(path.segmentCount() - 1).toStrin... | protected void addDependentsOf(IPath path, boolean hasStructuralChanges) {
if (hasStructuralChanges)
newState.tagAsStructurallyChanged();
// the qualifiedStrings are of the form 'p1/p1' & the simpleStrings are just 'X'
path = path.setDevice(null);
String packageName = path.uptoSegment(path.segmentCount() - 1).toS... |
public int getNodeType() {
return TRY_STATEMENT;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
TryStatement result = new TryStatement(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.copyLeadingComment(this);
result.s... | public int getNodeType() {
return TRY_STATEMENT;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone0(AST target) {
TryStatement result = new TryStatement(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.copyLeadingComment(this);
result.... |
public static void checkAnnotationValue(TypeBinding requiredType, TypeBinding annotationType, char[] memberName, Expression memberValue, Scope scope) {
if (requiredType == null)
return;
if (memberValue == null)
return;
// annotation methods can only return base types, String, Class, enum type, annotat... | public static void checkAnnotationValue(TypeBinding requiredType, TypeBinding annotationType, char[] memberName, Expression memberValue, Scope scope) {
if (requiredType == null)
return;
if (memberValue == null)
return;
// annotation methods can only return base types, String, Class, enum type, annotat... |
public String toString(int tab) {
StringBuffer result = new StringBuffer(tabString(tab));
result.append("Recovered method:\n"); //$NON-NLS-1$
result.append(this.methodDeclaration.toString(tab + 1));
if (this.localTypes != null) {
for (int i = 0; i < this.localTypeCount; i++) {
result.append("\n"); //$NON-NLS-1... | public String toString(int tab) {
StringBuffer result = new StringBuffer(tabString(tab));
result.append("Recovered method:\n"); //$NON-NLS-1$
result.append(this.methodDeclaration.print(tab + 1, result));
if (this.localTypes != null) {
for (int i = 0; i < this.localTypeCount; i++) {
result.append("\n"); //$NON-... |
public String toStringExpression() {
/* slow code */
String str = "ExtendedStringLiteral{"+ new String(source) +"}"; //$NON-NLS-2$ //$NON-NLS-1$
return str;
}
| public String toStringExpression() {
/* slow code */
String str = "ExtendedStringLiteral{"/*nonNLS*/+ new String(source) +"}"/*nonNLS*/;
return str;
}
|
private void checkAndSetModifiersForVariable(LocalVariableBinding varBinding) {
int modifiers = varBinding.modifiers;
if ((modifiers & ExtraCompilerModifiers.AccAlternateModifierProblem) != 0 && varBinding.declaration != null){
problemReporter().duplicateModifierForVariable(varBinding.declaration, this instanceof M... | private void checkAndSetModifiersForVariable(LocalVariableBinding varBinding) {
int modifiers = varBinding.modifiers;
if ((modifiers & ExtraCompilerModifiers.AccAlternateModifierProblem) != 0 && varBinding.declaration != null){
problemReporter().duplicateModifierForVariable(varBinding.declaration, this instanceof M... |
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 void setMarkVariant(String s) {
set("markvariant", s);
}
| public void setMarkVariant(String s) {
setString("markvariant", s);
}
|
public int indexOf(String additionId) {
int index = 0;
for (Iterator iterator = additions.iterator(); iterator.hasNext();) {
AdditionBase addition = (AdditionBase) iterator.next();
if (additionId.equals(addition.getId()))
return index;
index++;
}
return 0;
}
| public int indexOf(String additionId) {
int index = 0;
for (Iterator iterator = additions.iterator(); iterator.hasNext();) {
AdditionBase addition = (AdditionBase) iterator.next();
if (additionId.equals(addition.getId()))
return index;
index++;
}
return -1;
}
|
public byte
getAlgorithm() {
return alg;
}
byte []
rrToWire(Compression c) throws IOException {
if (cert == null)
return null;
ByteArrayOutputStream bs = new ByteArrayOutputStream();
CountedDataOutputStream ds = new CountedDataOutputStream(bs);
ds.writeShort(certType);
ds.writeByte(keyTag);
ds.writeByte(alg... | public byte
getAlgorithm() {
return alg;
}
byte []
rrToWire(Compression c, int index) throws IOException {
if (cert == null)
return null;
ByteArrayOutputStream bs = new ByteArrayOutputStream();
CountedDataOutputStream ds = new CountedDataOutputStream(bs);
ds.writeShort(certType);
ds.writeByte(keyTag);
ds.wr... |
protected boolean isClassFileChanged(IFile file, String fileName, byte[] bytes, boolean isSecondaryType) throws CoreException {
// In Incremental mode, compare the bytes against the previous file for structural changes
return true;
}
protected char[] writeClassFile(ClassFile classFile, boolean isSecondaryType) throw... | protected boolean isClassFileChanged(IFile file, String fileName, byte[] bytes, boolean isSecondaryType) throws CoreException {
// In Incremental mode, compare the bytes against the previous file for structural changes
return true;
}
protected char[] writeClassFile(ClassFile classFile, boolean isSecondaryType) throw... |
public void handleRequest(HttpServletRequest request) throws ServletException {
MultipartIterator iterator = new MultipartIterator(request,
servlet.getBufferSize(),
getMaxSizeFrom... | public void handleRequest(HttpServletRequest request) throws ServletException {
MultipartIterator iterator = new MultipartIterator(request,
servlet.getBufferSize(),
getMaxSizeFrom... |
void exitField(int initializationStart, int declarationEnd, int declarationSourceEnd);
/*******************************************************************************
* Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials... | void exitField(int initializationStart, int declarationEnd, int declarationSourceEnd);
/*******************************************************************************
* Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
* All rights reserved. This program and the accompanying materials... |
public int lineNumber(int position) {
int length = lineEndTable.length;
if (length == 0) {
// no line number info
return 1;
}
int low = 0;
if (position <= lineEndTable[low]) {
// position illegal or before the first line delimiter
return 1;
}
// assert position > lineEndTable[low+1] && low =... | public int lineNumber(int position) {
int length = lineEndTable.length;
if (length == 0) {
// no line number info
return 1;
}
int low = 0;
if (position <= lineEndTable[low]) {
// position illegal or before the first line delimiter
return 1;
}
// assert position > lineEndTable[low+1] && low =... |
public void setComment(String comment) {
becomeDetailed();
fComment= comment;
fragment();
setHasComment(comment != null);
/* see 1FVIJAH */
if (comment != null) {
String commentString = new String(comment);
if (commentString.indexOf("@deprecated") >= 0) {
fFlags= fFlags | IConstants.AccDeprecated;
retur... | public void setComment(String comment) {
becomeDetailed();
fComment= comment;
fragment();
setHasComment(comment != null);
/* see 1FVIJAH */
if (comment != null) {
String commentString = new String(comment);
if (commentString.indexOf("@deprecated"/*nonNLS*/) >= 0) {
fFlags= fFlags | IConstants.AccDeprecated... |
public JSCFConnection getConnection(String userID) throws JSCFException {
SecurityItem pgpItem = MailConfig.getInstance().getAccountList()
.getDefaultAccount().getPGPItem();
JSCFConnection con = (JSCFConnection) connectionMap.get(userID);
if (con == null) {
LOG.fine("no connection for userID (" + userID
... | public JSCFConnection getConnection(String userID) throws JSCFException {
SecurityItem pgpItem = MailConfig.getInstance().getAccountList()
.getDefaultAccount().getPGPItem();
JSCFConnection con = (JSCFConnection) connectionMap.get(userID);
if (con == null) {
LOG.fine("no connection for userID (" + userID
... |
public FilterPluginHandler() {
super("org.columba.mail.filter", "org/columba/mail/filter/filter.xml", "filterlist");
}
| public FilterPluginHandler() {
super("org.columba.mail.filter", "org/columba/mail/plugin/filter.xml", "filterlist");
}
|
private boolean busyClose() {
// Whether the window was actually closed or not
boolean windowClosed = false;
// Setup internal flags to indicate window is in
// progress of closing and no update should be done.
closing = true;
updateDisabled = true;
try {
... | private boolean busyClose() {
// Whether the window was actually closed or not
boolean windowClosed = false;
// Setup internal flags to indicate window is in
// progress of closing and no update should be done.
closing = true;
updateDisabled = true;
try {
... |
public void appendRow() {
int rowCount = getRowCount();
int selected = getSelectedRow();
if (emptyRowExists() == false) {
addEmptyRow();
//editLastRow();
} else
editLastRow();
}
| public void appendRow() {
int rowCount = getRowCount();
int selected = getSelectedRow();
if (emptyRowExists() == false) {
addEmptyRow();
editLastRow();
} else
editLastRow();
}
|
public void shutdown() {
HashMap keepingIndexesPaths = new HashMap();
IndexSelector indexSelector = new IndexSelector(new JavaWorkspaceScope(), null, this);
IIndex[] selectedIndexes = indexSelector.getIndexes();
for (int i = 0, max = selectedIndexes.length; i < max; i++) {
String path = selectedIndexes[i].getIn... | public void shutdown() {
HashMap keepingIndexesPaths = new HashMap();
IndexSelector indexSelector = new IndexSelector(new JavaWorkspaceScope(), null, this);
IIndex[] selectedIndexes = indexSelector.getIndexes();
for (int i = 0, max = selectedIndexes.length; i < max; i++) {
String path = selectedIndexes[i].getIn... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.