nus-yam/ex-repair huggingface dataset:
Program: 127229
Project: 127229
Buggy source:
public Object[] getElements(Object inputElement){
  ERepositoryObjectType type=(ERepositoryObjectType)inputElement;
  IProxyRepositoryFactory factory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
  try {
    List<String> folders=factory.getFolders(type);
    Folder root=formdFolderTree(folders);
    return new Folder[]{root};
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
    return new String[0];
  }
}

Fixed version (ground truth):
public Object[] getElements(Object inputElement){
  ERepositoryObjectType type=(ERepositoryObjectType)inputElement;
  IProxyRepositoryFactory factory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
  try {
    List<String> folders=factory.getFolders(type);
    List<String> fullPathList=new ArrayList<String>();
    List<String> finalFolders=new ArrayList<String>();
    for (int k=folders.size(); k > 0; k--) {
      fullPathList=getFullDirectoryPath(folders);
      finalFolders.add(fullPathList.get(0).trim());
      folders=getNewDirectoryPath(folders);
    }
    for (int i=0; i < finalFolders.size(); i++) {
      if (finalFolders.get(i).equals("String_Node_Str")) {
        finalFolders.remove(i);
        i--;
      }
    }
    Folder root=formdFolderTree(finalFolders);
    return new Folder[]{root};
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
    return new String[0];
  }
}
Program: 127230
Project: 127230
Buggy source:
private Folder formdFolderTree(List<String> paths){
  Folder root=new Folder(Folder.ROOT_FOLDER);
  String path=paths.get(paths.size() - 1);
  String[] splitedPaths=path.split("String_Node_Str");
  Folder lastFolder=null;
  for (int i=0; i < splitedPaths.length; i++) {
    String folderLabel=splitedPaths[i];
    if (i == 0) {
      lastFolder=new Folder(folderLabel);
      root.addChildFolder(lastFolder);
    }
 else {
      Folder newFolder=new Folder(folderLabel);
      lastFolder.addChildFolder(newFolder);
      lastFolder=newFolder;
    }
  }
  return root;
}

Fixed version (ground truth):
private Folder formdFolderTree(List<String> paths){
  Folder root=new Folder(Folder.ROOT_FOLDER);
  for (  String path : paths) {
    String[] splitedPaths=path.split("String_Node_Str");
    Folder lastFolder=null;
    for (int i=0; i < splitedPaths.length; i++) {
      String folderLabel=splitedPaths[i];
      if (i == 0) {
        lastFolder=new Folder(folderLabel);
        root.addChildFolder(lastFolder);
      }
 else {
        Folder newFolder=new Folder(folderLabel);
        lastFolder.addChildFolder(newFolder);
        lastFolder=newFolder;
      }
    }
  }
  return root;
}
Program: 127231
Project: 127231
Buggy source:
public Object[] getElements(Object inputElement){
  ERepositoryObjectType type=(ERepositoryObjectType)inputElement;
  IProxyRepositoryFactory factory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
  try {
    List<String> folders=factory.getFolders(type);
    Folder root=formdFolderTree(folders);
    return new Folder[]{root};
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
    return new String[0];
  }
}

Fixed version (ground truth):
public Object[] getElements(Object inputElement){
  ERepositoryObjectType type=(ERepositoryObjectType)inputElement;
  IProxyRepositoryFactory factory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
  try {
    List<String> folders=factory.getFolders(type);
    List<String> fullPathList=new ArrayList<String>();
    List<String> finalFolders=new ArrayList<String>();
    for (int k=folders.size(); k > 0; k--) {
      fullPathList=getFullDirectoryPath(folders);
      finalFolders.add(fullPathList.get(0).trim());
      folders=getNewDirectoryPath(folders);
    }
    for (int i=0; i < finalFolders.size(); i++) {
      if (finalFolders.get(i).equals("String_Node_Str")) {
        finalFolders.remove(i);
        i--;
      }
    }
    Folder root=formdFolderTree(finalFolders);
    return new Folder[]{root};
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
    return new String[0];
  }
}
Program: 127232
Project: 127232
Buggy source:
private Folder formdFolderTree(List<String> paths){
  Folder root=new Folder(Folder.ROOT_FOLDER);
  for (  String path : paths) {
    String[] splitedPaths=path.split("String_Node_Str");
    Folder lastFolder=null;
    for (int i=0; i < splitedPaths.length; i++) {
      String folderLabel=splitedPaths[i];
      if (i == 0) {
        lastFolder=new Folder(folderLabel);
        root.addChildFolder(lastFolder);
      }
 else {
        Folder newFolder=new Folder(folderLabel);
        lastFolder.addChildFolder(newFolder);
        lastFolder=newFolder;
      }
    }
  }
  return root;
}

Fixed version (ground truth):
private Folder formdFolderTree(List<String> paths){
  Folder root=new Folder(Folder.ROOT_FOLDER);
  for (  String path : paths) {
    String[] splitedPaths=path.split("String_Node_Str");
    Folder parentFolder=root;
    for (int i=0; i < splitedPaths.length; i++) {
      String parentLabel=root.getName();
      String folderLabel=splitedPaths[i];
      if (i > 0) {
        parentLabel=splitedPaths[i - 1];
        Folder findParent=findParentFolder(root,parentLabel,i);
        if (findParent != null) {
          parentFolder=findParent;
        }
      }
      boolean exist=false;
      for (      Folder children : parentFolder.getChildren()) {
        if (children.getName().equals(folderLabel)) {
          exist=true;
        }
      }
      if (!exist) {
        parentFolder.addChildFolder(new Folder(folderLabel));
      }
    }
  }
  return root;
}
Program: 127233
Project: 127233
Buggy source:
public Object[] getElements(Object inputElement){
  ERepositoryObjectType type=(ERepositoryObjectType)inputElement;
  IProxyRepositoryFactory factory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
  try {
    List<String> folders=factory.getFolders(type);
    List<String> fullPathList=new ArrayList<String>();
    List<String> finalFolders=new ArrayList<String>();
    for (int k=folders.size(); k > 0; k--) {
      fullPathList=getFullDirectoryPath(folders);
      finalFolders.add(fullPathList.get(0).trim());
      folders=getNewDirectoryPath(folders);
    }
    for (int i=0; i < finalFolders.size(); i++) {
      if (finalFolders.get(i).equals("String_Node_Str")) {
        finalFolders.remove(i);
        i--;
      }
    }
    Folder root=formdFolderTree(finalFolders);
    return new Folder[]{root};
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
    return new String[0];
  }
}

