0

I am currently using a IWorkingSetSelectionDialog created by a IWorkingSetManager. By default, clicking on the "new..." button in this dialog asks the user which type of working set should be created. But I would like to restrict to Java working sets, as in Package Explorer. Anyone know how this could be achieved?

1 Answer 1

1

I think if you use the:

public IWorkingSetSelectionDialog createWorkingSetSelectionDialog(
        Shell parentShell, boolean multi, String[] workingsSetIds)

method and specify the Java working set id (org.eclipse.jdt.ui.JavaWorkingSetPage in the final parameter:

new String [] {"org.eclipse.jdt.ui.JavaWorkingSetPage"}

you will get what you want.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.