첫 번째 메뉴에 대한 프로세스가 완료되면 두 번째 및 일곱 번째 메뉴를 활성화하고 싶습니다. 두 번째 메뉴에 대한 프로세스가 완료되면 내 3, 7 번째 메뉴를 활성화하고 싶습니다. 나는 7 개의 메뉴를 가지고있다. 처음에는 첫 번째 메뉴 만 활성화되어 있어야하고 나머지는 비활성화되어야하며 첫 번째 프로세스가 완료되면 두 번째로 첫 번째 메뉴, 두 번째 메뉴 및 일곱 번째 메뉴 만 활성화해야합니다.eclipse 플러그인 확장하기 : 메뉴를 활성화하고 비활성화하는 방법?
내가 예상 한대로 작동하려면 내 plugin.xml
을 어떻게 변경해야하는지 알지 못합니다. 내 plugin.xml
코드입니다. 도와 주시고 미리 감사드립니다.
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension
point="org.eclipse.ui.menus">
<menuContribution
allPopups="false"
locationURI="menu:org.eclipse.ui.main.menu?after=additions">
<menu id = "documentation.handlers.Documentation"
label = "Documentation">
<command id="documentation.handlers.SampleHandler"
commandId="documentation.handlers.SampleHandler">
</command>
<command id="documentation.handlers.SampleHandler1"
commandId="documentation.handlers.SampleHandler1">
</command>
<command id="documentation.handlers.SampleHandler2"
commandId="documentation.handlers.SampleHandler2">
</command>
<command id="documentation.handlers.SampleHandler3"
commandId="documentation.handlers.SampleHandler3">
</command>
<command id="documentation.handlers.SampleHandler4"
commandId="documentation.handlers.SampleHandler4">
</command>
<command id="documentation.handlers.SampleHandler4"
commandId="documentation.handlers.SampleHandler5">
</command>
<command id="documentation.handlers.SampleHandler4"
commandId="documentation.handlers.SampleHandler6">
</command>
</menu>
</menuContribution>
<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions">
<toolbar id="documentation.handlers.sampleToolbar">
<command id="documentation.handlers.sampleCommand"
commandId="documentation.handlers.SampleHandler">
</command>
<command id="documentation.handlers.sampleCommand"
commandId="documentation.handlers.SampleHandler1">
</command>
<command id="documentation.handlers.sampleCommand"
commandId="documentation.handlers.SampleHandler2">
</command>
<command id="documentation.handlers.sampleCommand"
commandId="documentation.handlers.SampleHandler3">
</command>
<command id="documentation.handlers.sampleCommand"
commandId="documentation.handlers.SampleHandler4">
</command>
<command id="documentation.handlers.sampleCommand"
commandId="documentation.handlers.SampleHandler5">
</command>
<command id="documentation.handlers.sampleCommand"
commandId="documentation.handlers.SampleHandler6">
</command>
</toolbar>
</menuContribution>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
id="documentation.handlers.SampleHandler"
name="Project Descritpion">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers"
id = "documentation.handlers">
<handler
class="documentation.handlers.SampleHandler"
commandId="documentation.handlers.SampleHandler">
</handler>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
id="documentation.handlers.SampleHandler1"
name="Fact Finding Techniques">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers"
id = "documentation.handlers">
<handler
class="documentation.handlers.SampleHandler1"
commandId="documentation.handlers.SampleHandler1">
</handler>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
id="documentation.handlers.SampleHandler2"
name="Feasibility Study">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers"
id = "documentation.handlers">
<handler
class="documentation.handlers.SampleHandler2"
commandId="documentation.handlers.SampleHandler2">
</handler>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
id="documentation.handlers.SampleHandler3"
name="Technical Requirement">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers"
id = "documentation.handlers">
<handler
class="documentation.handlers.SampleHandler3"
commandId="documentation.handlers.SampleHandler3">
</handler>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
id="documentation.handlers.SampleHandler4"
name="Open Documentation">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers"
id = "documentation.handlers">
<handler
class="documentation.handlers.SampleHandler4"
commandId="documentation.handlers.SampleHandler4">
</handler>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
id="documentation.handlers.SampleHandler5"
name="UML Diagrams">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers"
id = "documentation.handlers">
<handler
class="documentation.handlers.SampleHandler5"
commandId="documentation.handlers.SampleHandler5">
</handler>
</extension>
<extension
point="org.eclipse.ui.commands">
<command
id="documentation.handlers.SampleHandler6"
name="Database Development">
</command>
</extension>
<extension
point="org.eclipse.ui.handlers"
id = "documentation.handlers">
<handler
class="documentation.handlers.SampleHandler6"
commandId="documentation.handlers.SampleHandler6">
</handler>
</extension>
</plugin>
? menuitem이 클릭되거나 Comamnd의 Handler가 끝났음을 의미합니까, 아니면 처음에 끝내야하는 등의 장기 실행 프로세스가 있습니까? – Calon
첫 번째 양식의 첫 번째 완성 된 방법에 대한 프로세스 저는 사용자로부터 정보를 수락합니다. 사용자가 정보를 입력하면 사용자가 수락 한 데이터를 포함하는 ProjectDecription.xml 파일을 생성합니다. 파일이 생성되면 첫 번째 처리기에 대한 프로세스가 완료되었음을 나타냅니다. 두 번째 처리기에서 다시 사용자로부터 정보를 받아 ProjectDescription.xml에 병합하고 다른 것과 마찬가지로 병합합니다. 그래서 처음에는 첫 번째 메뉴 만 활성화되고 다른 모든 비활성화는 가능해야합니다. 등등. – user3497146