Fixed version (ground truth):
public Object[] getElements(Object inputElement){
  ERepositoryObjectType type=(ERepositoryObjectType)inputElement;
  IProxyRepositoryFactory factory=CoreRuntimePlugin.getInstance().getProxyRepositoryFactory();
  try {
    List<String> folders=factory.getFolders(type);
    Collections.sort(folders);
    Folder root=formdFolderTree(folders);
    return new Folder[]{root};
  }
 catch (  PersistenceException e) {
    ExceptionHandler.process(e);
    return new String[0];
  }
}
Program: 127234
Project: 127234
Buggy source:
/** 
 * DOC bqian Comment method "initTableListener".
 */
private void initTableListener(){
  tableListener=new Listener(){
    Shell tip=null;
    Label label=null;
    public void handleEvent(    Event event){
switch (event.type) {
case SWT.Dispose:
case SWT.KeyDown:
case SWT.MouseMove:
{
          if (tip == null) {
            break;
          }
          tip.dispose();
          tip=null;
          label=null;
          break;
        }
case SWT.MouseHover:
{
        TreeItem item=table.getItem(new Point(event.x,event.y));
        if (item != null) {
          if (tip != null && !tip.isDisposed()) {
            tip.dispose();
          }
          String content=getTooltipContent(item);
          content=PathUtils.cutStr(content,30);
          if (content == null) {
            return;
          }
          tip=new Shell(table.getShell(),SWT.ON_TOP | SWT.TOOL);
          tip.setLayout(new FillLayout());
          label=new Label(tip,SWT.NONE);
          label.setForeground(table.getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
          label.setBackground(table.getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND));
          label.setData("String_Node_Str",item);
          label.setText(content);
          label.addListener(SWT.MouseExit,labelListener);
          label.addListener(SWT.MouseDown,labelListener);
          checkShellBounds(tip,event);
          tip.setVisible(true);
        }
      }
  }
}
}
;
}

Fixed version (ground truth):
/** 
 * DOC bqian Comment method "initTableListener".
 */
private void initTableListener(){
  tableListener=new Listener(){
    Shell tip=null;
    Label label=null;
    public void handleEvent(    Event event){
switch (event.type) {
case SWT.Dispose:
case SWT.KeyDown:
case SWT.MouseMove:
{
          if (tip == null) {
            break;
          }
          tip.dispose();
          tip=null;
          label=null;
          break;
        }
case SWT.MouseHover:
{
        TreeItem item=table.getItem(new Point(event.x,event.y));
        if (item != null) {
          if (tip != null && !tip.isDisposed()) {
            tip.dispose();
          }
          String content=getTooltipContent(item);
          content=cutStr(content,30);
          if (content == null) {
            return;
          }
          tip=new Shell(table.getShell(),SWT.ON_TOP | SWT.TOOL);
          tip.setLayout(new FillLayout());
          label=new Label(tip,SWT.NONE);
          label.setForeground(table.getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
          label.setBackground(table.getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND));
          label.setData("String_Node_Str",item);
          label.setText(content);
          label.addListener(SWT.MouseExit,labelListener);
          label.addListener(SWT.MouseDown,labelListener);
          checkShellBounds(tip,event);
          tip.setVisible(true);
        }
      }
  }
}
}
;
}
Program: 127235
Project: 127235
Buggy source:
/** 
 * DOC bqian Comment method "initTableListener".
 */
private void initTableListener(){
  tableListener=new Listener(){
    Shell tip=null;
    Label label=null;
    public void handleEvent(    Event event){
switch (event.type) {
case SWT.Dispose:
case SWT.KeyDown:
case SWT.MouseMove:
{
          if (tip == null)           break;
          tip.dispose();
          tip=null;
          label=null;
          break;
        }
case SWT.MouseHover:
{
        TreeItem item=table.getItem(new Point(event.x,event.y));
        if (item != null) {
          if (tip != null && !tip.isDisposed()) {
            tip.dispose();
          }
          String content=getTooltipContent(item);
          content=PathUtils.cutStr(content,30);
          if (content == null) {
            return;
          }
          tip=new Shell(table.getShell(),SWT.ON_TOP | SWT.TOOL);
          tip.setLayout(new FillLayout());
          label=new Label(tip,SWT.NONE);
          label.setForeground(table.getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
          label.setBackground(table.getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND));
          label.setData("String_Node_Str",item);
          label.setText(content);
          label.addListener(SWT.MouseExit,labelListener);
          label.addListener(SWT.MouseDown,labelListener);
          checkShellBounds(tip,event);
          tip.setVisible(true);
        }
      }
  }
}
}
;
}

Fixed version (ground truth):
/** 
 * DOC bqian Comment method "initTableListener".
 */
private void initTableListener(){
  tableListener=new Listener(){
    Shell tip=null;
    Label label=null;
    public void handleEvent(    Event event){
switch (event.type) {
case SWT.Dispose:
case SWT.KeyDown:
case SWT.MouseMove:
{
          if (tip == null)           break;
          tip.dispose();
          tip=null;
          label=null;
          break;
        }
case SWT.MouseHover:
{
        TreeItem item=table.getItem(new Point(event.x,event.y));
        if (item != null) {
          if (tip != null && !tip.isDisposed()) {
            tip.dispose();
          }
          String content=getTooltipContent(item);
          content=cutStr(content,30);
          if (content == null) {
            return;
          }
          tip=new Shell(table.getShell(),SWT.ON_TOP | SWT.TOOL);
          tip.setLayout(new FillLayout());
          label=new Label(tip,SWT.NONE);
          label.setForeground(table.getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
          label.setBackground(table.getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND));
          label.setData("String_Node_Str",item);
          label.setText(content);
          label.addListener(SWT.MouseExit,labelListener);
          label.addListener(SWT.MouseDown,labelListener);
          checkShellBounds(tip,event);
          tip.setVisible(true);
        }
      }
  }
}
}
;
}
Program: 127236
Project: 127236
Buggy source:
public boolean exportFilter(Viewer viewer,Object parentElement,Object element);

