buggy_function stringlengths 1 391k | fixed_function stringlengths 0 392k |
|---|---|
public static String id() {
return "4.5-SNAPSHOT-20080319-0812";
}
| public static String id() {
return "4.5-SNAPSHOT-20080506-1730";
}
|
public IContextActivation activateContext(String contextId,
Expression expression, boolean global) {
if (global) {
IContextActivation activation = fParentService.activateContext(
contextId, expression);
fParentActivations.add(activation);
return activation;
}
AndExpression andExpression = null;
... | public IContextActivation activateContext(String contextId,
Expression expression, boolean global) {
if (global) {
IContextActivation activation = fParentService.activateContext(
contextId, expression, global);
fParentActivations.add(activation);
return activation;
}
AndExpression andExpression ... |
public void actionPerformed (ActionEvent ae) {
ProjectBrowser pb = ProjectBrowser.TheInstance;
Project p = pb.getProject();
if (p != null && p.needsSave() && !active) {
active = true;
String t = MessageFormat.format (
Argo.localize (
"Actions",
"template.... | public void actionPerformed (ActionEvent ae) {
ProjectBrowser pb = ProjectBrowser.TheInstance;
Project p = ProjectManager.getManager().getCurrentProject();
if (p != null && p.needsSave() && !active) {
active = true;
String t = MessageFormat.format (
Argo.localize (
"... |
private String path;
CategoryNode(Category cat) {
category = cat;
path = ""; //$NON-NLS-1$
String[] categoryPath = category.getParentPath();
if (categoryPath != null) {
for (int nX = 0; nX < categoryPath.length; nX++) {
... | private String path;
CategoryNode(Category cat) {
category = cat;
path = ""; //$NON-NLS-1$
String[] categoryPath = category.getParentPath();
if (categoryPath != null) {
for (int nX = 0; nX < categoryPath.length; nX++) {
... |
public int getNodeType() {
return ENUM_CONSTANT_DECLARATION;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
EnumConstantDeclaration result = new EnumConstantDeclaration(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.se... | public int getNodeType() {
return ENUM_CONSTANT_DECLARATION;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone0(AST target) {
EnumConstantDeclaration result = new EnumConstantDeclaration(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.s... |
public RecoveredElement buildInitialRecoveryState(){
/* recovery in unit structure */
if (referenceContext instanceof CompilationUnitDeclaration){
RecoveredElement element = super.buildInitialRecoveryState();
flushAssistState();
flushElementStack();
return element;
}
/* recovery in method body */
lastChec... | public RecoveredElement buildInitialRecoveryState(){
/* recovery in unit structure */
if (referenceContext instanceof CompilationUnitDeclaration){
RecoveredElement element = super.buildInitialRecoveryState();
flushAssistState();
flushElementStack();
return element;
}
/* recovery in method body */
lastChec... |
public IImportDeclaration getImport(String importName) {
return new ImportDeclaration((ImportContainer)getImportContainer(), importName);
}
| public IImportDeclaration getImport(String importName) {
return getImportContainer().getImport(importName);
}
|
public PackageFragmentInfo() {
fNonJavaResources = null;
}
/**
*/
boolean containsJavaResources() {
return fChildren.length != 0;
}
/**
* Returns an array of non-java resources contained in the receiver.
*/
Object[] getNonJavaResources(IResource underlyingResource, PackageFragmentRoot rootHandle) {
Object[] nonJa... | public PackageFragmentInfo() {
fNonJavaResources = null;
}
/**
*/
boolean containsJavaResources() {
return fChildren.length != 0;
}
/**
* Returns an array of non-java resources contained in the receiver.
*/
Object[] getNonJavaResources(IResource underlyingResource, PackageFragmentRoot rootHandle) {
Object[] nonJa... |
protected Control createDialogArea(Composite parent) {
// page group
Composite composite = (Composite) super.createDialogArea(parent);
composite.setLayout(new GridLayout());
composite.setLayoutData(new GridData(GridData.FILL_BOTH));
createProjectLocationGroup(composite);
//Add in a label for status messages if... | protected Control createDialogArea(Composite parent) {
// page group
Composite composite = (Composite) super.createDialogArea(parent);
composite.setLayout(new GridLayout());
composite.setLayoutData(new GridData(GridData.FILL_BOTH));
createProjectLocationGroup(composite);
//Add in a label for status messages if... |
protected void toStringInfo(int tab, StringBuffer buffer, Object info) {
buffer.append(this.tabString(tab));
buffer.append("[Working copy] ");
super.toStringInfo(0, buffer, info);
}
| protected void toStringInfo(int tab, StringBuffer buffer, Object info) {
buffer.append(this.tabString(tab));
buffer.append("[Working copy] "); //$NON-NLS-1$
super.toStringInfo(0, buffer, info);
}
|
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
int pc = codeStream.position;
if (constant != Constant.NotAConstant) {
// inlined value
if (valueRequired)
codeStream.generateConstant(constant, implicitConversion);
codeStream.recordPositionsFrom(pc, th... | public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
int pc = codeStream.position;
if (constant != Constant.NotAConstant) {
// inlined value
if (valueRequired)
codeStream.generateConstant(constant, implicitConversion);
codeStream.recordPositionsFrom(pc, th... |
protected void executeOperation() throws JavaModelException {
checkCanceled();
try {
// set raw classpath and null out resolved info
PerProjectInfo perProjectInfo = this.project.getPerProjectInfo();
ClasspathChange classpathChange = perProjectInfo.setClasspath(this.newRawClasspath, this.newOutputLocation,... | protected void executeOperation() throws JavaModelException {
checkCanceled();
try {
// set raw classpath and null out resolved info
PerProjectInfo perProjectInfo = this.project.getPerProjectInfo();
ClasspathChange classpathChange = perProjectInfo.setRawClasspath(this.newRawClasspath, this.newOutputLocati... |
public boolean execute(IProgressMonitor progressMonitor) {
if (progressMonitor != null && progressMonitor.isCanceled()) return true;
/* ensure no concurrent write access to index */
IIndex index = manager.getIndex(this.indexPath, true, /*reuse index file*/ false /*create if none*/);
if (index == null) return... | public boolean execute(IProgressMonitor progressMonitor) {
if (this.isCancelled || progressMonitor != null && progressMonitor.isCanceled()) return true;
/* ensure no concurrent write access to index */
IIndex index = manager.getIndex(this.indexPath, true, /*reuse index file*/ false /*create if none*/);
if (i... |
public void computeLocalVariablePositions(
int initOffset,
CodeStream codeStream) {
this.offset = initOffset;
this.maxOffset = initOffset;
// local variable init
int ilocal = 0, maxLocals = 0, localsLength = locals.length;
while ((maxLocals < localsLength) && (locals[maxLocals] != null))
maxLocals++... | public void computeLocalVariablePositions(
int initOffset,
CodeStream codeStream) {
this.offset = initOffset;
this.maxOffset = initOffset;
// local variable init
int ilocal = 0, maxLocals = 0, localsLength = locals.length;
while ((maxLocals < localsLength) && (locals[maxLocals] != null))
maxLocals++... |
public void updateGUI() throws Exception {
MailInterface.treeModel.nodeStructureChanged(parentFolder);
if (vfolder != null) {
//vfolder.showFilterDialog((AbstractMailFrameController) getFrameMediator());
new ConfigFrame(vfolder);
}
}
| public void updateGUI() throws Exception {
MailInterface.treeModel.nodeStructureChanged(parentFolder);
if (vfolder != null) {
//vfolder.showFilterDialog((AbstractMailFrameController) getFrameMediator());
new ConfigFrame(getFrameMediator().getView().getFrame(), vfolder);
... |
public void stateChanged(ChangeEvent e) {
Map m = logui.getPanels();
if (m != null) {
Set s = m.entrySet();
Iterator iter = s.iterator();
while (iter.hasNext()) {
Map.Entry entry = (Map.Entry) iter.next();
if ... | public void stateChanged(ChangeEvent e) {
Map m = logui.getPanels();
if (m != null) {
Set s = m.entrySet();
Iterator iter = s.iterator();
while (iter.hasNext()) {
Map.Entry entry = (Map.Entry) iter.next();
if ... |
private final void updateModeLines(final KeySequence mode) {
synchronized (modeContributionItems) {
final Iterator modeLineItr = modeContributionItems.values().iterator();
while (modeLineItr.hasNext()) {
final StatusLineContributionItem modeLine = (StatusLineContributionItem) modeLineItr.next();
modeLi... | private final void updateModeLines(final KeySequence mode) {
synchronized (modeContributionItems) {
final Iterator modeLineItr = modeContributionItems.values().iterator();
while (modeLineItr.hasNext()) {
final StatusLineContributionItem modeLine = (StatusLineContributionItem) modeLineItr.next();
modeLi... |
public StandardViewSystemMenu(IStackPresentationSite site) {
restore = new SystemMenuRestore(site);
move = new SystemMenuMove(site, WorkbenchMessages.getString("ViewPane.moveView"), false); //$NON-NLS-1$)
minimize = new SystemMenuMinimize(site);
maximize = new SystemMenuMaximize(site... | public StandardViewSystemMenu(IStackPresentationSite site) {
restore = new SystemMenuRestore(site);
move = new SystemMenuMove(site, WorkbenchMessages.ViewPane_moveView, false);
minimize = new SystemMenuMinimize(site);
maximize = new SystemMenuMaximize(site);
close = new Syste... |
public void addContextServiceListener(IContextServiceListener contextServiceListener) {
if (contextServiceListeners != null)
contextServiceListeners = new ArrayList();
if (!contextServiceListeners.contains(contextServiceListener))
contextServiceListeners.add(contextServiceListener);
}
| public void addContextServiceListener(IContextServiceListener contextServiceListener) {
if (contextServiceListeners == null)
contextServiceListeners = new ArrayList();
if (!contextServiceListeners.contains(contextServiceListener))
contextServiceListeners.add(contextServiceListener);
}
|
public boolean isMember() throws JavaModelException {
return getDeclaringType() == null;
}
| public boolean isMember() throws JavaModelException {
return getDeclaringType() != null;
}
|
public SwitchStatement convert(org.eclipse.jdt.internal.compiler.ast.SwitchStatement statement) {
SwitchStatement switchStatement = this.ast.newSwitchStatement();
switchStatement.setSourceRange(statement.sourceStart, statement.sourceEnd - statement.sourceStart + 1);
switchStatement.setExpression(convert(stateme... | public SwitchStatement convert(org.eclipse.jdt.internal.compiler.ast.SwitchStatement statement) {
SwitchStatement switchStatement = this.ast.newSwitchStatement();
switchStatement.setSourceRange(statement.sourceStart, statement.sourceEnd - statement.sourceStart + 1);
switchStatement.setExpression(convert(stateme... |
public static boolean isDeclaringPackageFragment(IPackageFragment packageFragment, ReferenceBinding typeBinding) {
char[] fileName = typeBinding.getFileName();
if (fileName != null) {
// retrieve the actual file name from the full path (sources are generally only containing it already)
CharOperation.replace(fileN... | public static boolean isDeclaringPackageFragment(IPackageFragment packageFragment, ReferenceBinding typeBinding) {
char[] fileName = typeBinding.getFileName();
if (fileName != null) {
// retrieve the actual file name from the full path (sources are generally only containing it already)
CharOperation.replace(fileN... |
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
int pc = codeStream.position;
ArrayBinding arrayBinding;
if (initializer != null) {
initializer.generateCode(currentScope, codeStream, valueRequired);
return;
}
int nonNullDimensionsLength = 0;
for (int i = 0... | public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {
int pc = codeStream.position;
ArrayBinding arrayBinding;
if (initializer != null) {
initializer.generateCode(currentScope, codeStream, valueRequired);
return;
}
int nonNullDimensionsLength = 0;
for (int i = 0... |
public void runWithException() throws Throwable {
workbook.getPresentation().restoreState(serializer, memento);
}});
}
return new Status(IStatus.OK, PlatformUI.PLUGIN_ID, 0, "", null); //$NON-NLS-1$
}
} | public void runWithException() throws Throwable {
workbook.getPresentation().restoreState(serializer, memento);
}});
}
return Status.OK_STATUS;
}
} |
public PropPanelParameter() {
super("Parameter", _parameterIcon,2);
Class mclass = MParameter.class;
Class[] namesToWatch = { MStereotype.class,MOperation.class,
MParameter.class,MClassifier.class };
setNameEventListening(namesToWatch);
addCaption(Argo.localiz... | public PropPanelParameter() {
super("Parameter", _parameterIcon,2);
Class mclass = MParameter.class;
Class[] namesToWatch = { MStereotype.class,MOperation.class,
MParameter.class,MClassifier.class };
setNameEventListening(namesToWatch);
addCaption(Argo.localiz... |
protected void executeOperation() throws JavaModelException {
checkCanceled();
try {
// set raw classpath and null out resolved info
PerProjectInfo perProjectInfo = this.project.getPerProjectInfo();
ClasspathChange classpathChange = perProjectInfo.setRawClasspath(this.newRawClasspath, this.referencedEntri... | protected void executeOperation() throws JavaModelException {
checkCanceled();
try {
// set raw classpath and null out resolved info
PerProjectInfo perProjectInfo = this.project.getPerProjectInfo();
ClasspathChange classpathChange = perProjectInfo.setRawClasspath(this.newRawClasspath, this.referencedEntri... |
public Object getValueAt(int row, int col) {
XmlElement filter = filterList.getElement(row);
// this shouldn't happen at any time
if (filter == null) {
return "";
}
if (col == 0) {
// description
String description = filter.getAttribute("... | public Object getValueAt(int row, int col) {
XmlElement filter = filterList.getElement(row);
// this shouldn't happen at any time
if (filter == null) {
return "";
}
if (col == 0) {
// description
String description = filter.getAttribute("... |
public FolderTreeMouseListener(TreeController t) {
this.treeController = t;
viewHeaderListAction = new ViewHeaderListAction(t.getMailFrameController());
}
| public FolderTreeMouseListener(TreeController t) {
this.treeController = t;
viewHeaderListAction = new ViewHeaderListAction(t.getFrameController());
}
|
public void resolveStatements() {
if (statements != null) {
for (int i = 0, length = statements.length; i < length; i++) {
statements[i].resolve(scope);
}
} else if ((this.bits & UndocumentedEmptyBlockMASK) != 0) {
scope.problemReporter().undocumentedEmptyBlock(this.sourceEnd, this.declarationSourceE... | public void resolveStatements() {
if (statements != null) {
for (int i = 0, length = statements.length; i < length; i++) {
statements[i].resolve(scope);
}
} else if ((this.bits & UndocumentedEmptyBlockMASK) != 0) {
scope.problemReporter().undocumentedEmptyBlock(this.bodyStart-1, this.bodyEnd+1);
}
... |
public int resolveLevel(ASTNode node) {
if (!(node instanceof TypeReference)) return IMPOSSIBLE_MATCH;
TypeReference typeRef = (TypeReference) node;
TypeBinding typeBinding = typeRef.resolvedType;
if (typeBinding instanceof ArrayBinding)
typeBinding = ((ArrayBinding) typeBinding).leafComponentType;
if (typeBind... | public int resolveLevel(ASTNode node) {
if (!(node instanceof TypeReference)) return IMPOSSIBLE_MATCH;
TypeReference typeRef = (TypeReference) node;
TypeBinding typeBinding = typeRef.resolvedType;
if (typeBinding instanceof ArrayBinding)
typeBinding = ((ArrayBinding) typeBinding).leafComponentType;
if (typeBind... |
public WorkingCopyOwner getWorkingCopyOwner() {
return this.workingCopyOwner;
}
/*
* Method declared on BindingResolver.
*/
synchronized IVariableBinding getVariableBinding(org.eclipse.jdt.internal.compiler.lookup.VariableBinding variableBinding) {
if (variableBinding != null) {
if (variableBinding.isVa... | public WorkingCopyOwner getWorkingCopyOwner() {
return this.workingCopyOwner;
}
/*
* Method declared on BindingResolver.
*/
synchronized IVariableBinding getVariableBinding(org.eclipse.jdt.internal.compiler.lookup.VariableBinding variableBinding) {
if (variableBinding != null) {
if (variableBinding.isVa... |
public int contextMap( Request request ) {
Context ctx=request.getContext();
if( ctx==null) return 0;
// XXX This interceptor will be added per/context.
if( ! ctx.getReloadable() ) return 0;
// We are remapping ?
if( request.getAttribute("tomcat.ReloadInterceptor")!=null)
return DECLINED;
DependMan... | public int contextMap( Request request ) {
Context ctx=request.getContext();
if( ctx==null) return 0;
// XXX This interceptor will be added per/context.
if( ! ctx.getReloadable() ) return 0;
// We are remapping ?
if( request.getAttribute("tomcat.ReloadInterceptor")!=null)
return 0;
DependManager dm... |
private void checkThread(JComponent c) {
if (!SwingUtilities.isEventDispatchThread() && checkIsShowing(c)) {
System.err.println("----------Wrong Thread START"); //$NON-NLS-1$
LOG.info(getStracktraceAsString(new Exception()));
dumpComponentTree(c);
System.err.prin... | private void checkThread(JComponent c) {
if (!SwingUtilities.isEventDispatchThread() && checkIsShowing(c)) {
System.err.println("----------Wrong Thread START"); //$NON-NLS-1$
System.err.println(getStracktraceAsString(new Exception()));
dumpComponentTree(c);
Syste... |
public
static
X1Logger getX1Logger(String name) {
return ((X1Logger) Category.getInstance(name, factory));
}
| public
static
X1Logger getX1Logger(String name) {
return ((X1Logger) Logger.getLogger(name, factory));
}
|
public CreateSubFolderAction(FrameMediator frameMediator) {
super(frameMediator, MailResourceLoader.getString("menu", "mainframe",
"menu_folder_newfolder"));
// tooltip text
putValue(SHORT_DESCRIPTION, MailResourceLoader.getString("menu",
"mainframe", "menu_folder_newfolder").replaceAll("&", ""));
//... | public CreateSubFolderAction(FrameMediator frameMediator) {
super(frameMediator, MailResourceLoader.getString("menu", "mainframe",
"menu_folder_newfolder"));
// tooltip text
putValue(SHORT_DESCRIPTION, MailResourceLoader.getString("menu",
"mainframe", "menu_folder_newfolder").replaceAll("&", ""));
//... |
public
HINFORecord(Name _name, short _dclass, int _ttl, String _cpu, String _os)
{
super(_name, Type.HINFO, _dclass, _ttl);
cpu = _cpu;
os = _os;
}
HINFORecord(Name _name, short _dclass, int _ttl, int length,
DataByteInputStream in, Compression c)
throws IOException
| public
HINFORecord(Name _name, short _dclass, int _ttl, String _cpu, String _os)
{
super(_name, Type.HINFO, _dclass, _ttl);
cpu = _cpu;
os = _os;
}
HINFORecord(Name _name, short _dclass, int _ttl, int length,
DataByteInputStream in)
throws IOException
|
public boolean shouldBeEnabled() {
return (super.shouldBeEnabled()
&& (ProjectBrowser.TheInstance.getActiveDiagram() instanceof UMLClassDiagram)
&& "Automatic".equals(_tabName));
}
| public boolean shouldBeEnabled() {
return (super.shouldBeEnabled()
&& (ProjectBrowser.TheInstance.getActiveDiagram() instanceof UMLClassDiagram)
&& "action.layout-automatic".equals(_tabName));
}
|
public String toString(){
if (this == DeadEnd){
return "FlowInfo.DeadEnd";
}
return super.toString();
}
| public String toString(){
if (this == DeadEnd){
return "FlowInfo.DeadEnd"/*nonNLS*/;
}
return super.toString();
}
|
public boolean checkAndReportBracketAnomalies(ProblemReporter problemReporter) {
scanner.wasAcr = false;
boolean anomaliesDetected = false;
try {
char[] source = scanner.source;
int[] leftCount = {0, 0, 0};
int[] rightCount = {0, 0, 0};
int[] depths = {0, 0, 0};
int[][] leftPositions = new int[][] {new i... | public boolean checkAndReportBracketAnomalies(ProblemReporter problemReporter) {
scanner.wasAcr = false;
boolean anomaliesDetected = false;
try {
char[] source = scanner.source;
int[] leftCount = {0, 0, 0};
int[] rightCount = {0, 0, 0};
int[] depths = {0, 0, 0};
int[][] leftPositions = new int[][] {new i... |
public void run() {
try {
stop();
} catch (Exception e) {
TraceCarol.error("IIOPCosNaming ShutdownHook problem" ,e);
}
}
});
} else {
if (TraceCarol.isDebugJndiCarol()) {
TraceCarol.debugJndiCarol("Can't start IIOPCosNaming, port="+port+" is < 0");
}
... | public void run() {
try {
IIOPCosNaming.this.stop();
} catch (Exception e) {
TraceCarol.error("IIOPCosNaming ShutdownHook problem" ,e);
}
}
});
} else {
if (TraceCarol.isDebugJndiCarol()) {
TraceCarol.debugJndiCarol("Can't start IIOPCosNaming, port="+port+" ... |
public void actionPerformed(ActionEvent evt) {
FrameModel.openView("Mail");
//getFrameController().getModel().openView();
}
| public void actionPerformed(ActionEvent evt) {
FrameModel.openView("ThreePaneMail");
//getFrameController().getModel().openView();
}
|
public void resolve(MethodScope methScope) {
// get method declaration
AbstractMethodDeclaration methDecl = methScope.referenceMethod();
boolean overriding = methDecl == null ? false : (methDecl.binding.modifiers & (AccImplementing+AccOverriding)) != 0;
// @see tags
int seeTagsLength = this.references ==... | public void resolve(MethodScope methScope) {
// get method declaration
AbstractMethodDeclaration methDecl = methScope.referenceMethod();
boolean overriding = methDecl == null ? false : (methDecl.binding.modifiers & (AccImplementing+AccOverriding)) != 0;
// @see tags
int seeTagsLength = this.references ==... |
public void end( SaxContext ctx) throws Exception {
Stack st=ctx.getObjectStack();
Object obj=st.pop();
Object parent=st.peek();
st.push( obj ); // put it back
String parentC=parent.getClass().getName();
ctx.log("Calling " + parentC + "." + parentM +" " + obj );
Class params[]=new Class[1];
if( paramT=... | public void end( SaxContext ctx) throws Exception {
Stack st=ctx.getObjectStack();
Object obj=st.pop();
Object parent=st.peek();
st.push( obj ); // put it back
String parentC=parent.getClass().getName();
if( ctx.getDebug() >0) ctx.log("Calling " + parentC + "." + parentM +" " + obj );
Class params[]=new... |
public void setTitle(String title) {
if (title == null) {
throw new IllegalArgumentException();
}
Shell shell = window.getShell();
if (shell != null) {
shell.setText(title);
} else {
// @issue need to be able to configure title before window's controls created
}
}
| public void setTitle(String title) {
if (title == null) {
throw new IllegalArgumentException();
}
Shell shell = window.getShell();
if (shell != null && !shell.isDisposed()) {
shell.setText(title);
} else {
// @issue need to be able to configure title before window's controls created
}
}
|
public void approve( ScarabUser user, boolean approved )
throws Exception
{
Module module = getModule();
if (user.hasPermission(ScarabSecurity.ITEM__APPROVE, module))
{
setApproved(true);
if (approved)
{
setSco... | public void approve( ScarabUser user, boolean approved )
throws Exception
{
Module module = getModule();
if (user.hasPermission(ScarabSecurity.ITEM__APPROVE, module))
{
setApproved(true);
if (approved)
{
setSco... |
public String toString() {
return Localizer.localize ("Tree", "Diagram->Edge");
}
| public String toString() {
return Localizer.localize ("Tree", "misc.diagram.edge");
}
|
public GenerationPreferences() {
if (System.getProperty("os.name").startsWith("S"))
_outputDir = "/tmp";
else
_outputDir = "c:\temp";
}
| public GenerationPreferences() {
if (System.getProperty("os.name").startsWith("S"))
_outputDir = "/tmp";
else
_outputDir = "c:\\temp";
}
|
private void traverseDelta(
IResourceDelta delta,
int elementType,
RootInfo rootInfo,
OutputsInfo outputsInfo) {
IResource res = delta.getResource();
// set stack of elements
if (this.currentElement == null && rootInfo != null) {
this.currentElement = (Openable)rootInfo.project;
}
// pr... | private void traverseDelta(
IResourceDelta delta,
int elementType,
RootInfo rootInfo,
OutputsInfo outputsInfo) {
IResource res = delta.getResource();
// set stack of elements
if (this.currentElement == null && rootInfo != null) {
this.currentElement = (Openable)rootInfo.project;
}
// pr... |
public void setPath(String path) {
if (File.separatorChar == '/')
this.path = path.replace('\\', '/');
else if (File.separatorChar = '\\')
this.path = path.replace('/', '\\');
}
| public void setPath(String path) {
if (File.separatorChar == '/')
this.path = path.replace('\\', '/');
else if (File.separatorChar == '\\')
this.path = path.replace('/', '\\');
}
|
public LoadingTestCollector() {
fLoader= new TestCaseClassLoader();
}
protected boolean isTestClass(String classFileName) {
try {
if (classFileName.endsWith(".class")) {
Class testClass= classFromFile(classFileName);
return (testClass != null) && isTestClass(testClass);
}
}
catch (ClassNotF... | public LoadingTestCollector() {
fLoader= new TestCaseClassLoader();
}
protected boolean isTestClass(String classFileName) {
try {
if (classFileName.endsWith(".class")) {
Class testClass= classFromFile(classFileName);
return (testClass != null) && isTestClass(testClass);
}
}
catch (ClassNotF... |
public void makeConsistent(IProgressMonitor monitor) throws JavaModelException {
if (!isConsistent()) { // TODO: this code isn't synchronized with regular opening of a working copy
// create a new info and make it the current info
OpenableElementInfo info = createElementInfo();
buildStructure(info, monitor);
}
... | public void makeConsistent(IProgressMonitor monitor) throws JavaModelException {
if (!isConsistent()) { // TODO: (jerome) this code isn't synchronized with regular opening of a working copy
// create a new info and make it the current info
OpenableElementInfo info = createElementInfo();
buildStructure(info, moni... |
public void draw(Graphics g) {
if (fImage == null) {
fImage = Iconkit.instance().getImage(fFileName);
}
if (fImage != null) {
g.drawImage(fImage, fDisplayBox.x, fDisplayBox.y, fDisplayBox.width, fDisplayBox.height, this);
}
else {
drawGhost(g);
}
}
| public void draw(Graphics g) {
if (fImage == null) {
fImage = Iconkit.instance().loadImage(fFileName,true);
}
if (fImage != null) {
g.drawImage(fImage, fDisplayBox.x, fDisplayBox.y, fDisplayBox.width, fDisplayBox.height, this);
}
else {
drawGhost(g);
}
}
|
public void actionPerformed(ActionEvent evt) {
IMailFolderCommandReference r = ((MailFrameMediator) getFrameMediator())
.getTableSelection();
r.setMarkVariant(MarkMessageCommand.MARK_AS_EXPUNGED);
IMailbox folder = (IMailbox) r.getSourceFolder();
int uid = folder.getConfiguration().getInteger("uid");
IM... | public void actionPerformed(ActionEvent evt) {
IMailFolderCommandReference r = ((MailFrameMediator) getFrameMediator())
.getTableSelection();
r.setMarkVariant(MarkMessageCommand.MARK_AS_EXPUNGED);
IMailbox folder = (IMailbox) r.getSourceFolder();
int uid = folder.getConfiguration().getInteger("uid");
IM... |
public void write (BufferedReader reader,
BufferedWriter writer,
Stack parseStateStack) throws Exception
{
ParseState parseState = (ParseState)parseStateStack.peek();
Vector features = parseState.getNewFeatures();
boolean found = false;
... | public void write (BufferedReader reader,
BufferedWriter writer,
Stack parseStateStack) throws Exception
{
ParseState parseState = (ParseState)parseStateStack.peek();
Vector features = parseState.getNewFeatures();
boolean found = false;
... |
public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) {
FlowInfo info = super.analyseCode(currentScope, flowContext, flowInfo);
// we need to remove this optimization in order to prevent the inlining of the return bytecode
// 1GH0AU7: ITPJCORE:ALL - Eval - VerifyError in sc... | public FlowInfo analyseCode(BlockScope currentScope, FlowContext flowContext, FlowInfo flowInfo) {
FlowInfo info = super.analyseCode(currentScope, flowContext, flowInfo);
// we need to remove this optimization in order to prevent the inlining of the return bytecode
// 1GH0AU7: ITPJCORE:ALL - Eval - VerifyError in sc... |
public ResetPerspectiveAction(IWorkbenchWindow window) {
super(window);
setText(WorkbenchMessages.ResetPerspective_text);
setActionDefinitionId(IWorkbenchCommandConstants.WINDOW_RESETPERSPECTIVE);
// @issue missing action id
setToolTipText(WorkbenchMessages.ResetPerspective_t... | public ResetPerspectiveAction(IWorkbenchWindow window) {
super(window);
setText(WorkbenchMessages.ResetPerspective_text);
setActionDefinitionId(IWorkbenchCommandConstants.WINDOW_RESET_PERSPECTIVE);
// @issue missing action id
setToolTipText(WorkbenchMessages.ResetPerspective_... |
public void testBefore() throws Exception {
// add message to folder
Object uid = addMessage();
GregorianCalendar c = new GregorianCalendar();
c.set(2004, 5, 10);
Date date = c.getTime();
getSourceFolder().setAttribute(uid, "columba.date", date);
// create filter configuration
MailFilterCriteria crit... | public void testBefore() throws Exception {
// add message to folder
Object uid = addMessage();
GregorianCalendar c = new GregorianCalendar();
c.set(2004, 5, 10);
Date date = c.getTime();
getSourceFolder().setAttribute(uid, "columba.date", date);
// create filter configuration
MailFilterCriteria crit... |
public int getNodeType() {
return CONSTRUCTOR_INVOCATION;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
ConstructorInvocation result = new ConstructorInvocation(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.setLeadin... | public int getNodeType() {
return CONSTRUCTOR_INVOCATION;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
ConstructorInvocation result = new ConstructorInvocation(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.copyLeadi... |
protected void createTreeItemFor(Widget parent, IPreferenceNode node) {
IObjectActivityManager prefManager =
PlatformUI.getWorkbench()
.getObjectActivityManager(
IWorkbenchConstants.PL_PREFERENCES, false);
if (prefManager != null) {
Collection activePages = prefManag... | protected void createTreeItemFor(Widget parent, IPreferenceNode node) {
IObjectActivityManager prefManager =
PlatformUI.getWorkbench()
.getObjectActivityManager(
IWorkbenchConstants.PL_PREFERENCES, false);
if (prefManager != null) {
Collection activePages = prefManag... |
public boolean visit(ArrayInitializer arrayInitializer, BlockScope scope) { final int numberOfParens = (arrayInitializer.bits & ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT;
if (numberOfParens > 0) {
manageOpeningParenthesizedExpression(arrayInitializer, numberOfParens);
}
final Expression[] exp... | public boolean visit(ArrayInitializer arrayInitializer, BlockScope scope) { final int numberOfParens = (arrayInitializer.bits & ASTNode.ParenthesizedMASK) >> ASTNode.ParenthesizedSHIFT;
if (numberOfParens > 0) {
manageOpeningParenthesizedExpression(arrayInitializer, numberOfParens);
}
final Expression[] exp... |
final static public String toString(char[][] array) {
char[] result = concatWith(array, '.');
if (result == null)
return "";
return new String(result);
}
| final static public String toString(char[][] array) {
char[] result = concatWith(array, '.');
if (result == null)
return ""/*nonNLS*/;
return new String(result);
}
|
public void enableThreadedView(boolean b) {
if (b) {
//tree.setRootVisible(true);
TableColumn tc = null;
try {
tc = getColumn("Subject");
tc.setCellRenderer(null);
} catch (Exception ex) {
System.out.println(
"headerTable->registerRenderer: " + ex.getMessage());
}
((HeaderTableM... | public void enableThreadedView(boolean b) {
if (b) {
//tree.setRootVisible(true);
TableColumn tc = null;
try {
tc = getColumn("Subject");
tc.setCellRenderer(null);
} catch (Exception ex) {
System.out.println(
"headerTable->registerRenderer: " + ex.getMessage());
}
((HeaderTableM... |
private void correct(char[] argument) throws JavaModelException {
try {
String source = unit.getSource();
Scanner scanner = new Scanner();
scanner.setSource(source.toCharArray());
scanner.resetTo(correctionStart, correctionEnd);
int token = 0;
char[] argumentSource = CharOperation.NO_CHAR;
... | private void correct(char[] argument) throws JavaModelException {
try {
String source = unit.getSource();
Scanner scanner = new Scanner();
scanner.setSource(source.toCharArray());
scanner.resetTo(correctionStart, correctionEnd);
int token = 0;
char[] argumentSource = CharOperation.NO_CHAR;
... |
public Object getValue(String fieldName, LoggingEvent event) {
String upperField = fieldName.toUpperCase();
LocationInfo info = null;
if (event.locationInformationExists()) {
info = event.getLocationInformation();
}
if (LOGGER_FIELD.equals(upperField)) {
return event.getLoggerName();... | public Object getValue(String fieldName, LoggingEvent event) {
String upperField = fieldName.toUpperCase();
LocationInfo info = null;
if (event.locationInformationExists()) {
info = event.getLocationInformation();
}
if (LOGGER_FIELD.equals(upperField)) {
return event.getLoggerName();... |
public ViewPreferencesAction() {
super(WorkbenchMessages.getString("OpenPreferences.text")); //$NON-NLS-1$
}
| public ViewPreferencesAction() {
super(WorkbenchMessages.OpenPreferences_text);
}
|
public IStatus restoreState(IMemento memento)
{
MultiStatus result = new MultiStatus(
PlatformUI.PLUGIN_ID,IStatus.OK,
WorkbenchMessages.getString("RootLayoutContainer.problemsRestoringPerspective"),null); //$NON-NLS-1$
// Read the info elements.
IMemento [] children = memento.getChildren(IWorkbenchConstants.... | public IStatus restoreState(IMemento memento)
{
MultiStatus result = new MultiStatus(
PlatformUI.PLUGIN_ID,IStatus.OK,
WorkbenchMessages.getString("RootLayoutContainer.problemsRestoringPerspective"),null); //$NON-NLS-1$
// Read the info elements.
IMemento [] children = memento.getChildren(IWorkbenchConstants.... |
public OpenPerspectiveAction(final IWorkbenchWindow window,
final IPerspectiveDescriptor descriptor,
final PerspectiveMenu callback) {
super(Util.ZERO_LENGTH_STRING);
this.descriptor = descriptor;
this.callback = callback;
final String label = descriptor.get... | public OpenPerspectiveAction(final IWorkbenchWindow window,
final IPerspectiveDescriptor descriptor,
final PerspectiveMenu callback) {
super(Util.ZERO_LENGTH_STRING);
this.descriptor = descriptor;
this.callback = callback;
final String label = '&' + descript... |
public void execute(Worker worker) throws Exception {
FolderCommandReference[] r = (FolderCommandReference[]) getReferences();
outboxFolder = (OutboxFolder) r[0].getFolder();
Object[] uids = outboxFolder.getUids(worker);
for (int i = 0; i < uids.length; i++) {
if (outboxFolder.exists(uids[i]) == true) {
... | public void execute(Worker worker) throws Exception {
FolderCommandReference[] r = (FolderCommandReference[]) getReferences();
outboxFolder = (OutboxFolder) r[0].getFolder();
Object[] uids = outboxFolder.getUids(worker);
for (int i = 0; i < uids.length; i++) {
if (outboxFolder.exists(uids[i], worker) == ... |
public char[] sourceName() {
switch (this.kind) {
case Wildcard.UNBOUND :
return WILDCARD_NAME;
case Wildcard.EXTENDS :
return CharOperation.concat(WILDCARD_NAME, WILDCARD_EXTENDS, this.bound.sourceName());
default: // SUPER
return CharOpera... | public char[] sourceName() {
switch (this.kind) {
case Wildcard.UNBOUND :
return WILDCARD_NAME;
case Wildcard.EXTENDS :
return CharOperation.concat(WILDCARD_NAME, WILDCARD_EXTENDS, this.bound.sourceName());
default: // SUPER
return CharOpera... |
public void run(IProgressMonitor monitor) throws CoreException {
// ensure that the writing of the .classpath file and the caching in memory are synchronized (see also readAnCacheClasspath which is synchronized)
try {
PerProjectInfo.this.writtingRawClasspath = true;
synchronized (PerProje... | public void run(IProgressMonitor monitor) throws CoreException {
// ensure that the writing of the .classpath file and the caching in memory are synchronized (see also readAnCacheClasspath which is synchronized)
try {
PerProjectInfo.this.writtingRawClasspath = true;
synchronized (PerProje... |
public void readWorkingSets(IPluginRegistry in, WorkingSetRegistry out) {
registry = out;
readRegistry(in, PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_WORKINGSETS);
}
} | public void readWorkingSets(IExtensionRegistry in, WorkingSetRegistry out) {
registry = out;
readRegistry(in, PlatformUI.PLUGIN_ID, IWorkbenchConstants.PL_WORKINGSETS);
}
} |
public int getNodeType() {
return SWITCH_CASE;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
SwitchCase result = new SwitchCase(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.setLeadingComment(getLeadingComment());
... | public int getNodeType() {
return SWITCH_CASE;
}
/* (omit javadoc for this method)
* Method declared on ASTNode.
*/
ASTNode clone(AST target) {
SwitchCase result = new SwitchCase(target);
result.setSourceRange(this.getStartPosition(), this.getLength());
result.copyLeadingComment(this);
result.setExpr... |
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 static void addContact(int uid, String address) {
if (address == null) {
return;
}
if (address.length() == 0)
return;
Address adr;
try {
adr = Address.parse(address);
} catch (ParserException e1) {
if ( MainInterface.DEBUG)
e1.printStackTrace();
return;
}
... | public static void addContact(int uid, String address) {
if (address == null) {
return;
}
if (address.length() == 0)
return;
Address adr;
try {
adr = Address.parse(address);
} catch (ParserException e1) {
if ( MainInterface.DEBUG)
e1.printStackTrace();
return;
}
... |
protected
void printOptions(PrintWriter out, Category cat) {
Enumeration appenders = cat.getAllAppenders();
Priority prio = cat.getPriority();
String appenderString = (prio == null ? "" : prio.toString());
while (appenders.hasMoreElements()) {
Appender app = (Appender) appenders.nextEleme... | protected
void printOptions(PrintWriter out, Category cat) {
Enumeration appenders = cat.getAllAppenders();
Level prio = cat.getLevel();
String appenderString = (prio == null ? "" : prio.toString());
while (appenders.hasMoreElements()) {
Appender app = (Appender) appenders.nextElement();
... |
public boolean
findRRset(Name name, short type, int section) {
for (int i = 0; i < sections[section].size(); i++) {
Record r = (Record) sections[section].elementAt(i);
if (r.getType() == type || name.equals(r.getName()))
return true;
}
return false;
}
| public boolean
findRRset(Name name, short type, int section) {
for (int i = 0; i < sections[section].size(); i++) {
Record r = (Record) sections[section].elementAt(i);
if (r.getType() == type && name.equals(r.getName()))
return true;
}
return false;
}
|
public boolean process(
Object[] args,
Folder folder,
Object uid,
WorkerStatusController worker)
throws Exception {
String body = folder.getMessageSource(uid, worker);
int condition = FilterCriteria.getCriteria((String) args[0]);
String bodyText = (String) args[0];
boolean result = false;
switch... | public boolean process(
Object[] args,
Folder folder,
Object uid,
WorkerStatusController worker)
throws Exception {
String body = folder.getMessageSource(uid, worker);
int condition = FilterCriteria.getCriteria((String) args[0]);
String bodyText = (String) args[1];
boolean result = false;
switch... |
public void configure(String[] argv) throws InvalidInputException {
if ((argv == null) || (argv.length == 0)) {
printUsage();
return;
}
final int InsideClasspath = 1;
final int InsideDestinationPath = 2;
final int TargetSetting = 4;
final int InsideLog = 8;
final int InsideRepetition = 16;
fin... | public void configure(String[] argv) throws InvalidInputException {
if ((argv == null) || (argv.length == 0)) {
printUsage();
return;
}
final int InsideClasspath = 1;
final int InsideDestinationPath = 2;
final int TargetSetting = 4;
final int InsideLog = 8;
final int InsideRepetition = 16;
fin... |
public ChOperation() {
setNextCategory("Naming");
addItem("Does the name '{name}' clearly describe the operation?");
addItem("Is '{name}' a verb or verb phrase?");
addItem("Could the name '{name}' be misinterperrted to mean something else?");
addItem("Does {name} do one thing and do it well?");
setNextC... | public ChOperation() {
setNextCategory("Naming");
addItem("Does the name '{name}' clearly describe the operation?");
addItem("Is '{name}' a verb or verb phrase?");
addItem("Could the name '{name}' be misinterperrted to mean something else?");
addItem("Does {name} do one thing and do it well?");
setNextC... |
public static final Integer[] TEXT_PKS =
{new Integer(1), new Integer(11), new Integer(12)};
}
| public static final Integer[] TEXT_PKS =
{new Integer(1), new Integer(11), new Integer(12), new Integer(13)};
}
|
protected IBuffer openBuffer(IProgressMonitor pm, Object info) throws JavaModelException {
// create buffer
BufferManager bufManager = getBufferManager();
boolean isWorkingCopy = isWorkingCopy();
IBuffer buffer =
isWorkingCopy
? this.owner.createBuffer(this)
: bufManager.createBuffer(this);
if (buffer ... | protected IBuffer openBuffer(IProgressMonitor pm, Object info) throws JavaModelException {
// create buffer
BufferManager bufManager = getBufferManager();
boolean isWorkingCopy = isWorkingCopy();
IBuffer buffer =
isWorkingCopy
? this.owner.createBuffer(this)
: BufferManager.createBuffer(this);
if (buff... |
public void runWithEvent(Event event) {
IntroDescriptor introDescriptor = ((Workbench) workbenchWindow
.getWorkbench()).getIntroDescriptor();
if (introDescriptor == null) {
MessageDialog.openWarning(event.display.getActiveShell(),
IntroMessages... | public void runWithEvent(Event event) {
IntroDescriptor introDescriptor = ((Workbench) workbenchWindow
.getWorkbench()).getIntroDescriptor();
if (introDescriptor == null) {
MessageDialog.openWarning(workbenchWindow.getShell(),
IntroMessages.Int... |
public IJavaElement getHandleFromMemento(String token, MementoTokenizer memento, WorkingCopyOwner workingCopyOwner) {
switch (token.charAt(0)) {
case JEM_COUNT:
return getHandleUpdatingCountFromMemento(memento, workingCopyOwner);
case JEM_FIELD:
String fieldName = memento.nextToken();
JavaElement field = ... | public IJavaElement getHandleFromMemento(String token, MementoTokenizer memento, WorkingCopyOwner workingCopyOwner) {
switch (token.charAt(0)) {
case JEM_COUNT:
return getHandleUpdatingCountFromMemento(memento, workingCopyOwner);
case JEM_FIELD:
String fieldName = memento.nextToken();
JavaElement field = ... |
public static final String NULL = "null";
/**
Interpret a resource pointed by a URL and set up log4j accordingly.
The configuration is done relative to the <code>hierarchy</code>
parameter.
@param url The URL to parse
@param hierarchy The hierarchy to operation upon.
*/
| public static final String NULL = "null";
/**
Interpret a resource pointed by a URL and set up log4j accordingly.
The configuration is done relative to the <code>hierarchy</code>
parameter.
@param url The URL to parse
@param repository The repository to operate upon.
*/
|
public void downloadNewMessages(
Vector newUIDList,
Vector messageSizeList,
Vector newMessagesUIDList,
Worker worker)
throws Exception {
ColumbaLogger.log.info(
"need to fetch " + newMessagesUIDList.size() + " messages.");
int totalSize =
calculateTotalSize(newUIDList, messageSizeList, newMessages... | public void downloadNewMessages(
Vector newUIDList,
Vector messageSizeList,
Vector newMessagesUIDList,
Worker worker)
throws Exception {
ColumbaLogger.log.info(
"need to fetch " + newMessagesUIDList.size() + " messages.");
int totalSize =
calculateTotalSize(newUIDList, messageSizeList, newMessages... |
public NameEnvironmentAnswer findClass(String sourceFileWithoutExtension, String qualifiedPackageName, String qualifiedSourceFileWithoutExtension) {
SimpleLookupTable dirTable = directoryTable(qualifiedPackageName);
if (dirTable != null && dirTable.elementSize > 0) {
IFile file = (IFile) dirTable.get(sourceFileWith... | public NameEnvironmentAnswer findClass(String sourceFileWithoutExtension, String qualifiedPackageName, String qualifiedSourceFileWithoutExtension) {
SimpleLookupTable dirTable = directoryTable(qualifiedPackageName);
if (dirTable != null && dirTable.elementSize > 0) {
IFile file = (IFile) dirTable.get(sourceFileWith... |
public void updateGUI() throws Exception {
controller.updateComponents(true);
}
| public void updateGUI() throws Exception {
//controller.updateComponents(true);
}
|
private void computeClasspathLocations(
IWorkspaceRoot root,
JavaProject javaProject,
SimpleLookupTable binaryLocationsPerProject) throws CoreException {
/* Update incomplete classpath marker */
IClasspathEntry[] classpathEntries = javaProject.getExpandedClasspath(true, true);
/* Update cycle marker */
IMarker... | private void computeClasspathLocations(
IWorkspaceRoot root,
JavaProject javaProject,
SimpleLookupTable binaryLocationsPerProject) throws CoreException {
/* Update incomplete classpath marker */
IClasspathEntry[] classpathEntries = javaProject.getExpandedClasspath(true, true);
/* Update cycle marker */
IMarker... |
public void computeLocalVariablePositions(
int initOffset,
CodeStream codeStream) {
this.offset = initOffset;
this.maxOffset = initOffset;
// local variable init
int ilocal = 0, maxLocals = 0, localsLength = locals.length;
while ((maxLocals < localsLength) && (locals[maxLocals] != null))
maxLocals++... | public void computeLocalVariablePositions(
int initOffset,
CodeStream codeStream) {
this.offset = initOffset;
this.maxOffset = initOffset;
// local variable init
int ilocal = 0, maxLocals = 0, localsLength = locals.length;
while ((maxLocals < localsLength) && (locals[maxLocals] != null))
maxLocals++... |
private CompilationUnitScope scope;
/**
* Constructor for DefaultBindingResolver.
*/
DefaultBindingResolver() {
this.newAstToOldAst = new HashMap();
this.compilerBindingsToASTBindings = new HashMap();
this.bindingsToAstNodes = new HashMap();
this.astNodesToBindings = new HashMap();
this.astNodesToBlo... | private CompilationUnitScope scope;
/**
* Constructor for DefaultBindingResolver.
*/
DefaultBindingResolver() {
this.newAstToOldAst = new HashMap();
this.compilerBindingsToASTBindings = new HashMap();
this.bindingsToAstNodes = new HashMap();
this.astNodesToBindings = new HashMap();
this.astNodesToBlo... |
public void checkComment() {
// discard obsolete comments while inside methods or fields initializer (see bug 74369)
if (!(this.diet && this.dietInt==0) && this.scanner.commentPtr >= 0) {
flushCommentsDefinedPriorTo(this.endStatementPosition);
}
boolean deprecated = false;
boolean checkDeprecated = false... | public void checkComment() {
// discard obsolete comments while inside methods or fields initializer (see bug 74369)
if (!(this.diet && this.dietInt==0) && this.scanner.commentPtr >= 0) {
flushCommentsDefinedPriorTo(this.endStatementPosition);
}
boolean deprecated = false;
boolean checkDeprecated = false... |
protected boolean generateInfos(
OpenableElementInfo info,
IProgressMonitor pm,
Map newElements,
IResource underlyingResource) throws JavaModelException {
boolean validInfo = false;
try {
if (getProject().isOpen()) {
// put the info now, because computing the roots requires it
JavaModelManager.... | protected boolean generateInfos(
OpenableElementInfo info,
IProgressMonitor pm,
Map newElements,
IResource underlyingResource) throws JavaModelException {
boolean validInfo = false;
try {
if (getProject().isOpen()) {
// put the info now, because computing the roots requires it
JavaModelManager.... |
public void commitWorkingCopy(boolean force, IProgressMonitor monitor) throws JavaModelException {
if (!isWorkingCopy()) {
throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.INVALID_ELEMENT_TYPES, this));
}
ICompilationUnit original = (ICompilationUnit)this.getOriginalElement();
if (origin... | public void commitWorkingCopy(boolean force, IProgressMonitor monitor) throws JavaModelException {
if (!isWorkingCopy()) {
throw new JavaModelException(new JavaModelStatus(IJavaModelStatusConstants.INVALID_ELEMENT_TYPES, this));
}
ICompilationUnit original = (ICompilationUnit)this.getOriginalElement(); // TODO (je... |
public void view(IMailbox folder, Object uid, MailFrameMediator mediator)
throws Exception {
// add headerfields which are about to show up
XmlElement headerviewerElement = MailConfig.getInstance()
.get("options").getElement("/options/headerviewer");
IDefaultItem item = new DefaultItem(headerviewerElement... | public void view(IMailbox folder, Object uid, MailFrameMediator mediator)
throws Exception {
// add headerfields which are about to show up
XmlElement headerviewerElement = MailConfig.getInstance()
.get("options").getElement("/options/headerviewer");
IDefaultItem item = new DefaultItem(headerviewerElement... |
private TypeBinding internalResolveType(Scope scope, boolean checkBounds) {
// handle the error here
this.constant = Constant.NotAConstant;
if (this.didResolve) { // is a shared type reference which was already resolved
if (this.resolvedType != null && !this.resolvedType.isValidBinding())
return null; //... | private TypeBinding internalResolveType(Scope scope, boolean checkBounds) {
// handle the error here
this.constant = Constant.NotAConstant;
if (this.didResolve) { // is a shared type reference which was already resolved
if (this.resolvedType != null && !this.resolvedType.isValidBinding())
return null; //... |
public CriteriaList(Filter filter) {
super();
pluginHandler = MainInterface.pluginManager.getHandler("filter");
this.config = MainInterface.config;
this.filter = filter;
list = new Vector();
panel = new JPanel();
JScrollPane scrollPane = new JScrollPane(panel);
setBorder(BorderFactory.createEmptyBor... | public CriteriaList(Filter filter) {
super();
pluginHandler = MainInterface.pluginManager.getHandler("org.columba.mail.filter");
this.config = MainInterface.config;
this.filter = filter;
list = new Vector();
panel = new JPanel();
JScrollPane scrollPane = new JScrollPane(panel);
setBorder(BorderFacto... |
public Control createControl(Composite parent) {
Composite mainComposite = new Composite(parent, SWT.NONE);
mainComposite.setLayout(new GridLayout(2, false));
Composite c = new Composite(mainComposite, SWT.NONE);
c.setLayoutData(new GridData(GridData.FILL_VERTICAL));
c.setLayout(new GridLayout(1, true));
... | public Control createControl(Composite parent) {
Composite mainComposite = new Composite(parent, SWT.NONE);
mainComposite.setLayout(new GridLayout(2, false));
Composite c = new Composite(mainComposite, SWT.NONE);
c.setLayoutData(new GridData(GridData.FILL_VERTICAL));
c.setLayout(new GridLayout(1, true));
... |
public NameEnvironmentAnswer findClass(String sourceFileWithoutExtension, String qualifiedPackageName, String qualifiedSourceFileWithoutExtension) {
for (int i = 0, length = Util.JAVA_LIKE_EXTENSIONS.length; i < length; i++) {
String extension = new String(Util.JAVA_LIKE_EXTENSIONS[i]);
String sourceFileName = s... | public NameEnvironmentAnswer findClass(String sourceFileWithoutExtension, String qualifiedPackageName, String qualifiedSourceFileWithoutExtension) {
for (int i = 0, length = Util.JAVA_LIKE_EXTENSIONS.length; i < length; i++) {
String extension = new String(Util.JAVA_LIKE_EXTENSIONS[i]);
String sourceFileName = s... |
public ICompilationUnit findCompilationUnit(String qualifiedTypeName) {
String[] pkgName= CharOperation.NO_STRINGS;
String cuName= qualifiedTypeName;
int index= qualifiedTypeName.lastIndexOf('.');
if (index != -1) {
pkgName= Signature.getSimpleNames(qualifiedTypeName.substring(0, index));
cuName= qualif... | public ICompilationUnit findCompilationUnit(String qualifiedTypeName) {
String[] pkgName= CharOperation.NO_STRINGS;
String cuName= qualifiedTypeName;
int index= qualifiedTypeName.lastIndexOf('.');
if (index != -1) {
pkgName= Util.splitOn('.', qualifiedTypeName, 0, index);
cuName= qualifiedTypeName.subst... |
public FrameView(FrameController frameController) {
this.frameController = frameController;
this.setIconImage(
ImageLoader.getImageIcon("ColumbaIcon.png").getImage());
setTitle("Columba v" + org.columba.core.main.MainInterface.version);
JPanel panel = (JPanel) this.getContentPane();
panel.setLayout(new... | public FrameView(FrameController frameController) {
this.frameController = frameController;
this.setIconImage(
ImageLoader.getImageIcon("ColumbaIcon.png").getImage());
setTitle("Columba - version: " + org.columba.core.main.MainInterface.version);
JPanel panel = (JPanel) this.getContentPane();
panel.set... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.