1 18 19 package de.gulden.framework.amoda.environment.gui.behaviour; 20 21 import de.gulden.framework.amoda.generic.behaviour.GenericCommand; 22 import java.util.*; 23 24 30 public class CommandNewView extends GenericCommand { 31 32 36 public void perform() { 37 de.gulden.framework.amoda.model.document.Document doc=getApplication().getWorkspace().getActiveDocument(); 38 if (doc!=null) { 39 de.gulden.framework.amoda.model.document.DocumentView view=doc.createDefaultView(); 40 getApplication().getWorkspace().addView(view); 41 } else { 42 getApplication().message("Please select a document to create a new view for."); 43 } 44 } 45 46 } | Popular Tags |