Fixed version (ground truth):
public boolean exportFilter(Viewer viewer,Object parentElement,Object element,String[] filterTypeNames);
Program: 127238
Project: 127238
Buggy source:
@Test public void testGetDbTypeByClassNameAndDriverJar(){
  Assert.assertNull(extractMetaManger.getDbTypeByClassNameAndDriverJar(null,null));
  Assert.assertEquals(extractMetaManger.getDbTypeByClassNameAndDriverJar("String_Node_Str",null),EDatabaseTypeName.MYSQL.getXmlName());
  Assert.assertEquals(extractMetaManger.getDbTypeByClassNameAndDriverJar("String_Node_Str",null),EDatabaseTypeName.REDSHIFT.getXmlName());
  Assert.assertEquals(extractMetaManger.getDbTypeByClassNameAndDriverJar("String_Node_Str","String_Node_Str"),EDatabaseTypeName.PSQL.getXmlName());
  Assert.assertEquals(extractMetaManger.getDbTypeByClassNameAndDriverJar("String_Node_Str","String_Node_Str"),EDatabaseTypeName.ACCESS.getXmlName());
}

Fixed version (ground truth):
@Test public void testGetDbTypeByClassNameAndDriverJar(){
  Assert.assertNull(extractMetaManger.getDbTypeByClassNameAndDriverJar(null,null));
  Assert.assertEquals(extractMetaManger.getDbTypeByClassNameAndDriverJar("String_Node_Str",null),EDatabaseTypeName.MYSQL.getXmlName());
  Assert.assertEquals(extractMetaManger.getDbTypeByClassNameAndDriverJar("String_Node_Str",null),EDatabaseTypeName.PSQL.getXmlName());
  Assert.assertEquals(extractMetaManger.getDbTypeByClassNameAndDriverJar("String_Node_Str","String_Node_Str"),EDatabaseTypeName.PSQL.getXmlName());
  Assert.assertEquals(extractMetaManger.getDbTypeByClassNameAndDriverJar("String_Node_Str","String_Node_Str"),EDatabaseTypeName.ACCESS.getXmlName());
}
Program: 127239
Project: 127239
Buggy source:
private Folder formdFolderTree(List<String> paths){
  Folder root=new Folder(Folder.ROOT_FOLDER);
  for (  String path : paths) {
    String[] splitedPaths=path.split("String_Node_Str");
    Folder lastFolder=null;
    for (int i=0; i < splitedPaths.length; i++) {
      String folderLabel=splitedPaths[i];
      Folder existFolder=findFolder(root,folderLabel);
      if (existFolder == null) {
        if (i == 0) {
          lastFolder=new Folder(folderLabel);
          root.addChildFolder(lastFolder);
        }
 else {
          Folder newFolder=new Folder(folderLabel);
          lastFolder.addChildFolder(newFolder);
          lastFolder=newFolder;
        }
      }
 else {
        lastFolder=existFolder;
      }
    }
  }
  return root;
}

Fixed version (ground truth):
private Folder formdFolderTree(List<String> paths){
  Folder root=new Folder(Folder.ROOT_FOLDER);
  String path=paths.get(paths.size() - 1);
  String[] splitedPaths=path.split("String_Node_Str");
  Folder lastFolder=null;
  for (int i=0; i < splitedPaths.length; i++) {
    String folderLabel=splitedPaths[i];
    if (i == 0) {
      lastFolder=new Folder(folderLabel);
      root.addChildFolder(lastFolder);
    }
 else {
      Folder newFolder=new Folder(folderLabel);
      lastFolder.addChildFolder(newFolder);
      lastFolder=newFolder;
    }
  }
  return root;
}
Program: 127240
Project: 127240
Buggy source:
/** 
 * {@inheritDoc}
 */
@Override public void run(){
  ContextSetConfigurationDialog dialog=new ContextSetConfigurationDialog(shell,manager);
  if (dialog.open() == IDialogConstants.OK_ID) {
    List<IContext> result=dialog.getResultContexts();
    manager.getContextManager().setListContext(result);
    Command command=new Command(){
      @Override public void execute(){
        if (manager.getProcess() != null && manager.getProcess() instanceof IProcess2) {
          IUpdateManager updateManager=manager.getProcess().getUpdateManager();
          if (updateManager != null) {
            updateManager.update(EUpdateItemType.CONTEXT);
          }
        }
        manager.refreshTableTab();
        manager.refreshTreeTab();
      }
    }
;
    if (manager.getCommandStack() == null) {
      command.execute();
    }
 else {
      manager.getCommandStack().execute(command);
    }
  }
}

Fixed version (ground truth):
/** 
 * {@inheritDoc}
 */
