mHScale.setSize(image.getImageData().width, getClientArea().width);
mVScale.setSize(image.getImageData().height, getClientArea().height);
}
-
- // Pre-load the android.view.View rule in the Rules Engine. Doing it here means
- // it will be done after the first rendering is finished. Successive calls are
- // superfluous but harmless since the rule will be cached.
- mRulesEngine.preloadAndroidView();
}
redraw();
import com.android.ide.eclipse.adt.internal.sdk.ProjectState;
import com.android.ide.eclipse.adt.internal.sdk.Sdk;
import com.android.sdklib.IAndroidTarget;
-import com.android.sdklib.SdkConstants;
import com.android.sdklib.internal.project.ProjectProperties;
import org.eclipse.core.resources.IProject;
}
/**
- * Eventually all rules are going to try to load the base android.view.View rule.
- * Clients can request to preload it to make the first call faster.
- */
- public void preloadAndroidView() {
- loadRule(SdkConstants.CLASS_VIEW, SdkConstants.CLASS_VIEW);
- }
-
- /**
* Invokes {@link IViewRule#getDisplayName()} on the rule matching the specified element.
*
* @param element The view element to target. Can be null.