2
|
1 |
/*
|
|
2 |
* Copyright (c) 2006 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
include("../containers/containerLibrary.js")
|
|
20 |
|
|
21 |
function SystemMenuItem() {
|
|
22 |
}
|
|
23 |
|
|
24 |
|
|
25 |
// IQueryContainment
|
|
26 |
|
|
27 |
function canContainComponent(instance, component) {
|
|
28 |
return buildSimpleContainmentErrorStatus(
|
|
29 |
lookupString("systemMenuItemContainmentErr"), []);
|
|
30 |
}
|
|
31 |
|
|
32 |
SystemMenuItem.prototype.canContainComponent = function(instance, otherComponent) {
|
|
33 |
return canContainComponent(instance, otherComponent);
|
|
34 |
}
|
|
35 |
|
|
36 |
SystemMenuItem.prototype.canContainChild = function(instance, child) {
|
|
37 |
return canContainComponent(instance, child.component);
|
|
38 |
}
|
|
39 |
|
|
40 |
SystemMenuItem.prototype.canRemoveChild = function(instance) {
|
|
41 |
return false;
|
|
42 |
}
|
|
43 |
|
|
44 |
SystemMenuItem.prototype.isValidComponentInPalette = function(instance, otherComponent) {
|
|
45 |
return false;
|
|
46 |
}
|
|
47 |
|