@Override public void run(){
  ContextSetConfigurationDialog dialog=new ContextSetConfigurationDialog(shell,manager);
  if (dialog.open() == IDialogConstants.OK_ID) {
    List<IContext> result=dialog.getResultContexts();
    manager.getContextManager().setListContext(result);
    Command command=new Command(){
      @Override public void execute(){
        if (manager.getProcess() != null && manager.getProcess() instanceof IProcess2) {
          IUpdateManager updateManager=manager.getProcess().getUpdateManager();
          if (updateManager != null) {
            updateManager.update(EUpdateItemType.CONTEXT);
          }
        }
 else {
          if (GlobalServiceRegister.getDefault().isServiceRegistered(ITdqContextService.class)) {
            ITdqContextService tdqContextService=(ITdqContextService)GlobalServiceRegister.getDefault().getService(ITdqContextService.class);
            if (tdqContextService != null) {
              tdqContextService.setReportEditorDirty(manager);
            }
          }
        }
        manager.refreshTableTab();
        manager.refreshTreeTab();
      }
    }
;
    if (manager.getCommandStack() == null) {
      command.execute();
    }
 else {
      manager.getCommandStack().execute(command);
    }
  }
}
Program: 127241
Project: 127241
Buggy source:
@Override public void execute(){
  if (manager.getProcess() != null && manager.getProcess() instanceof IProcess2) {
    IUpdateManager updateManager=manager.getProcess().getUpdateManager();
    if (updateManager != null) {
      updateManager.update(EUpdateItemType.CONTEXT);
    }
  }
  manager.refreshTableTab();
  manager.refreshTreeTab();
}

Fixed version (ground truth):
@Override public void execute(){
  if (manager.getProcess() != null && manager.getProcess() instanceof IProcess2) {
    IUpdateManager updateManager=manager.getProcess().getUpdateManager();
    if (updateManager != null) {
      updateManager.update(EUpdateItemType.CONTEXT);
    }
  }
 else {
    if (GlobalServiceRegister.getDefault().isServiceRegistered(ITdqContextService.class)) {
      ITdqContextService tdqContextService=(ITdqContextService)GlobalServiceRegister.getDefault().getService(ITdqContextService.class);
      if (tdqContextService != null) {
        tdqContextService.setReportEditorDirty(manager);
      }
    }
  }
  manager.refreshTableTab();
  manager.refreshTreeTab();
}
Program: 127242
Project: 127242
Buggy source:
public AcceptModuleLicensesWizardDialog(Shell parentShell,IWizard newWizard,List<ModuleToInstall> modulesToInstall){
  super(parentShell,newWizard);
  this.modulesToInstall=modulesToInstall;
}

Fixed version (ground truth):
public AcceptModuleLicensesWizardDialog(Shell parentShell,IWizard newWizard,List<ModuleToInstall> modulesToInstall,final IProgressMonitor monitor){
  super(parentShell,newWizard);
  this.monitor=monitor;
  this.modulesToInstall=modulesToInstall;
}
Program: 127243
Project: 127243
Buggy source:
@Override protected void cancelPressed(){
  boolean canceled=MessageDialog.openQuestion(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
  if (canceled) {
    setReturnCode(Window.CANCEL);
    close();
  }
 else {
    setReturnCode(Window.OK);
  }
}

Fixed version (ground truth):
@Override protected void cancelPressed(){
  boolean canceled=MessageDialog.openQuestion(getShell(),Messages.getString("String_Node_Str"),Messages.getString("String_Node_Str"));
  if (canceled) {
    setReturnCode(Window.CANCEL);
    monitor.setCanceled(true);
    close();
  }
 else {
    setReturnCode(Window.OK);
  }
}
Program: 127244
Project: 127244
Buggy source:
protected boolean checkAndAcceptLicenses(){
  final AtomicBoolean accepted=new AtomicBoolean(true);
  if (hasLicensesToAccept()) {
    Display.getDefault().syncExec(new Runnable(){
      @Override public void run(){
        AcceptModuleLicensesWizard licensesWizard=new AcceptModuleLicensesWizard(toDownload);
        AcceptModuleLicensesWizardDialog wizardDialog=new AcceptModuleLicensesWizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),licensesWizard,toDownload);
        wizardDialog.setPageSize(700,380);
        wizardDialog.create();
        if (wizardDialog.open() != Window.OK) {
          accepted.set(false);
        }
      }
    }
);
  }
  return accepted.get();
}

Fixed version (ground truth):
protected boolean checkAndAcceptLicenses(final IProgressMonitor monitor){
  final AtomicBoolean accepted=new AtomicBoolean(true);
  if (hasLicensesToAccept()) {
    Display.getDefault().syncExec(new Runnable(){
      @Override public void run(){
        AcceptModuleLicensesWizard licensesWizard=new AcceptModuleLicensesWizard(toDownload);
        AcceptModuleLicensesWizardDialog wizardDialog=new AcceptModuleLicensesWizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),licensesWizard,toDownload,monitor);
        wizardDialog.setPageSize(700,380);
        wizardDialog.create();
        if (wizardDialog.open() != Window.OK) {
          accepted.set(false);
        }
      }
    }
);
  }
  return accepted.get();
}
Program: 127245
Project: 127245
Buggy source:
@Override public void run(){
  AcceptModuleLicensesWizard licensesWizard=new AcceptModuleLicensesWizard(toDownload);
  AcceptModuleLicensesWizardDialog wizardDialog=new AcceptModuleLicensesWizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),licensesWizard,toDownload);
  wizardDialog.setPageSize(700,380);
  wizardDialog.create();
  if (wizardDialog.open() != Window.OK) {
    accepted.set(false);
  }
}

Fixed version (ground truth):
@Override public void run(){
  AcceptModuleLicensesWizard licensesWizard=new AcceptModuleLicensesWizard(toDownload);
  AcceptModuleLicensesWizardDialog wizardDialog=new AcceptModuleLicensesWizardDialog(PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(),licensesWizard,toDownload,monitor);
  wizardDialog.setPageSize(700,380);
  wizardDialog.create();
  if (wizardDialog.open() != Window.OK) {
    accepted.set(false);
  }
}
Program: 127246
Project: 127246
Buggy source:
@Override public void run(){
  MessageDialog.openError(Display.getDefault().getActiveShell(),"String_Node_Str",Messages.getString("String_Node_Str"));
}

Fixed version (ground truth):
@Override public void run(){
}
Program: 127248
Project: 127248
Buggy source:
/** 
 * DOC bqian Comment method "initTableListener".
 */
