# HG changeset patch # User dadubrow # Date 1239112663 18000 # Node ID ec516ff8610bfef98e69654aee72c87b933d7eca # Parent 6f3cc8fac9c73338b576bca1fa832d770e94fde1 [Bug 8811] Only track feature for first and last open editor. diff -r 6f3cc8fac9c7 -r ec516ff8610b uidesigner/com.nokia.sdt.symbian.ui/src/com/nokia/sdt/symbian/ui/appeditor/ApplicationEditor.java --- a/uidesigner/com.nokia.sdt.symbian.ui/src/com/nokia/sdt/symbian/ui/appeditor/ApplicationEditor.java Tue Apr 07 08:57:24 2009 -0500 +++ b/uidesigner/com.nokia.sdt.symbian.ui/src/com/nokia/sdt/symbian/ui/appeditor/ApplicationEditor.java Tue Apr 07 08:57:43 2009 -0500 @@ -155,7 +155,8 @@ } protected IStatus preLoadInput(IProgressMonitor monitor) { - FeatureUseTrackerPlugin.getFeatureUseProxy().startUsingFeature(FeatureUseTrackerConsts.CARBIDE_UI_DESIGNER); + if (!EditorServices.isAnyEditorOpen()) + FeatureUseTrackerPlugin.getFeatureUseProxy().startUsingFeature(FeatureUseTrackerConsts.CARBIDE_UI_DESIGNER); IFile file = ResourceUtil.getFile(getEditorInput()); WorkspaceContext wc = WorkspaceContext.getContext(); IDesignerDataModelSpecifier modelSpecifier = wc.findSpecifierForResource(file); @@ -292,8 +293,9 @@ * Subclasses may extend. */ public void dispose() { - FeatureUseTrackerPlugin.getFeatureUseProxy().stopUsingFeature(FeatureUseTrackerConsts.CARBIDE_UI_DESIGNER); super.dispose(); + if (!EditorServices.isAnyEditorOpen()) + FeatureUseTrackerPlugin.getFeatureUseProxy().stopUsingFeature(FeatureUseTrackerConsts.CARBIDE_UI_DESIGNER); } /**