public static void updateEditorSelector() {

		instance.allloops = LoopManager.getRicsLongCoded();
		String[] tmp = instance.allloops.toArray(new String[instance.allloops
				.size()]);

		if (instance.LoopSelector != null) {
			instance.LoopSelector.setEnabled(false);

			DefaultListModel model = (DefaultListModel) instance.LoopSelector
					.getModel();
			model.clear();

			for (int i = 0; i < tmp.length; i++) {
				model.addElement(tmp[i]);
			}

		} else {

			DefaultListModel model = new DefaultListModel();
			for (int i = 0; i < tmp.length; i++) {
				model.addElement((String) tmp[i]);
			}

			instance.LoopSelector = new JList(model);
		}

		if (instance.LoopCheckList != null) {

			instance.LoopCheckList.getSelectionModel().clearSelection();

		} else {
			instance.LoopCheckList = new CheckListManager(instance.LoopSelector);
		}

		for (int i = 0; i < tmp.length; i++) {

			if (tmp[i] != null) {
				if (tmp[i].split("/") != null) { //$NON-NLS-1$
					// AppWindow.log(tmp[i].split("/")[0]);
					String tmpstr = tmp[i].split("/")[0]; //$NON-NLS-1$
					if (instance.loops != null) {
						if (instance.loops.contains(tmpstr)) {
							instance.LoopCheckList.getSelectionModel()
									.addSelectionInterval(i, i);
						}
					}
				}
			}

		}

		instance.LoopSelector.setEnabled(true);

	}