private void initTableListener(){
  tableListener=new Listener(){
    Shell tip=null;
    Label label=null;
    public void handleEvent(    Event event){
switch (event.type) {
case SWT.Dispose:
case SWT.KeyDown:
case SWT.MouseMove:
{
          if (tip == null)           break;
          tip.dispose();
          tip=null;
          label=null;
          break;
        }
case SWT.MouseHover:
{
        TreeItem item=table.getItem(new Point(event.x,event.y));
        if (item != null) {
          if (tip != null && !tip.isDisposed()) {
            tip.dispose();
          }
          String content=getTooltipContent(item);
          if (content == null) {
            return;
          }
          tip=new Shell(table.getShell(),SWT.ON_TOP | SWT.TOOL);
          tip.setLayout(new FillLayout());
          label=new Label(tip,SWT.NONE);
          label.setForeground(table.getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
          label.setBackground(table.getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND));
          label.setData("String_Node_Str",item);
          label.setText(content);
          label.addListener(SWT.MouseExit,labelListener);
          label.addListener(SWT.MouseDown,labelListener);
          checkShellBounds(tip,event);
          tip.setVisible(true);
        }
      }
  }
}
}
;
}

Fixed version (ground truth):
/** 
 * DOC bqian Comment method "initTableListener".
 */
private void initTableListener(){
  tableListener=new Listener(){
    Shell tip=null;
    Label label=null;
    public void handleEvent(    Event event){
switch (event.type) {
case SWT.Dispose:
case SWT.KeyDown:
case SWT.MouseMove:
{
          if (tip == null) {
            break;
          }
          tip.dispose();
          tip=null;
          label=null;
          break;
        }
case SWT.MouseHover:
{
        TreeItem item=table.getItem(new Point(event.x,event.y));
        if (item != null) {
          if (tip != null && !tip.isDisposed()) {
            tip.dispose();
          }
          String content=getTooltipContent(item);
          content=PathUtils.cutStr(content,30);
          if (content == null) {
            return;
          }
          tip=new Shell(table.getShell(),SWT.ON_TOP | SWT.TOOL);
          tip.setLayout(new FillLayout());
          label=new Label(tip,SWT.NONE);
          label.setForeground(table.getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
          label.setBackground(table.getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND));
          label.setData("String_Node_Str",item);
          label.setText(content);
          label.addListener(SWT.MouseExit,labelListener);
          label.addListener(SWT.MouseDown,labelListener);
          checkShellBounds(tip,event);
          tip.setVisible(true);
        }
      }
  }
}
}
;
}
Program: 127249
Project: 127249
Buggy source:
@Test public void testMetadataColumn(){
  MetadataColumn column=ConnectionFactory.eINSTANCE.createMetadataColumn();
  column.setLabel("String_Node_Str");
  column.setName("String_Node_Str");
  assertEquals("String_Node_Str",column.getName());
  assertEquals("String_Node_Str",column.getLabel());
  column.setName("String_Node_Str");
  column.setLabel("String_Node_Str");
  assertEquals(column.getLabel(),column.getName());
}

Fixed version (ground truth):
@Test public void testMetadataColumn(){
  MetadataColumn column=ConnectionFactory.eINSTANCE.createMetadataColumn();
  column.setLabel("String_Node_Str");
  column.setName("String_Node_Str");
  assertEquals("String_Node_Str",column.getName());
  assertEquals("String_Node_Str",column.getLabel());
  column.setName("String_Node_Str");
  column.setLabel("String_Node_Str");
  assertNotSame(column.getLabel(),column.getName());
}
Program: 127250
Project: 127250
Buggy source:
@Test public void testGetDbTypeByClassNameAndDriverJar(){
  Assert.assertNull(extractMetaManger.getDbTypeByClassNameAndDriverJar(null,null));
  Assert.assertEquals(extractMetaManger.getDbTypeByClassNameAndDriverJar("String_Node_Str",null),EDatabaseTypeName.MYSQL.getXmlName());
  Assert.assertEquals(extractMetaManger.getDbTypeByClassNameAndDriverJar("String_Node_Str",null),EDatabaseTypeName.PSQL.getXmlName());
  Assert.assertEquals(extractMetaManger.getDbTypeByClassNameAndDriverJar("String_Node_Str","String_Node_Str"),EDatabaseTypeName.PSQL.getXmlName());
  Assert.assertEquals(extractMetaManger.getDbTypeByClassNameAndDriverJar("String_Node_Str","String_Node_Str"),EDatabaseTypeName.ACCESS.getXmlName());
}

Fixed version (ground truth):
@Test public void testGetDbTypeByClassNameAndDriverJar(){
  Assert.assertNull(extractMetaManger.getDbTypeByClassNameAndDriverJar(null,null));
  Assert.assertEquals(extractMetaManger.getDbTypeByClassNameAndDriverJar("String_Node_Str",null),EDatabaseTypeName.MYSQL.getXmlName());
  Assert.assertEquals(extractMetaManger.getDbTypeByClassNameAndDriverJar("String_Node_Str",null),EDatabaseTypeName.REDSHIFT.getXmlName());
  Assert.assertEquals(extractMetaManger.getDbTypeByClassNameAndDriverJar("String_Node_Str","String_Node_Str"),EDatabaseTypeName.PSQL.getXmlName());
  Assert.assertEquals(extractMetaManger.getDbTypeByClassNameAndDriverJar("String_Node_Str","String_Node_Str"),EDatabaseTypeName.ACCESS.getXmlName());
}
Program: 127253
Project: 127253
Buggy source:
/** 
 * DOC qzhang Comment method "addTableListener".
 */
private void addTableListener(){
  table.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent e){
      if (e.detail == SWT.CHECK) {
        TableItem tableItem=(TableItem)e.item;
        boolean promptNeeded=tableItem.getChecked();
        if (promptNeeded) {
          tableItem.setText(2,"String_Node_Str");
          tableItem.setText(3,Messages.getString("String_Node_Str"));
          countPending++;
          parentWizardPage.setPageComplete(false);
          refreshTable(tableItem,-1);
          clearTableItem(tableItem);
        }
 else {
          clearTableItem(tableItem);
          if (tableItem.getText() != null && tableItem.getText().equals(Messages.getString("String_Node_Str"))) {
            countPending--;
          }
        }
        if (forTemplate && (ConnectionHelper.getTables(getConnection()).size() <= 0)) {
          parentWizardPage.setPageComplete(false);
        }
      }
    }
  }
);
}

