Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed unnecessary instanceof check

  • Loading branch information...
commit c7937f2d2edf4efa3cbe6d68fea9d82870066429 1 parent 602da78
Arvid Berg authored committed
5 ...t.bioclipse.cdk.ui.sdfeditor/src/net/bioclipse/cdk/ui/sdfeditor/editor/MultiPageMoleculesEditorPart.java
View
@@ -214,13 +214,12 @@ public void doSave( IProgressMonitor monitor ) {
@Override
public void doSaveAs() {
IMoleculesEditorModel model = moleculesPage.getModel();
- IResource original = null;
+ IFile original = null;
if(model instanceof IFileMoleculesEditorModel) {
original = ((IFileMoleculesEditorModel)model).getResource();
}
SaveAsDialog saveAsDialog = new SaveAsDialog( this.getSite().getShell() );
- if (original instanceof IFile )
- saveAsDialog.setOriginalFile( (IFile) original );
+ saveAsDialog.setOriginalFile( (IFile) original );
int result = saveAsDialog.open();
if ( result == 1 ) {
logger.debug( "SaveAs canceled." );
Please sign in to comment.
Something went wrong with that request. Please try again.