You've already forked v8-code-style
mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2025-07-03 07:00:36 +02:00
1037: Исключить BaseForm из проверок для форм
This commit is contained in:
@ -1,6 +1,15 @@
|
|||||||
/**
|
/*******************************************************************************
|
||||||
* Copyright (C) 2022, 1C
|
* Copyright (C) 2022, 1C-Soft LLC and others.
|
||||||
*/
|
*
|
||||||
|
* This program and the accompanying materials are made
|
||||||
|
* available under the terms of the Eclipse Public License 2.0
|
||||||
|
* which is available at https://www.eclipse.org/legal/epl-2.0/
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: EPL-2.0
|
||||||
|
*
|
||||||
|
* Contributors:
|
||||||
|
* 1C-Soft LLC - initial API and implementation
|
||||||
|
*******************************************************************************/
|
||||||
package com.e1c.v8codestyle.form.check;
|
package com.e1c.v8codestyle.form.check;
|
||||||
|
|
||||||
import com._1c.g5.v8.bm.core.IBmObject;
|
import com._1c.g5.v8.bm.core.IBmObject;
|
||||||
@ -26,12 +35,8 @@ public class SkipBaseFormExtension
|
|||||||
|
|
||||||
private static boolean isBaseForm(Form form)
|
private static boolean isBaseForm(Form form)
|
||||||
{
|
{
|
||||||
if (form != null && form.getMdForm().getObjectBelonging() == ObjectBelonging.ADOPTED
|
return form != null && form.getMdForm().getObjectBelonging() == ObjectBelonging.ADOPTED
|
||||||
&& form.getExtensionForm() != null && !form.getExtensionForm().eIsProxy()
|
&& form.getExtensionForm() != null && !form.getExtensionForm().eIsProxy()
|
||||||
&& (form.getBaseForm() == null || form.getBaseForm().eIsProxy()))
|
&& (form.getBaseForm() == null || form.getBaseForm().eIsProxy());
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user