Fixed version (ground truth):
/** 
 * DOC qzhang Comment method "addTableListener".
 */
private void addTableListener(){
  table.addSelectionListener(new SelectionAdapter(){
    @Override public void widgetSelected(    final SelectionEvent e){
      if (e.detail == SWT.CHECK) {
        TableItem tableItem=(TableItem)e.item;
        boolean promptNeeded=tableItem.getChecked();
        if (promptNeeded) {
          clearTableItem(tableItem);
          tableItem.setText(2,"String_Node_Str");
          tableItem.setText(3,Messages.getString("String_Node_Str"));
          countPending++;
          parentWizardPage.setPageComplete(false);
          refreshTable(tableItem,-1);
        }
 else {
          clearTableItem(tableItem);
          if (tableItem.getText() != null && tableItem.getText().equals(Messages.getString("String_Node_Str"))) {
            countPending--;
          }
        }
        if (forTemplate && (ConnectionHelper.getTables(getConnection()).size() <= 0)) {
          parentWizardPage.setPageComplete(false);
        }
      }
    }
  }
);
}
Program: 127254
Project: 127254
Buggy source:
/** 
 * DOC hcw Comment method "restoreCheckItems".
 */
protected void restoreCheckItems(){
  Set<String> checkedItems=new HashSet<String>();
  for (  Object obj : ConnectionHelper.getTables(getConnection())) {
    if (obj == null) {
      continue;
    }
    MetadataTable table=(MetadataTable)obj;
    checkedItems.add(table.getLabel());
  }
  for (  TableItem tableItem : table.getItems()) {
    tableItem.setChecked(false);
    if (checkedItems.contains(tableItem.getText(0))) {
      tableItem.setChecked(true);
      Integer num=tableColumnNums.get(tableItem.getText(0));
      if (num != null) {
        tableItem.setText(2,num.toString());
        tableItem.setText(3,Messages.getString("String_Node_Str"));
      }
 else {
        refreshTable(tableItem,-1);
      }
    }
  }
}

Fixed version (ground truth):
/** 
 * DOC hcw Comment method "restoreCheckItems".
 */
protected void restoreCheckItems(){
  Set<String> checkedItems=new HashSet<String>();
  if (isContextMode()) {
    for (    Object obj : ConnectionHelper.getTables(temConnection)) {
      if (obj == null) {
        continue;
      }
      MetadataTable table=(MetadataTable)obj;
      checkedItems.add(table.getLabel());
    }
    for (    TableItem tableItem : table.getItems()) {
      tableItem.setChecked(false);
      if (checkedItems.contains(tableItem.getText(0))) {
        tableItem.setChecked(true);
        Integer num=tableColumnNums.get(tableItem.getText(0));
        if (num != null) {
          tableItem.setText(2,num.toString());
          tableItem.setText(3,Messages.getString("String_Node_Str"));
        }
 else {
          refreshTable(tableItem,-1);
        }
      }
    }
  }
 else {
    for (    Object obj : ConnectionHelper.getTables(getConnection())) {
      if (obj == null) {
        continue;
      }
      MetadataTable table=(MetadataTable)obj;
      checkedItems.add(table.getLabel());
    }
    for (    TableItem tableItem : table.getItems()) {
      tableItem.setChecked(false);
      if (checkedItems.contains(tableItem.getText(0))) {
        tableItem.setChecked(true);
        Integer num=tableColumnNums.get(tableItem.getText(0));
        if (num != null) {
          tableItem.setText(2,num.toString());
          tableItem.setText(3,Messages.getString("String_Node_Str"));
        }
 else {
          refreshTable(tableItem,-1);
        }
      }
    }
  }
}
Program: 127255
Project: 127255
Buggy source:
@Override public void widgetSelected(final SelectionEvent e){
  if (e.detail == SWT.CHECK) {
    TableItem tableItem=(TableItem)e.item;
    boolean promptNeeded=tableItem.getChecked();
    if (promptNeeded) {
      tableItem.setText(2,"String_Node_Str");
      tableItem.setText(3,Messages.getString("String_Node_Str"));
      countPending++;
      parentWizardPage.setPageComplete(false);
      refreshTable(tableItem,-1);
      clearTableItem(tableItem);
    }
 else {
      clearTableItem(tableItem);
      if (tableItem.getText() != null && tableItem.getText().equals(Messages.getString("String_Node_Str"))) {
        countPending--;
      }
    }
    if (forTemplate && (ConnectionHelper.getTables(getConnection()).size() <= 0)) {
      parentWizardPage.setPageComplete(false);
    }
  }
}

Fixed version (ground truth):
@Override public void widgetSelected(final SelectionEvent e){
  if (e.detail == SWT.CHECK) {
    TableItem tableItem=(TableItem)e.item;
    boolean promptNeeded=tableItem.getChecked();
    if (promptNeeded) {
      clearTableItem(tableItem);
      tableItem.setText(2,"String_Node_Str");
      tableItem.setText(3,Messages.getString("String_Node_Str"));
      countPending++;
      parentWizardPage.setPageComplete(false);
      refreshTable(tableItem,-1);
    }
 else {
      clearTableItem(tableItem);
      if (tableItem.getText() != null && tableItem.getText().equals(Messages.getString("String_Node_Str"))) {
        countPending--;
      }
    }
    if (forTemplate && (ConnectionHelper.getTables(getConnection()).size() <= 0)) {
      parentWizardPage.setPageComplete(false);
    }
  }
}
Program: 127256
Project: 127256
Buggy source:
/** 
 * DOC bqian Comment method "initTableListener".
 */
