Skip to content

Commit 193ea7f

Browse files
committed
Merge branch 'nb82'
2 parents 6dc7589 + d70da38 commit 193ea7f

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed

manifest.mf

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ Manifest-Version: 1.0
22
AutoUpdate-Show-In-Client: true
33
OpenIDE-Module: org.netbeans.modules.php.cake3
44
OpenIDE-Module-Localizing-Bundle: org/netbeans/modules/php/cake3/Bundle.properties
5-
OpenIDE-Module-Specification-Version: 0.5.0
5+
OpenIDE-Module-Specification-Version: 0.5.1
66

src/org/netbeans/modules/php/cake3/options/CakePHP3Options.java

+7
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343

4444
import java.util.ArrayList;
4545
import java.util.Arrays;
46+
import java.util.Collections;
4647
import java.util.List;
4748
import java.util.prefs.Preferences;
4849
import org.netbeans.modules.php.api.util.StringUtils;
@@ -72,7 +73,13 @@ public class CakePHP3Options {
7273
public static final List<String> ALL_AVAILABLE_NODES = new ArrayList<>(DEFAULT_AVAILABLE_NODES);
7374

7475
static {
76+
ALL_AVAILABLE_NODES.add("Element"); // NOI18N
77+
ALL_AVAILABLE_NODES.add("Entity"); // NOI18N
78+
ALL_AVAILABLE_NODES.add("Shell"); // NOI18N
79+
ALL_AVAILABLE_NODES.add("Table"); // NOI18N
80+
ALL_AVAILABLE_NODES.add("Template"); // NOI18N
7581
ALL_AVAILABLE_NODES.add("app/plugins"); // NOI18N
82+
Collections.sort(ALL_AVAILABLE_NODES);
7683
}
7784

7885
private CakePHP3Options() {

src/org/netbeans/modules/php/cake3/ui/logicalview/MVCNodeFactory.java

+15
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,21 @@ private List<Object> getAvailableCustomNodeList() {
148148
case "Helper": // NOI18N
149149
list.add(Category.HELPER);
150150
break;
151+
case "Element": // NOI18N
152+
list.add(Category.ELEMENT);
153+
break;
154+
case "Entity": // NOI18N
155+
list.add(Category.ENTITY);
156+
break;
157+
case "Shell": // NOI18N
158+
list.add(Category.SHELL);
159+
break;
160+
case "Table": // NOI18N
161+
list.add(Category.TABLE);
162+
break;
163+
case "Template": // NOI18N
164+
list.add(Category.TEMPLATE);
165+
break;
151166
case "app/plugins": // NOI18N
152167
// XXX this is not proper
153168
list.add(Base.PLUGIN);

0 commit comments

Comments
 (0)