private void initTableListener(){
  tableListener=new Listener(){
    Shell tip=null;
    Label label=null;
    public void handleEvent(    Event event){
switch (event.type) {
case SWT.Dispose:
case SWT.KeyDown:
case SWT.MouseMove:
{
          if (tip == null)           break;
          tip.dispose();
          tip=null;
          label=null;
          break;
        }
case SWT.MouseHover:
{
        TreeItem item=table.getItem(new Point(event.x,event.y));
        if (item != null) {
          if (tip != null && !tip.isDisposed()) {
            tip.dispose();
          }
          String content=getTooltipContent(item);
          if (content == null) {
            return;
          }
          tip=new Shell(table.getShell(),SWT.ON_TOP | SWT.TOOL);
          tip.setLayout(new FillLayout());
          label=new Label(tip,SWT.NONE);
          label.setForeground(table.getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
          label.setBackground(table.getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND));
          label.setData("String_Node_Str",item);
          label.setText(content);
          label.addListener(SWT.MouseExit,labelListener);
          label.addListener(SWT.MouseDown,labelListener);
          checkShellBounds(tip,event);
          tip.setVisible(true);
        }
      }
  }
}
}
;
}

Fixed version (ground truth):
/** 
 * DOC bqian Comment method "initTableListener".
 */
private void initTableListener(){
  tableListener=new Listener(){
    Shell tip=null;
    Label label=null;
    public void handleEvent(    Event event){
switch (event.type) {
case SWT.Dispose:
case SWT.KeyDown:
case SWT.MouseMove:
{
          if (tip == null)           break;
          tip.dispose();
          tip=null;
          label=null;
          break;
        }
case SWT.MouseHover:
{
        TreeItem item=table.getItem(new Point(event.x,event.y));
        if (item != null) {
          if (tip != null && !tip.isDisposed()) {
            tip.dispose();
          }
          String content=getTooltipContent(item);
          content=PathUtils.cutStr(content,30);
          if (content == null) {
            return;
          }
          tip=new Shell(table.getShell(),SWT.ON_TOP | SWT.TOOL);
          tip.setLayout(new FillLayout());
          label=new Label(tip,SWT.NONE);
          label.setForeground(table.getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_FOREGROUND));
          label.setBackground(table.getShell().getDisplay().getSystemColor(SWT.COLOR_INFO_BACKGROUND));
          label.setData("String_Node_Str",item);
          label.setText(content);
          label.addListener(SWT.MouseExit,labelListener);
          label.addListener(SWT.MouseDown,labelListener);
          checkShellBounds(tip,event);
          tip.setVisible(true);
        }
      }
  }
}
}
;
}
Program: 127257
Project: 127257
Buggy source:
/** 
 * @author jyhu
 * @aim Get unique name of the graphica node from generating node.
 * @param node: Generated node
 * @return unique name of the graphica node.
 */
public static String getVirtualUniqueName(INode node){
  String uniqueName=node.getUniqueName();
  if (node.isVirtualGenerateNode()) {
    List<? extends INode> nodeList=node.getProcess().getGraphicalNodes();
    for (    INode graphicnode : nodeList) {
      if (graphicnode.isGeneratedAsVirtualComponent()) {
        String nodeUniqueName=graphicnode.getUniqueName();
        if (uniqueName.indexOf(nodeUniqueName) == 0) {
          uniqueName=nodeUniqueName;
          break;
        }
      }
    }
  }
  return uniqueName;
}

Fixed version (ground truth):
/** 
 * @author jyhu
 * @aim Get unique name of the graphica node from generating node.
 * @param node: Generated node
 * @return unique name of the graphica node.
 */
public static String getVirtualUniqueName(INode node){
  String uniqueName=node.getUniqueName();
  if (node.isVirtualGenerateNode()) {
    List<? extends INode> nodeList=node.getProcess().getGraphicalNodes();
    for (    INode graphicnode : nodeList) {
      if (graphicnode.isGeneratedAsVirtualComponent()) {
        String nodeUniqueName=graphicnode.getUniqueName();
        if (uniqueName.indexOf(nodeUniqueName + "String_Node_Str") == 0) {
          uniqueName=nodeUniqueName;
          break;
        }
      }
    }
  }
  return uniqueName;
}
Program: 127265
Project: 127265
Buggy source:
@Override public void run(){
  try {
    IWorkbenchPage page=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
    for (    IEditorReference editors : page.getEditorReferences()) {
      String nameInEditor=editors.getName();
      if (objToDelete.getLabel().equals(nameInEditor.substring(nameInEditor.indexOf("String_Node_Str") + 1))) {
        page.closeEditor(editors.getEditor(false),false);
      }
    }
    if (objToDelete.getRepositoryObjectType() != ERepositoryObjectType.JOB_DOC && objToDelete.getRepositoryObjectType() != ERepositoryObjectType.JOBLET_DOC) {
      if (currentNode.getType() == ENodeType.SIMPLE_FOLDER) {
        for (        IRepositoryNode curNode : currentNode.getChildren()) {
          deleteElements(factory,(RepositoryNode)curNode);
        }
        factory.deleteFolder(ProjectManager.getInstance().getCurrentProject(),currentNode.getContentType(),RepositoryNodeUtilities.getFolderPath(currentNode.getObject().getProperty().getItem()),true);
      }
 else {
        for (        IRepositoryContentHandler handler : RepositoryContentManager.getHandlers()) {
          handler.deleteNode(objToDelete);
        }
        factory.deleteObjectPhysical(ProjectManager.getInstance().getCurrentProject(),objToDelete,null,true);
      }
    }
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}

Fixed version (ground truth):
@Override public void run(){
  try {
    IWorkbenchPage page=PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage();
    for (    IEditorReference editors : page.getEditorReferences()) {
      String nameInEditor=editors.getName();
      if (objToDelete.getLabel().equals(nameInEditor.substring(nameInEditor.indexOf("String_Node_Str") + 1))) {
        page.closeEditor(editors.getEditor(false),false);
      }
    }
    if (objToDelete.getRepositoryObjectType() != ERepositoryObjectType.JOB_DOC && objToDelete.getRepositoryObjectType() != ERepositoryObjectType.JOBLET_DOC) {
      if (currentNode.getType() == ENodeType.SIMPLE_FOLDER) {
        for (        IRepositoryNode curNode : currentNode.getChildren()) {
          deleteElements(factory,(RepositoryNode)curNode);
        }
        factory.deleteFolder(ProjectManager.getInstance().getCurrentProject(),currentNode.getContentType(),RepositoryNodeUtilities.getFolderPath(currentNode.getObject().getProperty().getItem()),true);
      }
 else {
        for (        IRepositoryContentHandler handler : RepositoryContentManager.getHandlers()) {
          handler.deleteNode(objToDelete);
        }
        ERepositoryObjectType nodeType=(ERepositoryObjectType)currentNode.getProperties(EProperties.CONTENT_TYPE);
        if (nodeType == ERepositoryObjectType.ROUTINES || nodeType == ERepositoryObjectType.PIG_UDF) {
          forceBuild=true;
        }
        factory.deleteObjectPhysical(ProjectManager.getInstance().getCurrentProject(),objToDelete,null,true);
      }
    }
  }
 catch (  Exception e) {
    ExceptionHandler.process(e);
  }
}
Program: 127266
Project: 127266
Buggy source:
/** 
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setName(String newName){
  String oldName=name;
  name=newName;
  if (eNotificationRequired())   eNotify(new ENotificationImpl(this,Notification.SET,PropertiesPackage.FILE_ITEM__NAME,oldName,name));
}

Fixed version (ground truth):
/** 
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setName(String newName){
  String oldName=name;
  name=newName;
  if (eNotificationRequired()) {
    eNotify(new ENotificationImpl(this,Notification.SET,PropertiesPackage.FILE_ITEM__NAME,oldName,name));
  }
}
Program: 127267
Project: 127267
Buggy source:
/** 
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setContent(ByteArray newContent){
  ByteArray oldContent=content;
  content=newContent;
  if (eNotificationRequired())   eNotify(new ENotificationImpl(this,Notification.SET,PropertiesPackage.FILE_ITEM__CONTENT,oldContent,content));
}

Fixed version (ground truth):
/** 
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setContent(ByteArray newContent){
  ByteArray oldContent=content;
  content=newContent;
  if (eNotificationRequired()) {
    eNotify(new ENotificationImpl(this,Notification.SET,PropertiesPackage.FILE_ITEM__CONTENT,oldContent,content));
  }
}
Program: 127268
Project: 127268
Buggy source:
/** 
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setExtension(String newExtension){
  String oldExtension=extension;
  extension=newExtension;
  if (eNotificationRequired())   eNotify(new ENotificationImpl(this,Notification.SET,PropertiesPackage.FILE_ITEM__EXTENSION,oldExtension,extension));
}

Fixed version (ground truth):
/** 
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public void setExtension(String newExtension){
  String oldExtension=extension;
  extension=newExtension;
  if (eNotificationRequired()) {
    eNotify(new ENotificationImpl(this,Notification.SET,PropertiesPackage.FILE_ITEM__EXTENSION,oldExtension,extension));
  }
}
Program: 127269
Project: 127269
Buggy source:
/** 
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public ByteArray getContent(){
  if (content != null && content.eIsProxy()) {
    InternalEObject oldContent=(InternalEObject)content;
    content=(ByteArray)eResolveProxy(oldContent);
    if (content != oldContent) {
      if (eNotificationRequired())       eNotify(new ENotificationImpl(this,Notification.RESOLVE,PropertiesPackage.FILE_ITEM__CONTENT,oldContent,content));
    }
  }
  return content;
}

Fixed version (ground truth):
/** 
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
public ByteArray getContent(){
  if (content != null && content.eIsProxy()) {
    InternalEObject oldContent=(InternalEObject)content;
    content=(ByteArray)eResolveProxy(oldContent);
    if (content != oldContent) {
      if (eNotificationRequired()) {
        eNotify(new ENotificationImpl(this,Notification.RESOLVE,PropertiesPackage.FILE_ITEM__CONTENT,oldContent,content));
      }
    }
  }
  return content;
}
Program: 127271
Project: 127271
Buggy source:
/** 
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override public String toString(){
  if (eIsProxy())   return super.toString();
  StringBuffer result=new StringBuffer(super.toString());
  result.append("String_Node_Str");
  result.append(name);
  result.append("String_Node_Str");
  result.append(extension);
  result.append(')');
  return result.toString();
}

Fixed version (ground truth):
/** 
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override public String toString(){
  if (eIsProxy()) {
    return super.toString();
  }
  StringBuffer result=new StringBuffer(super.toString());
  result.append("String_Node_Str");
  result.append(name);
  result.append("String_Node_Str");
  result.append(extension);
  result.append(')');
  return result.toString();
}
Program: 127272
Project: 127272
Buggy source:
/** 
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){
switch (featureID) {
case PropertiesPackage.FILE_ITEM__NAME:
    return getName();
case PropertiesPackage.FILE_ITEM__EXTENSION:
  return getExtension();
case PropertiesPackage.FILE_ITEM__CONTENT:
if (resolve) return getContent();
return basicGetContent();
}
return super.eGet(featureID,resolve,coreType);
}

Fixed version (ground truth):
/** 
 * <!-- begin-user-doc --> <!-- end-user-doc -->
 * @generated
 */
@Override public Object eGet(int featureID,boolean resolve,boolean coreType){
switch (featureID) {
case PropertiesPackage.FILE_ITEM__NAME:
    return getName();
case PropertiesPackage.FILE_ITEM__EXTENSION:
  return getExtension();
case PropertiesPackage.FILE_ITEM__CONTENT:
if (resolve) {
  return getContent();
}
return basicGetContent();
}
return super.eGet(featureID,resolve,coreType);
}